:root {
    --bg: #050505;
    --gold: #D4AF37;
    --gold-bright: #F9E29C;
    --glass: rgba(255, 255, 255, 0.03);
    --border: rgba(212, 175, 55, 0.2);
    
    /* Responsive Typography */
    --h1-size: clamp(2.2rem, 5vw, 3.5rem);
    --h2-size: clamp(1.8rem, 4vw, 3.2rem);
    --h3-size: clamp(1.4rem, 3vw, 2.2rem);
    --h4-size: clamp(1.2rem, 2.5vw, 1.8rem);
    --h5-size: clamp(1rem, 2vw, 1.4rem);
    --h6-size: clamp(0.9rem, 1.5vw, 1.2rem);
    
    --body-size: clamp(0.95rem, 1.2vw, 1.1rem);
    --label-size: clamp(0.75rem, 1vw, 0.95rem);
    --small-size: clamp(0.85rem, 1vw, 1rem);
    
    /* Font Weights */
    --fw-light: 300;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
}

body {
    background-color: var(--bg);
    color: white;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}


.title-main {
    font-family: 'Arbereto', sans-serif;
    font-size: clamp(2.5rem, 4vw, 6rem);
    line-height: 1.2; /* Increased slightly so lines don't touch */
    letter-spacing: 4px;
    background: linear-gradient(to bottom, #fff 40%, var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    flex-direction: column; /* Forces the two lines to stack */
    align-items: flex-start; /* Aligns text to the left */
}

.line {
    position: relative; /* Essential for your script's absolute positioning */
    display: block;
    white-space: nowrap;
    color: white;
}

/* Ensure the letters inside the line still work with your script */
.letter {
    position: absolute; 
    display: inline-block;
}
.outline {
    -webkit-text-stroke: 1px var(--gold);
    color: transparent;
}

/* Layout containers */
.container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

/* Smooth utility */
* { box-sizing: border-box; }

/* Global Font Families */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Arbereto', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    line-height: 1.2;
    margin: 0;
}

h1 { font-size: var(--h1-size); font-weight: var(--fw-bold); }
h2 { font-size: var(--h2-size); font-weight: var(--fw-bold); }
h3 { font-size: var(--h3-size); font-weight: var(--fw-semibold); }
h4 { font-size: var(--h4-size); font-weight: var(--fw-semibold); }
h5 { font-size: var(--h5-size); font-weight: var(--fw-medium); }
h6 { font-size: var(--h6-size); font-weight: var(--fw-medium); }

p {
    font-family: 'Poppins', sans-serif;
    font-size: var(--body-size);
    font-weight: var(--fw-regular);
    line-height: 1.6;
    margin: 0;
}

body {
    font-size: var(--body-size);
    font-weight: var(--fw-regular);
}

p, div, span, a, button, input, textarea, select {
    font-family: 'Poppins', sans-serif;
}

/* Cursor Follower */
.cursor-follower {
    position: fixed;
    left: 0;
    top: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    background: transparent;
    border: 2px solid rgba(212,175,55,0.9);
    mix-blend-mode: screen;
    transition: width 120ms ease, height 120ms ease, opacity 200ms;
    z-index: 1200;
}

/* Scroll Animation Elements */
.scroll-element {
    position: fixed;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3) rotateY(0deg) rotateX(0deg);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    perspective: 1200px;
    width: 280px;
    height: 280px;
    clip-path: inset(0);
}

/* Pen on the right */
.scroll-element.scroll-pen {
    right: -5%;
    left: auto;
    top: 40%;
}

/* Bulb on the left */
.scroll-element.scroll-bulb {
    left: -5%;
    right: auto;
    top: 55%;
}

.scroll-element svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.4)) drop-shadow(0 0 40px rgba(0, 136, 255, 0.2));
}

.scroll-element.visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotateY(0deg) rotateX(0deg);
}

.scroll-pen {
    animation: rotatePen 5s linear infinite paused;
}

.scroll-bulb {
    animation: rotateBulb 5s linear infinite paused;
}

.scroll-element.visible.scroll-pen {
    animation-play-state: running;
}

.scroll-element.visible.scroll-bulb {
    animation-play-state: running;
}

@keyframes rotatePen {
    0% { transform: translate(-50%, -50%) scale(1) rotateY(0deg) rotateX(0deg); }
    50% { transform: translate(-50%, -50%) scale(1) rotateY(180deg) rotateX(15deg); }
    100% { transform: translate(-50%, -50%) scale(1) rotateY(360deg) rotateX(0deg); }
}

@keyframes rotateBulb {
    0% { transform: translate(-50%, -50%) scale(1) rotateY(0deg) rotateZ(0deg); }
    50% { transform: translate(-50%, -50%) scale(1) rotateY(180deg) rotateZ(180deg); }
    100% { transform: translate(-50%, -50%) scale(1) rotateY(360deg) rotateZ(360deg); }
}

/* Glass Navigation */
.glass-nav {
    position: fixed;
    top: 20px;
    width: calc(100% - 40px);
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    backdrop-filter: blur(12px) saturate(120%);
    border: 1px solid rgba(255,255,255,0.04);
    z-index: 1000;
    border-radius: 12px;
}

.glass-nav .logo { font-weight: 700; letter-spacing: 2px; }
.glass-nav .logo span { color: var(--gold); }

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(0.9rem, 1.1vw, 1rem);
    font-weight: var(--fw-medium);
    transition: all 300ms cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    padding-bottom: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #d4af37, #f9e29c);
    transition: width 300ms cubic-bezier(0.23, 1, 0.32, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: #d4af37;
}

.nav-link.active {
    color: #d4af37;
}

.nav-cta { 
    background: rgba(212,175,55,0.12); 
    padding: 8px 14px; 
    border-radius: 999px; 
    color: var(--gold); 
    cursor: pointer; 
    border: none; 
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    font-weight: var(--fw-semibold); 
    transition: all 300ms cubic-bezier(0.23, 1, 0.32, 1); 
    text-decoration: none; 
    display: inline-block; 
}
.nav-cta:hover { background: rgba(212,175,55,0.18); transform: translateY(-2px) scale(1.05); }
.nav-cta:active { transform: translateY(0) scale(0.98); }

/* Hero */
.hero-fullscreen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.hero-fullscreen {
    background-image: url('');
    background-size: cover;
    background-position: center center;
}
.hero-inner { text-align: center; opacity: 0; animation: fadeUp 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both; }
.hero-subtext { margin-top: 12px; opacity: 0; animation: fadeUp 1s ease 0.5s both; }
.gold-gradient-text { color: var(--gold); font-weight: 700; letter-spacing: 3px; }
.desc { opacity: 0.85; margin-top: 8px; }
.scroll-indicator { position: absolute; bottom: 28px; left: 20%; transform: translateX(-50%); color: rgba(255,255,255,0.6); font-size: 0.85rem; letter-spacing: 4px; animation: float 2s ease-in-out infinite; }

