/* ===================================================
   File: style.css (Optimized for High Performance)
   Author: Mohammad Aatif
   Description: Portfolio Website Stylesheet - 144FPS Optimized
   =================================================== */

/* ===================================================
   1. GLOBAL STYLES (Puri Website ke default styles)
   =================================================== */

/* Sabhi elements ki default margin/padding hatata hai */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Mobile tap highlight color hatata hai better feel ke liye */
    -webkit-tap-highlight-color: transparent;
}

/* Page par smooth scrolling enable karta hai */
html {
    scroll-behavior: smooth;
    /* Font rendering ko crisp aur fast banata hai */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Website ke main color variables (Dark Theme ke liye) */
:root {
    --primary: #00d4ff;
    --secondary: #0099ff;
    --accent: #00ffaa;
    --dark: #0a0e27;
    --darker: #050816;
    --light: #ffffff;
    --text: #e6f1ff;
    --gray: #1a0f3a;
}

/* Poori website ki body ke default styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #050816 0%, #0a0e27 50%, #050816 100%);
    color: var(--text);
    overflow-x: hidden; /* Side scrollbar ko rokta hai */
    width: 100%;
}

/* ===================================================
   2. KEYFRAME ANIMATIONS (Sare animations yahan hain)
   =================================================== */

/* Background mein shapes ko upar-neeche tairne ka animation */
@keyframes floatShape {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-60vh) rotate(180deg); }
}

/* Background mein code symbols ko upar tairne ka animation */
@keyframes floatCode {
    0% { transform: translateY(100vh); opacity: 0; }
    10%, 90% { opacity: 0.2; }
    100% { transform: translateY(-100vh); opacity: 0; }
}

/* Profile photo par glow ka animation */
@keyframes smoothGlow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

/* Title par gradient color badalne ka animation */
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Typing animation ke cursor (dandi) ko blink karne ka animation */
@keyframes smoothBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Hero section ke content ko neeche se upar laane ka animation */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile menu ki photo ko halka sa float karne ka animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Project pages par content ko load karne ke alag-alag animations */
@keyframes page-load-slide-and-scale-in {
    from {
        opacity: 0;
        transform: translateX(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes page-load-rotate-in {
    from {
        opacity: 0;
        transform: scale(0.9) rotateZ(-8deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotateZ(0);
    }
}

@keyframes page-load-slide-from-bottom {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes page-load-fade-in-long {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===================================================
   3. BACKGROUND ANIMATION STYLES
   =================================================== */

/* Animation ke container ko poori screen par fix karta hai */
.bg-animation {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    overflow: hidden;
    /* Performance boost: GPU layer banata hai background ke liye */
    transform: translateZ(0);
    pointer-events: none;
}

/* Tairne wale shapes (circle, square) ke common styles */
.geometric-shape {
    position: absolute;
    opacity: 0.15;
    animation: floatShape 20s infinite ease-in-out;
    pointer-events: none;
    /* Performance boost: Browser ko batata hai ye badalne wala hai */
    will-change: transform;
    backface-visibility: hidden;
}

/* Circle shape ka style */
.shape-circle {
    border: 3px solid var(--primary);
    border-radius: 50%;
}

/* Square shape ka style */
.shape-square {
    border: 3px solid var(--accent);
    transform: rotate(45deg);
}

/* Tairne wale code symbols (jaise 'HTML', 'AI') ka style */
.code-symbol {
    position: absolute;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: var(--primary);
    opacity: 0.2;
    animation: floatCode 15s infinite;
    pointer-events: none;
    /* Performance boost */
    will-change: transform, opacity;
}

/* ===================================================
   4. NAVIGATION BAR (NAVBAR)
   =================================================== */

/* Poore navbar ko screen par upar fix karta hai */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0.8rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.2);
    border-bottom: 2px solid rgba(0, 212, 255, 0.3);
    transform: translateZ(0);
    /* Overflow visible taaki border clip na ho */
    overflow: visible;
}

/* Navbar ke andar ke content ko limit mein rakhta hai */
.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    /* overflow hidden hata diya - ye buttons ko clip kar raha tha */
}

/* Logo "Portfolio" aur "Mohammad Aatif" ka container */
.nav-logo-container {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    order: 1;
    flex-shrink: 0; /* Logo kabhi chhota nahi hoga */
    flex-grow: 0;
}

/* Main "Portfolio" logo text */
.nav-logo {
    font-size: 1.2rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

/* Logo ke neeche "Mohammad Aatif" text */
.nav-subtext {
    font-size: 0.65rem;
    color: var(--text);
    opacity: 0.7;
    letter-spacing: 0.5px;
}

/* Mobile ka Hamburger Menu Button (teen lines) */
.menu-toggle {
    right: 10px;
    display: none; /* Desktop par hide rehta hai */
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0rem;
    z-index: 1001;
    order: 3;
}

/* Hamburger menu ki lines */
.menu-toggle span {
    width: 20px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    /* Optimized transition: Sirf transform animate hoga, 'all' nahi */
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Jab menu khulta hai (active) - upar wali line 'X' banati hai */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

/* Jab menu khulta hai (active) - beech wali line gayab hoti hai */
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

/* Jab menu khulta hai (active) - neeche wali line 'X' banati hai */
.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Menu open hone par hamburger button hide karo - circle close button handle karega */
.menu-toggle.active {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

/* Navbar ke links (Home, About, etc.) ka container */
nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
    margin: 0;
    /* Upar/neeche padding - border visible rahe */
    padding: 0.4rem 0.5rem;
    order: 4;
    /* Scrollable - jab buttons overflow hon */
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    /* Ye shrink hoga taaki logo/switch safe rahen */
    flex: 1 1 0;
    min-width: 0;
}

/* Scrollbar hide karo */
nav ul::-webkit-scrollbar {
    display: none;
}

/* Mobile menu ka header (jo slide hoke aata hai) - Desktop par hide rehta hai */
.mobile-menu-header {
    display: none;
}

/* Navbar ke har ek link (button) ka style */
nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    padding: 0.4rem 0.5rem;
    font-size: 0.8rem;
    min-width: 110px;
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(26, 31, 58, 0.6));
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    white-space: nowrap;
    /* Hover effects ko smooth karta hai */
    will-change: transform;
}

/* Navbar ke link par mouse le jaane (hover) ka style */
nav a:hover {
    color: var(--primary);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(26, 31, 58, 0.8));
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

/* ===================================================
   5. THEME SWITCH BUTTON
   =================================================== */

/* Theme switch button ka container */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
    margin-left: 0.75rem;
    flex-shrink: 0;
    flex-grow: 0;
    order: 2;
}

/* Switch button ka main box */
.theme-switch {
    position: relative;
    display: inline-block;
    width: 55px;
    height: 32px;
    /* Input elements par touch area optimize */
    touch-action: manipulation;
}

/* Asli checkbox ko hide karta hai */
.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* Switch ka background (slider) */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0.15rem;
    left: 0;
    right: 0;
    bottom: -0.01rem;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(26, 31, 58, 0.6));
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 26px;
    transition: 0.4s;
}

/* Switch ka circle (jo move karta hai) */
.slider:before {
    position: absolute;
    content: "";
    height: 15px;
    width: 15px;
    left: 6px;
    bottom: 7px;
    background-color: var(--primary);
    border-radius: 50%;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55), background-color 0.4s; /* Only transform */
}

/* Sun aur Moon icon ke common styles */
.slider .sun-icon, .slider .moon-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.4s ease;
    color: #f1c40f;
}

/* Sun icon ki position */
.slider .sun-icon {
    left: 7px;
}

/* Moon icon ki position */
.slider .moon-icon {
    right: 7px;
}

