﻿/* ========================================
   PORTFOLIO â€” STYLE.CSS (CLEAN)
   Purple Theme with Curved Elements
   By Devarapalli Shalem Raju
======================================== */

/* ========================================
   COLOR VARIABLES
======================================== */
:root {
    --primary:       #00a8ff;
    --primary-dark:  #0077b3;
    --primary-light: #80d4ff;
    --secondary:     #6c5ce7;
    --accent:        #00e6ff;

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

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

    --border: #2a2a35;
    --shadow: rgba(0, 168, 255, 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(0, 168, 255, 0.5) !important; 
    
    /* Added the glow: large soft purple shadow */
    box-shadow: 0 0 25px rgba(0, 168, 255, 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, var(--primary), var(--secondary));
    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(0, 168, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 168, 255, 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(0, 168, 255, 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(0, 168, 255, 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(0, 168, 255, 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 */
}

/* 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(0, 168, 255, 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 */
}

/* ========================================
   SOFTWARE PROJECT CARDS
======================================== */
.featured-projects-grid,
.project-showcase-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.featured-project-card,
.project-showcase-card {
    position: relative;
    overflow: hidden;
    min-height: 280px;
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: 24px;
    background:
        radial-gradient(circle at 100% 0%, rgba(0, 168, 255, 0.2), transparent 42%),
        linear-gradient(145deg, rgba(17, 17, 24, 0.96), rgba(10, 10, 15, 0.96));
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.featured-project-card::after,
.project-showcase-card::after {
    content: '';
    position: absolute;
    right: -70px;
    bottom: -85px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: rgba(108, 92, 231, 0.2);
    filter: blur(55px);
    pointer-events: none;
}

.featured-project-card:hover,
.project-showcase-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 168, 255, 0.55);
    box-shadow: 0 24px 65px rgba(0, 168, 255, 0.18);
}

.featured-project-card.main-project {
    grid-column: span 2;
}

.project-icon,
.project-showcase-icon {
    display: grid;
    width: 58px;
    height: 58px;
    margin-bottom: 1.5rem;
    place-items: center;
    border: 1px solid rgba(0, 168, 255, 0.35);
    border-radius: 18px;
    background: rgba(0, 168, 255, 0.12);
    color: var(--primary-light);
}

.project-icon svg,
.project-showcase-icon svg {
    width: 28px;
    height: 28px;
}

.featured-project-card h3,
.project-showcase-card h3 {
    margin: 0.65rem 0;
    color: var(--text-white);
    font-size: 1.55rem;
}

.featured-project-card p,
.project-showcase-card p {
    color: var(--text-gray);
    line-height: 1.75;
}

.project-status {
    display: inline-flex;
    padding: 0.35rem 0.75rem;
    border: 1px solid rgba(0, 168, 255, 0.32);
    border-radius: 999px;
    background: rgba(0, 168, 255, 0.1);
    color: var(--primary-light);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.project-status.ongoing {
    border-color: rgba(0, 230, 255, 0.35);
    background: rgba(0, 230, 255, 0.1);
    color: var(--accent);
}

.project-status.confidential {
    border-color: rgba(108, 92, 231, 0.4);
    background: rgba(108, 92, 231, 0.12);
    color: #b9b2ff;
}

.project-tech,
.project-links {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.25rem;
}

.project-tech span,
.project-links a {
    padding: 0.45rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-light);
    font-size: 0.76rem;
    font-weight: 650;
    text-decoration: none;
}

.project-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary-light);
}

.project-links a svg {
    width: 15px;
    height: 15px;
}

.project-showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.project-showcase-card {
    cursor: default;
}

@media (max-width: 768px) {
    .featured-projects-grid,
    .project-showcase-grid {
        grid-template-columns: 1fr !important;
    }

    .featured-project-card.main-project {
        grid-column: auto;
    }
}

/* 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(0, 168, 255, 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(0, 168, 255, 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(0, 168, 255, 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; }

.single-brand-grid {
    max-width: 480px;
    grid-template-columns: 1fr;
}

.freelancer-brand-icon {
    width: 230px;
    height: 82px;
    margin: 0 auto 1rem;
    display: grid;
    place-items: center;
    color: var(--primary);
    background: #ffffff;
    border-radius: 14px;
}

.freelancer-brand-icon svg {
    width: 46px;
    height: 46px;
}

/* ========================================
   FOUNDER OF OFG SHOWCASE
======================================== */
.founder-section {
    padding: 6rem 2rem;
}

.founder-kicker {
    display: inline-flex;
    margin-bottom: 0.9rem;
    padding: 0.42rem 0.85rem;
    border: 1px solid rgba(0, 230, 255, 0.32);
    border-radius: 999px;
    color: var(--primary-light);
    background: rgba(0, 168, 255, 0.08);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.founder-showcase {
    position: relative;
    overflow: hidden;
    max-width: 1120px;
    margin: 2.5rem auto 0;
    padding: clamp(1.6rem, 4vw, 3.4rem);
    border: 1px solid rgba(0, 168, 255, 0.38);
    border-radius: 30px;
    background:
        radial-gradient(circle at 10% 10%, rgba(0, 230, 255, 0.17), transparent 33%),
        radial-gradient(circle at 90% 85%, rgba(108, 92, 231, 0.22), transparent 38%),
        linear-gradient(145deg, rgba(4, 19, 34, 0.94), rgba(12, 12, 24, 0.94));
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34), 0 0 42px rgba(0, 168, 255, 0.12);
}

.founder-showcase::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(128, 212, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(128, 212, 255, 0.035) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent);
}

