/* ==========================================
   CSS RESET & VARIABLES
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette - Rich Dark Theme */
    --primary: #E8B86D;
    --primary-light: #F4D9A0;
    --primary-dark: #D19F4A;
    --secondary: #4A90E2;
    --accent: #7C5CDB;
    
    --bg-dark: #0A0E1A;
    --bg-darker: #050810;
    --bg-card: #131829;
    --bg-elevated: #1A2138;
    
    --text-primary: #E8EDF5;
    --text-secondary: #A8B3CF;
    --text-muted: #6B7A99;
    
    --border-subtle: rgba(232, 184, 109, 0.1);
    --border-medium: rgba(232, 184, 109, 0.2);
    
    /* Typography */
    --font-display: 'Playfair Display', serif;
    --font-body: 'DM Sans', sans-serif;
    
    /* Spacing */
    --section-padding: 120px;
    --container-padding: 40px;
    
    /* Effects */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(232, 184, 109, 0.15);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--primary);
    color: var(--bg-dark);
}

/* ==========================================
   CONTAINER & LAYOUT
   ========================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

section {
    padding: var(--section-padding) 0;
    position: relative;
}

/* ==========================================
   NAVIGATION
   ========================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-subtle);
    transition: all var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(10, 14, 26, 0.95);
    box-shadow: var(--shadow-md);
}

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

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: var(--transition-fast);
}

.nav-logo:hover {
    color: var(--primary-light);
    text-shadow: 0 0 20px rgba(232, 184, 109, 0.3);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 5px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-smooth);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    position: relative;
    transition: var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-smooth);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -200px;
    left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    bottom: -150px;
    right: -100px;
    animation-delay: 5s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    top: 50%;
    right: 10%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

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

.hero-label {
    color: var(--text-muted);
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 900;
    line-height: 0.95;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.title-line {
    display: block;
    animation: slideInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.title-line:first-child {
    animation-delay: 0.3s;
}

.title-line:last-child {
    animation-delay: 0.5s;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-subtitle {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    color: var(--text-secondary);
    margin-bottom: 24px;
    min-height: 50px;
    animation: fadeInUp 1s ease-out 0.7s both;
}

#typedText {
    color: var(--primary);
    font-weight: 500;
}

.cursor {
    color: var(--primary);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 40px;
    line-height: 1.8;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 1.1s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all var(--transition-smooth);
    cursor: pointer;
    border: none;
    letter-spacing: 0.02em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--bg-dark);
    box-shadow: 0 4px 16px rgba(232, 184, 109, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232, 184, 109, 0.4);
}

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
}

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

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.hero-scroll {
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    animation: fadeInUp 1s ease-out 1.3s both;
}

.scroll-indicator {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0%, 100% {
        transform: translateY(0);
        opacity: 0;
    }
    50% {
        transform: translateY(20px);
        opacity: 1;
    }
}

/* ==========================================
   SECTION HEADERS
   ========================================== */

.section-header {
    margin-bottom: 80px;
    position: relative;
}

.section-number {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1.1;
}

/* ==========================================
   ABOUT SECTION
   ========================================== */

.about {
    background: var(--bg-darker);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.lead-text {
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.8;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border-subtle);
}

.highlight-item {
    text-align: center;
}

.highlight-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}

.highlight-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.about-visual {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.visual-card {
    background: var(--bg-card);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-smooth);
}

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

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.visual-card h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-weight: 700;
}

.visual-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================
   SKILLS SECTION
   ========================================== */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.skill-category {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-smooth);
}

.skill-category:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

.category-icon {
    width: 48px;
    height: 48px;
    color: var(--primary);
    margin-bottom: 24px;
}

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

.skill-category h3 {
    font-size: 1.35rem;
    color: var(--text-primary);
    margin-bottom: 24px;
    font-weight: 700;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-tag {
    display: inline-block;
    padding: 8px 16px;
    background: var(--bg-elevated);
    color: var(--text-secondary);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-fast);
}