/* Jab switch ON (light mode) ho to slider ka style */
input:checked + .slider {
    background: linear-gradient(135deg, #e0eafc, #cfdef3);
    border-color: rgba(0, 0, 0, 0.1);
}

/* Jab switch ON (light mode) ho to circle ki movement */
input:checked + .slider:before {
    transform: translateX(24px);
    background-color: var(--primary);
}

/* Light mode mein Sun icon dikhata hai */
html[data-theme="light"] .slider .sun-icon { opacity: 1; }
/* Dark mode mein Moon icon dikhata hai */
html[data-theme="dark"] .slider .moon-icon { opacity: 1; }

/* ===================================================
   6. HERO SECTION (Sabse upar wala hissa)
   =================================================== */

/* Poore hero section ko screen-height ka banata hai aur content center karta hai */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 100px;
    position: relative;
    z-index: 1;
    contain: layout; /* Performance: Layout isolation */
}

/* Hero section ke content par fade-in animation lagata hai */
.hero-content {
    animation: fadeInUp 1s ease;
}

/* Profile photo ka style */
.profile-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 0 auto 2rem;
    border: 4px solid var(--primary);
    background-image: url('Images/main.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    z-index: 2;
}

/* Profile photo ke peeche glow effect banata hai */
.profile-photo::after {
    content: '';
    position: absolute;
    left: -4px;
    top: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.6);
    animation: smoothGlow 2s ease-in-out infinite;
    z-index: 1;
    will-change: transform, opacity;
}
@keyframes float3D {
    0% {
        transform: translateY(0) translateZ(0) scale(1);
    }

    50% {
        transform: translateY(-14px) translateZ(20px) scale(1.03);
    }

    100% {
        transform: translateY(0) translateZ(0) scale(1);
    }
}

.profile-photo {
    animation: float3D 4s ease-in-out infinite;
    transform-style: preserve-3d;
}


/* "Hi, I'm" text ka style */
.greeting {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--light), var(--text));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    font-weight: 300;
}

/* Main Title "MOHAMMAD AATIF" ka style */
.hero h1 {
    font-size: 4rem;
    background: linear-gradient(135deg, var(--primary), var(--light), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    background-size: 200% auto;
    animation: gradientShift 3s ease infinite;
    /* Heavy animation optimization */
    will-change: background-position;
}

/* Typing animation text ka container */
.typing-animation {
    font-size: 1.8rem;
    color: var(--text);
    margin-bottom: 2rem;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Typing text ka style */
.typing-text {
    padding-right: 5px;
    color: var(--primary);
    position: relative;
}

/* Typing text ka cursor (dandi) banata hai */
.typing-text::after,
.mobile-typing-text::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    background: var(--primary);
    animation: smoothBlink 0.7s infinite;
    will-change: opacity;
}

/* Desktop ke typing cursor ki motai */
.typing-text::after {
    width: 3px;
}

/* Mobile ke typing cursor ki motai */
.mobile-typing-text::after {
    width: 2px;
}

/* Sub-title (B.Tech Student) ka style */
.hero h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Hero section ke paragraph ka style */
.hero p {
    font-size: 1.1rem;
    opacity: 0.8;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===================================================
   7. GENERAL CONTENT STYLES (Box, Card, Button)
   =================================================== */

/* Har section ke content ko page ke beech mein rakhta hai */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* Har section (About, Skills, etc.) ke beech gap deta hai */
section {
    padding: 5rem 0;
    /* Modern rendering optimization: Off-screen content ko render nahi karega */
    contain: content;
}

/* Har section ka main bada box (container) */
.section-box {
    background: linear-gradient(135deg, rgba(26, 31, 58, 0.8), rgba(10, 14, 39, 0.8));
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 25px -5px rgba(0, 212, 255, 0.25);

    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    /* GPU hint */
    will-change: transform, box-shadow;
}

/* Section box par hover karne ka effect */
.section-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 30px -10px rgba(0, 212, 255, 0.6);
    border-color: var(--accent);
}

/* Section ka title (Jaise "About Me", "Skills") */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--primary), var(--light), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradientShift 3s ease infinite;
    will-change: background-position;
}

/* Projects/Experience/Certifications ke cards ka grid layout */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Har chota card (jaise project card, experience card) */
.card {
    background: linear-gradient(135deg, rgba(26, 31, 58, 0.6), rgba(51, 60, 100, 0.4));
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid rgba(0, 212, 255, 0.3);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 14px 2px rgba(0, 212, 255, 0.22);
    /* Smoother hover */
    will-change: transform, box-shadow;
    transform: translateZ(0);
}

/* Card par hover karne ka effect */
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 22px 4px rgba(0, 212, 255, 0.42);
    border-color: var(--primary);
}

/* Card ke andar ka title */
.card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

/* Card ke andar ki list (ul) */
.card ul {
    list-style: none;
    padding-left: 0;
    color: var(--text);
    line-height: 1.6;
    margin-top: 0.5rem;
}

/* Card ke andar ki list ka item (li) */
.card ul li {
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    display: flex;
    align-items: flex-start;
}

/* List ke aakhri item ke neeche se line hatata hai */
.card ul li:last-child {
    border-bottom: none;
}

/* List item ke shuru mein arrow (▸) lagata hai */
.card ul li::before {
    content: "▸ ";
    color: var(--primary);
    font-weight: bold;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

/* Project detail list ke arrow ko hatata hai (kyunki wahan nahi chahiye) */
.card ul.project-details-list li::before {
    content: none;
}

/* Project detail list item */
.card ul.project-details-list li {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}

/* Project detail list ka label (jaise "Tools Used:") */
.card ul.project-details-list li strong {
    min-width: 100px;
    flex-shrink: 0;
    margin-right: 0.5rem;
    color: var(--primary);
    position: relative;
    top: -2px;
}

/* Project card ke andar image ka style */
.project-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border: 2px solid rgba(0, 212, 255, 0.4);
}

/* "View Project" button ka style */
.project-button {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--darker);
    text-decoration: none;
    font-weight: bold;
    border-radius: 20px;
    transition: transform 0.3s ease, background 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 212, 255, 0.3);
    will-change: transform;
}

/* "View Project" button par hover effect */
.project-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.5);
    background: linear-gradient(135deg, var(--accent), var(--primary));
}

/* Project card ke description text ka style */
.project-description {
    margin-top: 1.5rem;
}

.project-description h4 {
    color: var(--primary);
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.project-description p {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.9;
    text-align: justify;
}

/* ===================================================
   8. SKILLS SECTION
   =================================================== */

/* Skills ka grid layout */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Har ek skill (Programming, Web Dev) ka box */
.skill-item {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(26, 31, 58, 0.6));
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid rgba(0, 212, 255, 0.3);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    box-shadow: 0 0 12px 2px rgba(0, 212, 255, 0.22);
    will-change: transform;
    transform: translateZ(0);
}

/* Skill box par hover effect */
.skill-item:hover {
    transform: scale(1.05);
    box-shadow: 0 0 18px 3px rgba(0, 212, 255, 0.40);
    border-color: var(--primary);
}

/* Skill box ka title */
.skill-item h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

/* ===================================================
   9. EDUCATION SECTION
   =================================================== */

/* Education ki vertical line (timeline) */
.timeline {
    position: relative;
    padding: 2rem 0;
}

/* Timeline ki main beech wali line */
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--accent));
}

/* Timeline ka har ek item (B.Tech, 12th) */
.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0;
    position: relative;
}

/* Odd items (1st, 3rd) ko left mein rakhta hai */
.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
    text-align: right;
    padding-right: 3rem;
}

/* Even items (2nd, 4th) ko right mein rakhta hai */
.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    text-align: left;
    padding-left: 3rem;
}