.founder-identity,
.founder-activities,
.founder-actions {
    position: relative;
    z-index: 1;
}

.founder-identity {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    align-items: center;
    gap: clamp(1.4rem, 4vw, 3rem);
}

.founder-mark {
    display: block;
    min-height: 160px;
    overflow: hidden;
    border: 1px solid rgba(128, 212, 255, 0.4);
    border-radius: 25px;
    background: linear-gradient(145deg, rgba(0, 168, 255, 0.2), rgba(108, 92, 231, 0.17));
    box-shadow: inset 0 0 35px rgba(0, 230, 255, 0.08), 0 0 25px rgba(0, 168, 255, 0.12);
}

.founder-mark img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 160px;
    object-fit: cover;
    transition: transform 0.45s ease, filter 0.45s ease;
}

.founder-showcase:hover .founder-mark img {
    transform: scale(1.04);
    filter: brightness(1.08) saturate(1.08);
}

.founder-identity h3 {
    margin: 1rem 0 0.75rem;
    color: #ffffff;
    font-size: clamp(1.7rem, 4vw, 2.7rem);
}

.founder-identity p {
    max-width: 760px;
    color: var(--text-gray);
    font-size: 1.02rem;
    line-height: 1.8;
}

.founder-activities {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
    margin-top: 2.2rem;
}

.founder-activities span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 58px;
    padding: 0.8rem;
    border: 1px solid rgba(0, 168, 255, 0.24);
    border-radius: 15px;
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.025);
    font-size: 0.78rem;
    font-weight: 700;
    text-align: center;
}

.founder-activities svg {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    color: var(--accent);
}

.founder-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

