/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4C763B;
    --secondary-color: #043915;
    --accent-color: #B0CE88;
    --text-primary: #043915;
    --text-secondary: #4C763B;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --border-color: #B0CE88;
    --shadow-sm: 0 1px 2px 0 rgba(4, 57, 21, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(4, 57, 21, 0.1), 0 2px 4px -1px rgba(4, 57, 21, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(4, 57, 21, 0.1), 0 4px 6px -2px rgba(4, 57, 21, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(4, 57, 21, 0.1), 0 10px 10px -5px rgba(4, 57, 21, 0.04);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, #B0CE88 0%, #4C763B 100%);
    min-height: 100vh;
    padding: 2rem 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--bg-primary);
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(135deg, #4C763B 0%, #043915 100%);
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    color: white;
}

.profile-section {
    display: flex;
    justify-content: center;
}

.profile-image-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    padding: 8px;
    background: linear-gradient(135deg, #B0CE88 0%, #4C763B 100%);
    box-shadow: 0 8px 32px rgba(4, 57, 21, 0.3);
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    display: block;
}

.hero-content {
    text-align: center;
}

.name {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    opacity: 0.95;
}

.institution {
    font-size: 1.125rem;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.social-link svg {
    width: 24px;
    height: 24px;
}

/* Section Styles */
.section {
    padding: 3rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.section:last-of-type {
    border-bottom: none;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.semester {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Classes Grid */
.classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.class-card {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.class-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.class-code {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.class-name {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Projects Section */
.projects-container {
    display: grid;
    gap: 1.5rem;
}

.project-card {
    background: linear-gradient(135deg, #4C763B 0%, #043915 100%);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    color: white;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.project-title {
    font-size: 1.75rem;
    font-weight: 700;
}

.project-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.project-description {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: 1.5rem;
}

.demo-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.demo-button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    background: var(--bg-secondary);
    padding: 2rem 1.5rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.skill-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    background: white;
}

.skill-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    color: var(--primary-color);
}

.skill-icon svg {
    width: 100%;
    height: 100%;
}

.skill-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 1rem 0.5rem;
    }

    .container {
        border-radius: 16px;
    }

    .hero {
        padding: 3rem 1.5rem;
        gap: 1.5rem;
    }

    .profile-image-wrapper {
        width: 160px;
        height: 160px;
    }

    .name {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.25rem;
    }

    .institution {
        font-size: 1rem;
    }

    .section {
        padding: 2rem 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .semester {
        font-size: 1rem;
    }

    .classes-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .class-card {
        padding: 1.25rem;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .skill-card {
        padding: 1.5rem 1rem;
    }

    .skill-icon {
        width: 40px;
        height: 40px;
    }

    .project-card {
        padding: 1.5rem;
    }

    .project-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: 1.75rem;
    }

    .subtitle {
        font-size: 1.125rem;
    }

    .institution {
        font-size: 0.95rem;
    }

    .profile-image-wrapper {
        width: 140px;
        height: 140px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* Desktop Layout Enhancement */
@media (min-width: 1024px) {
    .hero {
        flex-direction: row;
        justify-content: center;
        padding: 5rem 3rem;
        gap: 3rem;
    }

    .hero-content {
        text-align: left;
    }

    .social-links {
        justify-content: flex-start;
    }

    .profile-image-wrapper {
        width: 240px;
        height: 240px;
    }

    .section {
        padding: 4rem 3rem;
    }

    .classes-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