/* Education box ka style */
.timeline-content {
    width: 45%;
    background: linear-gradient(135deg, rgba(26, 31, 58, 0.8), rgba(51, 60, 100, 0.6));
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid rgba(0, 212, 255, 0.3);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 14px 2px rgba(0, 212, 255, 0.22);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    will-change: transform;
    transform: translateZ(0);
}

/* Education box par hover effect */
.timeline-content:hover {
    transform: scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 6px 22px -3px rgba(0, 212, 255, 0.38);
}

/* Education box ka title */
.timeline-content h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Timeline ki beech wali line par dot */
.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    border: 4px solid var(--dark);
    z-index: 2;
}

/* Education box ke andar university/college ka logo */
.education-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    object-fit: cover;
    flex-shrink: 0;
}

/* Logo ke bagal mein text ka container */
.education-text {
    flex-grow: 1;
}

/* "View University" button ka style */
.education-button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
    color: var(--darker);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    text-decoration: none;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 212, 255, 0.3);
    transition: transform 0.3s ease, background 0.3s ease;
    will-change: transform;
}

/* "View University" button par hover effect */
.education-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 212, 255, 0.5);
    background: linear-gradient(135deg, var(--accent), var(--primary));
}

/* ===================================================
   10. CERTIFICATIONS SECTION
   =================================================== */

/* Certificate list ka container */
.certificate-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

/* Har ek certificate ka item */
.certificate-item {
    padding: 0;
    border: none;
    background: none;
}

.certificate-item:hover {
    background: none;
    border: none;
}

/* Certificate ka text */
.certificate-item p {
    font-weight: 500;
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.5rem;
}

/* Certificate text ke aage arrow (▸) */
.certificate-item p::before {
    content: "▸ ";
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

/* "View Certificate" button ka style */
.certificate-button {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--darker);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.75rem;
    border-radius: 20px;
    transition: transform 0.3s ease, background 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 212, 255, 0.3);
    margin-left: 1.5rem;
    will-change: transform;
}

/* "View Certificate" button par hover effect */
.certificate-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 212, 255, 0.5);
    background: linear-gradient(135deg, var(--accent), var(--primary));
}

/* ===================================================
   11. ACHIEVEMENTS SECTION
   =================================================== */

/* Har ek achievement ka card */
.achievement-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(26, 31, 58, 0.6));
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid rgba(0, 212, 255, 0.4);
    margin: 1.5rem 0;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 14px 2px rgba(0, 212, 255, 0.22);
    will-change: transform;
    transform: translateZ(0);
}

/* Achievement card par hover effect */
.achievement-card:hover {
    transform: translateX(10px);
    border-color: var(--primary);
    box-shadow: 0 0 20px 3px rgba(0, 212, 255, 0.40);
}

/* Achievement card ka title */
.achievement-card h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* ===================================================
   12. CONTACT SECTION
   =================================================== */

/* Contact section ke "Download" aur "OR" divider ka container */
.contact-actions {
    text-align: center;
    margin-bottom: 2.5rem; /* Social links se gap */
}

/* Contact section ka subtitle (jaise "Let's connect...") */
.contact-actions p.contact-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

/* Download card ka description paragraph */
.contact-actions p.card-description {
    font-size: 0.95rem;
    opacity: 0.8;
    max-width: 800px;
    margin: -0.5rem auto 1.5rem auto;
    line-height: 1.6;
}

/* Contact section ke "Download" button ko bada karta hai */
.contact-actions .project-button {
    font-size: 1rem;
    padding: 0.8rem 2rem;
}

/* "OR" likha hua divider */
.contact-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2.5rem 0 2rem 0; /* Upar/neeche gap */
}

/* "OR" ke left aur right ki lines */
.contact-divider::before,
.contact-divider::after {
    content: '';
    flex: 1;
    border-bottom: 2px solid rgba(0, 212, 255, 0.3);
}

/* "OR" text ka style */
.contact-divider span {
    padding: 0 1.5rem;
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--primary);
    opacity: 0.8;
}

/* Social media links (Email, LinkedIn, etc.) ka grid layout */
.social-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Har ek social link button ka style */
.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(26, 31, 58, 0.6));
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 50px;
    text-decoration: none;
    color: var(--text);
    transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    font-weight: 500;
    box-shadow: 0 0 14px 2px rgba(0, 212, 255, 0.22);
    will-change: transform;
}

/* Social link button par hover effect */
.social-link:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(26, 31, 58, 0.8));
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 0 16px 3px rgba(0, 212, 255, 0.38);
}

/* Social link button ka icon */
.social-link span:first-child {
    font-size: 1.5rem;
}

/* ===================================================
   13. FOOTER
   =================================================== */

/* Page ke sabse neeche footer ka style */
footer {
    text-align: center;
    padding: 2rem;
    background: rgba(10, 14, 39, 0.95);
    margin-top: 5rem;
    border-top: 2px solid rgba(0, 212, 255, 0.3);
    contain: content;
}

/* ===================================================
   14. LIGHT THEME OVERRIDES (White Theme ke Styles)
   =================================================== */

/* Light theme ke naye color variables */
html[data-theme="light"] {
    --primary: #007bff;
    --secondary: #0056b3;
    --accent: #28a745;
    --dark: #f4f7fa;
    --darker: #ffffff;
    --light: #212529;
    --text: #343a40;
    --gray: #e9ecef;
}

/* --- Light Theme: Global --- */

html[data-theme="light"] body {
    background: linear-gradient(135deg, #f4f7fa 0%, #ffffff 100%);
    color: var(--text);
}

html[data-theme="light"] .bg-animation {
    opacity: 0.5;
}
html[data-theme="light"] .geometric-shape {
    border-color: var(--primary);
    opacity: 0.1;
}
html[data-theme="light"] .shape-square {
    border-color: var(--accent);
}
html[data-theme="light"] .code-symbol {
    color: var(--primary);
    opacity: 0.15;
}

/* --- Light Theme: Navigation Bar --- */

html[data-theme="light"] nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}
html[data-theme="light"] .nav-logo {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
html[data-theme="light"] .nav-subtext,
html[data-theme="light"] nav a {
    color: var(--text);
}
html[data-theme="light"] nav a {
    background: rgba(0, 123, 255, 0.05);
    border: 1px solid rgba(0, 123, 255, 0.3);
}
html[data-theme="light"] nav a:hover {
    color: var(--primary);
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1), rgba(0, 123, 255, 0.15));
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.2);
}
html[data-theme="light"] .menu-toggle span {
    background: var(--primary);
}

/* --- Light Theme: Hero Section --- */

html[data-theme="light"] .profile-photo {
    border-color: var(--primary);
}
html[data-theme="light"] .profile-photo::after {
    box-shadow: 0 0 40px rgba(0, 123, 255, 0.6);
}
html[data-theme="light"] .greeting {
    background: linear-gradient(135deg, var(--light), var(--text));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
html[data-theme="light"] .hero h1,
html[data-theme="light"] .section-title {
    background: linear-gradient(135deg, var(--primary), var(--light), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation-name: gradientShift;
}
html[data-theme="light"] .typing-text,
html[data-theme="light"] .mobile-typing-text {
    color: var(--primary);
}
html[data-theme="light"] .typing-text::after,
html[data-theme="light"] .mobile-typing-text::after {
    background: var(--primary);
}

/* --- Light Theme: General Content --- */

/* Bada Section Box: Left se White, Right se Halka Blue gradient */
html[data-theme="light"] .section-box {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.7), rgba(230, 240, 255, 0.7));
    border: 2px solid rgba(0, 123, 255, 0.3);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.10);
}
/* Bada Section Box Hover: Border Dark Blue */
html[data-theme="light"] .section-box:hover {
    box-shadow: 0 25px 35px -10px rgba(0, 123, 255, 0.28);
    border-color: var(--secondary);
}