@media (max-width: 900px) {
    .founder-activities {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .founder-section {
        padding: 4rem 1rem;
    }

    .founder-identity {
        grid-template-columns: 1fr;
    }

    .founder-mark {
        min-height: 130px;
    }

    .founder-activities {
        grid-template-columns: 1fr;
    }

    .founder-actions {
        display: grid;
    }

    .founder-actions a {
        justify-content: center;
        text-align: center;
    }
}

/* ========================================
   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-image .urbanx-certificate,
.cert-image .urbanx-certificate {
    object-fit: contain;
    background: #ffffff;
}

.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; }
}

/* ========================================
   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;
    }
}
/* ========================================
   OUR WORKS PAGE
======================================== */
.works-hero { padding: 10rem 2rem 4rem; text-align: center; }

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

.works-hero-content p { color: var(--text-gray); font-size: 1.2rem; max-width: 800px; margin: 0 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;
}
/* ========================================
   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 h2 { font-size: 2rem; margin-bottom: 1.5rem; }

.about-text p { color: var(--text-gray); line-height: 1.8; margin-bottom: 1.5rem; }

@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(0, 168, 255, 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(0,168,255,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(0,168,255,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;
}

.skill-category:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,168,255,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-tag {
    padding: 0.5rem 1rem;
    background: rgba(0,168,255,0.1);
    border: 1px solid var(--primary);
    border-radius: 20px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ========================================
   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(0,168,255,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(0,168,255,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(0,168,255,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(0,168,255,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(0,168,255,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(0,168,255,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(0,168,255,0.2);
}

.contact-icon {
    width: 50px; height: 50px;
    background: rgba(0,168,255,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(0,168,255,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 select,
.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 select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,168,255,0.1);
}

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

.form-group select {
    appearance: none;
    cursor: pointer;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--primary-light) 50%),
        linear-gradient(135deg, var(--primary-light) 50%, transparent 50%);
    background-position:
        calc(100% - 20px) 50%,
        calc(100% - 14px) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.form-group select option {
    color: #ffffff;
    background: #0d111a;
}

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

.form-disclosure {
    margin: -0.4rem 0 0;
    color: var(--text-gray);
    font-size: 0.82rem;
    line-height: 1.5;
    text-align: center;
}

.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; } }

.contact-page .universe-explore-toggle,
.contact-page .universe-explore-hud {
    display: none !important;
}

@media (max-width: 768px) {
    .contact-page .navbar,
    .contact-page .navbar.scrolled {
        background: rgba(5, 8, 15, 0.97) !important;
        border-color: rgba(0, 168, 255, 0.5) !important;
        box-shadow: 0 0 24px rgba(0, 168, 255, 0.35), 0 12px 28px rgba(0, 0, 0, 0.55) !important;
    }

    .contact-page .contact-hero {
        padding: 8rem 1.25rem 2rem;
    }

    .contact-page .contact-main-section {
        padding: 1.5rem 1.25rem 3rem;
    }

    .contact-page .contact-info-side,
    .contact-page .contact-info-content,
    .contact-page .contact-details {
        width: 100%;
        min-width: 0;
    }

    .contact-page .contact-image {
        max-width: 310px !important;
        margin-bottom: 1.25rem !important;
    }

    .contact-page .contact-container {
        gap: 2.5rem;
    }

    .contact-page .contact-info-content > p {
        margin-bottom: 1.35rem;
        line-height: 1.65;
    }

    .contact-page .contact-details {
        gap: 0.9rem;
    }

    .contact-page .contact-detail-item {
        width: 100%;
        min-height: 96px;
        gap: 1rem;
        padding: 0.9rem 1rem;
        border-radius: 18px;
    }

    .contact-page .contact-detail-item > div:last-child {
        flex: 1;
        min-width: 0;
    }

    .contact-page .contact-detail-item h4 {
        margin: 0 0 0.25rem;
        font-size: 1rem;
        line-height: 1.25;
    }

    .contact-page .contact-detail-item p {
        margin: 0;
        overflow-wrap: anywhere;
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .contact-page .contact-detail-item[href^="mailto:"] p {
        white-space: nowrap;
        font-size: clamp(0.72rem, 3.5vw, 0.9rem);
    }

    .contact-page .contact-icon {
        width: 54px;
        height: 54px;
        border-radius: 14px;
    }

    .contact-page .back-to-top {
        display: none !important;
    }
}

/* 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: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

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

.footer-col p { color: var(--text-gray); line-height: 1.8; margin-bottom: 1rem; }

.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(0,168,255,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-btn { 
        display: none !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(0, 168, 255, 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 {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 168, 255, 0.2) !important;
    transition: all 0.4s ease;
}

.deep-purple-theme .brand-card:hover,
.deep-purple-theme .achievement-card:hover {
    box-shadow: 0 15px 40px rgba(0, 168, 255, 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(0, 168, 255, 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 {
    display: none !important;
}

/* ========================================
   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(0, 168, 255, 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 */
}