/* Starfield canvas sits behind hero content */
#starfield { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
#particle-layer { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.hero-inner { position: relative; z-index: 10; }

/* Animated title letters (absolute positioning for falling effect) */
.title-main { display: inline-block; position: relative; white-space: nowrap; overflow: visible; }
.title-main .letter { position: absolute; top: 0; left: 0; opacity: 0; transform: translate3d(0,-320px,0) scale(0.6) rotate(-15deg); will-change: transform, opacity; 
    background: linear-gradient(to bottom, #fff 40%, var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: white; }
/* Space characters: make gaps visible with subtle styling */
.title-main .letter[data-is-space="true"] { 
    background: linear-gradient(to bottom, rgba(212,175,55,0.15), rgba(212,175,55,0.08));
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    color: rgba(212,175,55,0.2);
}
.title-main .letter.arrived { opacity: 1; transform: translate3d(0,0,0) scale(1) rotate(0deg); transition: transform 900ms cubic-bezier(.2,1,.3,1), opacity 600ms ease; }

/* Fallback when title is too wide: animate words instead of individual letters */
.title-main .word { display: inline-block; opacity: 0; transform: translate3d(0,-120px,0) scale(0.95); will-change: transform, opacity; 
    background: linear-gradient(to bottom, #fff 40%, var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; }

/* spark particle */
.spark { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #fff, rgba(212,175,55,0.95) 40%, rgba(212,175,55,0.25) 70%); opacity: 0.95; transform: translate3d(0,0,0) scale(1); pointer-events: none; will-change: transform, opacity; }


/* Section common */
.section { padding: 80px 0; opacity: 1; transform: translateY(12px); transition: transform 0.6s ease; }
.section.visible { opacity: 1; transform: none; }
.label { 
    color: rgba(255,255,255,0.2); 
    letter-spacing: 6px; 
    font-weight: var(--fw-semibold);
    font-size: var(--label-size);
    text-align: center; 
    opacity: 0; 
    animation: fadeUp 0.6s ease 0.08s both; 
    will-change: opacity, transform; 
}

.huge-title { 
    font-size: var(--h2-size);
    font-weight: var(--fw-bold);
    margin: 10px 0 30px; 
    text-align: center; 
    opacity: 0; 
    animation: fadeUp 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both; 
    will-change: opacity, transform; 
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 28px;
    margin-top: 28px;
    align-items: start;
}
.team-member {
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    border: 1px solid rgba(212,175,55,0.08);
    padding: 22px;
    border-radius: 12px;
    text-align: center;
    transition: transform 280ms cubic-bezier(0.23,1,0.32,1), box-shadow 280ms;
    backdrop-filter: blur(6px) saturate(120%);
}
.team-member:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,0,0,0.5); }
.avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #012733;
    background: linear-gradient(135deg, #00d4ff, #0080ff);
    box-shadow: 0 8px 20px rgba(0,132,255,0.12), inset 0 -6px 14px rgba(0,0,0,0.08);
    font-size: 1.1rem;
}

.member-name { 
    margin: 8px 0 2px; 
    font-size: var(--h5-size);
    font-weight: var(--fw-semibold);
}

.member-role { 
    color: rgba(255,255,255,0.7); 
    font-size: var(--small-size);
    font-weight: var(--fw-medium);
    margin-bottom: 6px; 
}

.member-exp { 
    color: rgba(255,255,255,0.45); 
    font-size: clamp(0.8rem, 1vw, 0.95rem);
    font-weight: var(--fw-regular);
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 220px;
    gap: 20px;
    margin-top: 30px;
}
.bento-item { grid-column: span 6; border-radius: 14px; overflow: hidden; position: relative; background: #0b0b0b; }
.bento-item.tall { grid-row: span 2; }
.bento-item.wide { grid-column: span 8; }
.bento-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.12), rgba(0,0,0,0.4)); pointer-events: none; }
.bento-content { position: absolute; left: 22px; bottom: 18px; z-index: 2; }
.bento-content h3 { font-size: 1.4rem; margin: 0; color: #fff; letter-spacing: 0.5px; text-align: center; }
.bento-img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Hover micro interaction */
.bento-item:hover { transform: translateY(-6px) scale(1.01); box-shadow: 0 18px 40px rgba(2,6,23,0.6); }

/* Industries Grid */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 50px;
}

.industry-card {
    padding: 32px 20px;
    background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    border: 1px solid rgba(212,175,55,0.15);
    border-radius: 12px;
    transition: all 320ms cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    opacity: 0;
}

.industry-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212,175,55,0.4), transparent);
    opacity: 0;
    transition: opacity 320ms ease;
}

.industry-card:hover {
    background: linear-gradient(135deg, rgba(212,175,55,0.08), rgba(212,175,55,0.04));
    border-color: rgba(212,175,55,0.3);
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(212,175,55,0.12);
}

.industry-card:hover::before { opacity: 1; }

.card-icon {
    font-size: clamp(2rem, 5vw, 2.8rem);
    margin-bottom: 16px;
    display: inline-block;
}

.card-title {
    font-size: var(--h4-size);
    font-weight: var(--fw-semibold);
    margin: 0 0 10px 0;
    letter-spacing: 0.5px;
    color: #fff;
}

.card-desc {
    font-size: var(--body-size);
    margin: 0;
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
    font-weight: var(--fw-light);
}

/* Services list */
.dark-matte { background: linear-gradient(180deg,#070707,#0a0a0a); border-top: 1px solid rgba(255,255,255,0.02); }
.service-list { margin-top: 18px; }
.service-row { display: flex; align-items: center; gap: 20px; padding: 28px 0; border-bottom: 1px solid rgba(255,255,255,0.03); transition: all 300ms ease; opacity: 0; animation: slideInLeft 0.6s ease both; }
.service-row .num { 
    color: var(--gold); 
    font-weight: var(--fw-bold);
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    min-width: 46px; 
}
.service-name { 
    font-size: clamp(0.95rem, 1.5vw, 1.2rem);
    font-weight: var(--fw-semibold);
    text-transform: uppercase; 
    margin: 0; 
}
.service-row .view { 
    margin-left: auto; 
    color: rgba(255,255,255,0.6); 
    font-size: var(--small-size);
}

/* Expertise Grid */
/* Expertise Tabs Section */
.expertise-tabs {
    margin-top: 70px;
    animation: fadeUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.tabs-navigation {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    border-bottom: 2px solid rgba(212, 175, 55, 0.15);
    padding-bottom: 20px;
    overflow-x: auto;
}

.tab-btn {
    background: transparent;
    border: 2px solid rgba(212, 175, 55, 0.2);
    color: rgba(255, 255, 255, 0.7);
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.4s ease;
}

.tab-btn:hover {
    border-color: rgba(212, 175, 55, 0.5);
    color: rgba(255, 255, 255, 0.9);
    background: rgba(212, 175, 55, 0.08);
}

.tab-btn:hover::before {
    left: 100%;
}

.tab-btn.active {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), rgba(212, 175, 55, 0.15));
    border-color: var(--gold);
    color: var(--gold-bright);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3), inset 0 0 15px rgba(212, 175, 55, 0.1);
}

