/* ========================================
   PORTFOLIO — STYLE.CSS (CLEAN)
   Purple Theme with Curved Elements
   Portfolio Template
======================================== */

/* ========================================
   COLOR VARIABLES
======================================== */
:root {
    --primary:       #3b82f6;
    --primary-dark:  #2563eb;
    --primary-light: #60a5fa;
    --secondary:     #06b6d4;
    --accent:        #7dd3fc;

    --bg-dark:       #0a0a0f;
    --bg-card:       #111118;
    --bg-card-hover: #1a1a25;

    --text-white: #ffffff;
    --text-light: #e5e5e5;
    --text-gray:  #a0a0a0;

    --border: #2a2a35;
    --shadow: rgba(59, 130, 246, 0.2);

    --vh: 1vh; /* overridden by JS on mobile */
}
/* ========================================
   RESET & BASE
======================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { 
    scroll-behavior: smooth; 
    /* Use clip instead of hidden, and strictly 100% (never 100vw) */
    overflow-x: clip; 
    width: 100%;
    max-width: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: clip; 
    width: 100%;
    max-width: 100%;
    position: relative; 
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    /* Page-in animation */
    animation: pageIn 0.4s ease both;
}

body.page-exit {
    animation: pageOut 0.26s ease forwards;
    pointer-events: none;
}

@keyframes pageIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes pageOut {
    to { opacity: 0; }
}

/* ========================================
   SCROLLBAR
======================================== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
    border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover { background: var(--primary-light); }

/* ========================================
   SELECTION (purple — gives that polished feel)
======================================== */
::selection { background: var(--primary); color: #fff; }
/* ========================================
   TITLE ANIMATIONS
======================================== */
h1, h2, h3 {
    animation: titleSlideIn 0.8s ease-out forwards;
    opacity: 0;
}

h1 { animation-delay: 0.1s; }
h2 { animation-delay: 0.2s; }
h3 { animation-delay: 0.3s; }

/* For section titles specifically */
.section-title {
    animation: titleSlideIn 0.8s ease-out forwards;
    opacity: 0;
    animation-delay: 0.2s;
}

/* Staggered animation for hero title */
.hero-title {
    animation: titleSlideIn 0.9s ease-out forwards;
    opacity: 0;
    animation-delay: 0.1s;
}

/* Define the animation keyframe */
@keyframes titleSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
/* ========================================
   TYPOGRAPHY
======================================== */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; }

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   UTILITY
======================================== */
.hidden { display: none !important; }

/* ========================================
   NAVBAR
======================================== */

.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1200px;
    
    /* Change the 0.4 to 0.8 or 0.9 here 👇 */
    background: rgba(10, 10, 15, 0.8) !important; 
    
    backdrop-filter: blur(16px) saturate(180%) !important; 
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important; 
    
    border: 1px solid rgba(255, 255, 255, 0.08) !important; 
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1) !important;
    
    border-radius: 50px;
    padding: 0.8rem 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* When the user scrolls down the page */

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.8) !important; /* Keep 80% opacity */
    border-color: rgba(59, 130, 246, 0.5) !important; 
    
    /* Added the glow: large soft purple shadow */
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.5), 0 15px 40px rgba(0, 0, 0, 0.4) !important;
    
    padding: 0.6rem 0; 
}

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


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

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover { color: var(--primary); }

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 0;
    width: 0; height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.3s;
}

.nav-links a:hover::after { width: 100%; }

.nav-contact-btn {
    padding: 0.7rem 1.8rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 30px;
    color: #fff !important;
    font-weight: 600;
}

.nav-contact-btn::after { display: none; }

.nav-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--shadow);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.5rem;
    padding: 4px;
}

/* ── Mobile side-drawer ── */
.mobile-menu {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: 78%;
    max-width: 320px;
    background: var(--bg-dark);
    border-left: 1px solid var(--border);
    padding: 90px 25px 25px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 9999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}


.mobile-menu a {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-light);
    text-decoration: none;
    padding: 8px 0;
}

.mobile-menu a:hover { color: var(--primary); }

.mobile-menu-close {
    position: absolute;
    top: 1rem; right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary);
    align-self: flex-end;
    margin-bottom: 1rem;
}

.mobile-social { margin-top: 1rem; padding-top: 30px; border-top: 1px solid var(--border); }

.mobile-social p {
    color: var(--text-gray);
    letter-spacing: 2px;
    font-size: 13px;
    margin-bottom: 18px;
}

.mobile-social-icons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.mobile-social-icons a {
    height: 55px;
    width: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: 14px;
    color: var(--primary);
    transition: 0.25s;
}

.mobile-social-icons a svg { width: 24px; height: 24px; }

.mobile-social-icons a:hover {
    transform: translateY(-4px);
    background: var(--primary);
    color: white;
}

/* ── Desktop: hide mobile elements ── */
@media (min-width: 769px) {
    .mobile-menu     { display: none !important; }
    .mobile-menu-btn { display: none !important; }
}

/* ── Mobile: hide desktop nav ── */
@media (max-width: 768px) {
    .nav-links       { display: none; }
    .mobile-menu-btn { display: block; }

   .navbar {
        width: calc(100% - 20px);
        top: 10px;
        padding: 0.6rem 0;
        border-radius: 50px !important; /* THE FIX: Forces the fully curved pill shape on mobile */
    }

    .nav-container { 
        padding: 0 1.5rem; /* Slightly more padding so the logo fits inside the curve */
    }

}

/* ── Body lock when menu open ── */
body.menu-open {
    overflow: hidden;
    height: 100vh;
    touch-action: none;
}

/* ========================================
   BUTTONS
======================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    background: transparent;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid var(--border);
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-3px);
}

/* ========================================
   SECTION HEADERS
======================================== */
.section-header { text-align: center; margin-bottom: 4rem; }

.section-title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }

.section-subtitle { color: var(--text-gray); font-size: 1.1rem; }

/* ========================================
   HERO SECTION
======================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 4rem 2rem;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

/* ========================================
   SMOOTH REVEAL ANIMATION
======================================== */
.typing-animation {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 1.5rem 0;
    min-height: 3rem;
}

.typed-text { 
    color: var(--primary); 
    display: inline-block;
    white-space: nowrap; /* Prevents the text from wrapping to a new line */
    overflow: hidden; /* Hides the text when the window is closed */
    width: 0px; /* Starts completely closed */
    vertical-align: bottom;
    /* THE MAGIC: This transition controls the smooth sliding speed */
    transition: width 0.8s cubic-bezier(0.65, 0, 0.35, 1); 
}

.cursor {
    color: var(--primary);
    animation: blink 0.7s infinite;
    display: inline-block;
    transform: translateY(-2px);
    margin-left: 2px;
}

.hero-description {
    color: white;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    text-align: justify;
}

.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }

.hero-contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s;
    word-break: break-all;
}

.contact-item:hover { color: var(--primary); }

.hero-image { position: relative; }

.image-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.3;
    filter: blur(40px);
    z-index: -1;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.3);
}

@media (max-width: 968px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-buttons { justify-content: center; }
    .hero-contact-info { align-items: center; }
    .typing-animation { justify-content: center; }
    .hero-image { order: -1; display: flex; justify-content: center; }
    .hero-text  { order: 1; }
    .hero-image img { max-height: 320px; width: 100%; object-fit: contain; }
}

@media (max-width: 768px) {
    .hero-section { padding: 7rem 1.2rem 3rem; }
    .hero-content { gap: 2.5rem; }
    .hero-image img { max-width: 90%; margin: 0 auto; }
    .hero-description { text-align: left; }
    .hero-title { display: block; text-align: center; }
    .typing-animation { margin-top: 1rem; font-size: 1.2rem; min-height: auto; }
}

@media (max-width: 480px) {
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary { width: 100%; justify-content: center; }
}

/* ========================================
   ABOUT PREVIEW (Index page)
======================================== */
.about-preview-section { padding: 0rem 4rem; }

.about-preview-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.8fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.about-preview-image img {
    width: 100%;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.3);
}

.about-preview-content h2 { font-size: 2.5rem; margin-bottom: 1.5rem; }

.about-preview-content p {
    color: var(--text-gray);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

@media (max-width: 968px) {
    .about-preview-container { 
        grid-template-columns: 1fr; 
        text-align: center; /* Centers the headings and text */
    }
    .about-preview-section { 
        padding: 2rem 1.5rem; 
    }
    /* Forces the button to align perfectly in the middle */
    .about-preview-content { 
        display: flex; 
        flex-direction: column; 
        align-items: center; 
    }
    /* Keeps the bullet points readable while centering the block itself */
    .about-preview-content p ul {
        text-align: left;
        display: inline-block;
    }
}
/* ========================================
   OUR WORKS CAROUSEL (Index page — reel format)
======================================== */
.our-works-section { padding: 6rem 2rem; }

.works-carousel { overflow: hidden; position: relative; padding: 2rem 0; }

.works-track {
    display: flex;
    gap: 2rem;
    animation: slide-works 30s linear infinite;
    will-change: transform; /* ADD THIS */
    transform: translateZ(0); /* ADD THIS */
}

.testimonials-track {
    display: flex;
    gap: 2rem;
    animation: slide-testimonials 40s linear infinite;
    will-change: transform; /* ADD THIS */
    transform: translateZ(0); /* ADD THIS */
}
/* Adding !important stops the JavaScript from overriding the hover pause */
.works-carousel:hover .works-track { animation-play-state: paused !important; }

.work-card {
    min-width: 300px;
    width: 300px;
    height: auto; /* Let the content define the height */
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s;
    border: 1px solid var(--border);
    flex-shrink: 0;
    will-change: transform;
    display: flex;
    flex-direction: column;
}
.work-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.3);
}

.work-info {
    padding: 1.2rem 1rem;
    height: auto;
    display: flex;
    flex-direction: column; /* Stacks the Title and Client Name */
    align-items: center;
    justify-content: center;
    gap: 0.4rem; /* Adds nice spacing between the title and client */
    flex-grow: 1; /* Tells the box to fill the remaining bottom space */
}

.work-info h3 { 
    color: var(--primary); 
    font-size: 1.15rem; 
    text-align: center; 
    margin: 0; /* Removes default margins for cleaner spacing */
}

/* NEW: Beautiful styling for the client name */
.work-client {
    color: var(--text-gray);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    margin: 0;
}

@keyframes slide-works {
    0%   { transform: translateX(0); }
    100% { transform: translateX(calc(-300px * 5 - 2rem * 5)); }
}

@media (max-width: 968px) {
    .work-card { min-width: 250px; width: 250px; height: 444px; }
}

@media (max-width: 768px) {
    .works-track {
        animation: none;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 1.2rem;
        padding-bottom: 1rem; /* Adds breathing room for the mobile scrollbar */
    }

.work-card {
        min-width: 75vw; 
        width: 75vw;
        height: auto; /* Allows the 9:16 video to dictate the perfect height */
        scroll-snap-align: center; 
    }
}
/* ========================================
   VIDEO WRAPPER SYSTEM (single definition)
======================================== */
.video-wrapper {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 16; /* Forces a flawless 9:16 ratio on all devices */
    overflow: hidden;
}