/* ========================================
   TECHNOLOGIES I USE
======================================== */
.technology-marquee {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 1.5rem 0 2rem;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}

.technology-track {
    display: flex;
    width: max-content;
    animation: scrollTechnologies 55s linear infinite;
    will-change: transform;
}

.technology-marquee:hover .technology-track {
    animation-play-state: paused;
}

.technology-set {
    display: flex;
    gap: 1.2rem;
    padding-right: 1.2rem;
}

.technology-card {
    width: 165px;
    flex: 0 0 165px;
    min-height: 145px;
    padding: 1.25rem 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    text-align: center;
    background: linear-gradient(145deg, rgba(0, 168, 255, 0.08), rgba(17, 17, 24, 0.78));
    border: 1px solid rgba(128, 212, 255, 0.17);
    border-radius: 18px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.technology-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 14px 35px rgba(0, 168, 255, 0.18);
}

.technology-card img,
.technology-card svg {
    width: 58px !important;
    height: 58px !important;
    padding: 0 !important;
    object-fit: contain;
    background: transparent !important;
    border-radius: 0 !important;
    filter: grayscale(100%) !important;
    opacity: 0.62 !important;
    transition: filter 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
}

.technology-card svg {
    color: var(--text-light);
    stroke-width: 1.7;
}

.technology-card:hover img,
.technology-card:hover svg {
    filter: grayscale(0%) !important;
    opacity: 1 !important;
    transform: scale(1.08);
}

.technology-card.concept-card:hover svg {
    color: var(--primary-light);
}

.technology-card span {
    color: var(--text-light);
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.3;
}

.technology-card.concept-card {
    background: linear-gradient(145deg, rgba(108, 92, 231, 0.13), rgba(0, 168, 255, 0.07));
}

@keyframes scrollTechnologies {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .technology-track {
        animation-play-state: paused;
    }
}

@media (max-width: 600px) {
    .technology-marquee {
        -webkit-mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent);
        mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent);
    }

    .technology-track {
        animation-duration: 42s;
    }

    .technology-set {
        gap: 0.85rem;
        padding-right: 0.85rem;
    }

    .technology-card {
        width: 135px;
        flex-basis: 135px;
        min-height: 125px;
        padding: 1rem 0.6rem;
    }

    .technology-card img,
    .technology-card svg {
        width: 48px !important;
        height: 48px !important;
    }
}

/* ========================================
   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(0, 168, 255, 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(0, 168, 255, 0.2);
    border-color: var(--primary);
}

.role-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: rgba(0, 168, 255, 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;
}

.role-icon.role-logo {
    overflow: hidden;
    border: 1px solid rgba(128, 212, 255, 0.45);
    background: #005b5e;
}

.role-icon.role-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.who-am-i-card:hover .role-icon.role-logo {
    background: #005b5e;
}

.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(0, 168, 255, 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(0, 168, 255, 0.5);
    box-shadow: 0 20px 50px rgba(0, 168, 255, 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(0, 168, 255, 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(0, 168, 255, 0.15);
    border-color: rgba(0, 168, 255, 0.4);
}

.workspace-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    background: rgba(0, 168, 255, 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(0, 168, 255, 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(0, 168, 255, 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(0, 168, 255, 0.15);
}

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

/* The Icon Box */
.strength-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 168, 255, 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(0, 168, 255, 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(0, 168, 255, 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(0, 168, 255, 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(0, 168, 255, 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(0, 168, 255, 0.3));
    transition: all 0.5s ease;
}

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

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

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

.goal-step {
    background: var(--bg-card);
    padding: 3rem 2.5rem;
    border-radius: 25px;
    border: 1px solid var(--border);
    flex: 1;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

/* Subtle hover lift for the goal cards */
.goal-step:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(0, 168, 255, 0.1);
}

.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(0, 168, 255, 0.2);
    animation: pulseRing 2.5s infinite ease-in-out;
}

.goal-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 1;
    box-shadow: 0 10px 20px rgba(0, 168, 255, 0.4);
}

.goal-icon i {
    width: 28px;
    height: 28px;
}