.tab-icon {
    font-size: 1.3em;
    display: inline-block;
}

.tab-label {
    display: none;
}

@media (min-width: 768px) {
    .tab-label {
        display: inline;
    }
}

.tabs-content {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(212, 175, 55, 0.02));
    border: 1.5px solid rgba(212, 175, 55, 0.2);
    border-radius: 20px;
    padding: 50px 40px;
    backdrop-filter: blur(10px);
    min-height: 400px;
}

.tab-panel {
    display: none;
    animation: fadeUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.tab-panel.active {
    display: block;
}

.tab-panel h3 {
    font-size: var(--h3-size);
    color: var(--gold-bright);
    margin: 0 0 20px 0;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: var(--fw-bold);
}

.tab-panel p {
    font-size: var(--body-size);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin: 0;
    max-width: 800px;
    font-weight: var(--fw-regular);
}

.card-description {
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
    font-weight: var(--fw-regular);
}

.expertise-card:hover .card-description {
    color: rgba(255, 255, 255, 0.9);
}

/* Project carousel */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 40px;
    margin-top: 70px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.project-card {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05), rgba(212, 175, 55, 0.01));
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0;
    animation: fadeInScale 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.project-card:hover {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(212, 175, 55, 0.05));
    box-shadow: 0 40px 80px rgba(212, 175, 55, 0.25), inset 0 0 30px rgba(212, 175, 55, 0.08);
    transform: translateY(-12px);
}

.project-image-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    
    background: linear-gradient(135deg, #1b1b1b, #2b2b2b);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    
    display: block;
}

.project-card:hover .project-img {
    transform: scale(1.1) rotate(1deg);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0), rgba(212, 175, 55, 0.3));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-content {
    padding: 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.1));
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: var(--gold-bright);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: clamp(0.65rem, 1vw, 0.75rem);
    font-weight: var(--fw-bold);
    letter-spacing: 1px;
    text-transform: uppercase;
    width: fit-content;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.project-card:hover .project-badge {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), rgba(212, 175, 55, 0.15));
    border-color: var(--gold);
}

.project-title {
    font-size: var(--h4-size);
    font-weight: var(--fw-bold);
    margin: 0 0 8px 0;
    color: white;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.project-card:hover .project-title {
    color: var(--gold-bright);
}

.project-category {
    font-size: clamp(0.8rem, 1.2vw, 1rem);
    color: rgba(212, 175, 55, 0.8);
    font-weight: var(--fw-semibold);
    margin: 0 0 12px 0;
    letter-spacing: 0.5px;
}

.project-description {
    font-size: var(--body-size);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    margin: 0 0 20px 0;
    font-weight: var(--fw-regular);
}

.project-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.project-tech {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    letter-spacing: 0.3px;
}

.project-btn {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(212, 175, 55, 0.1));
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: var(--gold);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.project-btn:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.4), rgba(212, 175, 55, 0.2));
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    transform: translateX(4px);
}

.project-btn:active {
    transform: translateX(2px);
}

.project-tech {
    transition: color 0.3s ease;
}

.project-card:hover .project-tech {
    color: var(--gold);
}

/* Responsive tweaks */
@media (max-width: 900px) {
    .bento-grid { grid-auto-rows: 160px; }
    .bento-item.tall { grid-row: span 1; }
    .bento-item, .bento-item.wide { grid-column: span 12; }
    .huge-title { font-size: 2.2rem; }
    .industries-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .tabs-navigation { gap: 8px; padding-bottom: 16px; }
    .tab-btn { padding: 10px 14px; font-size: 0.8rem; }
    .tabs-content { padding: 40px 30px; }
    .tab-panel h3 { font-size: 1.5rem; }
    .projects-grid { grid-template-columns: 1fr; gap: 30px; }
    .project-image-wrapper { height: 240px; }
    .project-content { padding: 24px; }
    .project-title { font-size: 1.2rem; }
}

/* Comprehensive animations */
@keyframes fadeUp { from { opacity: 0; transform: translateY(50px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInScale { from { opacity: 0; transform: scale(0.7); } to { opacity: 1; transform: scale(1); } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-80px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(80px); } to { opacity: 1; transform: translateX(0); } }
@keyframes shimmer { 0% { opacity: 0.5; } 50% { opacity: 1; } 100% { opacity: 0.5; } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-8px); } }
@keyframes rotateIn { from { opacity: 0; transform: rotateY(90deg); } to { opacity: 1; transform: rotateY(0); } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 5px rgba(212, 175, 55, 0.3); } 50% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.6); } }

.section { opacity: 1; }
.section.visible { animation: fadeUp 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }

/* Staggered animations only when parent section is visible */
.section.visible .industry-card { animation: fadeUp 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
.section.visible .industry-card:nth-child(1) { animation-delay: 0.1s; }
.section.visible .industry-card:nth-child(2) { animation-delay: 0.3s; }
.section.visible .industry-card:nth-child(3) { animation-delay: 0.5s; }
.section.visible .industry-card:nth-child(4) { animation-delay: 0.7s; }

.section.visible .service-row { animation: slideInLeft 0.95s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
.section.visible .service-row:nth-child(1) { animation-delay: 0.15s; }
.section.visible .service-row:nth-child(2) { animation-delay: 0.4s; }
.section.visible .service-row:nth-child(3) { animation-delay: 0.65s; }

.section.visible .project-card { animation: rotateIn 1.1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
.section.visible .project-card:nth-child(1) { animation-delay: 0.2s; }
.section.visible .project-card:nth-child(2) { animation-delay: 0.5s; }

.nav-cta:focus { outline: 2px solid rgba(212,175,55,0.25); outline-offset: 4px; }

.desc { max-width: 720px; margin: 10px auto 0; opacity: 0.9; }

/* Additional responsive refinements */
@media (max-width: 700px) {
    .glass-nav { padding: 10px 14px; left: 12px; right: 12px; border-radius: 10px; }
    .glass-nav .container { flex-direction: column; gap: 10px; align-items: center; }
    .logo { font-size: 1.2rem; }
    .nav-links { flex-direction: column; gap: 8px; width: 100%; }
    .nav-link { width: 100%; text-align: center; }
    .nav-cta { width: 100%; text-align: center; padding: 10px 14px; }
    .hero-inner { padding: 30px 8px; }
    .title-main { font-size: clamp(3rem, 12vw, 6rem); letter-spacing: 3px; }
    .huge-title { font-size: 1.8rem; text-align: center; }
    .bento-grid { gap: 14px; }
    .bento-item { min-height: 160px; }
    .bento-img { height: 100%; }
    .service-row { padding: 18px 0; flex-direction: column; align-items: flex-start; gap: 8px; }
    .service-row .view { margin-left: 0; align-self: flex-end; }
    .industries-grid { grid-template-columns: 1fr; }
    .industry-card { padding: 24px 16px; }
    .tabs-navigation { gap: 6px; flex-wrap: wrap; }
    .tab-btn { padding: 8px 12px; font-size: 0.75rem; }
    .tabs-content { padding: 30px 20px; min-height: 350px; }
    .tab-panel h3 { font-size: 1.3rem; }
    .tab-panel p { font-size: 0.95rem; }
    .projects-grid { gap: 24px; margin-top: 50px; }
    .project-image-wrapper { height: 220px; }
    .project-content { padding: 20px; }
    .project-title { font-size: 1.1rem; }
    .project-description { font-size: 0.9rem; }
    .project-footer { flex-direction: column; align-items: flex-start; gap: 8px; }
    .project-btn { width: 100%; text-align: center; }
}

@media (max-width: 420px) {
    
    #hero-title, .title-main { 
        font-size: 20px !important; 
    }

    /* 2. Target the letters created by your JS */
    #hero-title span, .title-main span { 
        font-size: 10px !important;
        
    }
   
    
    .desc { padding: 0 12px; }
    .cursor-follower { display: none; }
    .bento-img { object-position: center top; }
    .tabs-navigation { gap: 4px; padding-bottom: 12px; }
    .tab-btn { padding: 6px 10px; font-size: 0.65rem; }
    .tab-label { display: none; }
    .tabs-content { padding: 20px 16px; min-height: 300px; }
    .tab-panel h3 { font-size: 1.1rem; margin-bottom: 16px; }
    .tab-panel p { font-size: 0.85rem; }
    .projects-grid { gap: 16px; margin-top: 30px; }
    .project-image-wrapper { height: 200px; }
    .project-content { padding: 16px; }
    .project-title { font-size: 1rem; }
    .project-description { display: none; }
    .project-footer { padding-top: 12px; }
    .project-btn { font-size: 0.75rem; padding: 6px 12px; }
}

/* Ensure images are responsive by default */
.bento-img, .project-img { width: 100%; height: auto; }



/* tiny accessibility & reset */
a { color: inherit; text-decoration: none; }


/* Glass Navigation */
.glass-nav {
    position: fixed;
    top: 20px;
    width: 90%;
    left: 5%;
    display: flex;
    justify-content: space-between;
    padding: 20px 40px;
    background: var(--glass);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    z-index: 1000;
    border-radius: 100px;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 20px;
    margin-top: 50px;
}

.bento-item {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.bento-item.tall { grid-row: span 2; }
.bento-item.wide { grid-column: span 2; }

.bento-item:hover {
    transform: scale(0.98);
    border-color: var(--gold);
}

.bento-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 2;
}

/* Service Row Hover Animation */
.service-row {
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 300ms cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0;
}

.service-row:hover {
    padding-left: 30px;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.08) 0%, transparent 100%);
    transform: translateX(8px);
}

.service-row .num { color: var(--gold); margin-right: 50px; font-weight: bold; }
.service-name { font-size: 1.1rem; text-transform: uppercase; }



/* Container to hold the gradients */
.bg-gradient-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2; /* Sit behind the starfield */
    background-color: #050505;
    overflow: hidden;
    filter: blur(80px); /* Softens the blobs into a mesh */
}

/* Individual moving blobs */
.gradient-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    opacity: 0.15;
    mix-blend-mode: screen;
    animation: moveGradient 20s infinite alternate;
}