.video-thumbnail {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    cursor: pointer;
    transition: opacity 0.4s ease;
}

/* ========================================
   UPDATED VIDEO PLAY BUTTON
======================================== */
.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8); /* Starts slightly smaller */
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.85); /* Uses your primary purple */
    backdrop-filter: blur(8px);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    cursor: pointer;
    
    /* THE FIX: Hides the button by default */
    opacity: 0; 
    visibility: hidden; 
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Adjusts the Lucide icon perfectly inside the circle */
.video-play-btn i {
    width: 32px;
    height: 32px;
    margin-left: 4px; /* Visually centers the play triangle */
}

/* THE FIX: Shows the button smoothly when hovering */
.video-wrapper:hover .video-play-btn {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.5);
}

.smart-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none; 
    pointer-events: auto;
    background-color: #000; /* Adds a seamless black background while it loads */
}

.smart-video::-webkit-media-controls-panel { background: rgba(0,0,0,0.4); }

/* ========================================
   BRANDS / WORKING WITH
======================================== */
.brands-section { padding: 4rem 2rem; }

.brands-grid {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.brand-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid var(--border);
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
    border-color: var(--primary);
}

.brand-card img { 
    height: 80px; /* Keeps the card perfectly sized */
    width: 100%; 
    margin-bottom: 1rem; 
    object-fit: contain; 
    
    /* THE MAGIC TRICK: This zooms the logo in without changing the box size */
    transform: scale(2); 
}

/* Let's make it zoom in even slightly more when hovered for a cool effect */
.brand-card:hover img {
    transform: scale(1.75);
}

.brand-card p { color: var(--text-light); font-weight: 600; margin-top: 1rem; }

/* ========================================
   ACHIEVEMENTS (Apple sticky-stack)
======================================== */
.achievements-stack {
    padding: 6rem 2rem;
    display: flex;
    flex-direction: column;
    /* Reduced gap slightly so they come together faster */
    gap: 4rem; 
}

.achievement-card {
    position: sticky;
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    height: 600px;
    background: rgba(17, 17, 24, 0.7);
    backdrop-filter: blur(25px);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 3rem;
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    /* Hardware acceleration for smooth scroll */
    will-change: transform; 
}

/* Add these exact rules to make them layer like a deck of cards */
/* Card 1 (Child 2) */
.achievements-stack .achievement-card:nth-child(2) { top: 120px; z-index: 10; }

/* Card 2 (Child 3) */
.achievements-stack .achievement-card:nth-child(3) { top: 140px; z-index: 11; }

/* Card 3 (Child 4) */
.achievements-stack .achievement-card:nth-child(4) { top: 160px; z-index: 12; }

/* Future-proofing for a 4th or 5th card */
.achievements-stack .achievement-card:nth-child(5) { top: 180px; z-index: 13; }
.achievements-stack .achievement-card:nth-child(6) { top: 200px; z-index: 14; }
.achievement-card.show {
    opacity: 1;
    transform: translateY(0);
}

.achievement-card:hover { transform: scale(1.02); }

.achievement-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.achievement-content h3 { font-size: 2rem; margin-bottom: 1rem; color: var(--primary); }

.achievement-content p { color: var(--text-light); line-height: 1.8; margin-bottom: 2rem; }

@media (max-width: 900px) {
    .achievements-stack { gap: 4rem; padding-bottom: 200px; }

    .achievement-card {
        top: 90px;
        grid-template-columns: 1fr;
        height: auto;
        min-height: 520px;
        padding: 1.5rem;
        transform: translateZ(0);
    }

    .achievement-image { width: 100%; overflow: hidden; border-radius: 20px; }

    .achievement-image img {
        height: 110%;
        width: 100%;
        transform: scale(1.2);
        object-fit: contain;
    }

    .achievement-content { text-align: left; }
}

/* ========================================
   TESTIMONIALS
======================================== */
.testimonials-section { padding: 6rem 2rem; overflow: hidden; }

/* Added display flex and a gap to stack the two rows cleanly */
.testimonials-carousel { 
    overflow: hidden; 
    padding: 2rem 0; 
    display: flex; 
    flex-direction: column; 
    gap: 2rem; 
}

.testimonials-track {
    display: flex;
    gap: 2rem;
    animation: slide-testimonials 40s linear infinite;
    width: max-content; /* Ensures smooth tracking */
}

/* THE MAGIC TRICK: Reverses the animation for the second row */
.testimonials-track.reverse {
    animation-direction: reverse;
}

.testimonials-carousel:hover .testimonials-track { animation-play-state: paused; }

.testimonial-card {
    min-width: 320px; /* Decreased from 400px to make them smaller */
    max-width: 320px;
    background: var(--bg-card);
    padding: 1.5rem;  /* Slightly reduced padding to fit the smaller size */
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all 0.3s;
    flex-shrink: 0;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
    border-color: var(--primary);
}

.testimonial-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }

.testimonial-header img {
    width: 50px; height: 50px; /* Shrunk image slightly */
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    flex-shrink: 0;
}

.testimonial-header h4 { color: var(--text-white); font-size: 1.05rem; margin-bottom: 0.2rem; }
.testimonial-header p { color: var(--text-gray); font-size: 0.85rem; }

.testimonial-text { color: var(--text-light); font-size: 0.95rem; line-height: 1.7; font-style: italic; }

/* Math updated to match the new 320px width: (320px * 3) + (2rem gap * 3) */
@keyframes slide-testimonials {
    0%   { transform: translateX(0); }
    100% { transform: translateX(calc(-320px * 3 - 2rem * 3)); }
}

@media (max-width: 768px) {
    .testimonial-card { min-width: 280px; max-width: 280px; }
    .testimonials-track { gap: 1.2rem; }
    
    /* Math updated for mobile 280px width */
    @keyframes slide-testimonials {
        0%   { transform: translateX(0); }
        100% { transform: translateX(calc(-280px * 3 - 1.2rem * 3)); }
    }
}

/* ========================================
   CTA
======================================== */
.cta-section { padding: 6rem 2rem; text-align: center; }

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

.cta-content h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }

.cta-content p { color: var(--text-gray); font-size: 1.2rem; margin-bottom: 2rem; }

/* ========================================
   GALLERY HIGHLIGHT (Index page)
======================================== */
.gallery-section { padding: 6rem 2rem; }

.gallery-grid {
    max-width: 1400px;
    margin: auto;
    padding: 0 2rem 2rem; 
    /* Masonry Layout Settings */
    column-count: 3;
    column-gap: 1.5rem;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
    /* Masonry item settings */
    display: inline-block;
    width: 100%;
    margin-bottom: 1.5rem;
    break-inside: avoid; /* Prevents an image from being split in half across columns */
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    /* Removed object-fit: cover so squares and rectangles keep their true shape */
}

.gallery-item:hover { transform: scale(1.03); }

/* Responsive Gallery Columns */
@media (max-width: 968px) {
    .gallery-grid {
        column-count: 2;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        column-count: 1;
    }
}
/* ========================================
   HANDS-ON EXPERIENCE HERO
======================================== */

.works-hero{

    min-height:55vh;

    display:flex;

    justify-content:center;

    align-items:center;

    text-align:center;

    padding:10rem 2rem 5rem;

    position:relative;

    overflow:hidden;

    background:
    radial-gradient(circle at top,
    rgba(59,130,246,.15),
    transparent 70%);

}

.works-hero::before{

    content:"";

    position:absolute;

    inset:0;

    background:
    linear-gradient(
    135deg,
    transparent,
    rgba(255,255,255,.02),
    transparent);

}

.works-hero-content{

    position:relative;

    z-index:2;

    max-width:900px;

}

.works-hero-content h1{

    font-size:clamp(3rem,6vw,4.5rem);

    margin-bottom:1.5rem;

    font-weight:800;

}

.works-hero-content p{

    color:var(--text-gray);

    font-size:1.15rem;

    line-height:1.9;

    max-width:850px;

    margin:auto;

}

/* Filter */
.works-filter-section { padding: 2rem; display: flex; justify-content: center; }

.filter-container { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

.filter-btn {
    padding: 0.7rem 1.5rem;
    background: var(--bg-card);
    color: var(--text-light);
    border: 1px solid var(--border);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Works grid */
.works-grid-section { padding: 2rem; }

.works-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.work-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    opacity: 1;
    transform: scale(1);
}

.work-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

/* ========================================
   CARD DESIGN
======================================== */

.work-item{

    background: var(--bg-card);

    border: 1px solid var(--border);

    border-radius: 18px;

    overflow: hidden;

    position: relative;

    transition: all .4s ease;

    box-shadow: 0 10px 30px rgba(0,0,0,.35);

}

.work-item:hover{

    transform: translateY(-10px);

    border-color: var(--primary);

    box-shadow: 0 20px 45px rgba(59,130,246,.30);

}

.work-overlay{

    position: absolute;

    inset: 0;

    display: flex;

    align-items: flex-end;

    padding: 25px;

    background: linear-gradient(
        to top,
        rgba(2,6,23,.92),
        rgba(2,6,23,.35),
        transparent
    );

    opacity: 0;

    transition: .35s;

}

.work-details{

    transform: translateY(20px);

    transition: .35s;

}

.work-item:hover .work-details{

    transform: translateY(0);

}

.work-details h3{

    color: #fff;

    font-size: 1.4rem;

    margin-bottom: 8px;

}

.work-details p{

    color: #cbd5e1;

    font-size: .95rem;

}
/* ========================================
   OUR WORKS: VIDEO THUMBNAIL FIX
======================================== */
.works-grid .work-item .video-thumbnail {
    height: 100% !important; 
    object-fit: contain !important; 
    background-color: #000; 
}

.work-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 15, 0.95), transparent);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.work-item:hover .work-overlay { opacity: 1; }

.work-details { color: white; }

.work-details h3 { font-size: 1.3rem; margin-bottom: 0.5rem; color: var(--primary); }

.work-details p { color: var(--text-light); margin-bottom: 1rem; }

.work-details i { width: 30px; height: 30px; color: white; }

@media (max-width: 768px) {
    .works-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; }
    .filter-container { gap: 0.5rem; }
    .filter-btn { padding: 0.6rem 1.2rem; }
}

/* ========================================
   LIGHTBOX
======================================== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 2rem;
}

.lightbox-close {
    position: absolute;
    top: 2rem; right: 2rem;
    background: var(--bg-card);
    border: none;
    color: white;
    width: 50px; height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.lightbox-close:hover { background: var(--primary); transform: rotate(90deg); }

#lightbox-img { max-width: 90%; max-height: 85vh; border-radius: 15px; object-fit: contain; }

.lightbox-info {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
}

.lightbox-info h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.lightbox-info p  { color: var(--text-gray); }

/* ========================================
   GALLERY PAGE
======================================== */
.gallery-hero { padding: 10rem 2rem 3rem; text-align: center; }

