/* 
    Futuristic Portfolio Design System
    Theme: Dark Luxury / Futuristic Minimalism
    Author: Antigravity Redesign
*/

:root {
    /* Colors - Default Dark */
    --bg-deep: #050505;
    --bg-graphite: #0a0a0a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-bright: rgba(255, 255, 255, 0.15);
    --accent-emerald: #10b981;
    --accent-cyan: #06b6d4;
    --accent-glow: rgba(6, 182, 212, 0.5);

    /* Spacing & Sizes */
    --container-width: 1200px;
    --nav-height: 80px;

    /* Transitions */
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-soft: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Light Mode Overrides */
body.light-mode {
    --bg-deep: #f8fafc;
    --bg-graphite: #ffffff;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.05);
    --glass-border-bright: rgba(0, 0, 0, 0.1);
    --accent-glow: rgba(6, 182, 212, 0.2);
}

body.light-mode .bg-grid {
    background-image: linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
}

body.light-mode .primary-btn {
    background: #0f172a;
    color: white;
}

body.light-mode .glass-nav {
    background: rgba(255, 255, 255, 0.7);
}

.dark-luxury {
    background-color: var(--bg-deep);
    color: var(--text-main);
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-deep);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.logo,
.hero-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
}

/* Background Effects */
.bg-vignette {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
    z-index: -1;
}

.bg-grid {
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
}

.ambient-orbs {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: -3;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: orbMove 20s infinite alternate ease-in-out;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--accent-emerald);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: var(--accent-cyan);
    bottom: -200px;
    right: -100px;
    animation-delay: -5s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: #4f46e5;
    top: 40%;
    left: 60%;
    animation-delay: -10s;
}

.particle {
    position: absolute;
    background: white;
    border-radius: 50%;
    pointer-events: none;
}

@keyframes orbMove {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(100px, 50px) scale(1.1);
    }
}

/* Glassmorphism Utilities */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: var(--glass-border-bright);
    background: rgba(255, 255, 255, 0.05);
}

.glass-btn {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 12px 24px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Visibility Control for Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
}

.reveal-text {
    opacity: 0;
    transform: translateY(100px);
}

/* Custom Cursor */
.custom-cursor {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
}

.cursor-glow {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s;
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: var(--container-width);
    height: var(--nav-height);
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 30px;
    transition: var(--transition-smooth);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: white;
    transition: var(--transition-smooth);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 40px;
    opacity: 0;
    transform: translateY(-50px);
}

.logo {
    font-size: 24px;
    color: white;
    text-decoration: none;
    letter-spacing: -1px;
}

.logo span {
    color: var(--accent-emerald);
}

.nav-links {
    display: flex;
    gap: 25px;
    margin: 0 auto;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.nav-links a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0;
    position: relative;
}

.hero-container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 100px;
    color: var(--accent-emerald);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(48px, 8vw, 96px);
    line-height: 0.9;
    margin-bottom: 30px;
}

.hero-title .line {
    display: block;
}