/* Chota Card Box: Left se Halka Blue, Right se White gradient */
html[data-theme="light"] .card {
    background: linear-gradient(to right, rgba(230, 240, 255, 0.6), rgba(255, 255, 255, 0.6));
    border: 2px solid rgba(0, 123, 255, 0.3);
    box-shadow: 0 0 12px 2px rgba(0, 0, 0, 0.08);
}
/* Chota Card Box Hover: Border Primary Blue */
html[data-theme="light"] .card:hover {
    box-shadow: 0 0 20px 3px rgba(0, 123, 255, 0.25);
    border-color: var(--primary);
}

/* Card text ka light style */
html[data-theme="light"] .card h3,
html[data-theme="light"] .card ul.project-details-list li strong,
html[data-theme="light"] .project-description h4,
html[data-theme="light"] .card ul li::before {
    color: var(--primary);
}
html[data-theme="light"] .card ul li {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}
html[data-theme="light"] .project-image {
    border-color: rgba(0, 123, 255, 0.3);
}

/* Buttons ka light style (In par gradient nahi badla) */
html[data-theme="light"] .project-button,
html[data-theme="light"] .certificate-button,
html[data-theme="light"] .education-button {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--darker);
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}
html[data-theme="light"] .project-button:hover,
html[data-theme="light"] .certificate-button:hover,
html[data-theme="light"] .education-button:hover {
    background: linear-gradient(135deg, var(--accent), var(--primary));
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.4);
}

/* --- Light Theme: Skills Section --- */

/* Skill Box: Left se Halka Blue, Right se White gradient */
html[data-theme="light"] .skill-item {
    background: linear-gradient(to right, rgba(230, 240, 255, 0.6), rgba(255, 255, 255, 0.6));
    border: 2px solid rgba(0, 123, 255, 0.3);
    box-shadow: 0 0 10px 2px rgba(0, 0, 0, 0.07);
}
/* Skill Box Hover: Border Primary Blue */
html[data-theme="light"] .skill-item:hover {
    box-shadow: 0 0 16px 3px rgba(0, 123, 255, 0.22);
    border-color: var(--primary);
}
html[data-theme="light"] .skill-item h3 {
    color: var(--primary);
}

/* --- Light Theme: Education Section --- */

html[data-theme="light"] .timeline::before {
    background: linear-gradient(180deg, var(--primary), var(--accent));
}
/* Education Box: Left se Halka Blue, Right se White gradient */
html[data-theme="light"] .timeline-content {
    background: linear-gradient(to right, rgba(230, 240, 255, 0.6), rgba(255, 255, 255, 0.6));
    border: 2px solid rgba(0, 123, 255, 0.3);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}
/* Education Box Hover: Border Primary Blue */
html[data-theme="light"] .timeline-content:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.2);
}
html[data-theme="light"] .timeline-dot {
    background: var(--primary);
    border-color: var(--darker);
}
html[data-theme="light"] .timeline-content h3 {
    color: var(--primary);
}
html[data-theme="light"] .education-logo {
    border-color: var(--primary);
}

/* --- Light Theme: Certifications Section --- */

html[data-theme="light"] .certificate-item p::before {
    color: var(--primary);
}

/* --- Light Theme: Achievements Section --- */

/* Achievement Box: Left se Halka Blue, Right se White gradient */
html[data-theme="light"] .achievement-card {
    background: linear-gradient(to right, rgba(230, 240, 255, 0.6), rgba(255, 255, 255, 0.6));
    border: 2px solid rgba(0, 123, 255, 0.2);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}
/* Achievement Box Hover: Border Primary Blue */
html[data-theme="light"] .achievement-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.2);
}
html[data-theme="light"] .achievement-card h3 {
    color: var(--primary);
}

/* --- Light Theme: Contact Section --- */

html[data-theme="light"] .contact-actions p.contact-subtitle {
    color: var(--text);
}
html[data-theme="light"] .contact-actions p.card-description {
    color: var(--text);
    opacity: 0.9;
}
html[data-theme="light"] .contact-divider::before,
html[data-theme="light"] .contact-divider::after {
    border-bottom-color: rgba(0, 123, 255, 0.3);
}
html[data-theme="light"] .contact-divider span {
    color: var(--primary);
}
/* Contact Button: Left se Halka Blue, Right se White gradient */
html[data-theme="light"] .social-link {
    background: linear-gradient(to right, rgba(230, 240, 255, 0.6), rgba(255, 255, 255, 0.6));
    border: 2px solid rgba(0, 123, 255, 0.2);
    color: var(--text);
    box-shadow: 0 0 12px 2px rgba(0, 0, 0, 0.08);
}
/* Contact Button Hover: Border Primary Blue */
html[data-theme="light"] .social-link:hover {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1), rgba(233, 236, 239, 0.8));
    border-color: var(--primary);
    box-shadow: 0 5px 20px rgba(0, 123, 255, 0.2);
}

/* --- Light Theme: Footer --- */

html[data-theme="light"] footer {
    background: rgba(255, 255, 255, 0.95);
    border-top: 2px solid rgba(0, 0, 0, 0.1);
}


/* ===================================================
   15. RESPONSIVE STYLES (Mobile View)
   =================================================== */