.gallery-hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); }

.gallery-hero p { color: var(--text-gray); margin-top: 0.5rem; }

.gallery-filter { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; padding: 2rem; }

.gallery-btn {
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-light);
    cursor: pointer;
    transition: 0.3s;
    font-weight: 500;
}

.gallery-btn.active,
.gallery-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }

@media (max-width: 768px) { .gallery-hero { padding-top: 8rem; } }

/* ========================================
   ABOUT PAGE
======================================== */
.about-hero { padding: 10rem 2rem 2rem; text-align: center; }

.about-hero-content h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1rem; }

.about-content-section { padding: 0.1rem 1rem; }

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 500px;
    margin: auto;
    overflow: hidden;
    border-radius: 25px;
}

.about-image img { width: 100%; height: 100%; object-fit: contain; object-position: center; }

.about-text{

    max-width:850px;

    margin:0 auto;

}

.about-text h2{

    font-size:2.8rem;

    text-align:center;

    margin-bottom:40px;

}

.about-text p{

    color:var(--text-gray);

    font-size:1.25rem;

    line-height:2;

    margin-bottom:35px;

    text-align:left;

}

@media (max-width: 768px) {
    .about-container { display: flex; flex-direction: column; gap: 2rem; text-align: left; }
    .about-image { order: 1; }
    .about-text  { order: 2; text-align: left; }
    .about-text p { text-align: left; }
}


/* About Modal */
.about-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.85) !important;
    display: none; /* Controlled by JS now */
    justify-content: center !important;
    align-items: center !important;
    z-index: 999999 !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
}

.about-modal-box {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s ease;
}

/* When the JS changes the opacity to 1, animate the box up */
.about-modal[style*="opacity: 1"] .about-modal-box {
    transform: translateY(0) scale(1);
}

.about-modal-box {
    /* Ensures the inner box animates smoothly too */
    transform: translateY(0) scale(1);
    transition: transform 0.35s ease;
}

.about-modal.hidden .about-modal-box {
    transform: translateY(20px) scale(0.95);
}

.about-modal-box {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    border: 1px solid var(--border);
    animation: pageIn 0.4s ease;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.about-modal-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.about-modal-content p {
    color: white;
    line-height: 1.8;
}

.about-modal-content ul {
    padding-left: 1.2rem;
    color: var(--text-light);
    text-align: left;
}

.about-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--bg-dark);
    color: white;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.about-close:hover {
    background: var(--primary);
    transform: scale(1.1);
}

/* ========================================
   TIMELINE
======================================== */
.timeline-section { padding: 6rem 2rem; }

.timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -40px; bottom: -40px;
    width: 4px;
    background: linear-gradient(to bottom, transparent, var(--primary), var(--primary), transparent);
    transform: translateX(-50%);
    border-radius: 20px;
}

.timeline-item {
    position: relative;
    margin-bottom: 5rem;
    padding-left: calc(50% + 2rem);
    text-align: left;
    display: flex;
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.timeline-item.show { opacity: 1; transform: translateY(0); }

.timeline-item:nth-child(even) {
    padding-left: 0;
    padding-right: calc(50% + 2rem);
    text-align: right;
    justify-content: flex-end;
}

.timeline-item:last-child { margin-bottom: 0; padding-bottom: 4rem; }

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 20px;
    width: 22px; height: 22px;
    background: var(--primary);
    border-radius: 50%;
    transform: translateX(-50%);
    border: 4px solid var(--bg-dark);
    z-index: 2;
    box-shadow: 0 0 20px rgba(59,130,246,0.8);
}

.timeline-content {
    background: var(--bg-card);
    padding: 1.8rem;
    border-radius: 15px;
    border: 1px solid var(--border);
    transition: all 0.3s;
    max-width: 420px;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(59,130,246,0.2);
}

.timeline-date    { color: var(--primary); font-weight: 600; margin-bottom: 0.5rem; }
.timeline-content h3 { margin-bottom: 0.5rem; }
.timeline-institute  { color: var(--primary); font-weight: 600; margin-bottom: 0.5rem; }
.timeline-grade      { color: var(--text-gray); font-size: 0.9rem; margin-bottom: 0.5rem; }

@media (max-width: 768px) {
    .timeline { padding-left: 1.5rem; }

    .timeline::before { left: 8px; top: -30px; bottom: -30px; width: 3px; }

    .timeline-item,
    .timeline-item:nth-child(even) {
        padding-left: 2.5rem;
        padding-right: 0;
        text-align: left;
        justify-content: flex-start;
    }

    .timeline-dot { left: 8px; top: 25px; }
}

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

.skills-section {
    padding: 6rem 2rem;
}

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

.skill-category {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(59,130,246,0.2);
}

.skill-category h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

/* Skill Buttons */

.skill-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0.5rem 1rem;

    background: rgba(59,130,246,0.1);
    border: 1px solid var(--primary);
    border-radius: 20px;

    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;

    text-decoration: none;
    cursor: pointer;

    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(59,130,246,0.25);
}

.skill-tag:focus {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.skill-tag:active {
    transform: translateY(0);
}
/* ========================================
   RESUME
======================================== */
.resume-section { padding: 4rem 2rem; }

.resume-card {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    transition: all 0.3s;
}

.resume-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(59,130,246,0.2); }

.resume-content { display: flex; align-items: center; gap: 1.5rem; }

.resume-content i  { width: 50px; height: 50px; color: var(--primary); }
.resume-content h3 { margin-bottom: 0.5rem; }
.resume-content p  { color: var(--text-gray); font-size: 0.95rem; }

.resume-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

@media (max-width: 768px) {
    .resume-card { flex-direction: column; text-align: center; }
    .resume-buttons { justify-content: center; }
}

/* ========================================
   CERTIFICATIONS
======================================== */
.certifications-section { padding: 6rem 2rem; }

.certifications-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.cert-card {
    background: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.cert-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(59,130,246,0.2); }

.cert-image { 
    position: relative; 
    overflow: hidden; 
    background: var(--bg-dark); /* Adds a sleek dark background behind the certificate */
}

.cert-image img {
    width: 100%;
    height: 250px;
    object-fit: contain; /* THE MAGIC FIX: This stops the image from being cropped! */
    transition: transform 0.3s;
    padding: 1rem; /* Adds a nice little border of breathing room around the certificate */
}

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

.cert-info { padding: 1.5rem; }

.cert-info h3 { color: var(--primary); margin-bottom: 0.5rem; font-size: 1.1rem; }
.cert-info p  { color: var(--text-gray); font-size: 0.9rem; margin-bottom: 1rem; }

.cert-buttons { display: flex; gap: 0.6rem; flex-wrap: wrap; }

.cert-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    background: transparent;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid var(--border);
    transition: all 0.3s;
}

.cert-view-btn:hover { border-color: var(--primary); background: rgba(59,130,246,0.1); transform: translateY(-2px); }

.cert-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.cert-download-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(59,130,246,0.4); }

/* ========================================
   CONTACT PAGE
======================================== */
.contact-hero { padding: 10rem 2rem 4rem; text-align: center; }

.contact-hero-content h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1rem; }

.contact-hero-content p { color: var(--text-gray); font-size: 1.2rem; }

.contact-main-section { padding: 4rem 2rem; }

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.6fr 0.8fr;
    gap: 4rem;
}

.contact-image { position: relative; margin-bottom: 2rem; }

.contact-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(59,130,246,0.3);
}

.handshake-icon {
    position: absolute;
    bottom: 1rem; right: 1rem;
    width: 60px; height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(59,130,246,0.5);
}

.handshake-icon i { width: 30px; height: 30px; color: white; }

.contact-info-content h2 { font-size: 2rem; margin-bottom: 1rem; }
.contact-info-content > p { color: var(--text-gray); line-height: 1.8; margin-bottom: 2rem; }

.contact-details { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2rem; }

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: 15px;
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}

.contact-detail-item:hover {
    transform: translateX(5px);
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(59,130,246,0.2);
}

