/* ========================================
   RESET & BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary: #0A2647;
    --secondary: #2C3E50;
    --accent: #00D4AA;
    --background: #F8FAFC;
    --text: #1E293B;
    --text-light: #64748B;
    --white: #FFFFFF;
    --success: #10B981;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-md: 1.125rem;
    --font-size-lg: 1.25rem;
    --font-size-xl: 1.5rem;
    --font-size-2xl: 2rem;
    --font-size-3xl: 3rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 4rem;
}

body {
    font-family: var(--font-primary);
    color: var(--text);
    background-color: var(--background);
    line-height: 1.6;
}

/* ========================================
   CONTAINER
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
}

.section-title {
    font-size: var(--font-size-2xl);
    color: var(--primary);
    margin-bottom: var(--space-lg);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--accent);
    border-radius: var(--radius-full);
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    border: 2px solid var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-md);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-md);
}

.nav-menu a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s;
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text);
    margin: 3px 0;
    transition: 0.3s;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        box-shadow: var(--shadow-md);
        padding: var(--space-md) 0;
        transition: 0.3s;
    }
    
    .nav-menu.active {
        left: 0;
    }
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: var(--space-lg) 0;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
}

.hero-title {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-xs);
    animation: fadeInUp 0.6s ease;
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    color: var(--accent);
    margin-bottom: var(--space-md);
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-description {
    font-size: var(--font-size-md);
    margin-bottom: var(--space-md);
    opacity: 0.9;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    animation: fadeInUp 0.6s ease 0.6s both;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
}

.hero-social {
    display: flex;
    gap: var(--space-sm);
    animation: fadeInUp 0.6s ease 0.8s both;
}

.hero-social a {
    color: var(--white);
    font-size: var(--font-size-xl);
    transition: all 0.3s;
}

.hero-social a:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

.hero-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 50%;
    box-shadow: var(--shadow-xl);
    animation: fadeIn 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Hero Responsive */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-md);
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-social {
        justify-content: center;
    }
    
    .hero-image {
        grid-row: 1;
    }
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about {
    padding: var(--space-xl) 0;
    background-color: var(--white);
}

.about-text {
    font-size: var(--font-size-lg);
    max-width: 800px;
    margin-bottom: var(--space-lg);
    line-height: 1.8;
}

.highlight {
    color: var(--primary);
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--accent);
    opacity: 0.3;
    z-index: -1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.stat-item {
    text-align: center;
    padding: var(--space-md);
    background-color: var(--background);
    border-radius: var(--radius-lg);
    transition: transform 0.3s;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-number {
    display: block;
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    color: var(--text-light);
    font-size: var(--font-size-sm);
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   SKILLS SECTION
   ======================================== */
.skills {
    padding: var(--space-xl) 0;
    background-color: var(--background);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
}

.skill-category {
    background-color: var(--white);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.skill-category h3 {
    color: var(--primary);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-category h3 i {
    color: var(--accent);
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background-color: var(--background);
    color: var(--text);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    transition: all 0.3s;
}

.skill-tag:hover {
    background-color: var(--accent);
    color: var(--white);
    transform: scale(1.05);
}

/* ========================================
   EXPERIENCE SECTION
   ======================================== */
.experience {
    padding: var(--space-xl) 0;
    background-color: var(--white);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 200px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--accent);
    opacity: 0.3;
}

.timeline-item {
    display: flex;
    margin-bottom: var(--space-lg);
    position: relative;
}

.timeline-left {
    width: 200px;
    padding-right: var(--space-md);
    text-align: right;
}

.timeline-date {
    font-weight: 600;
    color: var(--primary);
    background-color: var(--background);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    display: inline-block;
}

.timeline-right {
    flex: 1;
    padding-left: var(--space-md);
    position: relative;
}

.timeline-right::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--accent);
    border: 2px solid var(--white);
}

.timeline-right h3 {
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.timeline-right h4 {
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: var(--space-sm);
}

.timeline-list {
    list-style: none;
}

.timeline-list li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.timeline-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent);
}

@media (max-width: 768px) {
    .timeline::before {
        left: 0;
    }
    
    .timeline-item {
        flex-direction: column;
    }
    
    .timeline-left {
        width: auto;
        text-align: left;
        padding-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .timeline-right {
        padding-left: var(--space-md);
    }
}

/* ========================================
   PROJECTS SECTION
   ======================================== */
.projects {
    padding: var(--space-xl) 0;
    background-color: var(--background);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.project-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

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

.project-image {
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    padding: var(--space-md);
    flex: 1;
}

.project-content h3 {
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.project-tech {
    color: var(--accent);
    font-weight: 500;
    margin-bottom: var(--space-sm);
}

.project-description {
    color: var(--text);
    margin-bottom: var(--space-sm);
}

.project-highlights {
    list-style: none;
    margin: var(--space-sm) 0;
}

.project-highlights li {
    margin-bottom: 0.25rem;
    font-size: var(--font-size-sm);
    color: var(--text-light);
    position: relative;
    padding-left: 1.25rem;
}

.project-highlights li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
}

.project-links {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

.btn-small {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    background-color: var(--background);
    color: var(--text);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    transition: all 0.3s;
}

.btn-small:hover {
    background-color: var(--primary);
    color: var(--white);
}

.view-all {
    text-align: center;
    margin-top: var(--space-lg);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary);
    color: var(--primary);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all 0.3s;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* ========================================
   EDUCATION SECTION
   ======================================== */
.education {
    padding: var(--space-xl) 0;
    background-color: var(--white);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
}

.education-card {
    padding: var(--space-md);
    background-color: var(--background);
    border-radius: var(--radius-lg);
    transition: transform 0.3s;
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.education-card h3 {
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.education-card h4 {
    color: var(--text);
    margin-bottom: 0.25rem;
}

.education-date {
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.education-gpa {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.badge {
    background-color: var(--success);
    color: var(--white);
    font-size: var(--font-size-sm);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-full);
    margin-left: 0.5rem;
}

.education-score {
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact {
    padding: var(--space-xl) 0;
    background-color: var(--background);
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-info {
    margin-bottom: var(--space-lg);
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: var(--space-sm);
}

.contact-item i {
    color: var(--accent);
    font-size: var(--font-size-lg);
}

.contact-item a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--primary);
}

.contact-social {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--white);
    color: var(--text);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.social-link:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    padding: var(--space-md) 0;
    background-color: var(--primary);
    color: var(--white);
    text-align: center;
}

.footer i {
    color: var(--accent);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    :root {
        --font-size-3xl: 2.5rem;
        --font-size-2xl: 1.75rem;
    }
    
    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .section-title {
        text-align: center;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-social {
        flex-direction: column;
        align-items: center;
    }
    
    .social-link {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    :root {
        --space-md: 1rem;
        --space-lg: 2rem;
        --space-xl: 3rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
}