.hero-title .accent {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
    background: linear-gradient(90deg, var(--accent-emerald), var(--accent-cyan));
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.primary-btn {
    background: white;
    color: black;
    padding: 16px 32px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.primary-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.secondary-btn {
    border: 1px solid var(--glass-border);
    color: white;
    padding: 16px 32px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

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

.glass-card-stack {
    position: relative;
    width: 300px;
    height: 400px;
    transform-style: preserve-3d;
}

.hero-visual .glass-card {
    opacity: 0;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 20px;
}

.glass-card.card-1 {
    position: absolute;
    inset: 0;
    z-index: 3;
    overflow: hidden;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
}

.glass-card.card-2 {
    position: absolute;
    inset: -20px;
    z-index: 2;
    transform: translateZ(-20px) rotate(-5deg);
    opacity: 0.5;
}

.glass-card.card-3 {
    position: absolute;
    inset: -40px;
    z-index: 1;
    transform: translateZ(-40px) rotate(5deg);
    opacity: 0.2;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0.6;
}

.scroll-indicator p {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.mouse {
    width: 20px;
    height: 35px;
    border: 1px solid white;
    border-radius: 10px;
    position: relative;
}

.wheel {
    width: 2px;
    height: 6px;
    background: white;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 1px;
    animation: wheelScroll 1.5s infinite;
}

@keyframes wheelScroll {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(15px);
        opacity: 0;
    }
}

/* Sections General */
section {
    padding: 100px 0;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.section-header {
    margin-bottom: 60px;
}

.section-header.center {
    text-align: center;
}

.subtitle {
    color: var(--accent-emerald);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 12px;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

.title {
    font-size: clamp(32px, 5vw, 64px);
    line-height: 1.1;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text .lead {
    font-size: 24px;
    color: white;
    margin-bottom: 30px;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 40px;
}

.stats-row {
    display: flex;
    gap: 20px;
}

.stat-item {
    flex: 1;
    padding: 24px;
    text-align: center;
}

.stat-num {
    font-size: 32px;
    font-weight: 800;
    color: white;
    font-family: 'Outfit';
}

.stat-plus {
    color: var(--accent-emerald);
    font-size: 24px;
}

.stat-item p {
    font-size: 12px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-skills h3 {
    margin-bottom: 30px;
    font-size: 1.5rem;
    position: relative;
    display: inline-block;
}

.about-skills h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-emerald);
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-pill {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 12px;
}

.skill-pill i {
    color: var(--accent-cyan);
}

/* New Utility Classes for Professional Polish */
.skill-group-title {
    font-size: 16px;
    margin-bottom: 15px;
    font-family: 'Outfit', sans-serif;
}

.skill-group-title.emerald {
    color: var(--accent-emerald);
}

.skill-group-title.cyan {
    color: var(--accent-cyan);
}

.skill-margin {
    margin-bottom: 25px;
}

.github-avatar-img {
    width: 80px;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 2px solid var(--accent-emerald);
}

.github-btn-margin {
    margin-top: 30px;
    display: inline-block;
}

/* Print Styles for Resume */
@media print {
    body * {
        visibility: hidden;
    }
    #resume-modal, #resume-modal * {
        visibility: visible;
    }
    #resume-modal {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        background: white !important;
        color: black !important;
        opacity: 1 !important;
        padding: 0 !important;
    }
    .modal-content {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .resume-body {
        color: black !important;
    }
    .resume-section h2 {
        color: #10b981 !important; /* Keep emerald accent if possible or use black */
        border-bottom: 2px solid #eee !important;
    }
    .close-modal, .download-resume-btn {
        display: none !important;
    }
}

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

.service-card {
    padding: 40px;
    text-align: center;
}

.service-card i {
    font-size: 40px;
    color: var(--accent-emerald);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Experience Section */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent-emerald), transparent);
}

.timeline-item {
    position: relative;
    padding: 30px;
    margin-bottom: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 35px;
    width: 12px;
    height: 12px;
    background: var(--accent-emerald);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--accent-emerald);
}

.time-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--accent-emerald);
    border-radius: 50px;
    font-size: 12px;
    color: var(--accent-emerald);
    margin-bottom: 15px;
}

.company {
    color: var(--accent-cyan);
    font-size: 16px;
    margin-bottom: 15px;
}

.exp-list {
    margin-top: 15px;
    padding-left: 20px;
    color: var(--text-muted);
    font-size: 14px;
}

.timeline-projects {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.mini-project {
    flex: 1;
    min-width: 140px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
}

.mini-project:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.mini-project img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
}

.projects-grid.timeline-integrated {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.timeline-integrated .project-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
    min-height: 280px;
}

.timeline-integrated .project-image {
    width: 40%;
    min-width: 200px;
    height: auto;
    border-radius: 15px 0 0 15px;
}

.timeline-integrated .project-image img {
    height: 100%;
}

.timeline-integrated .project-info {
    width: 60%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 768px) {
    .timeline-integrated .project-card {
        flex-direction: column;
    }
    .timeline-integrated .project-image {
        width: 100%;
        height: 200px;
        border-radius: 15px 15px 0 0;
    }
    .timeline-integrated .project-info {
        width: 100%;
    }
}

.tech-stack-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.tech-stack-mini span {
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.exp-list li {
    margin-bottom: 8px;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.project-card {
    padding: 16px;
    cursor: pointer;
}

.project-image {
    width: 100%;
    height: 300px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transition: var(--transition-smooth);
}

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

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

.view-btn {
    width: 50px;
    height: 50px;
    background: white;
    color: black;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 18px;
    transition: var(--transition-smooth);
}

.view-btn:hover {
    transform: scale(1.2);
}

.project-info {
    padding: 20px 10px;
}

.project-info h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.project-info p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 15px;
}

.project-tags {
    display: flex;
    gap: 10px;
}

.project-tags span {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-emerald);
    font-weight: 700;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 100px;
    align-items: center;
}