/* Blob 1: Deep Gold */
.gradient-blob:nth-child(1) {
    background: radial-gradient(circle, #af8231 0%, transparent 70%);
    top: -10%;
    left: -10%;
}

/* Blob 2: Subtle Bronze */
.gradient-blob:nth-child(2) {
    background: radial-gradient(circle, #5e4b21 0%, transparent 70%);
    bottom: -10%;
    right: -10%;
    animation-duration: 25s;
    animation-delay: -5s;
}

/* Blob 3: Dark Muted Purple or Blue (Adds depth) */
.gradient-blob:nth-child(3) {
    background: radial-gradient(circle, #1a1a1a 0%, transparent 70%);
    top: 40%;
    left: 30%;
    width: 800px;
    height: 800px;
    animation-duration: 30s;
}

@keyframes moveGradient {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(10vw, 15vh) scale(1.1); }
    66% { transform: translate(-5vw, 20vh) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

.industry-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 100%);
    pointer-events: none;
}


/* --- Hamburger Menu Logic --- */
.menu-toggle {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    z-index: 1001;
    padding: 8px;
    align-items: center;
    justify-content: center;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--gold);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 2px;
}

/* Mobile Navigation State */
@media (max-width: 992px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Hidden by default */
        width: 80%;
        height: 100vh;
        background: rgba(5, 5, 5, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: right 0.5s cubic-bezier(0.23, 1, 0.32, 1);
        border-left: 1px solid var(--border);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }

    .nav-links.active {
        right: 0;
    }

    /* Hamburger Animation to 'X' */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-link {
        font-size: 1.5rem;
    }
}

/* --- Global Section Responsiveness --- */
@media (max-width: 768px) {
    /* Hero Scaling */
    .title-main {
        font-size: clamp(2rem, 10vw, 3.5rem);
        line-height: 1.1;
    }
    
    .scroll-element {
        transform: translate(-50%, -50%) scale(0.5) !important; /* Shrink SVG for mobile */
        right: -10%;
    }

    /* Bento Grid Stack */
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .bento-item.wide, .bento-item.tall {
        grid-column: span 1;
        grid-row: span 1;
        height: 250px;
    }

    /* Expertise Tabs Scrollable */
    .tabs-navigation {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 15px;
        border-bottom: 1px solid var(--border);
        /* -webkit-overflow-scrolling: touch; */
    }
    .tab-btn {
        flex: 0 0 auto;
    }

    /* Industries Grid Stack */
    .industries-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Projects Grid Stack */
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card {
        animation: fadeUp 0.8s ease forwards;
    }
}

/* Fix for horizontal "jiggles" */
html, body {
    max-width: 100vw;
    overflow-x: hidden !important;
}

html {
    overflow-x: hidden !important;
}

/* ------------------ Supplemental Responsive Rules ------------------ */
/* These rules add robust responsiveness for hero, nav, grids, team and contact sections
   while preserving the site's visual design. */

/* Global container refinement */
.container { max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }

/* Mobile nav toggle styling (already present in markup) */
.menu-toggle { display: none; }
.menu-toggle span { display: block; height: 2px; background: rgba(255,255,255,0.9); margin: 4px 0; border-radius: 2px; }

@media (max-width: 992px) {
    /* ensure the hamburger is visible when layout collapses */
    .menu-toggle { display: flex; align-items: center; justify-content: center; }
    /* nav overlay behavior: controlled by JS toggling .active on .nav-links */
    .nav-links { right: -100%; transition: right 420ms cubic-bezier(0.23,1,0.32,1); }
    .nav-links.active { right: 0; }
}

@media (max-width: 768px) {
    .glass-nav { padding: 10px 14px; left: 12px; right: 12px; }
    .nav-links { display: flex; gap: 12px; flex-direction: column; align-items: center; }
    .nav-link { width: 100%; text-align: center; }
    .nav-cta { width: 100%; }

    /* Hero sizing and typography adjustments */
    .hero-fullscreen { min-height: 68vh; padding: 28px 0; }
    .title-main { font-size: clamp(1.9rem, 8vw, 3.8rem); white-space: normal; }
    .hero-subtext { padding: 0 8px; }

    /* Responsive grids */
    .industries-grid, .team-grid, .projects-grid, .bento-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
    .projects-grid { grid-template-columns: repeat(2,1fr); }

    /* Expertise tabs: horizontal scroll, compact buttons */
    /* .tabs-navigation { overflow-x: auto; gap: 8px; -webkit-overflow-scrolling: touch; }
    .tabs-navigation .tab-btn { flex: 0 0 auto; } */

    /* Team cards stack vertically */
    .team-member-card { grid-template-columns: 1fr; gap: 28px; }
    .member-image-wrapper { width: 100%; height: auto; max-height: 420px; }

    /* Forms & contact */
    .contact-form { padding: 22px; }
    .submit-btn { width: 100%; padding: 14px 18px; }
    .contact-info { grid-template-columns: 1fr; }

    /* Bento items collapse to single column behavior */
    .bento-item.tall, .bento-item.wide { grid-column: span 12; grid-row: auto; }
}

@media (max-width: 420px) {
    .title-main { font-size: clamp(1.4rem, 9vw, 2.6rem); }
    .projects-grid, .industries-grid { grid-template-columns: 1fr; }
    .projects-grid { gap: 12px; }
    .member-name-large { font-size: 1.5rem; }
    .member-role-large { font-size: 0.95rem; }
    .nav-cta { display: none; }
    .desc { padding: 0 8px; }
    .service-row { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* Ensure images remain responsive */
.bento-img, .project-img { width: 100%; height: auto; }

/* small focus improvements */
.nav-link:focus, .tab-btn:focus, .cta-button:focus { outline: 3px solid rgba(212,175,55,0.14); outline-offset: 4px; }

/* End supplemental responsive rules */

/* ------------------ Spacing & Breakpoint Fine-tuning ------------------ */
/* Improve spacing for tablets and small desktops without changing design */
@media (max-width: 1024px) {
    .section { padding: 60px 0; }
    .huge-title { font-size: 2.6rem; }
    .team-hero { padding-top: 60px; }
    .team-hero .team-hero-content { padding: 0 12px; }
    .bento-grid { grid-auto-rows: 200px; }
    .project-image-wrapper { height: 220px; }
    .member-image-wrapper { max-width: 420px; }
}

@media (max-width: 820px) {
    .section { padding: 48px 0; }
    .hero-fullscreen { min-height: 60vh; }
    .title-main { letter-spacing: 2px; }
    .industries-grid { gap: 14px; }
    .projects-grid { gap: 18px; }
    .service-row { padding: 18px 0; }
    .value-card { padding: 20px; }
}

@media (min-width: 1200px) {
    /* slightly increase container breathing on very wide screens */
    .container { padding-left: 28px; padding-right: 28px; }
}

/* End spacing tweaks */

/* Utility classes to replace inline fixed styles */
.section--lg { padding: 100px 0; }
.section--md { padding: 80px 0; }
.section--xlg { padding: 120px 0; }

.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 60px; }
.two-col--gap-40 { gap: 40px; }
.form-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.max-w-900 { max-width: 900px; margin: 0 auto; }
.max-w-1000 { max-width: 1000px; margin: 0 auto; }
.max-w-1100 { max-width: 1100px; margin: 0 auto; }
.max-w-800 { max-width: 800px; margin: 0 auto; }
.max-w-700 { max-width: 700px; margin: 0 auto; }
.max-w-600 { max-width: 600px; margin: 0 auto; }

.card-pad { padding: 40px; border-radius: 16px; background: var(--glass); border: 1px solid var(--border); }

.decor-blob { position: absolute; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(0,212,255,0.1) 0%, transparent 70%); }
.decor-right { top: -12vw; right: -8vw; width: min(36vw, 300px); height: min(36vw, 300px); }
.decor-left { bottom: -8vw; left: -6vw; width: min(28vw, 250px); height: min(28vw, 250px); background: radial-gradient(circle, rgba(0,128,255,0.08) 0%, transparent 70%); }

.z-top { position: relative; z-index: 2; }
.section-header { text-align: center; margin-bottom: 80px; }

.social-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: rgba(0, 212, 255, 0.1); border: 1px solid rgba(0, 212, 255, 0.2); border-radius: 50%; color: #00d4ff; text-decoration: none; transition: all 300ms ease; font-size: 1.1rem; }

.cta-large { display: inline-block; padding: 16px 40px; background: linear-gradient(135deg, #d4af37, #f9e29c); color: #050505; font-weight: 600; border-radius: 12px; text-decoration: none; transition: all 300ms ease; border: 2px solid transparent; }

.nav-row { display:flex; justify-content:space-between; align-items:center; }

@media (max-width: 820px) {
    .section--lg { padding: 48px 0; }
    .section--xlg { padding: 60px 0; }
    .section--md { padding: 48px 0; }
    .two-col { gap: 28px; }
    .form-two-col { grid-template-columns: 1fr; }
    .section-header { margin-bottom: 40px; }
    .decor-right, .decor-left { display: none; }
    .cta-large { padding: 12px 28px; }
    /* Responsive scroll elements on tablets */
    .scroll-element.scroll-pen { right: -8%; top: 38%; }
    .scroll-element.scroll-bulb { left: -8%; top: 52%; }
    .scroll-element { width: 200px; height: 200px; }
    .scroll-element.visible { transform: translate(-50%, -50%) scale(0.7) rotateY(0deg) rotateX(0deg); }
}

@media (max-width: 420px) {
    .title-main { font-size: clamp(1.6rem, 6vw, 2.6rem); }
    .section--lg, .section--md, .section--xlg { padding: 36px 0; }
    .two-col { gap: 18px; }
    .nav-row { gap: 10px; }
    .cta-large { padding: 10px 20px; font-size: 0.95rem; }
    .social-btn { width: 36px; height: 36px; font-size: 1rem; }
    /* Hide scroll elements on mobile */
    .scroll-element.scroll-pen, .scroll-element.scroll-bulb { display: none !important; }
}

/* small helper for centered titles or wrappers */
.centered { margin-left: auto; margin-right: auto; }

/* Nav-specific refinements for tablets and small phones */
@media (max-width: 820px) {
    .glass-nav { top: 16px; padding: 10px 16px; border-radius: 12px; border: none; width: 88%; left: 6%; right: auto; }
    .glass-nav .logo { font-size: 1.05rem; }
    .nav-links { width: 72%; gap: 20px; }
    .nav-link { font-size: 1rem; }
    .menu-toggle span { width: 20px; }
    /* make overlay animation snappier on tablets */
    .nav-links { transition: right 360ms cubic-bezier(0.25, 0.8, 0.25, 1); }
    .menu-toggle.active span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
    .menu-toggle.active span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
}

@media (max-width: 420px) {
    /* reduce nav chrome height and spacing on small phones */
    .glass-nav { top: 10px; padding: 8px 12px; border:none; width: 90%; left: 5%; right: auto; }
    .glass-nav .logo { font-size: 1rem; }
    /* mobile overlay width respects viewport */
    .nav-links { width: 80%; right: -100%; gap: 18px; height: auto; padding: 36px 0; }
    .nav-links.active { right: 0; transition: right 300ms cubic-bezier(0.22, 1, 0.36, 1); }
    .nav-link { font-size: 1.05rem; padding: 6px 8px; }
    /* scale hamburger smaller */
    .menu-toggle { padding: 6px; }
    .menu-toggle span { width: 18px; height: 2px; }
    .menu-toggle.active span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
    /* Slightly reduce menu-item animation offsets if JS uses transforms tied to viewport */
    .menu-toggle, .nav-links { will-change: transform, right; }
}

.design-philosophy {
    border-left: 3px solid #d4af37;
    padding-left: 15px;
    margin: 20px 0;
    font-style: italic;
    color: #a0a0a0;
}
.enterprise-highlight {
    background: rgba(212, 175, 55, 0.1); /* Very subtle gold tint */
    border-left: 3px solid #d4af37;
    padding: 10px 15px;
    margin: 15px 0;
    font-size: var(--body-size);
    color: #e0e0e0;
    font-weight: var(--fw-regular);
}

.focus-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.focus-list li {
    font-size: var(--body-size);
    font-weight: var(--fw-regular);
}

.strategy-note {
    font-size: var(--body-size);
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-top: 15px;
    color: #cccccc;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: var(--fw-regular);
}

.integration-detail {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 4px;
    font-size: var(--body-size);
    font-weight: var(--fw-regular);
    line-height: 1.5;
    margin: 15px 0;
}
.marketing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 8px 15px;
    margin-top: 15px;
}

.strategy-highlight {
    margin: 20px 0;
    padding: 12px;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 6px;
    border: 1px dashed rgba(212, 175, 55, 0.3);
    font-size: 0.9rem;
    color: #d1d1d1;
}
.seo-detailed-list li {
    margin-bottom: 12px;
    display: block; /* Allows text to wrap under the checkmark nicely */
}

.seo-detailed-list strong {
    color: #d4af37; /* Matches your brand accent */
    display: inline-block;
    min-width: 140px;
}
#data-engineering .focus-list li {
    font-family: 'Inter', 'Segoe UI', sans-serif; /* Clean, professional sans-serif */
    letter-spacing: 0.01em;
    margin-bottom: 10px;
}

.tech-highlight {
    background: rgba(27, 27, 27, 0.6);
    border-right: 3px solid #d4af37; /* Accent on the right for a different look */
    padding: 12px 20px;
    margin: 20px 0;
    font-size: 0.9rem;
    color: #cbd5e0;
}
.ai-highlight {
    background: rgba(0, 150, 255, 0.05); /* Subtle blue AI tint */
    border-left: 3px solid #00d2ff; /* Tech-blue accent */
    padding: 15px;
    margin: 20px 0;
    font-size: 0.9rem;
    color: #e0e0e0;
    box-shadow: inset 0 0 10px rgba(0, 210, 255, 0.1);
}

.ai-list li {
    font-weight: 500;
}
.devops-highlight {
    background: rgba(43, 43, 43, 0.8);
    border-top: 2px solid #d4af37;
    padding: 15px;
    margin: 20px 0;
    font-size: 0.9rem;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 12px;
}
.sap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 8px 20px;
    margin-bottom: 20px;
}