.contact-icon {
    width: 50px; height: 50px;
    background: rgba(59,130,246,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i,
.contact-icon svg { 
    width: 25px; 
    height: 25px; 
    color: var(--primary); 
    flex-shrink: 0;
}

.contact-detail-item h4 { margin-bottom: 0.2rem; }
.contact-detail-item p  { color: var(--text-gray); font-size: 0.95rem; }

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

.social-links-contact a {
    width: 45px; height: 45px;
    background: rgba(59,130,246,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: var(--primary);
}

.social-links-contact a:hover { background: var(--primary); transform: translateY(-3px); color: white; }

.social-links-contact a i { width: 22px; height: 22px; }

/* Contact Form */
.contact-form-container h2 { font-size: 2rem; margin-bottom: 1rem; }
.contact-form-container > p { color: var(--text-gray); margin-bottom: 2rem; }

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

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

.form-group label { margin-bottom: 0.5rem; font-weight: 500; color: var(--text-light); }

.form-group input,
.form-group textarea {
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
    width: 100%;
}

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

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

.submit-btn { width: 100%; justify-content: center; margin-top: 1rem; }

.form-success-message {
    text-align: center;
    padding: 3rem;
    background: var(--bg-card);
    border-radius: 15px;
    border: 1px solid var(--primary);
}

.form-success-message i  { width: 60px; height: 60px; color: var(--primary); margin-bottom: 1rem; }
.form-success-message h3 { margin-bottom: 0.5rem; }
.form-success-message p  { color: var(--text-gray); }

@media (max-width: 968px) { .contact-container { grid-template-columns: 1fr; } }

/* Map */
.map-section { padding: 4rem 2rem; }

.map-container {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.map-container iframe { width: 100%; display: block; }

/* ========================================
   FOOTER
======================================== */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 4rem 2rem 2rem;
    margin-top: 6rem;
}

.footer-container { max-width: 1200px; margin: 0 auto; }

.footer-grid{

    display:grid;

    grid-template-columns:2fr 1fr 1fr;

    gap:60px;

    margin-bottom:3rem;

}

.footer-col h4 { margin-bottom: 1.5rem; color: var(--primary); }

.footer-col p {

    color: var(--text-gray);

    line-height: 1.9;

    margin-bottom: 1rem;

    text-align: left !important;

    max-width: none !important;

    width: 100% !important;

    word-break: normal !important;

    overflow-wrap: normal !important;

    -webkit-hyphens: none !important;

    -ms-hyphens: none !important;

    hyphens: none !important;

}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 0.8rem; }

.footer-col ul li a { color: var(--text-gray); text-decoration: none; transition: color 0.3s; }

.footer-col ul li a:hover { color: var(--primary); }

.contact-list li { display: flex; align-items: center; gap: 0.8rem; }
.contact-list i, 
.contact-list svg { 
    width: 18px; 
    height: 18px; 
    color: var(--primary); 
    flex-shrink: 0; 
}

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

.social-links a {
    width: 40px; height: 40px;
    background: rgba(59,130,246,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: var(--primary);
}

.social-links a:hover { background: var(--primary); transform: translateY(-3px); color: white; }

.social-links a i { width: 20px; height: 20px; }

.footer-bottom { 
    grid-column: 1 / -1;     /* THE MAGIC FIX: Forces it to span all columns across the whole screen */
    width: 100%;
    padding-top: 2rem; 
    margin-top: 2rem;        /* Adds breathing room from the map */
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: center; /* Locks it to the horizontal center */
    align-items: center;
}

.footer-bottom p { 
    color: var(--text-gray); 
    font-size: 0.95rem;      
    margin: 0 auto;          /* Double guarantees it stays in the middle */
    text-align: center;
}



/* ========================================
   SCROLL REVEAL BASE STATE
======================================== */
.achievement-card,
.timeline-item {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.achievement-card.show,
.timeline-item.show {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   GLOBAL MOBILE OVERFLOW GUARD
======================================== */
@media (max-width: 768px) {
    /* Rely on the body's overflow-x: clip instead of hiding it on everything */
    html, body { width: 100%; }
}

/* ========================================
   PRINT
======================================== */
@media print {
    .navbar, .mobile-menu-btn, .back-to-top { display: none; }
}
/* Update: This moves the menu from off-screen (100%) to on-screen (0) */

/* Update your footer social links */
.social-links a {
    display: flex; /* Ensures the SVG icon centers correctly */
    align-items: center;
    justify-content: center;
    /* ... existing styles ... */
}

/* Ensure the SVG itself has dimensions */
.social-links a svg, 
.mobile-social-icons a svg {
    width: 20px;
    height: 20px;
    display: block;
}

/* ── Body lock when menu open (FLUID FIX) ── */
/* --- MOBILE MENU SCROLL FIX --- */
body.menu-open {
    overflow: hidden !important;
    height: auto !important; /* This automatically kills the old 100vh rule! */
    touch-action: none !important;
    overscroll-behavior: none !important;
}
/* --- KILL ALL OLD CSS SCROLL LOCKS THAT CAUSE JUMPING --- */
body.menu-open, 
html:has(body.menu-open) {
    overflow: visible !important;
    height: auto !important;
    overscroll-behavior: auto !important;
}
.mobile-menu {
    display: flex !important; /* Force the container to be active */
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    z-index: 9999; /* Higher than the navbar and hero */
    transform: translateX(100%); /* Start hidden off-screen */
    transition: transform 0.3s ease-in-out;
    background-color: #0a0a0f; /* Match your bg-dark */
}

/* Only triggers when the 'show' class is added via JavaScript */
.mobile-menu.show {
    transform: translateX(0) !important;
    display: flex !important;
    visibility: visible !important;
}

/* ── Desktop: hide mobile elements ── */
@media (min-width: 769px) {
    .mobile-menu { 
        display: none !important; 
        visibility: hidden !important;
        transform: translateX(100%) !important;
    }
}
.mobile-menu {
    position: fixed;
    top: 0; 
    right: 0;
    height: 100vh;
    width: 78%;
    max-width: 320px;
    background: var(--bg-dark);
    z-index: 9999; /* Ensure this is high to stay above the hero image */
    transform: translateX(100%); /* Initial hidden state */
    transition: transform 0.35s ease-in-out; /* Smooth slide effect */
    display: flex;
    flex-direction: column;
}


/* ========================================
   1. DYNAMIC HEADER ANIMATIONS (Blur Fade-Up)
======================================== */
h1, h2, h3, .section-title, .hero-title {
    animation: none !important;
}

.animate-heading {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(12px); /* This adds the blur */
    transition: opacity 0.8s ease-out,
                transform 1s cubic-bezier(0.16, 1, 0.3, 1),
                filter 1s ease-out;
}

.animate-heading.in-view {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0); /* This removes the blur as it fades in */
}

/* ========================================
   2. DEEP PURPLE & BLACK PREMIUM THEME
======================================== */
.deep-purple-theme {
    background: linear-gradient(180deg, #0D0D0D 0%, #1A002B 100%);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.deep-purple-theme::before,
.deep-purple-theme::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    animation: pulseGlow 8s infinite alternate ease-in-out;
}

.deep-purple-theme::before {
    top: 10%; left: -15%;
    width: 60vw; height: 60vw;
    background: rgba(59, 130, 246, 0.08);
}

.deep-purple-theme::after {
    bottom: 10%; right: -15%;
    width: 50vw; height: 50vw;
    background: rgba(168, 85, 247, 0.06);
}

.deep-purple-theme .brand-card,
.deep-purple-theme .achievement-card,
.deep-purple-theme .testimonial-card {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(59, 130, 246, 0.2) !important;
    transition: all 0.4s ease;
}

.deep-purple-theme .brand-card:hover,
.deep-purple-theme .achievement-card:hover,
.deep-purple-theme .testimonial-card:hover {
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.25);
    border-color: rgba(168, 85, 247, 0.5) !important;
    transform: translateY(-8px) scale(1.02);
}

.deep-purple-theme h2, .deep-purple-theme h3, .deep-purple-theme h4 { color: #FFFFFF; }
.deep-purple-theme p { color: #CFCFCF; }

@keyframes pulseGlow {
    0% { transform: scale(1) translate(0, 0); opacity: 0.7; }
    100% { transform: scale(1.1) translate(30px, 30px); opacity: 1; }
}

/* ========================================
   BACK TO TOP (Fixed & Unified)
======================================== */
.back-to-top {
    position: fixed !important;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999 !important;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(40px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-to-top.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
    animation: floatArrow 3s ease-in-out infinite;
}

.back-to-top:hover {
    background: linear-gradient(135deg, #A855F7, #D8B4FE);
    box-shadow: 0 0 35px rgba(168, 85, 247, 0.8);
    transform: translateY(-5px) scale(1.1) !important;
    animation: none;
}

@keyframes floatArrow {
    0%, 100% { transform: translateY(0) scale(1); }
    50%      { transform: translateY(-10px) scale(1); }
}

@media (max-width: 768px) {
    .back-to-top { 
        bottom: 20px; 
        right: 15px; 
        width: 50px; 
        height: 50px; 
    }
}

/* ========================================
   INTERACTIVE CURSOR GLOW
======================================== */
#cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 600px;
    height: 600px;
    /* Soft purple gradient that fades out at the edges */
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none; /* Ensures the glow doesn't block you from clicking buttons */
    transform: translate(-50%, -50%);
    z-index: -1; /* Keeps it neatly behind your content */
    will-change: left, top; /* Optimizes performance */
}

/* ========================================
   BRANDS / WORKING WITH (Infinite Marquee)
======================================== */
.brands-section { 
    padding: 4rem 2rem; 
    background: transparent; /* Ensures it mixes completely with your main background */
}

.marquee-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
}

/* Notice: The dark edge shading code has been completely removed! */

.marquee-track {
    display: flex;
    align-items: center;
    gap: 6rem; /* Wide spacing between the big logos */
    width: max-content;
    animation: scrollMarquee 20s linear infinite;
    will-change: transform;
}

.marquee-track:hover {
    animation-play-state: paused; /* Still pauses when you touch it */
}

.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 250px; /* MUCH BIGGER LOGO SIZE */
    height: 120px;
    background: transparent; /* NO BOX - completely plain */
    border: none; /* NO GRID LINES */
    box-shadow: none; /* NO GLOW OR SHADOWS */
    transition: transform 0.4s ease;
    flex-shrink: 0;
}

.brand-logo:hover {
    transform: scale(1.1); /* Gently enlarges when hovered, without creating a box */
}

.brand-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* Removed the filter so your original image colors show up */
    opacity: 1; /* Changed from 0.7 to 1 so the logos aren't faded */
    transition: all 0.4s ease;
}

.brand-logo:hover img {
    opacity: 1; /* Brightens to full solid white when hovered */
    transform: scale(1.05);
}

/* Seamless loop math */
@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 3rem)); } 
}

/* Footer Mini Map */
.footer-map {
    margin-top: 1.5rem;
    width: 100%;
    height: 130px; /* Keeps it small and neat */
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.footer-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    /* Optional: Makes the map a bit darker to match your dark theme */
    filter: invert(90%) hue-rotate(180deg) contrast(100%); 
}

.footer-map:hover {
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.2);
    transform: translateY(-3px);
}

/* ========================================
   NEW: SOFTWARES I USE
======================================== */
.software-logo img {
    filter: grayscale(100%); /* Makes it black and white */
    opacity: 0.6; /* Dims it slightly */
    transition: all 0.4s ease;
}

.software-logo:hover img {
    filter: grayscale(0%); /* Brings color back on hover */
    opacity: 1;
    transform: scale(1.1); /* Slight pop out effect */
}

/* ========================================
   NEW: STATS / NUMBERS SECTION
======================================== */
.stats-section {
    padding: 2rem 2rem 6rem;
    background: transparent;
}

.stats-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-card {
    background: var(--bg-card);
    padding: 3rem 2rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
    border-color: var(--primary);
}

.stat-number {
    font-family: 'Space Grotesk', sans-serif; /* Adds the premium aesthetic font */
    font-size: 4rem; /* Increased the size slightly for more impact */
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: -2px; /* Pulls the numbers slightly closer together for a sleek look */
}

/* Let's also style the text below the numbers to look a bit more elegant */
.stat-card p {
    color: var(--text-gray);
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3px; /* Widens the text to contrast beautifully with the tight numbers */
}

/* ========================================
   WHO AM I SECTION (About Page)
======================================== */
.who-am-i-section {
    padding: 6rem 2rem 2rem;
}

.who-am-i-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    /* Auto-fit ensures it looks great on 1, 2, or 4 columns depending on screen size */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.who-am-i-card {
    background: var(--bg-card);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.4s ease;
}

/* The card lifts up and glows on hover */
.who-am-i-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.2);
    border-color: var(--primary);
}

.role-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.4s ease;
}

/* The icon fills with solid color and pops out slightly when the card is hovered */
.who-am-i-card:hover .role-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.role-icon i {
    width: 32px;
    height: 32px;
}

.who-am-i-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: white;
}

.who-am-i-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ========================================
   MISSION & VISION SECTION
======================================== */
.mission-vision-section {
    padding: 4rem 2rem 6rem;
    position: relative;
}

.mission-vision-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    position: relative;
}

.mv-card {
    /* Creates a deep, premium dark card */
    background: linear-gradient(145deg, rgba(17, 17, 24, 0.95), rgba(10, 10, 15, 0.95));
    padding: 4rem 3.5rem;
    border-radius: 30px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

/* The Cinematic Glow inside the card */
.mv-card::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    /* A soft purple spotlight that sits behind the text */
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 60%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.6s ease;
}

/* Hover Effects: The card lifts up, glows, and changes border color */
.mv-card:hover {
    transform: translateY(-10px);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.2);
}

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