.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(0, 168, 255, 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(0, 168, 255, 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-card:hover .whatsapp-glow { background: #25d366; color: white; }
.social-card:hover .email-glow { background: var(--primary); 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(0,168,255,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(0, 168, 255, 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(0, 168, 255, 0.15), rgba(10, 10, 15, 0.95));
    border: 1px solid rgba(0, 168, 255, 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(0, 168, 255, 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 */
}

/* ========================================
   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 */
    opacity: 0.94;
    filter: saturate(1.18) contrast(1.06);
    transform: translateZ(0);
}

@media (max-width: 768px) {
    #universe-canvas {
        opacity: 0.82;
        filter: saturate(1.08);
    }
}

@media (prefers-reduced-motion: reduce) {
    #universe-canvas {
        opacity: 0.72;
    }
}

.universe-explore-toggle {
    position: fixed;
    right: 112px;
    bottom: 24px;
    z-index: 2100;
    border: 1px solid rgba(0, 230, 255, 0.42);
    border-radius: 999px;
    padding: 0.78rem 1.15rem;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(0, 119, 179, 0.84), rgba(108, 92, 231, 0.82));
    box-shadow: 0 0 24px rgba(0, 168, 255, 0.32);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.universe-explore-toggle:hover {
    transform: translateY(-3px);
    border-color: rgba(128, 212, 255, 0.9);
    box-shadow: 0 0 36px rgba(0, 230, 255, 0.48);
}

.universe-explore-hud {
    position: fixed;
    top: 26px;
    left: 50%;
    z-index: 2100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.18rem;
    padding: 0.72rem 1.2rem;
    border: 1px solid rgba(0, 230, 255, 0.28);
    border-radius: 16px;
    color: #ffffff;
    background: rgba(2, 5, 14, 0.58);
    box-shadow: 0 0 32px rgba(0, 168, 255, 0.22);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -18px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.universe-explore-hud strong {
    color: var(--primary-light);
    font-size: 0.88rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.universe-explore-hud span {
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.72rem;
}

body > :not(script):not(#universe-canvas):not(#stellar-life-canvas):not(.universe-explore-toggle):not(.universe-explore-hud) {
    transition: opacity 0.55s ease, filter 0.55s ease;
}

body.universe-explore-mode {
    overflow: hidden;
}

body.universe-explore-mode > :not(script):not(#universe-canvas):not(#stellar-life-canvas):not(.universe-explore-toggle):not(.universe-explore-hud) {
    opacity: 0 !important;
    filter: blur(12px);
    pointer-events: none !important;
}

body.universe-explore-mode #universe-canvas {
    z-index: 2000;
    opacity: 1;
    filter: saturate(1.55) contrast(1.14) brightness(1.22);
    pointer-events: auto;
    cursor: crosshair;
}

body.universe-explore-mode .universe-explore-hud {
    opacity: 1;
    transform: translate(-50%, 0);
}

@media (max-width: 768px) {
    .universe-explore-toggle {
        display: none;
    }

    .universe-explore-hud {
        display: none;
    }
}
/* ========================================
   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(0, 168, 255, 0.15), rgba(10, 10, 15, 0.9)) !important;
    border: 1px solid rgba(0, 168, 255, 0.3) !important;
    box-shadow: 0 20px 50px rgba(0, 168, 255, 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: 20px !important; 
    transform: translateY(-42px) scale(1.08) !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; 
    }
}
/* ========================================
   COMMUNITY IMPACT SECTION (Glassmorphism)
======================================== */
.community-section {
    padding: 2rem 2rem 6rem;
    position: relative;
    overflow: hidden;
}

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

.community-container::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: rgba(0, 168, 255, 0.3);
    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(108, 92, 231, 0.2);
    filter: blur(80px);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.glass-card {
    background: rgba(20, 20, 30, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 168, 255, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 4rem;
    position: relative;
    z-index: 1;
    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(0, 168, 255, 0.5);
}

.glass-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(0, 168, 255, 0.15), transparent);
    border: 1px solid rgba(0, 168, 255, 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(0, 168, 255, 0.1);
}

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

.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(0, 168, 255, 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;
}

.btn-glass {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(0, 168, 255, 0.1);
    color: white;
    padding: 0.9rem 2rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 168, 255, 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(0, 168, 255, 0.4);
    transform: translateY(-2px);
}

@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;
    }
}

/* ========================================
   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(0, 168, 255, 0.15), rgba(10, 10, 15, 0.9));
    border: 1px solid rgba(0, 168, 255, 0.3);
    z-index: 1;
}

/* 3. The Static Image with the Bottom Fade */
.about-preview-image .pop-out-about {
    position: relative;
    z-index: 2; 
    width: auto !important;
    height: 500px;
    max-width: 72%;
    object-fit: contain;
    object-position: bottom;
    
    /* 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-preview-image .pop-out-about {
        height: 420px;
        max-width: 72%;
    }
}
/* ========================================
   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(0, 168, 255, 0.15), rgba(10, 10, 15, 0.9));
    border: 1px solid rgba(0, 168, 255, 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;
}

/* ========================================
   ANIMATED ARC REACTOR MOBILE TOGGLE
======================================== */
.arc-reactor-toggle {
    position: relative;
    width: 50px;
    height: 50px;
    padding: 0;
    background: transparent !important;
    border: none !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10000;
    -webkit-tap-highlight-color: transparent;
}

.arc-reactor {
    position: relative;
    width: 42px;
    height: 42px;
    display: block;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, #031822 0 34%, transparent 35%),
        repeating-conic-gradient(from 4deg, #c9fcff 0deg 8deg, #0b91ba 9deg 17deg, #022537 18deg 27deg);
    border: 1px solid rgba(128, 244, 255, 0.8);
    box-shadow:
        0 0 4px #ffffff,
        0 0 10px rgba(0, 230, 255, 0.9),
        0 0 22px rgba(0, 168, 255, 0.55),
        inset 0 0 10px rgba(0, 230, 255, 0.8);
    animation: arcReactorPulse 1.8s ease-in-out infinite;
    transition: transform 0.4s ease, opacity 0.3s ease, filter 0.3s ease;
}

.arc-reactor::before,
.arc-reactor::after {
    content: "";
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    pointer-events: none;
}

.arc-reactor::before {
    border: 1px dashed rgba(222, 253, 255, 0.9);
    animation: arcReactorSpin 5s linear infinite;
}

.arc-reactor::after {
    inset: 7px;
    border: none;
    background: linear-gradient(150deg, #efffff 4%, #68ecff 42%, #047eaa 88%);
    clip-path: polygon(50% 0, 100% 86%, 0 86%);
    border-radius: 0;
    filter: drop-shadow(0 0 3px #ffffff) drop-shadow(0 0 8px #00e6ff);
    animation: arcCoreBreathe 1.35s ease-in-out infinite;
}

.arc-reactor-rotor {
    position: absolute;
    inset: 2px;
    border: 2px dotted rgba(128, 212, 255, 0.74);
    border-radius: 50%;
    animation: arcReactorSpin 2.8s linear infinite reverse;
}

.arc-reactor-core {
    position: absolute;
    inset: 11px;
    z-index: 2;
    background:
        radial-gradient(circle at 50% 57%, #ffffff 0 16%, #9af5ff 17% 34%, #057da9 35% 54%, #02131f 55%);
    clip-path: polygon(50% 0, 100% 88%, 0 88%);
    filter: drop-shadow(0 0 4px #ffffff) drop-shadow(0 0 7px #00e6ff);
    animation: arcCoreBreathe 1.35s ease-in-out infinite;
}

@keyframes arcReactorSpin {
    to { transform: rotate(360deg); }
}

@keyframes arcReactorPulse {
    0%, 100% { filter: brightness(0.92); transform: scale(0.96); }
    50% { filter: brightness(1.24); transform: scale(1.04); }
}

@keyframes arcCoreBreathe {
    0%, 100% { opacity: 0.72; transform: scale(0.86); }
    50% { opacity: 1; transform: scale(1.05); }
}

.arc-reactor-toggle:hover .arc-reactor,
.arc-reactor-toggle:focus-visible .arc-reactor {
    filter: brightness(1.35);
    transform: scale(1.08);
}

body.menu-open .arc-reactor {
    background: none;
    border-color: transparent;
    box-shadow: none;
    animation: none;
}

body.menu-open .arc-reactor::before,
body.menu-open .arc-reactor::after {
    inset: 17px 3px;
    border: none;
    border-radius: 4px;
    background: var(--primary-light);
    clip-path: none;
    filter: drop-shadow(0 0 6px var(--primary));
    animation: none;
}

body.menu-open .arc-reactor::before { transform: rotate(45deg); }
body.menu-open .arc-reactor::after { transform: rotate(-45deg); }
body.menu-open .arc-reactor-rotor,
body.menu-open .arc-reactor-core { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
    .arc-reactor,
    .arc-reactor::before,
    .arc-reactor::after,
    .arc-reactor-rotor,
    .arc-reactor-core {
        animation: none !important;
    }
}

@media (min-width: 769px) {
    .arc-reactor-toggle {
        display: none !important;
    }
}

/* ========================================
   ABOUT PAGE - PERSONAL STORY
======================================== */
.about-photo-frame {
    width: min(100%, 410px) !important;
    height: 520px !important;
    max-width: 410px !important;
    margin: 0 auto !important;
    overflow: visible !important;
    align-items: flex-end !important;
    border-radius: 28px !important;
    border: 1px solid rgba(0, 168, 255, 0.42);
    background:
        radial-gradient(circle at 50% 30%, rgba(0, 230, 255, 0.16), transparent 45%),
        linear-gradient(150deg, rgba(0, 168, 255, 0.12), rgba(5, 13, 24, 0.82)) !important;
    box-shadow: 0 20px 65px rgba(0, 168, 255, 0.16), inset 0 0 38px rgba(0, 168, 255, 0.08);
}

.about-profile-photo {
    position: relative;
    z-index: 2;
    width: auto;
    max-width: 95%;
    height: 108%;
    object-fit: contain;
    object-position: center bottom;
    border-radius: 0;
    filter: saturate(0.92) contrast(1.04) drop-shadow(0 15px 22px rgba(0, 0, 0, 0.46)) drop-shadow(0 0 12px rgba(0, 168, 255, 0.22));
}

.about-photo-frame::after {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 8, 17, 0.75), transparent 24%);
    border-radius: 28px;
    pointer-events: none;
}

.about-photo-caption {
    position: absolute;
    z-index: 3;
    left: 24px;
    right: 24px;
    bottom: 18px;
    display: grid;
    gap: 5px;
}

.about-photo-caption strong {
    color: #fff;
    font-size: 1.1rem;
}

.about-photo-caption span,
.about-eyebrow {
    color: var(--primary-light);
    font-size: 0.84rem;
    line-height: 1.45;
}

.about-eyebrow {
    margin-bottom: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.about-story-section {
    padding: 6rem 2rem 3rem;
}

.about-story-grid {
    width: min(1180px, 100%);
    margin: 2.5rem auto 0;
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr;
    gap: 1.25rem;
}

.about-story-card {
    position: relative;
    min-height: 390px;
    margin: 0;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    border-radius: 24px;
    border: 1px solid rgba(0, 168, 255, 0.3);
    background:
        radial-gradient(circle at 50% 32%, rgba(0, 230, 255, 0.17), transparent 42%),
        linear-gradient(150deg, rgba(0, 168, 255, 0.1), rgba(6, 15, 27, 0.9));
    box-shadow: 0 14px 42px rgba(0, 0, 0, 0.26);
}

.about-story-card img {
    position: absolute;
    z-index: 1;
    bottom: 62px;
    width: 94%;
    height: calc(100% - 76px);
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 16px 20px rgba(0, 0, 0, 0.48)) drop-shadow(0 0 10px rgba(0, 168, 255, 0.16));
    transition: transform 0.6s ease, filter 0.45s ease;
}

.about-story-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(2, 7, 15, 0.98) 0 25%, transparent 52%);
    pointer-events: none;
}

.about-story-card figcaption {
    position: absolute;
    z-index: 2;
    left: 20px;
    right: 20px;
    bottom: 16px;
    display: grid;
    gap: 6px;
}

.about-story-card strong {
    color: #fff;
    font-size: 1.05rem;
}

.about-story-card span {
    color: var(--text-gray);
    font-size: 0.84rem;
    line-height: 1.5;
}

.about-story-card:hover img {
    transform: scale(1.035);
    filter: saturate(1.08) drop-shadow(0 16px 20px rgba(0, 0, 0, 0.48)) drop-shadow(0 0 14px rgba(0, 230, 255, 0.25));
}

.about-story-featured {
    min-height: 470px;
}

@media (max-width: 900px) {
    .about-story-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-story-featured {
        grid-column: 1 / -1;
        min-height: 440px;
    }
}

@media (max-width: 600px) {
    .about-photo-frame {
        height: 440px !important;
    }

    .about-profile-photo {
        height: 105%;
    }

    .about-story-section {
        padding: 4rem 1rem 2rem;
    }

    .about-story-grid {
        grid-template-columns: 1fr;
    }

    .about-story-featured {
        grid-column: auto;
    }

    .about-story-card,
    .about-story-featured {
        min-height: 420px;
    }
}

.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);
}

/* ========================================
   HERO AI NEURAL-NETWORK BACKGROUND
======================================== */
.hero-section {
    position: relative;
    overflow: hidden;
}

#hero-ripple-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.78;
    mix-blend-mode: screen;
}

#stellar-life-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2150;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0.96;
    will-change: contents;
}

