/* ========================
   PURE GLASSMORPHISM THEME
   ======================== */
:root {
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;

    /* Neonic Accents */
    --accent-cyan: #06b6d4;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;

    /* Glass Properties */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --glass-blur: blur(16px);

    --font-main: 'Outfit', sans-serif;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    /* Deep gradient background */
    background: radial-gradient(circle at top left, var(--bg-dark), var(--bg-darker) 100%);
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* ========================
   AMBIENT BACKGROUND & CURSOR
   ======================== */
.cursor-light {
    position: fixed;
    top: 0;
    left: 0;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.12), transparent 60%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 0;
    transition: transform 0.1s ease-out;
}

.ambient-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-purple);
    top: -100px;
    right: -100px;
    animation: float 10s infinite alternate;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-blue);
    bottom: -100px;
    left: -100px;
    animation: float 15s infinite alternate-reverse;
}

@keyframes float {
    0% {
        transform: translateY(0) scale(1);
    }

    100% {
        transform: translateY(50px) scale(1.1);
    }
}

/* ========================
   GLASS COMPONENTS
   ======================== */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
}

.glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--glass-shadow);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    z-index: 1;
}

/* Simulate glass edge */
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    opacity: 0.5;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* ========================
   UTILITIES
   ======================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center {
    text-align: center;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.w-100 {
    width: 100%;
}

.section {
    padding: 60px 0;
    position: relative;
    z-index: 2;
}

.sub-heading {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-cyan);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: var(--font-main);
    font-size: 1rem;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.4);
}

.btn-outline-glass {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.btn-outline-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* ========================
   NAVIGATION
   ======================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    padding: 0 24px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    height: 40px; /* Lock height to prevent navbar stretch */
    gap: 10px;
}

.logo span {
    color: var(--accent-cyan);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-links a:hover {
    color: #fff;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 99;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
    transition: var(--transition);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.mobile-menu a {
    font-size: 2rem;
    font-weight: 600;
}

/* ========================
   HERO SECTION
   ======================== */
.hero {
    padding-top: 120px;
    min-height: auto;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.hero-title {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

#heroStart .hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.hero-features {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
}

.feature-item i {
    color: var(--accent-cyan);
    font-size: 1.2rem;
}

/* Hero Sequence & Video Masks */
@keyframes heroDelayedFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-delayed-text {
    opacity: 0;
    animation: heroDelayedFadeIn 1s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    animation-delay: 0.8s;
}

.hero-video-fade {
    opacity: 0;
    animation: heroVideoFadeIn 0.5s ease-out forwards;
}

@keyframes heroVideoFadeIn {
    to {
        opacity: 1;
    }
}

/* Image Wrappers */
.glass-image-wrapper {
    position: relative;
    border-radius: var(--border-radius);
    padding: 10px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-shadow);
    overflow: hidden;
}

.glass-image-wrapper img {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
    border-radius: 14px;
    display: block;
    mix-blend-mode: luminosity;
    opacity: 0.8;
}

/* ========================
   PORTFOLIO SECTION
   ======================== */
.portfolio-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.portfolio-card {
    display: flex;
    align-items: stretch;
    padding: 0;
    /* Remove default padding for edge-to-edge image */
    min-height: 200px;
    /* Reduced from 250px */
}

.portfolio-img-container {
    flex: 0 0 25%;
    /* 1/4th width */
    position: relative;
    border-right: 1px solid var(--glass-border);
}

.portfolio-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-top-left-radius: var(--border-radius);
    border-bottom-left-radius: var(--border-radius);
}

.portfolio-content {
    flex: 1;
    /* Remaining 3/4th width */
    padding: 20px 30px;
    /* Reduced padding to help scale down height */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.portfolio-content h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.portfolio-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 20px;
}

/* ========================
   SERVICES SECTION
   ======================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.service-card {
    padding: 30px 24px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.service-card .card-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--accent-cyan);
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card:hover .card-icon {
    background: var(--accent-cyan);
    color: #fff;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex: 1;
}

.read-more {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0.8;
}

.service-card:hover .read-more {
    opacity: 1;
    gap: 10px;
}

/* ========================
   OUR WORK (STATS)
   ======================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    text-align: center;
    padding: 2rem;
}

.stat-card h3 {
    font-size: 4rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-card p {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-cyan);
    letter-spacing: 1px;
}

/* ========================
   TESTIMONIALS
   ======================== */
.testi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.testi-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.quote-icon {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.1);
    position: absolute;
    top: 15px;
    right: 25px;
}

.testi-text {
    font-size: 1.05rem;
    font-style: italic;
    color: #fff;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    white-space: pre-line;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.4s ease-in-out;
}

.testi-card.expanded .testi-text {
    -webkit-line-clamp: unset;
    display: block;
    overflow: visible;
}

.read-more-btn {
    align-self: flex-start;
    background: none;
    border: none;
    color: var(--accent-cyan);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-main);
    transition: var(--transition);
}