.contact-details {
    margin: 40px 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.detail-item {
    display: flex;
    gap: 20px;
    align-items: center;
}

.detail-item i {
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent-cyan);
    font-size: 20px;
}

.detail-item span {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-item p {
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 45px;
    height: 45px;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.social-links a:hover {
    background: var(--accent-emerald);
    border-color: var(--accent-emerald);
    transform: translateY(-5px);
}

.contact-form-panel {
    padding: 40px;
}

.futuristic-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.input-group {
    position: relative;
}

.input-group input,
.input-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--glass-border);
    padding: 10px 0;
    color: white;
    font-family: inherit;
    font-size: 16px;
}

.input-group label {
    position: absolute;
    top: 10px;
    left: 0;
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition-smooth);
}

.input-group input:focus~label,
.input-group input:not(:placeholder-shown)~label,
.input-group textarea:focus~label,
.input-group textarea:not(:placeholder-shown)~label {
    top: -20px;
    font-size: 12px;
    color: var(--accent-emerald);
}

.bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: var(--accent-emerald);
    transition: var(--transition-smooth);
}

.input-group input:focus~.bar,
.input-group textarea:focus~.bar {
    width: 100%;
}

.submit-btn {
    width: 100%;
    cursor: pointer;
    font-size: 16px;
    padding: 18px;
}

/* Footer */
.glass-footer {
    text-align: center;
    padding: 40px;
    border-top: 1px solid var(--glass-border);
    margin-top: 60px;
}

.glass-footer p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Workflow Section */
.workflow-steps {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 50px;
    position: relative;
}

.step-card {
    flex: 1;
    padding: 30px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-num {
    width: 40px;
    height: 40px;
    background: var(--accent-emerald);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    font-weight: 800;
}

/* GitHub Stats */
.github-card {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    text-align: center;
}

.github-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

/* UI Playground */
.playground-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.playground-item {
    height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.magnetic-btn {
    padding: 20px 40px;
    background: var(--accent-cyan);
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.1s linear;
}

.theme-toggle-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
}

.theme-toggle-btn:hover {
    transform: rotate(45deg);
    background: var(--accent-emerald);
    color: white;
}

/* Responsive */
@media (max-width: 1024px) {

    .hero-container,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-visual {
        order: 1;
        margin-bottom: 40px;
    }

    .hero-subtitle {
        margin: 0 auto 40px;
    }

    .hero-actions {
        justify-content: center;
    }

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

/* Modal System */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    display: none;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
    overflow-y: auto;
    opacity: 0;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #1a1a1a;
    width: 100%;
    max-width: 900px;
    border-radius: 32px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    padding: 60px;
    transition: var(--transition-smooth);
}

/* Case Study Content Styles */
.case-title {
    font-size: clamp(28px, 5vw, 40px);
    margin-bottom: 30px;
    background: linear-gradient(135deg, var(--accent-emerald), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.case-section {
    margin-bottom: 35px;
}

.case-section h3 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    color: var(--accent-emerald);
    font-weight: 700;
}

.case-section p {
    font-size: 16px;
    line-height: 1.8;
    opacity: 0.9;
}

.case-insight {
    padding: 20px;
    background: rgba(16, 185, 129, 0.05);
    border-left: 4px solid var(--accent-emerald);
    border-radius: 8px;
    font-style: italic;
    color: #1a1a1a;
}

.case-tech-grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.case-tech-pill {
    padding: 8px 18px;
    background: #f3f4f6;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 50px;
    font-size: 13px;
    color: #374151;
    transition: var(--transition-smooth);
}

.case-tech-pill:hover {
    background: var(--accent-emerald);
    color: white;
    transform: translateY(-2px);
}

.close-modal {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    color: white;
    font-size: 24px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 2100;
    transition: var(--transition-smooth);
}

.close-modal:hover {
    transform: rotate(90deg) scale(1.1);
}

/* ATS Resume Styles (Inside Modal) */
.resume-body {
    font-family: 'Inter', Arial, sans-serif;
    line-height: 1.5;
    color: #1a1a1a;
}

.resume-header {
    text-align: center;
    border-bottom: 2px solid #333;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.resume-header h1 {
    font-size: 28px;
    margin: 0;
    color: #000;
}

.resume-contact {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
    font-size: 13px;
}

.resume-section {
    margin-bottom: 25px;
}

.resume-section h2 {
    font-size: 16px;
    text-transform: uppercase;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
    margin-bottom: 15px;
    color: #000;
    letter-spacing: 1px;
}

.resume-item {
    margin-bottom: 15px;
}

.resume-item-header {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 14px;
}

.resume-item-sub {
    display: flex;
    justify-content: space-between;
    font-style: italic;
    font-size: 13px;
    color: #555;
    margin-bottom: 5px;
}

.resume-list {
    margin: 8px 0;
    padding-left: 20px;
    font-size: 13.5px;
}

.resume-list li {
    margin-bottom: 5px;
}

.resume-skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    font-size: 13px;
}

.download-resume-btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background: var(--accent-emerald);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
    z-index: 2002;
    cursor: pointer;
    font-weight: 600;
    border: none;
    display: none;
}