.sap-highlight {
    background: linear-gradient(90deg, rgba(0, 129, 201, 0.1) 0%, rgba(0, 129, 201, 0.02) 100%);
    border-left: 3px solid #0081c9; /* SAP Brand Blue */
    padding: 15px;
    font-size: 0.9rem;
    color: #e0e0e0;
}

.brand-promise {
    margin: 15px 0;
    padding: 10px 15px;
    background: rgba(212, 175, 55, 0.05); /* Subtle brand-colored glow */
    border-left: 3px solid #d4af37;
    font-size: 0.95rem;
    color: #e0e0e0;
}

.focus-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    margin: 15px 0;
    list-style: none;
    padding: 0;
}

.check {
    color: #d4af37;
    font-weight: bold;
    margin-right: 8px;
}

/* ========== TECHNOLOGIES SECTION ========== */
.technologies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 30px;
    margin-top: 60px;
    padding: 40px 0;
}

.tech-item {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.section.visible .tech-item {
    animation: fadeUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.section.visible .tech-item:nth-child(1) { animation-delay: 0.1s; }
.section.visible .tech-item:nth-child(2) { animation-delay: 0.15s; }
.section.visible .tech-item:nth-child(3) { animation-delay: 0.2s; }
.section.visible .tech-item:nth-child(4) { animation-delay: 0.25s; }
.section.visible .tech-item:nth-child(5) { animation-delay: 0.3s; }
.section.visible .tech-item:nth-child(6) { animation-delay: 0.35s; }
.section.visible .tech-item:nth-child(7) { animation-delay: 0.4s; }
.section.visible .tech-item:nth-child(8) { animation-delay: 0.45s; }
.section.visible .tech-item:nth-child(9) { animation-delay: 0.5s; }
.section.visible .tech-item:nth-child(10) { animation-delay: 0.55s; }
.section.visible .tech-item:nth-child(11) { animation-delay: 0.6s; }
.section.visible .tech-item:nth-child(12) { animation-delay: 0.65s; }
.section.visible .tech-item:nth-child(13) { animation-delay: 0.7s; }
.section.visible .tech-item:nth-child(14) { animation-delay: 0.75s; }
.section.visible .tech-item:nth-child(15) { animation-delay: 0.8s; }
.section.visible .tech-item:nth-child(16) { animation-delay: 0.85s; }
.section.visible .tech-item:nth-child(17) { animation-delay: 0.9s; }

.tech-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px 20px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 160px;
    animation: float 10s ease-in-out infinite;
}

.tech-card:hover {
    border-color: rgba(212, 175, 55, 0.6);
    background: rgba(212, 175, 55, 0.08);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2), 0 0 40px rgba(212, 175, 55, 0.1);
    transform: translateY(-4px);
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
    transition: left 0.5s ease;
}