.read-more-btn:hover {
    color: #fff;
}

.testi-author {
    font-size: 0.95rem;
    margin-top: auto;
}

.text-accent strong {
    color: var(--accent-cyan);
}

.text-accent span {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ========================
   ABOUT SECTION
   ======================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.glass-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 20px 30px;
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
}

.glass-badge h2 {
    font-size: 2.5rem;
    color: var(--accent-purple);
    line-height: 1;
}

.about-block {
    margin-top: 30px;
}

.about-block.last-block {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

.about-block h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-accent {
    color: var(--accent-purple);
}

.about-block p {
    color: var(--text-secondary);
}

/* ========================
   CONTACT FORM & INFO
   ======================== */
.contact-dual-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.glass-input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
}

.glass-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.glass-input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

.info-card {
    padding: 25px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-accent {
    font-size: 2rem;
    color: var(--accent-cyan);
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.info-content h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.info-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.glass-link {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: var(--glass-border);
    text-underline-offset: 4px;
}

.glass-link:hover {
    color: var(--accent-cyan);
    text-decoration-color: var(--accent-cyan);
}


/* ========================
   SERVICE MODAL
   ======================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    max-width: 900px;
    width: 100%;
    position: relative;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
    color: var(--accent-cyan);
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.modal-icon {
    font-size: 3rem;
    color: var(--accent-cyan);
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
    display: inline-flex;
    padding: 15px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

/* ========================
   FOOTER
   ======================== */
/* ========================
   MODERN ARCHITECTURAL FOOTER
   ======================== */
/* ========================
   MODERN FULL-WIDTH FOOTER
   ======================== */
.footer-full {
    padding: 60px 0 30px 0;
    margin-top: 80px;
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-top: 1px solid var(--glass-border);
    overflow: hidden;
}

/* Glass edge highlight */
.footer-full::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    z-index: 2;
}

.footer-grid-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.footer-logo-img {
    height: 80px;
    filter: invert(1) brightness(2.5);
}

.footer-links-col h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-vertical-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-vertical-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: var(--transition);
    align-self: flex-start;
}

.footer-vertical-links a:hover {
    color: var(--accent-cyan);
    transform: translateX(3px);
}

.footer-divider {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--glass-border), transparent);
    margin: 40px 0 30px 0;
}

.footer-grid-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copy {
    flex: 1;
    color: var(--text-secondary);
    font-size: 0.85rem;
}



.footer-socials-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.footer-socials-right a {
    color: var(--text-secondary);
    font-size: 1.25rem;
    transition: var(--transition);
}

.footer-socials-right a:hover {
    color: var(--accent-cyan);
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .footer-grid-top {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-brand-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-vertical-links {
        align-items: center;
    }
    
    .footer-vertical-links a {
        align-self: center;
    }

    .footer-grid-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-socials-right {
        justify-content: center;
    }
}

/* ========================
   ANIMATIONS
   ======================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

/* ========================
   RESPONSIVENESS
   ======================== */
@media (max-width: 1024px) {

    .hero-grid,
    .about-grid {
        grid-template-columns: 1fr;
    }

    .hero-right,
    .about-visual {
        max-width: 600px;
        margin: 0 auto;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testi-grid {
        grid-template-columns: 1fr;
    }

    .contact-dual-grid {
        grid-template-columns: 1fr;
    }

    .modal-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-links:has(.btn-outline-glass) {
        display: flex !important;
    }

    .nav-links:has(.btn-outline-glass) .btn-outline-glass {
        padding: 8px 14px !important;
        font-size: 0.85rem !important;
    }

    .mobile-toggle {
        display: block;
    }

    .hero-features {
        flex-direction: column;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-card {
        flex-direction: column;
    }

    .portfolio-img-container {
        flex: 0 0 auto;
        width: 100%;
        height: 200px;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
    }

    .portfolio-img-container img {
        border-radius: var(--border-radius) var(--border-radius) 0 0;
    }

    .portfolio-content {
        padding: 25px 20px;
    }
}

/* ========================
   LOGO ANIMATION
   ======================== */
.nav-logo {
    height: 140px;
    margin: -50px 0; /* Visually crop the 1:1 empty space by projecting outside the 40px height */
    object-fit: contain;
    animation: logoShine 6s infinite ease-in-out;
    filter: invert(1) brightness(2.5) contrast(1.1);
    /* Significantly increased brightness to push grey-tones toward white */
}

@keyframes logoShine {

    0%,
    85% {
        filter: invert(1) brightness(2.5) contrast(1.1) drop-shadow(0 0 2px rgba(6, 182, 212, 0.3));
    }

    92% {
        filter: invert(1) brightness(3) contrast(1.2) drop-shadow(0 0 20px rgba(6, 182, 212, 0.9));
    }

    100% {
        filter: invert(1) brightness(2.5) contrast(1.1) drop-shadow(0 0 2px rgba(6, 182, 212, 0.3));
    }
}