/* =========================================
   CSS Variables & Theme
========================================= */
:root {
    /* Light Theme */
    --bg-primary: #ead9ce;
    --bg-secondary: #ead9ce;
    --bg-tertiary: #ead9ce;
    --text-primary: #09090b;
    --text-secondary: #71717a;
    --border-color: rgba(0, 0, 0, 0.08);
    --accent: #ae7c5a;
    /* Professional blue for light mode */
    --accent-hover: #1d4ed8;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --card-bg: #ead9ce;
    --nav-height: 80px;
}

[data-theme="dark"] {
    /* Dark Theme (Default) */
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #161616;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --border-color: rgba(255, 255, 255, 0.08);
    --accent: #ae7c5a;
    /* Sophisticated gold for dark mode */
    --accent-hover: #e0b86a;
    --glass-bg: rgba(10, 10, 10, 0.7);
    --glass-border: rgba(255, 255, 255, 0.05);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
    --card-bg: #111111;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   Typography
========================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-top: 1.5rem;
    max-width: 600px;
}

.lead-text {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

/* =========================================
   Layout & Utility
========================================= */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.bg-secondary {
    background-color: var(--bg-secondary);
}

.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

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

.d-none {
    display: none !important;
}

.w-100 {
    width: 100%;
}

/* =========================================
   Buttons
========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

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

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(203, 162, 88, 0.3);
}

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

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-outline-light {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.btn-outline-light:hover {
    background-color: #fff;
    color: #000;
}

/* =========================================
   Navigation
========================================= */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.nav-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
}

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

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

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

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

#theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

#theme-toggle:hover {
    color: var(--accent);
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-primary);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.mobile-link {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.mobile-link.active,
.mobile-link:hover {
    color: var(--accent);
}

/* =========================================
   Hero Section
========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.separator {
    color: var(--accent);
    margin: 0 0.5rem;
}

.hero-intro {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.abstract-shape {
    width: 400px;
    height: 400px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: linear-gradient(45deg, var(--bg-tertiary), var(--border-color));
    animation: morph 8s ease-in-out infinite;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-inner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.abstract-shape::after {
    content: '';
    position: absolute;
    inset: 10px;
    border-radius: inherit;
    border: 1px solid var(--accent);
    opacity: 0.5;
    animation: morph 8s ease-in-out infinite reverse;
}

@keyframes morph {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    50% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    }

    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
    opacity: 1;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-secondary);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        top: 6px;
        opacity: 1;
    }

    100% {
        top: 20px;
        opacity: 0;
    }
}

/* =========================================
   About Section
========================================= */
.section-header {
    margin-bottom: 4rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.about-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: grayscale(20%);
}

.about-image:hover img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-lg);
}

.badge-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.badge-text {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

/* =========================================
   Expertise Section
========================================= */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.expertise-card {
    position: relative;
    overflow: hidden;
}

.card-num {
    font-size: 3rem;
    font-weight: 800;
    color: var(--bg-tertiary);
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    transition: color 0.3s ease;
}

.expertise-card:hover .card-num {
    color: var(--border-color);
}

.expertise-card .card-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    margin-top: 1rem;
    position: relative;
    z-index: 1;
}

.expertise-card .card-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

/* =========================================
   Software & Tools Section
========================================= */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.tool-card:hover {
    background-color: var(--card-bg);
    border-color: var(--accent);
    transform: translateY(-5px);
}