@media (max-width: 768px) {
    #stellar-life-canvas {
        z-index: 2140;
        opacity: 0.82;
    }
}

@media (prefers-reduced-motion: reduce) {
    #stellar-life-canvas {
        opacity: 0.55;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
}
/* ========================================
   NAVBAR LOGO & NAME (BULLETPROOF FLEX)
======================================== */
.logo { display: flex; align-items: center; }

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.signature-logo {
    display: inline-block;
    padding: 0.15rem 0.45rem 0.2rem;
    color: #ffffff;
    font-family: 'Segoe Script', 'Brush Script MT', 'Lucida Handwriting', cursive;
    font-size: clamp(2rem, 3vw, 2.75rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.12em;
    text-shadow: 0 0 18px rgba(255, 255, 255, 0.28), 0 0 24px rgba(0, 168, 255, 0.2);
    transform: rotate(-6deg);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.signature-logo::after {
    content: '';
    display: block;
    width: 110%;
    height: 2px;
    margin-top: 0.08rem;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, #ffffff, rgba(255, 255, 255, 0.78), transparent);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.35);
    transform: translateX(-5%) rotate(-2deg);
}

.logo-link:hover .signature-logo {
    filter: brightness(1.2);
    transform: rotate(-3deg) scale(1.06);
}

/* 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 FIX: PERFECT JUSTIFICATION WITHOUT GAPS --- */
.about-preview-content p,
.about-preview-content li,
.about-text p {
    text-align: justify !important;
    text-justify: inter-word !important; /* Smoothly distributes space between words */
    
    /* Allows the browser to use hyphens for long words instead of creating giant gaps */
    -webkit-hyphens: auto !important; /* Safari */
    -ms-hyphens: auto !important;     /* Edge */
    hyphens: auto !important;         /* Standard */
}
/* --- TYPOGRAPHY MASTER FIX: PERFECT JUSTIFICATION WITHOUT GAPS --- */
.about-preview-content p,
.about-preview-content li,
.about-text p,
.glass-content p,      /* Fixes Community Impact */
.mv-card p,            /* Fixes Mission & Vision */
.workspace-content p   /* Fixes Workspace */
{
    text-align: justify !important;
    text-justify: inter-word !important; /* Smoothly distributes space between words */
    
    /* Allows the browser to gently hyphenate long words instead of creating giant gaps */
    -webkit-hyphens: auto !important; 
    -ms-hyphens: auto !important;     
    hyphens: auto !important;         
}

/* ========================================
   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(0, 168, 255, 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(0, 168, 255, 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;
}