/* The Unique Tilted Icon Box */
.mv-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
    /* Starts slightly tilted for a unique, edgy look */
    transform: rotate(-10deg); 
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Snaps the icon straight and enlarges it when hovered */
.mv-card:hover .mv-icon {
    transform: rotate(0deg) scale(1.15);
}

.mv-icon i {
    width: 40px;
    height: 40px;
    color: white;
}

.mv-card h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.mv-card p {
    color: var(--text-light);
    font-size: 1.15rem;
    line-height: 1.8;
    text-align: justify; /* Gives the text clean, sharp edges like a magazine */
}

/* Mobile Adjustments */
@media (max-width: 968px) {
    .mission-vision-container {
        grid-template-columns: 1fr; /* Stacks them on top of each other on phones */
    }
    .mv-card {
        padding: 3rem 2rem;
    }
}

/* ========================================
   WORKSPACE & COLLABORATION SECTION
======================================== */
.workspace-section {
    padding: 2rem 2rem 6rem;
}

.workspace-container {
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(145deg, rgba(17, 17, 24, 0.7), rgba(10, 10, 15, 0.9));
    border-radius: 30px;
    border: 1px solid var(--border);
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* Gives more room to the text */
    gap: 4rem;
    align-items: center;
    padding: 4rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

/* Container lifts and glows on hover */
.workspace-container:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
}

.workspace-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-light);
    border: 1px solid var(--primary);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.workspace-badge i { width: 18px; height: 18px; }

.workspace-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.workspace-content p {
    color: var(--text-light);
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    text-align: justify;
}

.workspace-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.workspace-btn i { width: 18px; height: 18px; }

/* The Visual Side (Logo + Glow) */
.workspace-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.workspace-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, transparent 60%);
    filter: blur(30px);
    z-index: 0;
}

.workspace-visual img {
    width: 100%;
    max-width: 280px; /* Keeps the logo at a perfect size */
    z-index: 1;
    border-radius: 20px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* The logo subtly pops out when the whole container is hovered */
.workspace-container:hover .workspace-visual img {
    transform: scale(1.08);
}

/* Mobile Responsiveness */
@media (max-width: 968px) {
    .workspace-container {
        grid-template-columns: 1fr;
        padding: 3rem 2rem;
        text-align: center;
    }
    .workspace-content p {
        text-align: left; /* Keeps text readable on mobile */
    }
    .workspace-visual {
        order: -1; /* Moves the logo above the text on mobile devices */
        margin-bottom: 2rem;
    }
}

/* ========================================
   CORE STRENGTHS SECTION
======================================== */
.strengths-section {
    padding: 2rem 2rem 6rem;
}

.strengths-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    /* Automatically creates a perfect 3-column layout on desktop, and 1-column on mobile */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.strength-card {
    background: var(--bg-card);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 1;
}

/* The Background Glow that fades in on hover */
.strength-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), transparent);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Card floats up and glows */
.strength-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.15);
}

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

/* The Icon Box */
.strength-icon {
    width: 60px;
    height: 60px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 1.5rem;
    /* Adds a 3D perspective to the icon wrapper */
    perspective: 1000px; 
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* THE ANIMATION: Icon flips 3D and turns solid purple */
.strength-card:hover .strength-icon {
    background: var(--primary);
    color: white;
    transform: rotateY(180deg); 
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

/* Counter-rotates the SVG inside so the icon doesn't look backwards when flipped! */
.strength-card:hover .strength-icon i {
    transform: rotateY(-180deg);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.strength-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: white;
}

.strength-card p {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.7;
}

/* ========================================
   PERSONAL BRANDING TAGLINE (About Page)
======================================== */
.personal-brand-section {
    padding: 8rem 2rem 6rem;
    text-align: center;
    position: relative;
    /* Adds a very subtle, dark purple gradient fade to the background */
    background: linear-gradient(to bottom, transparent, rgba(59, 130, 246, 0.03), transparent);
    overflow: hidden;
}

/* Background spotlight effect */
.brand-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.brand-tagline-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.brand-tagline {
    font-family: 'Space Grotesk', sans-serif;
    /* Responsive sizing: Huge on desktop, scales down perfectly on mobile */
    font-size: clamp(2.5rem, 6vw, 5.5rem); 
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -3px; /* Tight tracking for a modern, aggressive look */
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.tagline-part {
    display: block;
    color: var(--text-white);
}

/* The second line gets the signature gradient */
.tagline-part.highlight {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-subtagline {
    font-size: 1.25rem;
    color: var(--text-gray);
    max-width: 650px;
    margin: 0 auto 4rem auto;
    font-weight: 400;
    line-height: 1.8;
    letter-spacing: 1px;
}

/* The Signature Styling */
.brand-signature {
    display: inline-block;
    padding-top: 2rem;
    border-top: 1px solid rgba(59, 130, 246, 0.2); /* A subtle divider line */
}

.brand-signature img {
    height: 60px; /* Adjust this if your logo needs to be bigger/smaller */
    width: auto;
    opacity: 0.7;
    filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.3));
    transition: all 0.5s ease;
}

.brand-signature img:hover {
    transform: scale(1.1);
    opacity: 1;
    filter: drop-shadow(0 0 25px rgba(59, 130, 246, 0.6));
}

/* ========================================
   MY GOALS ROADMAP SECTION
======================================== */
.goals-section {
    padding: 2rem 2rem 6rem;
}

.goals-container{
    max-width:1400px;
    margin:60px auto;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:30px;
}

.goal-step{

    background:rgba(255,255,255,.03);

    border:1px solid rgba(255,255,255,.08);

    border-radius:18px;

    padding:35px 25px;

    text-align:center;

    min-height:320px;

}


/* Subtle hover lift for the goal cards */
.goal-step:hover{

    transform:translateY(-8px);

    border-color:#3b82f6;

    box-shadow:0 20px 45px rgba(59,130,246,.25);

}

.goal-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* A pulsing ring behind the icons */
.goal-icon-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.2);
    animation: pulseRing 2.5s infinite ease-in-out;
}

.goal-icon{

    width:70px;
    height:70px;

    margin:0 auto;

    border-radius:50%;

    display:flex;
    align-items:center;
    justify-content:center;

    background:linear-gradient(135deg,#2563eb,#38bdf8);

    color:#fff;

    box-shadow:
        0 0 25px rgba(59,130,246,.35),
        0 10px 30px rgba(59,130,246,.25);

    transition:.35s;

}

.goal-step:hover .goal-icon{

    transform:scale(1.08);

}

.goal-icon i{

    width:32px;
    height:32px;

}

.goal-step h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.goal-step p {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.8;
}

/* The Animated Connector Arrow */
.goal-connector {
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: moveArrow 2s infinite ease-in-out;
}

.goal-connector i {
    width: 40px;
    height: 40px;
}

/* Animations */
@keyframes pulseRing {
    0% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.1; }
    100% { transform: scale(0.8); opacity: 0.5; }
}

@keyframes moveArrow {
    0% { transform: translateX(-10px); }
    50% { transform: translateX(10px); }
    100% { transform: translateX(-10px); }
}

/* Mobile Responsiveness: Stacks the cards and rotates the arrow to point DOWN */
@media (max-width: 768px) {
    .goals-container {
        flex-direction: column;
    }
    .goal-connector {
        transform: rotate(90deg);
        animation: moveArrowDown 2s infinite ease-in-out;
        margin: 1rem 0;
    }
    @keyframes moveArrowDown {
        0% { transform: rotate(90deg) translateX(-10px); }
        50% { transform: rotate(90deg) translateX(10px); }
        100% { transform: rotate(90deg) translateX(-10px); }
    }
}

/* ========================================
   SOCIAL SHOWCASE (Magnetic Effect)
======================================== */
.social-showcase-section { padding: 4rem 2rem; }

.social-showcase-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.social-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-decoration: none;
    color: white;
    transition: all 0.4s ease;
    overflow: hidden;
}

.social-card:hover {
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.15);
}

.magnetic-area {
    width: 80px; height: 80px;
    display: flex; align-items: center; justify-content: center;
}

.magnetic-icon {
    width: 60px; height: 60px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1); /* Snappy magnetic return */
    pointer-events: none; /* Let the wrapper handle the mouse events */
}

/* Brand Colors on Hover */
.social-card:hover .insta-glow { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: white; }
.social-card:hover .yt-glow { background: #FF0000; color: white; }
.social-card:hover .in-glow { background: #0077b5; color: white; }

.social-info h3 { margin-bottom: 0.2rem; font-size: 1.2rem; }
.social-preview { color: var(--text-gray); font-size: 0.9rem; margin-bottom: 0.8rem; }
.social-stats { display: inline-block; font-size: 0.85rem; font-weight: 600; color: var(--primary); background: rgba(59,130,246,0.1); padding: 4px 10px; border-radius: 12px; }

/* ========================================
   FAQ SECTION (BULLETPROOF VERSION)
======================================== */
.faq-section { padding: 4rem 2rem; }
.faq-container { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 15px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq-item.active { 
    border-color: var(--primary); 
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.1); 
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
}

.faq-question h3 { font-size: 1.1rem; margin: 0; color: white; }
.faq-icon { color: var(--primary); transition: transform 0.4s ease; }
.faq-item.active .faq-icon { transform: rotate(180deg); }

/* The fix that forces the answer to show */
.faq-answer-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}

.faq-item.active .faq-answer-wrapper { 
    max-height: 500px; /* Opens the box wide enough for the text */
}

.faq-answer p { 
    padding: 0 1.5rem 1.5rem; 
    color: var(--text-light); 
    line-height: 1.7; 
    margin: 0; 
}   


/* Smooth Accordion Trick */
.faq-answer-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer-wrapper { 
    grid-template-rows: 1fr; 
}

.faq-answer { 
    min-height: 0; /* ADD THIS LINE: It forces browsers to respect the 0 height */
    overflow: hidden; 
}

.faq-answer p { 
    padding: 0 1.5rem 1.5rem; 
    color: var(--text-light); 
    line-height: 1.7; 
}
/* ========================================
   COLLABORATION CTA BANNER
======================================== */
.collab-cta-section { padding: 4rem 2rem 8rem; }
.collab-cta-box {
    max-width: 1000px;
    margin: 0 auto;
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.15), rgba(10, 10, 15, 0.95));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 30px;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.collab-glow {
    position: absolute; top: -50%; left: 50%; transform: translateX(-50%);
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.4) 0%, transparent 70%);
    filter: blur(40px); z-index: -1;
}
.collab-cta-box h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.collab-cta-box p { color: var(--text-light); font-size: 1.1rem; margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }


/* The Indestructible Accordion Trick */
.faq-answer-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}

.faq-item.active .faq-answer-wrapper { 
    max-height: 400px; /* Forces the box to open up to 400px tall */
}

.faq-answer p { 
    padding: 0 1.5rem 1.5rem; 
    color: var(--text-light); 
    line-height: 1.7; 
    margin: 0; /* Prevents hidden margins from creating extra space */
}