.download-resume-btn.active {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Print Styles */
@media print {
    body * {
        visibility: hidden;
    }

    .modal,
    .modal.active,
    .modal-content,
    .modal-content * {
        visibility: visible;
    }

    .modal {
        position: absolute;
        left: 0;
        top: 0;
        padding: 0;
        background: white;
    }

    .modal-content {
        box-shadow: none;
        padding: 0;
        width: 100%;
        max-width: none;
    }

    .close-modal,
    .download-resume-btn,
    .nav-links,
    .cv-btn,
    .glass-nav {
        display: none !important;
    }
}

@media (max-width: 768px) {

    /* Navigation */
    .menu-toggle {
        display: flex;
        font-size: 24px;
        cursor: pointer;
        padding: 10px;
    }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: var(--bg-graphite);
        flex-direction: column;
        padding: 40px;
        height: 100vh;
        overflow-y: auto;
        transition: var(--transition-smooth);
        display: flex;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-20px);
    }

    .nav-links.active {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-content {
        gap: 15px;
    }

    .nav-actions {
        gap: 10px;
    }

    .cv-btn {
        padding: 8px 16px;
        font-size: 14px;
    }

    /* Grids & Layouts */
    .hero-container,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .workflow-steps {
        flex-direction: column;
        gap: 30px;
    }

    .github-stats-grid {
        grid-template-columns: 1fr;
    }

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

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

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

    .stats-row {
        flex-direction: column;
        gap: 20px;
    }

    /* Typography adjustments */
    .title {
        font-size: 32px;
    }

    .hero-title {
        font-size: clamp(32px, 10vw, 48px);
    }

    /* Modals */
    .modal-content {
        padding: 30px 20px;
        margin: 20px;
        max-width: calc(100% - 40px);
    }

    .resume-item-header,
    .resume-item-sub,
    .resume-skills-grid {
        flex-direction: column;
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .download-resume-btn {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
        font-size: 14px;
    }
}
/* --- Language Toggle --- */
.lang-toggle-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    font-family: var(--font-heading);
    transition: var(--transition-smooth);
}

.lang-toggle-btn:hover {
    background: var(--accent-emerald);
    color: var(--black);
    transform: translateY(-2px);
}

/* --- RTL Support --- */
.rtl-mode {
    font-family: 'Outfit', 'Inter', sans-serif;
}

.rtl-mode .nav-links {
    flex-direction: row-reverse;
}

.rtl-mode .hero-content {
    text-align: right;
}

.rtl-mode .about-text {
    text-align: right;
}

.rtl-mode .section-header {
    text-align: right;
}

.rtl-mode .section-header.center {
    text-align: center;
}

.rtl-mode .contact-info-panel {
    text-align: right;
}

.rtl-mode .resume-header {
    text-align: right;
}

.rtl-mode .resume-contact span {
    flex-direction: row-reverse;
}

.rtl-mode .resume-list {
    padding-right: 20px;
    padding-left: 0;
}

.rtl-mode .resume-list li {
    text-align: right;
}

.rtl-mode .resume-item-header {
    flex-direction: row-reverse;
}
