/* ================================
   Modern Portfolio CSS
   Theme: Japanese Zen Aesthetic
   ================================ */

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

:root {
    /* Color Palette */
    --primary: #ff6b9d;
    --primary-light: #ffa3c1;
    --secondary: #c084fc;
    --accent: #60a5fa;
    --dark: #0f172a;
    --darker: #020617;
    --light: #f8fafc;
    --white: #ffffff;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-display: 'Playfair Display', serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    color: var(--white);
    background: var(--darker);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* ===== Floating Background Particles ===== */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.floating-particle:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
    animation-duration: 15s;
}

.floating-particle:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: 2s;
    animation-duration: 18s;
}

.floating-particle:nth-child(3) {
    top: 80%;
    left: 30%;
    animation-delay: 4s;
    animation-duration: 22s;
}

.floating-particle:nth-child(4) {
    top: 40%;
    left: 70%;
    animation-delay: 6s;
    animation-duration: 20s;
}

.floating-particle:nth-child(5) {
    top: 10%;
    left: 50%;
    animation-delay: 8s;
    animation-duration: 16s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translate(100px, -100px) scale(1.5);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50px, -200px) scale(1);
        opacity: 0.3;
    }
    75% {
        transform: translate(-150px, -100px) scale(1.2);
        opacity: 0.5;
    }
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    background: rgba(2, 6, 23, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(2, 6, 23, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 2rem;
    font-weight: 400;
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: baseline;
    gap: 0.1rem;
    transition: transform var(--transition-normal);
}

.nav-logo:hover {
    transform: translateY(-2px);
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: 0.5px;
}

.logo-dot {
    color: var(--primary);
    font-size: 2.5rem;
    line-height: 0.8;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
    transition: color var(--transition-normal);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width var(--transition-normal);
}

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

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

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

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

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-image: url('public/assets/HeroImg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 8rem 2rem 4rem;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.7) 0%,
        rgba(2, 6, 23, 0.6) 50%,
        rgba(96, 165, 250, 0.2) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.hero-text-container {
    animation: fadeInUp 1s ease;
}

.hero-greeting {
    font-size: clamp(2rem, 3.5vw, 3rem);
    color: var(--primary-light);
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: fadeIn 1s ease 0.2s backwards;
}

.hero-name {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 10vw, 7rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.name-line {
    background: linear-gradient(135deg, var(--white) 0%, var(--primary-light) 50%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    opacity: 0;
    position: relative;
}

.name-line::after {
    content: '|';
    position: absolute;
    right: -0.5rem;
    -webkit-text-fill-color: var(--primary-light);
    animation: blink 0.8s infinite;
}

.name-line.typing-complete::after {
    display: none;
}

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

.hero-tagline {
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeIn 1s ease 0.7s backwards;
}

.tagline-separator {
    color: var(--primary);
    font-weight: 300;
}

.hero-description {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.8;
    animation: fadeIn 1s ease 0.9s backwards;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 12rem;
    animation: fadeInUp 1s ease 1.1s backwards;
}

.cta-button {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.3);
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 107, 157, 0.5);
}

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

.cta-secondary:hover {
    background: var(--white);
    color: var(--dark);
    transform: translateY(-3px);
}

.scroll-indicator {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    animation: fadeIn 1s ease 1.5s backwards;
}

.scroll-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.scroll-mouse {
    width: 28px;
    height: 45px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    position: relative;
    animation: bounce 2s infinite;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ===== Section Styling ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-xl) 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-label {
    display: inline-block;
    color: var(--primary-light);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 107, 157, 0.1);
    border-radius: 50px;
    border: 1px solid rgba(255, 107, 157, 0.2);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--white), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin: 0 auto;
    border-radius: 2px;
}

/* ===== Glassmorphism Cards ===== */
.glass-morphism {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    transition: all var(--transition-normal);
}

.glass-morphism:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.25);
}

/* ===== About Section ===== */
.about {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-image: url('public/assets/Gemini_Generated_Image_s8h52as8h52as8h5.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.85) 0%,
        rgba(2, 6, 23, 0.82) 50%,
        rgba(255, 107, 157, 0.2) 100%
    );
    z-index: 1;
}

.about-bg-overlay {
    display: none;
}

.about .container {
    position: relative;
    z-index: 2;
}

.about-content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.about-card,
.experience-card {
    padding: var(--spacing-lg);
}

.about-card-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.about-text-content {
    color: rgba(255, 255, 255, 0.9);
}

.about-paragraph {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== Experience Timeline ===== */
.experience-timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.experience-item {
    position: relative;
    padding-left: 1.5rem;
    border-left: 2px solid rgba(255, 107, 157, 0.3);
}

.experience-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.2);
}

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

.experience-role {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.experience-company {
    font-size: 1rem;
    color: var(--primary-light);
    font-weight: 500;
}

.experience-date {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
}

.experience-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.experience-details li {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.experience-details li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* ===== Skills Section ===== */
.skills {
    min-height: 100vh;
    position: relative;
    background-image: url('public/assets/Gemini_Generated_Image_kzuuw0kzuuw0kzuu.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.88) 0%,
        rgba(2, 6, 23, 0.85) 50%,
        rgba(255, 107, 157, 0.15) 100%
    );
    z-index: 1;
}

.skills .container {
    position: relative;
    z-index: 2;
}

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

.skill-card {
    padding: 2.5rem;
    text-align: center;
}

.skill-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.3);
}

.skill-icon {
    width: 40px;
    height: 40px;
    stroke: var(--white);
}

.skill-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1rem;
}