/* ========================================
   COMMUNITY IMPACT SECTION (Glassmorphism)
======================================== */
.community-section {
    padding: 2rem 2rem 6rem;
    position: relative;
    overflow: hidden; /* Keeps the background glows from stretching the page */
}

.community-container {
    max-width: 950px;
    margin: 0 auto;
    position: relative;
}

/* Abstract Glowing Blobs behind the glass */
.community-container::before {
    content: '';
    position: absolute;
    top: -20%; left: -5%;
    width: 300px; height: 300px;
    background: rgba(59, 130, 246, 0.3); /* Purple glow */
    filter: blur(80px);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.community-container::after {
    content: '';
    position: absolute;
    bottom: -20%; right: -5%;
    width: 250px; height: 250px;
    background: rgba(99, 102, 241, 0.2); /* Blueish-purple glow */
    filter: blur(80px);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

/* The Frosted Glass Card */
.glass-card {
    background: rgba(20, 20, 30, 0.4); /* Highly transparent dark background */
    backdrop-filter: blur(16px); /* THE MAGIC: Blurs what is behind it */
    -webkit-backdrop-filter: blur(16px); /* For Apple/Safari support */
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Adds a subtle top-light reflection */
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 4rem;
    position: relative;
    z-index: 1; /* Puts it above the glowing blobs */
    display: flex;
    gap: 3.5rem;
    align-items: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.5);
}

/* The Left-Side Icon Box */
.glass-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), transparent);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.1);
}

.glass-icon i {
    width: 50px;
    height: 50px;
}

/* Content Typography */
.glass-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.glass-content h3 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: white;
}

.glass-event {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-light);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.glass-event i { width: 18px; height: 18px; }

.glass-content p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    text-align: justify;
}

/* The Glass Button */
.btn-glass {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(59, 130, 246, 0.1);
    color: white;
    padding: 0.9rem 2rem;
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    backdrop-filter: blur(5px);
}

.btn-glass:hover {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

/* Mobile Responsiveness */
@media (max-width: 850px) {
    .glass-card {
        flex-direction: column;
        text-align: center;
        padding: 3rem 2rem;
        gap: 2rem;
    }
    .glass-icon { margin: 0 auto; }
    .glass-event { justify-content: center; }
    .glass-content p { text-align: left; }
}

/* ========================================
   THREE.JS UNIVERSE BACKGROUND
======================================== */
#universe-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2; /* Stays behind all your frosted glass and content */
    pointer-events: none; /* Allows mouse clicks to pass through to your buttons */
}
/* ========================================
   PROFESSIONAL HALF-SQUARE HERO IMAGE (FLUID FIX)
======================================== */

/* 1. Grid Balance */
.hero-content {
    grid-template-columns: 1fr 1fr !important;
    gap: 2rem !important;
    align-items: center !important;
}

/* 2. The Main Container - FLUID SIZING */
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end; 
    
    /* THE FIX: Replaced rigid pixels with a smart fluid aspect ratio */
    width: 100% !important;
    max-width: 550px !important;    /* Keeps it large, but safe for smaller laptops */
    aspect-ratio: 4 / 5 !important; /* Forces a perfect, tall rectangular shape */
    height: auto !important;        /* Let the browser calculate the height automatically! */
    
    margin: 0 auto !important;
    z-index: 1;
}

/* 3. The Professional Half-Square Box */
.hero-solid-bg {
    position: absolute;
    bottom: 0;
    width: 100% !important;
    height: 55% !important; 
    border-radius: 30px !important;
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.15), rgba(10, 10, 15, 0.9)) !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.15) !important;
    z-index: 1;
}

/* 4. The Image */
.pop-out-hero {
    position: relative;
    z-index: 2; 
    width: 100% !important; 
    height: 100% !important; 
    object-fit: contain !important; 
    object-position: bottom center !important; 
    border-radius: 0 !important; 
    box-shadow: none !important; 
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%) !important;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%) !important;
    margin-bottom: -5px !important; 
    transform: none !important;
    transition: none !important;
    animation: none !important;
}

/* 5. Mobile Version - Fixing the Space and Size */
@media (max-width: 968px) {
    /* FIX 1: Reduce the massive top spacing on mobile screens */
    .hero-section {
        padding: 5.5rem 1.2rem 3rem !important; 
    }
    
    .hero-content {
        grid-template-columns: 1fr !important; 
        gap: 1.5rem !important; /* Brings the image and text closer together */
    }
    
    /* FIX 2: Dynamic mobile scaling */
    .hero-image {
        max-width: 85% !important;      /* Makes the image huge, taking up most of the phone width */
        aspect-ratio: 1 / 1 !important; /* Forms a square! This totally eliminates the empty space at the top */
        height: auto !important;
        margin: 0 auto 1.5rem auto !important;
    }
    
    .hero-solid-bg {
        height: 50% !important; 
    }
}
/* ========================================
   ABOUT SECTION WITH HALF-SQUARE & FADE (STATIC)
======================================== */

/* 1. Setup the container */
.about-preview-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end; 
    min-height: 450px; 
    z-index: 1;
}

/* 2. The Clean "Half Square" Box */
.about-solid-bg {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 60%; 
    border-radius: 30px;
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.15), rgba(10, 10, 15, 0.9));
    border: 1px solid rgba(59, 130, 246, 0.3);
    z-index: 1;
}

/* 3. The Static Image with the Bottom Fade */
.pop-out-about {
    position: relative;
    z-index: 2; 
    width: 90%; 
    height: auto;
    
    /* Overrides the old styling */
    border-radius: 0 !important; 
    box-shadow: none !important; 
    
    /* THE FADE: Blends the bottom smoothly into the background */
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
    
    margin-bottom: -5px; 
}

/* 4. Mobile Adjustments */
@media (max-width: 968px) {
    .about-preview-image {
        min-height: 380px;
        max-width: 400px;
        /* Centers the image block and adds space before the text on mobile */
        margin: 0 auto 2rem auto; 
    }
    .about-solid-bg {
        height: 65%; 
    }
}
/* ========================================
   ABOUT & CONTACT PAGES: HALF-SQUARE FADE (STATIC)
======================================== */

/* 1. Setup the containers with responsive sizing */
.about-image,
.contact-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end; 
    
    /* THE FIX: Allows the image to scale naturally without breaking the grid */
    width: 100% !important;
    max-width: 450px !important; 
    height: auto !important; 
    margin: 0 auto 2rem auto !important; 
    
    z-index: 1;
    overflow: visible !important;
    border-radius: 0 !important;
    background: none !important;
}

/* 2. The Clean "Half Square" Box */
.page-solid-bg {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 65%; 
    border-radius: 30px;
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.15), rgba(10, 10, 15, 0.9));
    border: 1px solid rgba(59, 130, 246, 0.3);
    z-index: 1;
}

/* 3. The Static Image with the Bottom Fade */
.pop-out-page {
    position: relative;
    z-index: 2; 
    width: 100%; 
    height: auto; 
    object-fit: contain; 
    object-position: bottom; 
    
    border-radius: 0 !important; 
    box-shadow: none !important; 
    
    /* THE FADE */
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
    
    margin-bottom: -5px; 
    
    /* GUARANTEE: Forcefully removes any hover/pop animations */
    transform: none !important;
    transition: none !important;
    animation: none !important;
}

/* 4. Ensure the Handshake Icon stays perfectly positioned */
.contact-image .handshake-icon {
    z-index: 5 !important;
    bottom: 15px !important;
    right: -5px !important;
}

/* ========================================
   STYLISH CLIENT NAME (FIXED)
======================================== */
.client-label {
    color: var(--text-gray);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0;
}

.stylish-client {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

/* ========================================
   THE ATOMIC MORPH MOBILE TOGGLE
======================================== */
.atom-toggle {
    position: relative;
    width: 48px; 
    height: 48px;
    background: transparent !important;
    border: none !important;
    display: flex !important;
    align-items: center; 
    justify-content: center;
    cursor: pointer;
    z-index: 10000;
}

/* 1. The Glowing Nucleus (Center Dot) */
@keyframes nucleusPulse {
    0%   { box-shadow: 0 0 5px var(--primary); transform: scale(1); }
    50%  { box-shadow: 0 0 15px var(--primary-light); transform: scale(1.3); }
    100% { box-shadow: 0 0 5px var(--primary); transform: scale(1); }
}

.atom-toggle .nucleus {
    width: 10px; 
    height: 10px;
    background: var(--primary-light);
    border-radius: 50%;
    animation: nucleusPulse 2s infinite ease-in-out;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 2;
    pointer-events: none;
}

/* 2. The Electron Rings */
.atom-toggle .ring {
    position: absolute;
    width: 34px; 
    height: 14px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    background-color: transparent;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
}

/* Tilt the rings to look like an Atom */
.atom-toggle .ring-1 { transform: rotate(45deg); }
.atom-toggle .ring-2 { transform: rotate(-45deg); }

/* Hover Effect: The atom gets excited */
.atom-toggle:hover .nucleus { 
    background: white; 
    transform: scale(1.5); 
}
.atom-toggle:hover .ring { 
    border-color: var(--primary-light); 
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.4) inset; 
}

/* ========================================
   THE MORPH ANIMATION (When Clicked)
======================================== */
/* When the menu opens, the body gets the 'menu-open' class */

/* Hide the nucleus */
body.menu-open .atom-toggle .nucleus {
    opacity: 0;
    transform: scale(0);
}

/* Flatten the hollow rings into solid straight lines! */
body.menu-open .atom-toggle .ring {
    height: 3px; 
    border: none; 
    background-color: var(--primary-light); /* Changed from red to your brand purple! */
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.5); /* Updated to a purple glow */
}

/* Keep the X rotation */
body.menu-open .atom-toggle .ring-1 { transform: rotate(45deg); }
body.menu-open .atom-toggle .ring-2 { transform: rotate(-45deg); }

/* ========================================
   HIDE ATOMIC TOGGLE ON DESKTOP
======================================== */
@media (min-width: 769px) {
    .atom-toggle {
        display: none !important;
    }
}

.mobile-social-icons {
    display: flex;
    justify-content: space-between; /* Spreads all 5 icons perfectly evenly */
    align-items: center;
    gap: 10px;
}

/* ========================================
   ULTIMATE POSTER 4:5 RATIO FIX
   (Targets ONLY Designs, Web, and UI)
======================================== */

/* 1. Force the Container to 4:5 */
.works-grid .work-item[data-category="design"],
.works-grid .work-item[data-category="web"],
.works-grid .work-item[data-category="ui"] {
    height: auto !important;
    aspect-ratio: 4 / 5 !important;
    overflow: hidden !important;
}

/* 2. Force the Image to perfectly fill that 4:5 container */
.works-grid .work-item[data-category="design"] > img,
.works-grid .work-item[data-category="web"] > img,
.works-grid .work-item[data-category="ui"] > img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; 
    background: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ========================================
   VIDEO OVERLAY FIX: Removes the black shade
======================================== */
.works-grid .work-item[data-category="video"] .work-overlay {
    background: transparent !important; /* Removes the dark gradient */
}