/* Yeh style tab lagte hain jab screen 768px se choti hoti hai (Mobile) */
@media (max-width: 768px) {

    /* ── Background animation: lighter on mobile ── */
    .geometric-shape {
        max-width: 70px !important;
        max-height: 70px !important;
        opacity: 0.1 !important;
    }
    .code-symbol {
        font-size: 0.7rem;
        opacity: 0.15 !important;
    }

    /* ── Hamburger button: show on mobile ── */
    .menu-toggle {
        display: flex;
        right: 20px !important;
    }

    /* ── Navbar layout on mobile ── */
    .theme-switch-wrapper {
        order: 2;
        margin-right: 1rem;
        margin-left: auto;
    }
    .theme-switch {
        width: 50px;
        height: 28px;
    }
    .slider:before {
        height: 16px;
        width: 16px;
        left: 4px;
        bottom: 4px;
    }
    input:checked + .slider:before {
        transform: translateX(26px);
    }
    .slider .sun-icon { left: 6px; }
    .slider .moon-icon { right: 6px; }

    /* ── Mobile slide-in menu panel ── */
    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 270px;
        max-width: 88vw;
        height: 100vh;
        height: 100dvh;
        background: rgba(10, 14, 39, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0;
        margin: 0;
        box-shadow: -5px 0 30px rgba(0, 212, 255, 0.35);
        border-left: 2px solid rgba(0, 212, 255, 0.35);
        transition: right 0.38s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        /* Higher than nav (1000) so panel covers full screen top to bottom */
        z-index: 1001;
        will-change: right;
        /* Desktop scrollable mask reset karo mobile mein */
        -webkit-mask-image: none;
        mask-image: none;
        /* Desktop flex reset */
        flex: none;
        min-width: unset;
        justify-content: flex-start;
    }

    nav ul.active {
        right: 0;
    }

    /* ── Mobile menu header (photo + name + subtitle) ── */
    .mobile-menu-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        flex-shrink: 0;
        /* Compact padding - adapts with min() */
        padding: min(2.5rem, 8svh) 1rem min(1.5rem, 4svh);
        border-bottom: 2px solid rgba(0, 212, 255, 0.4);
        background: rgba(10, 14, 39, 0.98);
        box-shadow: 0 4px 15px rgba(0, 212, 255, 0.25);
        position: relative;
        z-index: 10;
    }

    /* ── Profile photo in mobile menu ── */
    .mobile-menu-photo {
        /* Adapts to screen height: smaller on short phones */
        width: clamp(54px, 10svh, 80px);
        height: clamp(54px, 10svh, 80px);
        border-radius: 50%;
        border: 3px solid var(--primary);
        box-shadow: 0 0 18px rgba(0, 212, 255, 0.6);
        background-image: url('Images/main.jpg');
        background-size: cover;
        background-position: center;
        margin-bottom: clamp(0.5rem, 2svh, 1rem);
        animation: float 3s ease-in-out infinite;
        flex-shrink: 0;
    }

    .mobile-menu-name {
        font-size: clamp(0.8rem, 2svh, 1rem);
        font-weight: bold;
        background: linear-gradient(135deg, var(--primary), var(--accent));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        letter-spacing: 1.5px;
        margin-bottom: 0.25rem;
        text-align: center;
    }

    .mobile-menu-subtitle {
        font-size: clamp(0.6rem, 1.5svh, 0.7rem);
        color: var(--primary);
        opacity: 0.9;
        letter-spacing: 0.5px;
        text-align: center;
        min-height: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-typing-text {
        padding-right: 3px;
        position: relative;
    }

    /* ── Nav link items ── */
    nav ul li:not(.mobile-menu-header) {
        width: 100%;
        /* Compact vertical margin - adapts to screen */
        padding: 0 0.75rem;
        margin: clamp(0.15rem, 0.6svh, 0.3rem) 0;
        flex-shrink: 0;
    }

    nav ul li:first-of-type:not(.mobile-menu-header) {
        margin-top: clamp(0.3rem, 1svh, 0.5rem);
    }

    nav ul li:last-child {
        margin-bottom: clamp(0.5rem, 2svh, 1.2rem);
    }

    /* ── Individual nav link button ── */
    nav a {
        width: 100%;
        /* Compact padding that shrinks on small screens */
        padding: clamp(0.45rem, 1.5svh, 0.75rem) 1rem;
        font-size: clamp(0.75rem, 2svh, 0.88rem);
        text-align: left;
        border-radius: 10px;
        display: block;
        border: 2px solid rgba(0, 212, 255, 0.3);
        background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(26, 31, 58, 0.5));
        position: relative;
        overflow: hidden;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        min-width: unset;
        white-space: nowrap;
        /* Remove translateY hover that causes layout shift on mobile */
        transform: none;
        transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
    }

    /* Left highlight bar on nav links */
    nav a::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 0;
        background: linear-gradient(180deg, var(--primary), var(--accent));
        border-radius: 0 4px 4px 0;
        transition: height 0.25s ease;
    }

    nav a:hover::before,
    nav a:active::before {
        height: 65%;
    }

    nav a:hover,
    nav a:active {
        background: linear-gradient(135deg, rgba(0, 212, 255, 0.18), rgba(26, 31, 58, 0.8));
        transform: translateX(4px);
        border-color: var(--primary);
    }

    /* ── Section adjustments ── */
    .hero h1           { font-size: 2.5rem; }
    .greeting          { font-size: 1.8rem; }
    .typing-animation  { font-size: 1.3rem; }
    .hero h2           { font-size: 1.2rem; }
    .section-box       { padding: 2rem 1rem; }
    .profile-photo     { width: 150px; height: 150px; font-size: 3rem; }

    /* Education timeline */
    .timeline::before { left: 0; }
    .timeline-item    { flex-direction: column; }
    .timeline-content {
        width: 100%;
        margin: 0 !important;
        text-align: left !important;
        padding: 1.5rem !important;
        gap: 1rem;
    }
    .timeline-dot    { left: 0; transform: translateX(-50%); }
    .education-logo  { width: 60px; height: 60px; }

    /* Project details list */
    .card ul.project-details-list li {
        flex-direction: column;
        align-items: flex-start;
    }
    .card ul.project-details-list li strong {
        min-width: unset;
        margin-bottom: 0.25rem;
        top: 0;
    }

    /* ── Light theme: mobile menu ── */
    html[data-theme="light"] nav ul {
        background: rgba(255, 255, 255, 0.98);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.18);
        border-left: 2px solid rgba(0, 0, 0, 0.1);
    }
    html[data-theme="light"] .mobile-menu-header {
        border-bottom-color: rgba(0, 0, 0, 0.1);
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
    html[data-theme="light"] .mobile-menu-photo {
        border-color: var(--primary);
        box-shadow: 0 0 20px rgba(0, 123, 255, 0.6);
    }
    html[data-theme="light"] .mobile-menu-name {
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    html[data-theme="light"] .mobile-menu-subtitle {
        color: var(--primary);
    }
    html[data-theme="light"] nav ul a {
        border-color: rgba(0, 123, 255, 0.3);
        background: linear-gradient(135deg, rgba(0, 123, 255, 0.08), rgba(244, 247, 250, 0.5));
    }
    html[data-theme="light"] nav ul a::before {
        background: linear-gradient(180deg, var(--primary), var(--accent));
    }
    html[data-theme="light"] nav ul a:hover,
    html[data-theme="light"] nav ul a:active {
        background: linear-gradient(135deg, rgba(0, 123, 255, 0.15), rgba(233, 236, 239, 0.8));
        border-color: var(--primary);
    }
}

/* ── Extra small phones: iPhone SE, Galaxy A series (max 375px) ── */
@media (max-width: 375px) {
    nav ul {
        width: 92vw;
    }
    nav a {
        font-size: 0.72rem;
        padding: 0.4rem 0.85rem;
    }
    .mobile-menu-photo {
        width: 50px;
        height: 50px;
    }
    .mobile-menu-name {
        font-size: 0.78rem;
        letter-spacing: 1px;
    }
}

/* ── Very short screens (landscape phones, height < 600px) ── */
@media (max-height: 600px) and (max-width: 900px) {
    .mobile-menu-photo {
        width: 44px !important;
        height: 44px !important;
        margin-bottom: 0.3rem;
        border-width: 2px;
        animation: none;
    }
    .mobile-menu-header {
        padding: 1rem 1rem 0.75rem !important;
    }
    .mobile-menu-name {
        font-size: 0.75rem;
        margin-bottom: 0.1rem;
        letter-spacing: 1px;
    }
    .mobile-menu-subtitle {
        font-size: 0.58rem;
        min-height: 14px;
    }
    nav ul li:not(.mobile-menu-header) {
        margin: 0.1rem 0;
        padding: 0 0.6rem;
    }
    nav a {
        padding: 0.38rem 0.85rem !important;
        font-size: 0.72rem !important;
        border-radius: 8px;
    }
}


/* --- Desktop: Navbar Layout Fix --- */

/* Yeh style tab lagte hain jab screen 769px se badi hoti hai (Desktop) */
@media (min-width: 769px) {
    /* Theme switch order fix */
    .theme-switch-wrapper {
        order: 2;
        flex-shrink: 0;
        flex-grow: 0;
        margin-left: 0.75rem;
        margin-right: 0.25rem;
    }

    /* Links scrollable container */
    nav ul {
        order: 3;
        flex: 1 1 0;
        min-width: 0;
        justify-content: flex-end;
        /* Mask hata diya - ye border ko clip kar raha tha */
        -webkit-mask-image: none;
        mask-image: none;
    }
}

/* ===== JUST ABOUT & ACHIEVEMENTS JUSTIFY ===== */

/* ABOUT SECTION PARAGRAPH */
#about .section-box p {
    text-align: justify;
}

/* ACHIEVEMENTS SECTION TEXT / LIST / CARD CONTENT */
#achievements .section-box p,
#achievements .section-box ul li {
    text-align: justify;
}

/* ================================
   ACHIEVEMENTS SECTION – FULL CSS
================================ */