.tool-icon {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.tool-card:hover .tool-icon {
    color: var(--accent);
}

.tool-name {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.tool-cat {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* =========================================
   Projects Section
========================================= */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.project-card {
    border-radius: 16px;
    overflow: hidden;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.project-img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

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

.project-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

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

.project-info {
    padding: 2rem;
}

.project-cat {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.project-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

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

.projects-cta {
    text-align: center;
}

/* =========================================
   Experience Section
========================================= */
.experience-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

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

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-dot {
    position: absolute;
    left: -2.35rem;
    top: 1.5rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--accent);
    border: 4px solid var(--bg-primary);
}

.timeline-date {
    display: inline-block;
    padding: 0.25rem 1rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--accent);
}

.timeline-role {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.timeline-company {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.timeline-desc {
    font-weight: 600;
    margin-bottom: 1rem;
}

.timeline-list {
    padding-left: 1.25rem;
    color: var(--text-secondary);
}

.timeline-list li {
    margin-bottom: 0.5rem;
    list-style-type: disc;
}

.career-summary {
    position: sticky;
    top: calc(var(--nav-height) + 2rem);
    height: fit-content;
}

.summary-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.summary-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.s-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    min-width: 80px;
}

.s-text {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.summary-statement {
    font-style: italic;
    color: var(--text-primary);
    font-size: 1.1rem;
}

/* =========================================
   Services Section
========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 3rem 2rem;
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.service-num {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--border-color);
}

.service-icon {
    font-size: 2rem;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.2);
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.service-desc {
    color: var(--text-secondary);
}

/* =========================================
   Career Objective Section
========================================= */
.objective-section {
    background-color: var(--bg-primary);
    text-align: center;
    padding: 8rem 0;
    position: relative;
}

.objective-section::before,
.objective-section::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 80px;
    background-color: var(--accent);
}

.objective-section::before {
    top: 0;
}

.objective-section::after {
    bottom: 0;
}

.objective-container {
    max-width: 800px;
}

.objective-statement {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.4;
    margin: 3rem 0;
    color: var(--text-primary);
}

.objective-secondary {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* =========================================
   Contact Section
========================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-intro {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.contact-note {
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: translateY(-3px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-message {
    padding: 1rem;
    background-color: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    border: 1px solid #2ecc71;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

/* =========================================
   Footer
========================================= */
.footer {
    background-color: var(--bg-secondary);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    text-align: center;
    margin-bottom: 4rem;
}

.footer-name {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.footer-role {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.footer-tagline {
    font-style: italic;
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.back-to-top {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.back-to-top:hover {
    color: var(--accent);
}

.footer-credit {
    text-align: center;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.footer-credit .developer-name {
    color: var(--accent);
    font-weight: 600;
}

/* =========================================
   Animations
========================================= */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards ease-out;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards ease-out;
}

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

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

.reveal-section {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

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

/* =========================================
   Responsive Design
========================================= */
@media (max-width: 1024px) {
    .hero {
        padding-top: calc(var(--nav-height) + 1.5rem);
        min-height: auto;
        padding-bottom: 3rem;
    }

    .hero-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }

    .hero-visual {
        display: flex !important;
        order: -1 !important; /* Placed at the top, ABOVE the name */
        height: auto;
        margin-top: 0.5rem;
        margin-bottom: 1.5rem;
        justify-content: center;
        align-items: center;
    }

    .abstract-shape {
        width: 250px !important;
        height: 250px !important;
    }

    .hero-title,
    .hero-subtitle,
    .hero-intro {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-stats,
    .hero-ctas {
        justify-content: center;
    }

    .about-grid,
    .experience-layout,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .career-summary {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .d-none-mobile {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-visual {
        order: -1 !important;
        margin-bottom: 1.25rem;
    }

    .abstract-shape {
        width: 220px !important;
        height: 220px !important;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

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

/* =========================================
   Bilingual (EN / AR) System
========================================= */

[data-lang="en"] .ar-text { display: none !important; }
[data-lang="ar"] .en-text { display: none !important; }

[data-lang="ar"] body,
[data-lang="ar"] .ar-text {
    font-family: 'Noto Kufi Arabic', sans-serif;
    line-height: 1.8;
}

[data-lang="ar"] {
    direction: rtl;
    text-align: right;
}

[data-lang="ar"] .nav-container,
[data-lang="ar"] .nav-links,
[data-lang="ar"] .nav-controls {
    flex-direction: row-reverse;
}

[data-lang="ar"] .hero-stats,
[data-lang="ar"] .hero-ctas,
[data-lang="ar"] .social-links {
    flex-direction: row-reverse;
}

[data-lang="ar"] .timeline-list {
    padding-right: 1.5rem;
    padding-left: 0;
}

[data-lang="ar"] .section-header,
[data-lang="ar"] .footer-content {
    text-align: center;
}

/* Language Toggle Button */
.lang-toggle-btn {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.lang-toggle-btn:hover {
    background-color: var(--accent);
    color: var(--bg-primary);
}

@media (max-width: 480px) {
    .hero {
        padding-top: calc(var(--nav-height) + 1.25rem);
    }

    .hero-visual {
        order: -1 !important;
        margin-top: 0;
        margin-bottom: 1rem;
        height: auto;
    }

    .abstract-shape {
        width: 190px !important;
        height: 190px !important;
    }

    .hero-title {
        font-size: clamp(2.4rem, 11vw, 3rem);
    }

    .project-info {
        padding: 1.5rem 1.25rem;
    }
}