/* Adds a drop-shadow to the text so it stays readable without the black background */
.works-grid .work-item[data-category="video"] .work-details {
    text-shadow: 0px 4px 15px rgba(0, 0, 0, 0.9), 0px 0px 5px rgba(0, 0, 0, 0.5);
}

/* ========================================
   3D COVERFLOW TESTIMONIALS 
======================================== */
.testimonials-3d-section {
    padding: 5rem 1rem;
    overflow: hidden;
}

.carousel-3d-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    height: 550px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Sets the 3D Camera Perspective */
    perspective: 1200px; 
}

.carousel-3d-track {
    position: relative;
    width: 100%;
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
}

/* The Base 3D Card */
.card-3d {
    position: absolute;
    width: 320px;
    background: linear-gradient(145deg, rgba(20, 20, 30, 0.95), rgba(10, 10, 15, 0.95));
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    /* Liquid Smooth 3D Transitions */
    transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1), 
                opacity 0.7s ease, 
                z-index 0.7s;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    will-change: transform, opacity;
}

.card-image-grid {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem auto;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(45deg, var(--primary), var(--accent));
}

.card-image-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #111;
}

.card-3d-content .quote-icon {
    width: 35px;
    height: 35px;
    color: var(--primary-light);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.card-3d-content p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 1.5rem;
    min-height: 100px;
}

.card-3d-content h3 { font-size: 1.2rem; }
.card-3d-content span { color: var(--text-gray); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px;}

/* ========================================
   THE 3D POSITIONING LOGIC 
======================================== */
/* 1. The Active Card (Front) */
.card-3d[data-pos="active"] {
    transform: translate3d(0, 0, 0) scale(1.05);
    opacity: 1;
    z-index: 3;
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

/* 2. The Card on the Left (Pushed Back in Z space) */
.card-3d[data-pos="prev"] {
    transform: translate3d(-65%, 0, -150px) rotateY(15deg);
    opacity: 0.5;
    z-index: 2;
    cursor: pointer;
}

/* 3. The Card on the Right (Pushed Back in Z space) */
.card-3d[data-pos="next"] {
    transform: translate3d(65%, 0, -150px) rotateY(-15deg);
    opacity: 0.5;
    z-index: 2;
    cursor: pointer;
}

/* 4. Hidden Cards (Pushed way to the back and faded out) */
.card-3d[data-pos="hidden"] {
    transform: translate3d(0, 0, -400px) scale(0.8);
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

/* Hover effects for side cards */
.card-3d[data-pos="prev"]:hover, .card-3d[data-pos="next"]:hover {
    opacity: 0.8;
}

/* ========================================
   LIQUID ARROWS 
======================================== */
.carousel-3d-controls {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    z-index: 10;
}

.liquid-arrow {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    backdrop-filter: blur(5px);
}

.liquid-arrow:hover {
    background: var(--primary);
    transform: scale(1.15);
    box-shadow: 0 0 20px var(--primary);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .card-3d { width: 280px; padding: 1.5rem; }
    .card-3d-content p { font-size: 0.9rem; min-height: 90px; }
    /* Bring them closer together on small screens */
    .card-3d[data-pos="prev"] { transform: translate3d(-45%, 0, -180px) rotateY(15deg); }
    .card-3d[data-pos="next"] { transform: translate3d(45%, 0, -180px) rotateY(-15deg); }
}

/* ========================================
   HERO 3D RIPPLE BACKGROUND
======================================== */
.hero-section {
    position: relative; /* Keeps the canvas trapped inside the hero area */
    overflow: hidden; /* Prevents the 3D waves from spilling out */
}

#hero-ripple-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Puts it at the very back */
    pointer-events: none; /* Crucial: Allows you to click the buttons 'through' the canvas */
    opacity: 0.6; /* Softens the effect so your text remains easy to read */
}

.hero-content {
    position: relative;
    z-index: 2; /* Forces your text, buttons, and image to sit ON TOP of the waves */
}
/* ========================================
   NAVBAR LOGO & NAME (BULLETPROOF FLEX)
======================================== */
.logo { display: flex; align-items: center; }

.logo-link {
    display: flex;
    align-items: center;
    gap: 1rem; /* Precise spacing between circle and text */
    text-decoration: none;
}

/* This is the master container that defines the perfect circle size */
.logo-circle-container {
    width: 55px; /* Slightly refined size for a sleek navbar */
    height: 55px;
    border-radius: 50%;
    overflow: hidden;   
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--primary); /* Your purple ring */
    
    /* Safeties to prevent any white backgrounds from leaking */
    background-color: transparent; 
    padding: 0;
    margin: 0;
    
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* The actual image tag */
.logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center; /* Ensures your face stays exactly in the middle */
    
    /* Strip away any default HTML image borders */
    border: none;
    background: transparent;
    
    /* THE MAGIC FIX: Zooms the image in by 15% to push the white border out of view! */
    transform: scale(1.15); 
}

/* Hover Effects */
.logo-link:hover .logo-circle-container {
    transform: scale(1.1);
}

/* Need to maintain the zoom when hovered so the white border doesn't snap back */
.logo-link:hover .logo-img {
    transform: scale(1.15); 
}

.logo-text {
    font-family: 'Inter', sans-serif !important; /* Uses your site's main, reliable font */
    font-size: 1.6rem;
    font-weight: 900 !important; /* 900 is the absolute thickest/boldest weight available */
    color: #ffffff !important; /* Forces pure, absolute white */
    letter-spacing: 1.5px; /* Spreads the letters slightly for a premium look */
    text-transform: uppercase; /* Ensures it stays fully capitalized */
    -webkit-font-smoothing: antialiased; /* Makes the edges of the bold text look sharper */
    transition: color 0.3s ease;
}

/* Hover Effect */
.logo-link:hover .logo-text {
    color: var(--primary) !important; /* Turns purple when hovered */
}

/* --- FIX 3: MAXIMUM SIZE LOGOS & TIGHT CROP --- */

/* 1. Make the invisible container box wider and taller so the logos have room to grow */
.brand-logo {
    width: 300px !important;  /* Increased from 250px */
    height: auto !important;  /* Let the box adapt perfectly to the new big logos */
}

/* 2. Super-size the images themselves */
.brand-card img, 
.brand-logo img {
    height: 150px !important; /* SUPER-SIZED! Increased from 100px to 150px */
    width: 100% !important;
    object-fit: contain !important;
    
    /* 3. Tighter crop on the sides (10px) to let wide logos stretch further */
    padding: 4px 10px !important; 
    
    background-color: #ffffff !important; 
    border-radius: 12px !important;
    transform: scale(1) !important; 
}

/* 4. Keep the hover gentle so these massive logos don't crash into each other */
.brand-card:hover img,
.brand-logo:hover img {
    transform: scale(1.05) !important;
}
/* --- SPECIFIC FIX: TRANSPARENT SOFTWARE LOGOS --- */
.software-logo img {
    background-color: transparent !important; /* Removes the white background */
    padding: 0 !important; /* Removes the padding so they sit flush */
    border-radius: 0 !important; /* Removes the rounded corners of the invisible box */
}

/* --- MOBILE UX FIX: TOUCH-TO-REVEAL SOFTWARE LOGOS --- */
@media (max-width: 968px) {
    /* 1. Removes the default blue/grey tap box on mobile phones */
    .software-logo {
        -webkit-tap-highlight-color: transparent !important; 
    }
    
    /* 2. Forces them to start grayscale on mobile */
    .software-logo img {
        filter: grayscale(100%) !important;
        opacity: 0.6 !important;
        transform: scale(1) !important;
    }
    
    /* 3. Lights up in full color ONLY when the user physically touches/taps it */
    .software-logo:active img,
    .software-logo:hover img {
        filter: grayscale(0%) !important;
        opacity: 1 !important;
        transform: scale(1.1) !important;
    }
}

/* ==========================================================
   TYPOGRAPHY SETTINGS
========================================================== */

/* About Page */

.about-preview-content p,
.about-preview-content li,
.glass-content p,
.mv-card p,
.workspace-content p{

    text-align:justify;

    text-justify:inter-word;

    -webkit-hyphens:auto;

    -ms-hyphens:auto;

    hyphens:auto;

}

/* Sentinel & Experience Pages */

.about-text{

    max-width:900px;

    margin:0 auto;

}

.about-text h2{

    text-align:center;

    font-size:2.8rem;

    margin-bottom:35px;

}

.about-text p{

    color:var(--text-gray);

    font-size:1.08rem;

    line-height:1.9;

    margin-bottom:25px;

    text-align:left;

    word-break:normal;

    overflow-wrap:normal;

    -webkit-hyphens:none;

    -ms-hyphens:none;

    hyphens:none;

}

/* ========================================
   3D BLACK HOLE FOOTER BACKGROUND
======================================== */
.footer {
    position: relative;
    overflow: hidden; /* Keeps the black hole safely inside the footer */
    background: #050508; /* An extra dark space-black for the background */
}

#blackhole-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none; /* Crucial: Allows you to click the links through the canvas */
    opacity: 0.8; /* Keeps it bright, but allows text to be read easily */
}

.footer-container {
    position: relative;
    z-index: 2; /* Forces the text and links to sit ON TOP of the black hole */
}

/* --- MOBILE UX FIX: TOUCH-TO-REVEAL SOFTWARE LOGOS --- */
@media (max-width: 968px) {
    .software-logo {
        -webkit-tap-highlight-color: transparent !important; 
        
        /* THE MAGIC FIX: Tricks the phone into allowing touch interactions */
        cursor: pointer !important; 
    }
    
    .software-logo img {
        filter: grayscale(100%) !important;
        opacity: 0.6 !important;
        transform: scale(1) !important;
        transition: all 0.3s ease !important;
    }
    
    /* Triggers the color when you press your finger on the logo */
    .software-logo:active img,
    .software-logo:focus img {
        filter: grayscale(0%) !important;
        opacity: 1 !important;
        transform: scale(1.1) !important;
    }
}
/* ========================================
   UPDATED: Z-AXIS WARP TUNNEL ENGINE
======================================== */
.tunnel-viewport {
    position: relative;
    width: 100%;
    /* This defines exactly how much space the tunnel takes to scroll through */
    height: 350vh; 
    background: transparent; 
    z-index: 10;
}

.tunnel-scene {
    position: sticky;
    top: 0; /* Starts tracking only AFTER you scroll past the Hero section */
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
    transform-style: preserve-3d;
    overflow: hidden;
    
    /* THE FIX: Prevents the invisible scene from blocking mouse clicks */
    pointer-events: none; 
}