/* Big badge size */
.big-badge {
    width: 180px !important;
    height: auto !important;
    border: none !important;
    display: block;
    margin: 0 auto;
}

/* Remove border from all images in Achievements */
#achievements .project-image {
    border: none !important;
}

/* Small badge images */
#achievements .card .project-image {
    width: 150px !important;
    height: auto !important;
    border: none !important;
    display: block;
    margin: 0 auto;
}

/* Small badge title text */
#achievements .card h3 {
    font-size: 1.2rem !important;
    margin-top: 1.5rem;
}

/* Buttons inside Achievements section (small + big) */
#achievements .project-button {
    padding: 0.45rem 1rem;
    font-size: 0.8rem;
    border-radius: 18px;
}

/* Justify text inside Achievements */
#achievements .section-box p,
#achievements .section-box ul li {
    text-align: justify;
}

/* ==========================================================
   UNIVERSAL GLASS SHINE EFFECT (ALL BOXES)
   Responsive: Desktop & Mobile DIFFERENT shine styles
========================================================== */

/* Base container requirement */
.card,
.skill-item,
.timeline-content,
.achievement-card,
.social-link,
.resume-highlights,
.about-shine {
    position: relative;
    overflow: hidden; /* Shine ko box ke andar limit karta hai */
}

/* ===============================
   DESKTOP SHINE EFFECT (Default)
=============================== */
.card::before,
.skill-item::before,
.timeline-content::before,
.achievement-card::before,
.resume-highlights::before,
.social-link::before,
.internship-preview-card::before,
.about-shine::before {
    content: "";
    position: absolute;
    top: 0;
    left: -160%;
    width: 55%;
    height: 100%;
    background: linear-gradient(
        125deg,
        transparent 0%,
        rgba(255, 255, 255, 0.25) 45%,
        rgba(255, 255, 255, 0.12) 65%,
        transparent 100%
    );
    transform: skewX(-22deg);
    filter: blur(3px);
    transition: left 0.65s ease, transform 0.45s ease;
    z-index: 2;
    pointer-events: none;
}

.card:hover::before,
.skill-item:hover::before,
.timeline-content:hover::before,
.achievement-card:hover::before,
.resume-highlights:hover::before,
.social-link:hover::before,
.internship-preview-card:hover::before,
.about-shine:hover::before {
    left: 180%;
}

/* ===============================
   DESKTOP: LIGHT THEME SHINE
=============================== */
html[data-theme="light"] .card::before,
html[data-theme="light"] .skill-item::before,
html[data-theme="light"] .timeline-content::before,
html[data-theme="light"] .achievement-card::before,
html[data-theme="light"] .resume-highlights::before,
html[data-theme="light"] .social-link::before,
html[data-theme="light"] .internship-preview-card::before,
html[data-theme="light"] .about-shine::before {
    background: linear-gradient(
        125deg,
        transparent 0%,
        rgba(255, 255, 255, 0.9) 45%,
        rgba(255, 255, 255, 0.65) 65%,
        transparent 100%
    );
    filter: blur(2px);
}

/* ==========================================================
   MOBILE SHINE EFFECT (Smaller, Subtle, Faster)
========================================================== */

@media (max-width: 768px) {

    .card::before,
    .skill-item::before,
    .timeline-content::before,
    .achievement-card::before,
    .resume-highlights::before,
    .social-link::before,
    .internship-preview-card::before,
    .about-shine::before {

        left: -200%;            /* Mobile ke liye zyada left se start */
        width: 85%;             /* Mobile shine wider but soft */
        height: 100%;

        background: linear-gradient(
            120deg,
            transparent 0%,
            rgba(255, 255, 255, 0.28) 45%,
            rgba(255, 255, 255, 0.16) 65%,
            transparent 100%
        );

        filter: blur(2px);
        transition: left 0.55s ease; /* Mobile me rapid shine */
    }

    .card:hover::before,
    .skill-item:hover::before,
    .timeline-content:hover::before,
    .achievement-card:hover::before,
    .resume-highlights:hover::before,
    .social-link:hover::before,
    .internship-preview-card:hover::before,
    .about-shine:hover::before {
        left: 160%; 
    }

    /* MOBILE LIGHT THEME SHINE */
    html[data-theme="light"] .card::before,
    html[data-theme="light"] .skill-item::before,
    html[data-theme="light"] .timeline-content::before,
    html[data-theme="light"] .achievement-card::before,
    html[data-theme="light"] .resume-highlights::before,
    html[data-theme="light"] .social-link::before,
    html[data-theme="light"] .internship-preview-card::before,
    html[data-theme="light"] .about-shine::before {
        background: linear-gradient(
            120deg,
            transparent 0%,
            rgba(255, 255, 255, 1) 40%,
            rgba(255, 255, 255, 0.75) 60%,
            transparent 100%
        );
        filter: blur(1.5px);
    }
}

/* =======================================================
   FIXED IMAGE HOVER EFFECT (No brightness change)
   (Achievements section excluded)
======================================================= */