.skill-tag:hover {
    background: var(--primary);
    color: var(--bg-dark);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* ==========================================
   PROJECTS SECTION
   ========================================== */

.projects {
    background: var(--bg-darker);
}

.projects-grid {
    display: grid;
    gap: 48px;
}

.project-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 48px;
    transition: all var(--transition-smooth);
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.project-card:hover {
    transform: translateX(8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.project-card:hover::before {
    opacity: 1;
}

.project-number {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

.project-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.3;
}

.project-description {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 24px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.tech-badge {
    padding: 6px 14px;
    background: var(--bg-elevated);
    color: var(--primary);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--border-medium);
}

.project-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-elevated);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all var(--transition-smooth);
}

.project-link svg {
    width: 18px;
    height: 18px;
}

.project-link:hover {
    background: var(--primary);
    color: var(--bg-dark);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* ==========================================
   EDUCATION SECTION
   ========================================== */

.education-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.education-main {
    background: var(--bg-card);
    padding: 48px;
    border-radius: 20px;
    border: 1px solid var(--border-subtle);
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-subtle);
}

.education-header h3 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 700;
}

.education-institution {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 600;
}

.education-period {
    color: var(--text-muted);
    font-size: 0.95rem;
    text-align: right;
}

.year-results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.year-column h4 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.results-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.results-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.module-name {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.module-grade {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1rem;
}

.module-grade.grade-high {
    color: var(--primary);
}

.module-status {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
}

.certifications {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-subtle);
    height: fit-content;
}

.certifications h4 {
    font-size: 1.35rem;
    color: var(--text-primary);
    margin-bottom: 24px;
    font-weight: 700;
}

.cert-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cert-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.cert-icon {
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: var(--bg-dark);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    flex-shrink: 0;
}

.cert-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 4px;
}

.cert-issuer {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ==========================================
   EXPERIENCE SECTION
   ========================================== */

.experience {
    background: var(--bg-darker);
}

.experience-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 30px;
    bottom: 30px;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
}

.timeline-item {
    position: relative;
    padding-left: 80px;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 28px;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 3px solid var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 0 6px var(--bg-darker);
}

.timeline-content {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-smooth);
}

.timeline-content:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
    transform: translateX(8px);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-subtle);
}

.experience-header h3 {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 700;
}

.experience-company {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 600;
}

.experience-period {
    color: var(--text-muted);
    font-size: 0.95rem;
    text-align: right;
}

.experience-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.experience-list li {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    padding-left: 28px;
    position: relative;
}

.experience-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

.experience-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-pill {
    padding: 6px 14px;
    background: var(--bg-elevated);
    color: var(--text-secondary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border-subtle);
}

/* ==========================================
   CONTACT SECTION
   ========================================== */

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-info h3 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    font-weight: 700;
}

.contact-info > p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    text-decoration: none;
    transition: all var(--transition-smooth);
}

.contact-method:hover {
    border-color: var(--primary);
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.method-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-elevated);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.method-icon svg {
    width: 24px;
    height: 24px;
}

.method-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.method-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
}

.contact-form {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-subtle);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(232, 184, 109, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
    background: var(--bg-darker);
    padding: 60px 0;
    border-top: 1px solid var(--border-subtle);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-smooth);
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--bg-dark);
    border-color: var(--primary);
    transform: translateY(-4px);
}

.footer-social svg {
    width: 20px;
    height: 20px;
}

/* ==========================================
   SCROLL REVEAL ANIMATIONS
   ========================================== */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 968px) {
    :root {
        --section-padding: 80px;
        --container-padding: 24px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(10, 14, 26, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 40px;
        gap: 24px;
        transform: translateX(-100%);
        transition: transform var(--transition-smooth);
        border-bottom: 1px solid var(--border-subtle);
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-link {
        font-size: 1.25rem;
    }

    .about-content,
    .contact-content,
    .education-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .year-results {
        grid-template-columns: 1fr;
    }

    .about-highlights {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .timeline-item {
        padding-left: 60px;
    }

    .experience-timeline::before {
        left: 12px;
    }

    .timeline-marker {
        width: 24px;
        height: 24px;
        left: 0;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .project-card {
        padding: 32px 24px;
    }

    .education-main,
    .certifications,
    .contact-form {
        padding: 32px 24px;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
}