.tunnel-card {
    position: absolute;
    width: 350px; /* Slightly wider for better video viewing */
    height: auto;
    background: rgba(17, 17, 24, 0.7);
    border-radius: 24px;
    border: 1px solid rgba(59, 130, 246, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.2rem;
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
    transform-style: preserve-3d;
    will-change: transform, opacity;
    
    /* THE FIX: Re-enables clicking on the Play Button and Video Controls */
    pointer-events: auto; 
}

/* Staggers cards on left and right tracks down the tunnel */
.tunnel-card:nth-child(odd) { left: calc(50% - 400px); }
.tunnel-card:nth-child(even) { left: calc(50% + 50px); }

/* Metadata styling beneath the spatial video frame */
.tunnel-card-meta { margin-top: 1rem; text-align: center; }

.tunnel-card .video-wrapper {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    background: #000;
}

/* Real-time spatial tracking effects */
.tunnel-card.active-focus {
    border-color: rgba(168, 85, 247, 0.8);
    box-shadow: 0 0 50px rgba(59, 130, 246, 0.4);
}

.tunnel-card.passed-camera {
    opacity: 0 !important;
    pointer-events: none !important; /* Disables clicking when it flies past you */
}

/* Mobile responsive alignment */
@media (max-width: 968px) {
    .tunnel-viewport { height: 400vh; } 
    .tunnel-card { width: 300px; }
    .tunnel-card:nth-child(odd) { left: calc(50% - 150px); margin-top: -120px; }
    .tunnel-card:nth-child(even) { left: calc(50% - 150px); margin-top: 120px; }
}
/* ========================================
   VIDEO OVERLAY CLICK FIX
======================================== */
/* Allows mouse clicks to pass through the overlay to hit the play button */
.works-grid .work-item[data-category="video"] .work-overlay {
    pointer-events: none !important;
}
 /* --- PURE CSS 3D WALL SECTION --- */
.css-3d-section {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    background-color: var(--bg-dark, #0a0a0f); /* Your dark background */
    /* This creates the 3D camera depth */
    perspective: 1000px; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.css-wall-grid {
    position: absolute;
    top: -10%; /* Overshoot so the edges don't show when tilted */
    left: -10%;
    width: 120%;
    height: 120%;
    display: grid;
    /* Automatically fills the screen with 50px blocks */
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    grid-auto-rows: 50px;
    gap: 4px;
    
    /* Tilt the wall back slightly into the screen */
    transform: rotateX(15deg) scale(1.1); 
    transform-style: preserve-3d;
    z-index: 0;
}

/* Individual Block Styling */
.css-wall-block {
    background: rgba(59, 130, 246, 0.05); /* Faint Purple */
    border: 1px solid rgba(59, 130, 246, 0.15); /* Faint Border */
    border-radius: 4px;
    
    /* The springy, bouncing animation */
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                background-color 0.3s, 
                box-shadow 0.3s;
    will-change: transform;
}

/* The Hover Interaction - Pops out of the screen */
.css-wall-grid:hover .css-wall-block:hover {
    /* Pushes the block 80 pixels out of the monitor toward the user */
    transform: translateZ(80px) scale(1.1); 
    background-color: rgba(192, 132, 252, 0.9); /* Bright Accent Purple */
    border-color: #7dd3fc;
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.6), 
                inset 0 0 15px rgba(255, 255, 255, 0.4);
    z-index: 10;
}

/* Ensure your text/buttons sit on top and remain clickable */
.css-3d-content {
    position: relative;
    z-index: 2;
    pointer-events: none; /* Let the mouse hit the wall behind the text */
}
.css-3d-content * {
    pointer-events: auto; /* But let buttons still be clicked */
}

/* ========================================
   CLICKABLE EXPERIENCE CARDS
======================================== */

.project-link{
    display:block;
    text-decoration:none;
    color:inherit;
}

.project-link:hover{
    text-decoration:none;
    color:inherit;
}

.project-link .work-item{
    cursor:pointer;
}

.project-link .work-item:hover{
    transform:translateY(-8px);
}

/* ==========================================================
   PROJECT PAGE THEME SYSTEM
========================================================== */

.theme-sentinel{
    --project-color:#2563eb;
    --project-light:#60a5fa;
    --project-dark:#1e40af;
    --project-glow:rgba(37,99,235,.35);
}

.theme-defender{
    --project-color:#7c3aed;
    --project-light:#a855f7;
    --project-dark:#5b21b6;
    --project-glow:rgba(124,58,237,.35);
}

.theme-azure{
    --project-color:#0ea5e9;
    --project-light:#38bdf8;
    --project-dark:#0369a1;
    --project-glow:rgba(14,165,233,.35);
}

.theme-vulnerability{
    --project-color:#ea580c;
    --project-light:#fb923c;
    --project-dark:#c2410c;
    --project-glow:rgba(234,88,12,.35);
}

.theme-intune{
    --project-color:#16a34a;
    --project-light:#4ade80;
    --project-dark:#15803d;
    --project-glow:rgba(22,163,74,.35);
}

.theme-threat{
    --project-color:#dc2626;
    --project-light:#f87171;
    --project-dark:#991b1b;
    --project-glow:rgba(220,38,38,.35);
}

/* ==========================================================
   PROJECT HERO
========================================================== */

.project-hero{
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
    padding:120px 30px;
    position:relative;
    overflow:hidden;
    background:
        linear-gradient(rgba(2,6,23,.88),rgba(2,6,23,.92)),
        radial-gradient(circle at top,var(--project-glow),transparent 65%);
}

.project-hero::before{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(
        135deg,
        transparent,
        rgba(255,255,255,.02),
        transparent
    );
}

.project-hero-content{
    max-width:950px;
    position:relative;
    z-index:2;
}

.project-badge{
    display:inline-block;
    padding:10px 22px;
    border-radius:30px;
    border:1px solid var(--project-color);
    color:var(--project-color);
    background:rgba(255,255,255,.04);
    font-weight:600;
    margin-bottom:30px;
}

.project-hero h1{
    font-size:4rem;
    margin-bottom:20px;
}

.project-subtitle{
    max-width:800px;
    margin:auto;
    line-height:1.8;
    font-size:1.15rem;
    color:#cbd5e1;
}

.project-tech-stack{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:15px;
    margin-top:45px;
}

.project-tech-stack span{
    padding:10px 18px;
    border-radius:25px;
    border:1px solid var(--project-color);
    color:var(--project-color);
    background:rgba(255,255,255,.04);
    transition:.35s;
}

.project-tech-stack span:hover{
    transform:translateY(-4px);
    box-shadow:0 10px 25px var(--project-glow);
}

.project-buttons{
    display:flex;
    justify-content:center;
    gap:20px;
    margin-top:50px;
    flex-wrap:wrap;
}

/* ==========================================================
   PROJECT OVERVIEW
========================================================== */

.project-overview-section{
    padding:120px 8%;
}

.project-highlights{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:30px;
    margin-top:50px;
}
.highlight-card{
    background:rgba(255,255,255,.03);
    border:1px solid rgba(255,255,255,.08);
    border-radius:18px;
    padding:25px;
    transition:.35s;
}

.highlight-card:hover{
    transform:translateY(-8px);
    border-color:var(--project-color);
    box-shadow:0 15px 35px var(--project-glow);
}

.highlight-card h3{
    color:var(--project-color);
    margin-bottom:12px;
}

/* ==========================================================
   PROJECT OVERVIEW CONTENT
========================================================== */

.project-overview-container{

    max-width:900px;

    margin:0 auto;

}

.project-overview-container h2{

    font-size:2.5rem;

    margin-bottom:30px;

}

.project-overview-container p{

    color:var(--text-gray);

    line-height:2;

    margin-bottom:25px;

    font-size:1.08rem;

}

/* ==========================================================
   PROJECT BUTTONS
========================================================== */

.theme-sentinel .btn-primary,
.theme-defender .btn-primary,
.theme-azure .btn-primary,
.theme-vulnerability .btn-primary,
.theme-intune .btn-primary,
.theme-threat .btn-primary{
    background:linear-gradient(
        135deg,
        var(--project-color),
        var(--project-light)
    );
    border:none;
}

.theme-sentinel .btn-primary:hover,
.theme-defender .btn-primary:hover,
.theme-azure .btn-primary:hover,
.theme-vulnerability .btn-primary:hover,
.theme-intune .btn-primary:hover,
.theme-threat .btn-primary:hover{
    transform:translateY(-4px);
    box-shadow:0 18px 40px var(--project-glow);
}

/* ==========================================================
   PROJECT GRADIENT TEXT
========================================================== */

.theme-sentinel .gradient-text,
.theme-defender .gradient-text,
.theme-azure .gradient-text,
.theme-vulnerability .gradient-text,
.theme-intune .gradient-text,
.theme-threat .gradient-text{
    background:linear-gradient(
        90deg,
        var(--project-color),
        var(--project-light)
    );
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

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

@media (max-width:992px){

    .project-hero h1{
        font-size:3rem;
    }

    .project-subtitle{
        font-size:1rem;
    }
}

@media (max-width:768px){

    .project-hero{
        padding:120px 20px;
    }

    .project-hero h1{
        font-size:2.3rem;
    }

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

    .project-tech-stack{
        gap:10px;
    }
}

//* ==========================================================
   MICROSOFT SENTINEL DASHBOARD SHOWCASE
========================================================== */

.dashboard-showcase{
    padding:80px 8%;
}

.dashboard-container{
    max-width:1200px;
    margin:40px auto;
}

.dashboard-image{
    width:100%;
    height:auto;
    display:block;
    border-radius:16px;
    border:1px solid rgba(255,255,255,.08);
    box-shadow:0 20px 60px rgba(0,0,0,.45);
    transition:transform .3s ease, box-shadow .3s ease;
}

.dashboard-image:hover{
    transform:scale(1.02);
    box-shadow:0 25px 70px rgba(37,99,235,.35);
}

/* ==========================================================
   PROJECT TEXT (Experience Pages)
========================================================== */

.project-text{

    max-width:900px;

    margin:0 auto;

}

.project-text h2{

    text-align:center;

    font-size:2.8rem;

    margin-bottom:35px;

}

.project-text p{

    color:var(--text-gray);

    font-size:1.08rem;

    line-height:1.9;

    margin-bottom:25px;

    text-align:left;

    word-break:normal;

    overflow-wrap:normal;

    -webkit-hyphens:none;

    -ms-hyphens:none;

    hyphens:none;

}

/* Restore project detail page hero layout */
.project-hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 30px;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.92)),
        radial-gradient(circle at top, var(--project-glow), transparent 65%);
}

.project-hero-content {
    max-width: 950px;
    position: relative;
    z-index: 2;
}

.project-hero h1,
.project-subtitle,
.project-tech-stack,
.project-buttons {
    display: block;
    visibility: visible;
    opacity: 1;
}

.project-tech-stack {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 45px;
}

.project-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
    flex-wrap: wrap;
}

/* Final fix: keep project page hero visible */
.project-hero {
    min-height: 100vh !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    padding: 120px 30px !important;
    position: relative !important;
    overflow: hidden !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.project-hero-content {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    z-index: 2 !important;
    transform: none !important;
}

.project-badge,
.project-hero h1,
.project-subtitle,
.project-tech-stack,
.project-buttons {
    opacity: 1 !important;
    visibility: visible !important;
}