.skill-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.skill-tag {
    padding: 0.4rem 1rem;
    background: rgba(255, 107, 157, 0.15);
    border: 1px solid rgba(255, 107, 157, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--primary-light);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.skill-tag:hover {
    background: rgba(255, 107, 157, 0.25);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* ===== Projects Section ===== */
.projects {
    min-height: 100vh;
    background-image: url('public/assets/Gemini_Generated_Image_kbh85pkbh85pkbh8.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: var(--spacing-xl) 0;
    position: relative;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.88) 0%,
        rgba(2, 6, 23, 0.85) 50%,
        rgba(192, 132, 252, 0.2) 100%
    );
    z-index: 1;
}

.projects .container {
    position: relative;
    z-index: 2;
}

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

.project-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-image-wrapper {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.2), rgba(192, 132, 252, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.project-image-placeholder {
    width: 80px;
    height: 80px;
}

.project-image-placeholder svg {
    width: 100%;
    height: 100%;
    stroke: rgba(255, 255, 255, 0.4);
}

.project-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1rem;
}

.project-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-badge {
    padding: 0.4rem 1rem;
    background: rgba(96, 165, 250, 0.15);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 1.5rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.project-link:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.project-link svg {
    stroke: currentColor;
}

.project-info-btn {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
}

/* ===== Contact Section ===== */
.contact {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-image: url('public/assets/Gemini_Generated_Image_m3czvrm3czvrm3cz.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(2, 6, 23, 0.88) 0%,
        rgba(15, 23, 42, 0.85) 50%,
        rgba(192, 132, 252, 0.2) 100%
    );
    z-index: 1;
}

.contact .container {
    position: relative;
    z-index: 2;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-card {
    padding: var(--spacing-lg);
    text-align: center;
}

.contact-message {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 3rem;
}

.contact-methods {
    display: grid;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    text-decoration: none;
    transition: all var(--transition-normal);
}

.contact-method:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    transform: translateX(10px);
}

.contact-method-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    flex-shrink: 0;
}

.contact-method-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--white);
}

.contact-method-text {
    text-align: left;
    flex: 1;
}

.contact-method-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.contact-method-value {
    font-size: 1.1rem;
    color: var(--white);
    font-weight: 500;
}

/* ===== Footer ===== */
.footer {
    background: var(--darker);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 2rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

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

.footer-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--primary);
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .about-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .skills-grid,
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    /* Disable parallax on mobile for performance */
    .hero,
    .about,
    .skills,
    .projects,
    .contact {
        background-attachment: scroll !important;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(2, 6, 23, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        gap: 2rem;
        transition: right var(--transition-normal);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .nav-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }
    
    .hero {
        padding: 6rem 1.5rem 4rem;
    }
    
    .hero-name {
        font-size: clamp(2.5rem, 12vw, 5rem);
    }
    
    .name-line {
        word-wrap: break-word;
    }
    
    .hero-tagline {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .tagline-separator {
        display: none;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .container {
        padding: 3rem 1rem;
    }
    
    .about .container {
        padding: 3rem 1rem;
    }
    
    .section-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }
    
    .about-content-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0;
    }
    
    .about-card,
    .experience-card {
        padding: 1.5rem;
        margin: 0;
    }
    
    .about-card-title {
        font-size: 1.5rem;
    }
    
    .about-paragraph {
        font-size: 0.95rem;
    }
    
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .experience-role {
        font-size: 1.1rem;
    }
    
    .experience-company {
        font-size: 0.95rem;
    }
    
    .experience-date {
        font-size: 0.85rem;
    }
    
    .experience-details li {
        font-size: 0.9rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-method {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-method-text {
        text-align: center;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .nav-logo {
        font-size: 1.4rem;
    }
    
    .hero-name {
        font-size: 2.5rem;
    }
    
    .about-card,
    .experience-card {
        padding: 1.25rem;
    }
    
    .about-card-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .about-paragraph {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .experience-item {
        padding-left: 1rem;
    }
    
    .experience-role {
        font-size: 1rem;
    }
    
    .experience-company {
        font-size: 0.9rem;
    }
    
    .experience-date {
        font-size: 0.8rem;
    }
    
    .experience-details li {
        font-size: 0.85rem;
        padding-left: 1.25rem;
    }
    
    .contact-card {
        padding: 1.25rem;
    }
    
    .skill-card {
        padding: 1.5rem;
    }
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== Selection Styling ===== */
::selection {
    background: var(--primary);
    color: var(--white);
}

::-moz-selection {
    background: var(--primary);
    color: var(--white);
}

/* ===== Scrollbar Styling ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--darker);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-light), var(--secondary));
}

/* ===== Project Info Modal ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 2rem;
}

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

.modal-container {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    /* Hide scrollbar */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.modal-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255, 107, 157, 0.3);
    transform: rotate(90deg);
}

.modal-close svg {
    stroke: var(--white);
}

.modal-content {
    color: var(--white);
}

.modal-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--white), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-content h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-top: 2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
}

.modal-content ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.modal-content ul li {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.modal-content ul li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.modal-content strong {
    color: var(--primary-light);
    font-weight: 600;
}

/* Modal Responsiveness */
@media (max-width: 768px) {
    .modal-container {
        padding: 2rem;
        max-height: 85vh;
    }
    
    .modal-content h2 {
        font-size: 2rem;
    }
    
    .modal-content h3 {
        font-size: 1.5rem;
    }
    
    .modal-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .modal-overlay {
        padding: 1rem;
    }
    
    .modal-container {
        padding: 1.5rem;
    }
    
    .modal-close {
        top: 1rem;
        right: 1rem;
        width: 35px;
        height: 35px;
    }
    
    .modal-content h2 {
        font-size: 1.75rem;
    }
    
    .modal-content h3 {
        font-size: 1.3rem;
    }
}