/* Default border for all images (except Achievements) */
.card img:not(#achievements img),
.section-box img:not(#achievements img),
.skill-item img:not(#achievements img),
.timeline-content img:not(#achievements img),
.project-image:not(#achievements .project-image),
.certificate-item img:not(#achievements img),
.education-logo:not(#achievements .education-logo) {
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    transition: transform 0.35s ease,
                box-shadow 0.35s ease,
                border-color 0.35s ease;
    will-change: transform, border-color;
}

/* Hover effect WITHOUT brightness change */
.card img:not(#achievements img):hover,
.section-box img:not(#achievements img):hover,
.skill-item img:not(#achievements img):hover,
.timeline-content img:not(#achievements img):hover,
.project-image:not(#achievements .project-image):hover,
.certificate-item img:not(#achievements img):hover,
.education-logo:not(#achievements .education-logo):hover {

    /* Lift */
    transform: translateY(-6px) scale(1.05);

    /* Keep picture color SAME: no filter */
    filter: none;

    /* Soft glow */
    box-shadow: 0 12px 28px rgba(0, 212, 255, 0.25);

    /* Darker border */
    border-color: var(--primary);
}

/* Light theme default border */
html[data-theme="light"]
.card img:not(#achievements img),
html[data-theme="light"]
.section-box img:not(#achievements img),
html[data-theme="light"]
.skill-item img:not(#achievements img),
html[data-theme="light"]
.timeline-content img:not(#achievements img),
html[data-theme="light"]
.project-image:not(#achievements .project-image),
html[data-theme="light"]
.certificate-item img:not(#achievements img),
html[data-theme="light"]
.education-logo:not(#achievements .education-logo) {
    border-color: rgba(0, 123, 255, 0.3);
}

/* Light theme hover (no brightness change) */
html[data-theme="light"] .card img:not(#achievements img):hover,
html[data-theme="light"] .section-box img:not(#achievements img):hover,
html[data-theme="light"] .skill-item img:not(#achievements img):hover,
html[data-theme="light"] .timeline-content img:not(#achievements img):hover,
html[data-theme="light"] .project-image:not(#achievements .project-image):hover,
html[data-theme="light"] .certificate-item img:not(#achievements img):hover,
html[data-theme="light"] .education-logo:not(#achievements .education-logo):hover {
    filter: none;
    border-color: var(--primary);
    box-shadow: 0 12px 35px rgba(0, 123, 255, 0.25);
}

/* Mobile: smaller lift */
@media (max-width: 768px) {
    .card img:not(#achievements img):hover,
    .section-box img:not(#achievements img):hover,
    .skill-item img:not(#achievements img):hover,
    .timeline-content img:not(#achievements img):hover,
    .project-image:not(#achievements .project-image):hover,
    .certificate-item img:not(#achievements img):hover,
    .education-logo:not(#achievements .education-logo):hover {
        transform: translateY(-4px) scale(1.04);
    }
}


/* ==========================================
   EDUCATION SECTION CIRCLE
========================================== */

#education .education-logo,
.timeline-content img.education-logo,
.education-logo {
    width: 100px !important;
    height: 100px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    border: 2px solid rgba(0, 212, 255, 0.3);
    transition: border-color 0.3s ease,
                transform 0.35s ease,
                box-shadow 0.35s ease;
}

/* Hover effect (NO brightness change) */
.education-logo:hover {
    transform: translateY(-6px) scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.25);
}

html[data-theme="light"] .education-logo:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.3);
}


/* ===================================================
   PROJECT PAGES SPECIFIC STYLES (Excel, Power BI, Word, PPT)
   Main website ke other sections ko affect nahi karega
   =================================================== */

/* Sirf project pages (#excel, #powerbi, #word, #powerpoint) ko target karte hain */
#excel .cards-grid,
#powerbi .cards-grid,
#powerpoint .cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns */
    gap: 2.5rem;
    margin-top: 2rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Project pages ke cards ko bada karna */
#excel .card,
#powerbi .card,
#powerpoint .card {
    padding: 2.5rem; /* Zyada padding */
    min-height: 650px; /* Minimum height */
}

/* Project pages ke titles ko bada karna */
#excel .card h3,
#powerbi .card h3,
#powerpoint .card h3 {
    font-size: 1.6rem; /* Bada title */
    margin-bottom: 1.2rem;
}

/* Project images ko bada karna */
#excel .project-image,
#powerbi .project-image,
#powerpoint .project-image {
    height: 235px; /* Fixed height */
    object-fit: cover;
}

/* Description text ko bada karna */
#excel .project-description p,
#powerbi .project-description p,
#powerpoint .project-description p {
    font-size: 1rem; /* Bada text */
    line-height: 1.7;
}

/* Description heading ko bada karna */
#excel .project-description h4,
#powerbi .project-description h4,
#powerpoint .project-description h4 {
    font-size: 1.15rem;
    margin-bottom: 0.8rem;
}

/* Mobile responsive - Project pages ke liye */
@media (max-width: 768px) {
    #excel .cards-grid,
    #powerbi .cards-grid,
    #powerpoint .cards-grid {
        grid-template-columns: 1fr !important; /* Mobile pe 1 column */
        gap: 1.5rem;
    }
    
    #excel .card,
    #powerbi .card,
    #powerpoint .card {
        min-height: auto; /* Mobile pe auto height */
        padding: 2rem;
    }
    
    #excel .project-image,
    #powerbi .project-image,
    #powerpoint .project-image {
        height: auto; /* Mobile pe auto height */
    }
}

/* ===================================================
   RESUME SECTION STYLES
   =================================================== */

.resume-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    margin-top: 2rem;
    align-items: start;
}

.resume-preview {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.resume-preview:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.5);
    border: 2px solid var(--primary);
    
}

.resume-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    
}


.resume-content h3 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.resume-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 2rem;
    text-align: justify;
}

.resume-highlights {
    position: relative;
    background: linear-gradient(
        135deg,
        rgba(0, 212, 255, 0.08),
        rgba(26, 31, 58, 0.5)
    );
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid rgba(0, 212, 255, 0.3);
    margin-bottom: 2rem;
    overflow: hidden;

    transition: 
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.resume-highlights:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 18px 50px rgba(0, 212, 255, 0.45);
}



.resume-highlights h4 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.resume-highlights ul {
    list-style: none;
    padding-left: 0;
}

.resume-highlights ul li {
    padding: 0.5rem 0;
    font-size: 1rem;
    color: var(--text);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.resume-highlights ul li:last-child {
    border-bottom: none;
}

.resume-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.resume-download-btn,
.resume-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    font-size: 0.875rem;
    font-weight: bold;
    border-radius: 20px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 212, 255, 0.3);
}

.resume-download-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--darker);
}

.resume-view-btn {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(26, 31, 58, 0.8));
    color: var(--text);
    border: 2px solid var(--primary);
}

.resume-download-btn:hover,
.resume-view-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.5);
}

.resume-download-btn:hover {
    background: linear-gradient(135deg, var(--accent), var(--primary));
}

.resume-view-btn:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.3), rgba(26, 31, 58, 0.9));
}

/* Light Theme Resume Styles */
html[data-theme="light"] .resume-preview {
    border-color: rgba(0, 123, 255, 0.4);
    box-shadow: 0 10px 40px rgba(0, 123, 255, 0.2);
}

html[data-theme="light"] .resume-preview:hover {
    box-shadow: 0 20px 60px rgba(0, 123, 255, 0.3);
    border-color: var(--primary);
}

html[data-theme="light"] .resume-content h3 {
    color: var(--primary);
}

html[data-theme="light"] .resume-highlights {
    background: linear-gradient(to right, rgba(230, 240, 255, 0.6), rgba(255, 255, 255, 0.6));
    border-color: rgba(0, 123, 255, 0.132);

}

/* Light theme – Resume Highlights hover shadow color */
html[data-theme="light"] .resume-highlights:hover {
    box-shadow: 0 18px 45px rgba(0, 123, 255, 0.227);
    border-color: var(--primary);
}


html[data-theme="light"] .resume-highlights h4 {
    color: var(--primary);
}

html[data-theme="light"] .resume-highlights ul li {
    border-bottom-color: rgba(0, 123, 255, 0.2);
}

html[data-theme="light"] .resume-view-btn {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1), rgba(244, 247, 250, 0.8));
    border-color: var(--primary);
    color: var(--text);
}

html[data-theme="light"] .resume-view-btn:hover {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.2), rgba(233, 236, 239, 0.9));
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .resume-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .resume-content h3 {
        font-size: 1.6rem;
    }
    
    .resume-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .resume-download-btn,
    .resume-view-btn {
        width: 100%;
        justify-content: center;
    }
}

/* About Section Portrait Image */
.about-content-wrapper {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
    margin-top: 1rem;
}

.about-image-box {
    flex-shrink: 0;
    width: 175px; /* SIZE CHOTI KAR DI */
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.about-portrait-image {
    width: 100%;
    height: auto;
    aspect-ratio: 3/4;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.about-image-box:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 12px 28px rgba(0, 212, 255, 0.25);
    border-color: var(--primary);
    border-width: 2px;
}

.about-image-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: -160%;
    width: 55%;
    height: 100%;
    background: linear-gradient(125deg, transparent 0%, rgba(255, 255, 255, 0.25) 45%, rgba(255, 255, 255, 0.12) 65%, transparent 100%);
    transform: skewX(-22deg);
    filter: blur(3px);
    transition: left 0.65s ease;
    z-index: 2;
    pointer-events: none;
}

.about-image-box:hover::before {
    left: 180%;
}

.about-text-content {
    flex: 1;
}

/* Tablet size - Medium screens */
@media (max-width: 1024px) {
    .about-image-box {
        width: 200px; /* Tablet par thoda chota */
    }
    .about-content-wrapper {
        gap: 2rem;
    }
}

/* Mobile - Stack vertically */
@media (max-width: 768px) {
    .about-content-wrapper {
        flex-direction: column;
        gap: 1.5rem;
    }
    .about-image-box {
        width: 100%;
        max-width: 220px; /* Mobile par bhi same size */
        margin: 0 auto;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .about-image-box {
        max-width: 180px; /* Chhoti screen par aur chota */
    }
}

html[data-theme="light"] .about-image-box {
    border-color: rgba(0, 123, 255, 0.3);
}

html[data-theme="light"] .about-image-box:hover {
    border-color: var(--primary);
    box-shadow: 0 12px 35px rgba(0, 123, 255, 0.25);
}
/* ===================================================
   MOBILE MENU — REAL CLOSE BUTTON (injected by JS)
   =================================================== */

/* Actual clickable close button inside mobile menu header */
.mobile-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 255, 0.12);
  border: 2px solid rgba(0, 212, 255, 0.4);
  border-radius: 50%;
  color: var(--primary);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  z-index: 1010;
  flex-shrink: 0;
  outline: none;
}

.mobile-close-btn:hover,
.mobile-close-btn:active {
  background: rgba(0, 212, 255, 0.25);
  transform: rotate(90deg);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.5);
}