.tech-card:hover::before {
    left: 100%;
}

.tech-icon {
    font-size: 48px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 10s ease-in-out infinite;
}

/* Brand Colors for Each Technology */
.tech-item:nth-child(1) .tech-icon { color: #F16529; } /* HTML5 - Orange */
.tech-item:nth-child(2) .tech-icon { color: #264de4; } /* CSS3 - Blue */
.tech-item:nth-child(3) .tech-icon { color: #F7DF1E; } /* JavaScript - Yellow */
.tech-item:nth-child(4) .tech-icon { color: #777BB4; } /* PHP - Purple */
.tech-item:nth-child(5) .tech-icon { color: #512BD4; } /* .Net - Purple */
.tech-item:nth-child(6) .tech-icon { color: #0073aa; } /* WordPress - Blue */
.tech-item:nth-child(7) .tech-icon { color: #3776ab; } /* Python - Blue */
.tech-item:nth-child(8) .tech-icon { color: #ED8B00; } /* Java - Orange */
.tech-item:nth-child(9) .tech-icon { color: #FF9A00; } /* Adobe Illustrator - Orange */
.tech-item:nth-child(10) .tech-icon { color: #00C4FF; } /* Adobe Photoshop - Cyan */
.tech-item:nth-child(11) .tech-icon { color: #9999FF; } /* Adobe Premiere - Purple */
.tech-item:nth-child(12) .tech-icon { color: #9999FF; } /* Adobe After Effects - Purple */
.tech-item:nth-child(13) .tech-icon { color: #FF9900; } /* Cloud Engineering - Orange */
.tech-item:nth-child(14) .tech-icon { color: #336791; } /* SQL Databases - Blue */
.tech-item:nth-child(15) .tech-icon { color: #FF9900; } /* AWS - Orange */
.tech-item:nth-child(16) .tech-icon { color: #0078D4; } /* Azure - Blue */
.tech-item:nth-child(17) .tech-icon { color: #0CCDE7; } /* SAP - Cyan */

/* ========== CLIENT SHOWCASE SECTION ========== */
.client-showcase {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.client-carousel-wrapper {
    width: 100%;
    max-width: 1000px;
}

.client-carousel {
    position: relative;
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 24px;
    padding: 60px 40px;
    min-height: 380px;
    overflow: hidden;
}

.client-set {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    position: absolute;
    width: 100%;
    left: 40px;
    right: 40px;
}

.client-set.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    position: relative;
    left: auto;
    right: auto;
}

.client-set.prev {
    transform: translateX(-40px);
}

.client-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 30px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    text-align: center;
}

.client-item:hover {
    border-color: rgba(212, 175, 55, 0.5);
    background: rgba(212, 175, 55, 0.08);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.15), inset 0 0 20px rgba(212, 175, 55, 0.05);
    transform: scale(1.05) translateY(-4px);
}

.client-logo {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.client-item:hover .client-logo {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
}

.client-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
}

.client-name {
    font-size: var(--small-size);
    font-weight: var(--fw-medium);
    color: #e0e0e0;
    letter-spacing: 0.5px;
    margin: 0;
    transition: color 0.3s ease;
}

.client-item:hover .client-name {
    color: #D4AF37;
}

/* Pagination Dots */
.carousel-pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(212, 175, 55, 0.3);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dot.active {
    background: #D4AF37;
    width: 32px;
    border-radius: 6px;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.dot:hover {
    background: rgba(212, 175, 55, 0.6);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .client-carousel {
        padding: 50px 30px;
        min-height: 350px;
    }
    
    .client-set {
        gap: 30px;
        left: 30px;
        right: 30px;
    }
    
    .client-item {
        padding: 25px;
        gap: 15px;
    }
    
    .client-logo {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 768px) {
    .client-carousel {
        grid-template-columns: repeat(2, 1fr);
        padding: 40px 20px;
        min-height: auto;
        border-radius: 18px;
    }
    
    .client-set {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        left: 20px;
        right: 20px;
    }
    
    .client-item {
        padding: 20px;
        gap: 12px;
    }
    
    .client-logo {
        width: 90px;
        height: 90px;
    }
    
    .client-name {
        font-size: 14px;
    }
    
    .carousel-pagination {
        gap: 10px;
        margin-top: 30px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    .dot.active {
        width: 28px;
    }
}

@media (max-width: 480px) {
    .client-carousel {
        padding: 30px 16px;
        border-radius: 16px;
    }
    
    .client-set {
        grid-template-columns: 1fr;
        gap: 16px;
        left: 16px;
        right: 16px;
    }
    
    .client-item {
        padding: 18px;
        gap: 12px;
    }
    
    .client-logo {
        width: 80px;
        height: 80px;
    }
    
    .client-name {
        font-size: 13px;
    }
    
    .carousel-pagination {
        gap: 8px;
        margin-top: 25px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
    
    .dot.active {
        width: 24px;
    }
}

.tech-name {
    font-size: var(--small-size);
    font-weight: var(--fw-medium);
    text-align: center;
    color: #e0e0e0;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.tech-card:hover .tech-name {
    color: #D4AF37;
}

/* Floating animation variations for staggered effect */
.tech-item:nth-child(1) .tech-card { animation-delay: 0s; }
.tech-item:nth-child(2) .tech-card { animation-delay: 0.2s; }
.tech-item:nth-child(3) .tech-card { animation-delay: 0.4s; }
.tech-item:nth-child(4) .tech-card { animation-delay: 0.6s; }
.tech-item:nth-child(5) .tech-card { animation-delay: 0.8s; }
.tech-item:nth-child(6) .tech-card { animation-delay: 1s; }
.tech-item:nth-child(7) .tech-card { animation-delay: 1.2s; }
.tech-item:nth-child(8) .tech-card { animation-delay: 1.4s; }
.tech-item:nth-child(9) .tech-card { animation-delay: 1.6s; }
.tech-item:nth-child(10) .tech-card { animation-delay: 1.8s; }
.tech-item:nth-child(11) .tech-card { animation-delay: 2s; }
.tech-item:nth-child(12) .tech-card { animation-delay: 2.2s; }
.tech-item:nth-child(13) .tech-card { animation-delay: 2.4s; }
.tech-item:nth-child(14) .tech-card { animation-delay: 2.6s; }
.tech-item:nth-child(15) .tech-card { animation-delay: 2.8s; }
.tech-item:nth-child(16) .tech-card { animation-delay: 3s; }
.tech-item:nth-child(17) .tech-card { animation-delay: 3.2s; }

/* Floating animation - moves left to right and disappears */
@keyframes float {
    0% { 
        transform: translateX(-40px);
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    85% {
        opacity: 1;
    }
    100% { 
        transform: translateX(40px);
        opacity: 0;
    }
}

/* Floating animation icon variation */
.tech-item:nth-child(even) .tech-icon {
    animation-timing-function: ease-in;
}

.tech-item:nth-child(3n) .tech-icon {
    animation-duration: 11.5s;
}

.tech-item:nth-child(5n) .tech-icon {
    animation-duration: 12.5s;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .technologies-grid {
        grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
        gap: 24px;
    }
    
    .tech-card {
        padding: 20px 16px;
        height: 150px;
    }
    
    .tech-icon {
        font-size: 42px;
    }
}

@media (max-width: 768px) {
    .technologies-grid {
        grid-template-columns: repeat(auto-fit, minmax(95px, 1fr));
        gap: 18px;
        margin-top: 40px;
    }
    
    .tech-card {
        padding: 16px 12px;
        height: 140px;
        border-radius: 10px;
    }
    
    .tech-icon {
        font-size: 36px;
    }
    
    .tech-name {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .technologies-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 12px;
        margin-top: 30px;
    }
    
    .tech-card {
        padding: 12px 8px;
        height: 130px;
        border-radius: 8px;
    }
    
    .tech-icon {
        font-size: 32px;
    }
    
    .tech-name {
        font-size: 11px;
        font-weight: 400;
    }
}

.logo-image{
    width: auto;
    max-width: 160px;
    height: auto;
    max-height: 56px; /* keep nav chrome consistent */
    object-fit: contain;
}

/* Ensure logo cannot grow inside nav on different hosts */
.glass-nav img.logo-image, .glass-nav img {
    width: auto;
    height: auto;
    max-height: 56px;
}

@media (max-width: 700px) {
    .glass-nav img.logo-image, .glass-nav img {
        max-height: 44px;
    }
}

/* ========== COMPREHENSIVE RESPONSIVE TYPOGRAPHY ========== */
/* Tablet Adjustments (768px - 1023px) */
@media (max-width: 1023px) {
    :root {
        --h1-size: clamp(1.8rem, 4vw, 2.8rem);
        --h2-size: clamp(1.5rem, 3.5vw, 2.5rem);
        --h3-size: clamp(1.2rem, 2.8vw, 1.8rem);
        --h4-size: clamp(1rem, 2.3vw, 1.5rem);
        --body-size: clamp(0.9rem, 1.1vw, 1rem);
        --label-size: clamp(0.7rem, 0.95vw, 0.85rem);
    }
    
    .huge-title {
        margin: 8px 0 25px;
    }
    
    .label {
        letter-spacing: 5px;
        font-size: var(--label-size);
    }
}

/* Mobile Adjustments (480px - 767px) */
@media (max-width: 767px) {
    :root {
        --h1-size: clamp(1.5rem, 5vw, 2.2rem);
        --h2-size: clamp(1.2rem, 4vw, 1.8rem);
        --h3-size: clamp(1rem, 3vw, 1.4rem);
        --h4-size: clamp(0.9rem, 2.2vw, 1.2rem);
        --body-size: clamp(0.875rem, 2vw, 0.95rem);
        --label-size: clamp(0.65rem, 1.5vw, 0.78rem);
        --small-size: clamp(0.8rem, 1.8vw, 0.9rem);
    }
    
    h1, h2, h3, h4, h5, h6 {
        line-height: 1.15;
    }
    
    .title-main {
        line-height: 1.1;
    }
    
    .huge-title {
        margin: 6px 0 20px;
    }
    
    p {
        line-height: 1.5;
    }
    
    .label {
        letter-spacing: 4px;
        font-size: var(--label-size);
    }
    
    .nav-link {
        font-size: clamp(0.85rem, 2vw, 0.95rem);
    }
    
    .service-name {
        font-size: clamp(0.85rem, 1.8vw, 1rem);
    }
    
    .card-icon {
        font-size: clamp(1.5rem, 5vw, 2.2rem);
    }
}

/* Small Mobile (320px - 479px) */
@media (max-width: 479px) {
    :root {
        --h1-size: clamp(1.3rem, 6vw, 1.8rem);
        --h2-size: clamp(1rem, 5vw, 1.5rem);
        --h3-size: clamp(0.9rem, 3.5vw, 1.2rem);
        --h4-size: clamp(0.85rem, 2.5vw, 1rem);
        --body-size: clamp(0.85rem, 2.2vw, 0.9rem);
        --label-size: clamp(0.6rem, 1.8vw, 0.72rem);
        --small-size: clamp(0.75rem, 2vw, 0.85rem);
    }
    
    h1, h2, h3, h4, h5, h6 {
        line-height: 1.12;
    }
    
    .card-desc {
        line-height: 1.4;
    }
    
    .label {
        letter-spacing: 3px;
        font-size: var(--label-size);
    }
}

/* Fix: collapse project image wrapper on small screens to remove empty black gap */
@media (max-width: 700px) {
    .project-image-wrapper {
        height: auto !important;
        min-height: 0 !important;
        background: none !important;
    }

    .project-img {
        width: 100% !important;
        height: auto !important;
        object-fit: cover; /* keep aspect but fill width */
        display: block;
    }

    /* ensure project-card grows with its content and doesn't reserve extra space */
    .project-card {
        height: auto !important;
        align-items: stretch;
    }
}