html[data-theme="light"] .mobile-close-btn {
  background: rgba(0, 123, 255, 0.1);
  border-color: rgba(0, 123, 255, 0.4);
  color: var(--primary);
}
html[data-theme="light"] .mobile-close-btn:hover {
  background: rgba(0, 123, 255, 0.2);
  box-shadow: 0 0 12px rgba(0, 123, 255, 0.4);
}

/* mobile-menu-header::before — intentionally removed. Real close button injected by JS (.mobile-close-btn) */

/* ===================================================
   INTERNSHIP SECTION — PREVIEW CARDS ON HOME PAGE
   =================================================== */

/* Grid for the 3 info cards */
.internship-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.8rem;
  margin-top: 1rem;
}

/* Each preview card */
.internship-preview-card {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(26, 31, 58, 0.6));
  border: 2px solid rgba(0, 212, 255, 0.25);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  will-change: transform;
  position: relative;
  overflow: hidden;
}

.internship-preview-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 14px 40px rgba(0, 212, 255, 0.3);
}

/* Big icon */
.internship-preview-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary);
  background: rgba(0, 212, 255, 0.12);
  border: 2px solid rgba(0, 212, 255, 0.3);
  border-radius: 50%;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.internship-preview-card:hover .internship-preview-icon {
  background: rgba(0, 212, 255, 0.2);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.internship-preview-card h3 {
  color: var(--primary);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.internship-preview-card p {
  font-size: 0.92rem;
  line-height: 1.6;
  opacity: 0.82;
}

/* Light theme */
html[data-theme="light"] .internship-preview-card {
  background: linear-gradient(to right, rgba(230, 240, 255, 0.6), rgba(255, 255, 255, 0.6));
  border-color: rgba(0, 123, 255, 0.25);
}
html[data-theme="light"] .internship-preview-card:hover {
  border-color: var(--primary);
  box-shadow: 0 14px 40px rgba(0, 123, 255, 0.2);
}
html[data-theme="light"] .internship-preview-icon {
  background: rgba(0, 123, 255, 0.1);
  border-color: rgba(0, 123, 255, 0.3);
}
html[data-theme="light"] .internship-preview-card:hover .internship-preview-icon {
  background: rgba(0, 123, 255, 0.18);
  box-shadow: 0 0 18px rgba(0, 123, 255, 0.3);
}

/* Mobile */
@media (max-width: 600px) {
  .internship-preview-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
}

/* ===================================================
   INTERNSHIP PAGE — CARD STYLES
   =================================================== */

.internship-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;  
}

/* Square logo container for internship cards */
.internship-card .project-image {
  width: 40%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: contain;
  border-radius: 12px 12px 0 0;
}

.internship-company {
  color: var(--primary);
  font-size: 0.92rem;
  font-weight: 600;
  margin: 0.5rem 0 0.6rem;
  opacity: 0.9;
}
.internship-company i { margin-right: 0.35rem; }

.internship-desc {
  font-size: 0.93rem;
  line-height: 1.6;
  opacity: 0.85;
  flex: 1;
  text-align: justify;
}

/* Three stacked buttons */


.internship-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between; /* Left & Right distribute */
  gap: 1rem;
  margin-top: 1.5rem;
}


.internship-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  font-weight: bold;
  border-radius: 20px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  will-change: transform;
  width: 48%;
  text-align: center;
}

.btn-certificate {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--darker);
  box-shadow: 0 4px 10px rgba(0, 212, 255, 0.3);
}
.btn-certificate:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.5);
  background: linear-gradient(135deg, var(--accent), var(--primary));
}

.btn-offer {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(26, 31, 58, 0.8));
  color: var(--text);
  border: 2px solid rgba(0, 212, 255, 0.5);
  box-shadow: 0 4px 10px rgba(0, 212, 255, 0.2);
}
.btn-offer:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.25), rgba(26, 31, 58, 0.9));
  border-color: var(--primary);
}

.btn-lor {
  background: linear-gradient(135deg, rgba(0, 255, 170, 0.12), rgba(26, 31, 58, 0.8));
  color: var(--accent);
  border: 2px solid rgba(0, 255, 170, 0.4);
  box-shadow: 0 4px 10px rgba(0, 255, 170, 0.15);
}
.btn-lor:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 255, 170, 0.35);
  background: linear-gradient(135deg, rgba(0, 255, 170, 0.22), rgba(26, 31, 58, 0.9));
  border-color: var(--accent);
}

.internship-btn[aria-disabled="true"] {
  opacity: 0.42;
  cursor: not-allowed;
  pointer-events: none;
}

/* Light theme internship page buttons */
html[data-theme="light"] .btn-offer {
  background: linear-gradient(135deg, rgba(0, 123, 255, 0.1), rgba(244, 247, 250, 0.8));
  border-color: rgba(0, 123, 255, 0.4);
  color: var(--text);
}
html[data-theme="light"] .btn-offer:hover {
  background: linear-gradient(135deg, rgba(0, 123, 255, 0.2), rgba(233, 236, 239, 0.9));
  border-color: var(--primary);
}
html[data-theme="light"] .btn-lor {
  background: linear-gradient(135deg, rgba(0, 180, 120, 0.1), rgba(244, 247, 250, 0.8));
  border-color: rgba(0, 180, 120, 0.4);
  color: #00a86b;
}
html[data-theme="light"] .btn-lor:hover {
  background: linear-gradient(135deg, rgba(0, 180, 120, 0.2), rgba(233, 236, 239, 0.9));
  border-color: #00a86b;
}

/* Ye sirf mobile view (480px aur niche) ke liye hai */
@media screen and (max-width: 480px) {
  
  /* 1. Internship Card ka layout mobile par change hoga */
  .internship-card {
    padding: 0 0 1.5rem 0 !important; /* Side padding hatayi taaki image edge tak jaye */
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
  }

  /* 2. Image: Mobile par 100% (Pure box mein) */
  .internship-card .project-image { 
    width: 50% !important;   
    max-width: 100% !important;
    aspect-ratio: 1/1;     /* Mobile par wide look */
    height: auto; 
    object-fit: cover;
    margin: 1rem 0; /* Image ke upar niche thoda gap */
    padding: 0;
    border-radius: 0;         /* Top edges sharp */
  }

  /* 3. Text content: Side spacing wapas dena */
  .internship-card h3, 
  .internship-company, 
  .internship-desc {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
    width: 100%;
    text-align: justify-all; /* Mobile par justified text */
  }

  /* 4. Buttons: Center aur Heavy Weight */
  .internship-buttons {
    display: flex !important;
    flex-direction: column !important; /* Ek ke niche ek */
    align-items: center !important;    /* Bilkul center mein */
    width: 100% !important;
    padding: 0 1.2rem;
    gap: 10px;
    margin-top: 15px;
  }

  .internship-btn { 
    width: 90% !important;   /* Full width (Heavy feel) */
    max-width: 280px; 
    font-size: 0.9rem !important; 
    padding: 12px !important; 
    font-weight: 700 !important; /* Jyada weight (bold) */
    justify-content: center !important;
    margin: 0 auto;
  }
}

