/* ==========================================================================
   BROTHERS & CO - LUXURY INDUSTRIAL ENGINEERING THEME
   ========================================================================== */

/* --- Variables --- */
:root {
    /* Theme - Dark Theme (Option B) */
    --clr-primary: #120E0F;
    /* Extremely dark rose-tinted charcoal */
    --clr-primary-rgb: 18, 14, 15;

    --clr-secondary: #1D1819;
    /* Dark charcoal rose for cards/sections */
    --clr-secondary-rgb: 29, 24, 25;

    --clr-accent: #CF5C77;
    /* Rose / Pink */
    --clr-accent-rgb: 207, 92, 119;

    --clr-highlight: #728051;
    /* Olive Green */
    --clr-highlight-rgb: 114, 128, 81;

    --clr-background: #1A1416;
    /* Base page dark background */

    --clr-text: #FDF0F3;
    /* Logo Pale Pink for headings */
    --clr-text-muted: #D5C8CA;
    /* Soft pinkish-grey for body text */

    /* Overlays & Navs */
    --clr-overlay: linear-gradient(rgba(18, 14, 15, 0.2), rgba(18, 14, 15, 0.55));
    --nav-bg: linear-gradient(rgba(18, 14, 15, 0.65), rgba(18, 14, 15, 0.65));
    --nav-bg-scrolled: linear-gradient(rgba(18, 14, 15, 0.85), rgba(18, 14, 15, 0.85));

    /* Glassmorphism */
    --glass-bg: rgba(18, 14, 15, 0.55);
    --glass-border: rgba(207, 92, 119, 0.3);
    --glass-blur: 24px;

    /* Typography */
    --font-heading: 'Didact Gothic', sans-serif;
    --font-body: 'Abel', sans-serif;
    --clr-heading-main: #FFFFFF;
}

[data-theme="light"] {
    /* Theme - Light Theme (Option A) */
    --clr-primary: #FFFFFF;
    /* Pure white for cards/sections */
    --clr-primary-rgb: 255, 255, 255;

    --clr-secondary: #FFFFFF;
    /* Pure white */
    --clr-secondary-rgb: 255, 255, 255;

    --clr-accent: #CF5C77;
    /* Rose / Pink */
    --clr-accent-rgb: 207, 92, 119;

    --clr-highlight: #728051;
    /* Olive Green */
    --clr-highlight-rgb: 114, 128, 81;

    --clr-background: #FFFFFF;
    /* Pure white base */

    --clr-text: #CF5C77;
    /* Maroon/Pink for headings */
    --clr-text-muted: #728051;
    /* Olive Green for body text */

    /* Overlays & Navs */
    --clr-overlay: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.5));
    --nav-bg: rgba(255, 255, 255, 1);
    --nav-bg-scrolled: rgba(255, 255, 255, 1);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(114, 128, 81, 0.3);
    --glass-blur: 30px;
    --clr-heading-main: #120E0F;
}

/* --- Global Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden !important;
    max-width: 100vw;
}

html {
    scroll-behavior: smooth;
}

section,
#subsidiary {
    scroll-margin-top: 100px;
}

body {
    background-color: var(--clr-background);
    color: var(--clr-text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    overflow-wrap: break-word;
    word-wrap: break-word;
    position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
}

/* --- Global Typography Scale --- */
h1 {
    font-size: 4rem;
    font-weight: 700;
}

h2 {
    font-size: 2.8rem;
    font-weight: 700;
}

h3 {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 2px;
}

h4 {
    font-size: 1.4rem;
    font-weight: 600;
}

p,
li,
span.body-text {
    font-family: var(--font-body);
    font-size: 1.15rem;
    line-height: 1.7;
    font-weight: 400;
    color: var(--clr-highlight);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-padding {
    padding: 100px 0;
}

/* --- Address Block Shared Styles --- */
.address-block {
    margin-bottom: 0;
}

.address-block h4 {
    color: var(--clr-accent);
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 1px;
}

.address-item {
    margin-bottom: 1.2rem;
    padding-left: 30px;
}

.address-item h5 {
    color: var(--clr-highlight);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.address-item p {
    color: var(--clr-text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 0.3rem;
}

/* --- Typography Utilities --- */
.text-gradient {
    background: linear-gradient(135deg, var(--clr-accent), var(--clr-highlight));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* --- Cinematic Background --- */
.cinematic-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background-color: #05080a;
}

.bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    /* Align top of video to top of container so the beautiful sky is always visible.
       Any cropping will happen at the bottom instead. */
    object-position: center top;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--clr-overlay);
    transition: background 0.3s ease;
}

.blueprint-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(var(--clr-accent-rgb), 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--clr-accent-rgb), 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
    transition: background-image 0.3s ease;
}

/* --- Navigation --- */
@keyframes flowOilImage {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}
/* --- Header (Glassmorphism effect) --- */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    /* Theme overlay */
    background: var(--nav-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--glass-border);
    padding: 0.7rem 0;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;

    /* Box shadow to give 3D feel */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.glass-nav.scrolled {
    background: var(--nav-bg-scrolled);
    /* Scroll aagumpothu shadow konjam dark aaga maarum */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
}

.logo {
    position: relative;
    display: block;
}

.logo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    background: radial-gradient(circle, rgba(var(--clr-accent-rgb), 0.25) 0%, transparent 70%);
    z-index: -1;
    border-radius: 50%;
    animation: pulse-glow 3s infinite alternate ease-in-out;
}

@keyframes pulse-glow {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
}

.logo img {
    height: 55px;
    width: auto;
    display: block;
    border-radius: 4px;
    position: relative;
    z-index: 1;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1700px;
    padding: 0 2%;
}

.logo h1 {
    font-size: 1.8rem;
    letter-spacing: 2px;
    color: var(--clr-highlight);
    /* Olive Green */
}

.logo span {
    color: var(--clr-accent);
    /* Rose */
}

.logo p {
    font-size: 0.65rem;
    letter-spacing: 3px;
    color: var(--clr-accent);
    /* Rose */
    margin-top: -3px;
}

.desktop-nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.desktop-nav a {
    display: inline-block;
    white-space: nowrap;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--clr-accent);
    position: relative;
    padding: 5px 0;
    transform: translateY(-4px);
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--clr-highlight);
    transition: width 0.3s ease;
}

.desktop-nav a.active::after,
.desktop-nav a:hover::after {
    width: 100%;
}

.desktop-nav a.active,
.desktop-nav a:hover {
    color: var(--clr-highlight);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--clr-text);
    transition: 0.3s;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    letter-spacing: 1px;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-accent {
    background: var(--clr-accent);
    color: #ffffff;
    border: 1px solid var(--clr-accent);
}

.btn-accent:hover {
    background: transparent;
    color: var(--clr-accent);
    box-shadow: 0 0 15px rgba(var(--clr-accent-rgb), 0.4);
}

.btn-primary-glow {
    background: var(--clr-accent);
    color: #ffffff;
    border: none;
    box-shadow: 0 0 25px rgba(var(--clr-accent-rgb), 0.6);
    transition: all 0.3s ease;
}

.btn-primary-glow:hover {
    background: var(--clr-accent);
    color: #ffffff;
    box-shadow: 0 0 35px rgba(var(--clr-accent-rgb), 0.9);
    transform: translateY(-2px);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    color: var(--clr-text);
    border: 1px solid var(--clr-highlight);
    backdrop-filter: blur(5px);
    box-shadow: inset 0 0 10px rgba(var(--clr-highlight-rgb), 0.1), 0 0 15px rgba(var(--clr-highlight-rgb), 0.2);
}

.btn-glass:hover {
    background: var(--clr-highlight);
    color: #ffffff;
    border-color: var(--clr-highlight);
    box-shadow: 0 0 25px rgba(var(--clr-highlight-rgb), 0.5);
}

/* --- Hero Section --- */
.hero {
    height: auto;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 140px;
    padding-bottom: 80px;
    overflow: hidden;
    z-index: 1;
}

.hero-content {
    max-width: 1000px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--clr-accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--clr-accent);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--clr-accent-rgb), 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(var(--clr-accent-rgb), 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(var(--clr-accent-rgb), 0);
    }
}

.hero-title {
    font-size: clamp(3rem, 5vw, 5rem);
    margin-bottom: 1.5rem;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-subheadline {
    margin-bottom: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    font-size: 1rem;
    color: var(--clr-text-muted);
}

.hero-subheadline li {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 8px 20px;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top-color: rgba(255, 255, 255, 0.4);
    border-left-color: rgba(255, 255, 255, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
}

.hero-subheadline li::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background: var(--clr-accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--clr-accent);
    transition: transform 0.3s ease;
}

.hero-subheadline li:hover {
    transform: translateY(-4px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(var(--clr-accent-rgb), 0.1));
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(var(--clr-accent-rgb), 0.4);
}

.hero-subheadline li:hover::before {
    transform: scale(1.5);
    box-shadow: 0 0 15px var(--clr-accent), 0 0 25px var(--clr-accent);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

/* --- Premium Dual-Morph Brand Badges --- */
.hero-badge-container {
    position: absolute;
    z-index: 20;
    width: 140px;
    height: 140px;
    animation: slowFloat 6s ease-in-out infinite;
}

.hero-badge-container.badge-left {
    bottom: 60px;
    left: 40px;
}

.hero-badge-container.badge-right {
    bottom: 220px;
    right: 60px;
    animation-delay: -3s;
}

.hero-brand-badge {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    perspective: 1000px;
    transform-style: preserve-3d;
    cursor: pointer;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-brand-badge:hover {
    transform: translateY(-5px) rotateX(15deg) rotateY(-15deg) scale(1.05);
}

@keyframes auraPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.1), inset 0 0 20px rgba(255, 255, 255, 0.05);
    }
    50% {
        transform: scale(1.06);
        box-shadow: 0 0 45px rgba(207, 92, 119, 0.25), inset 0 0 25px rgba(255, 255, 255, 0.1);
    }
}

.badge-glow-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(207, 92, 119, 0.2), rgba(114, 128, 81, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1), inset 0 0 20px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.5s ease;
    animation: auraPulse 4s ease-in-out infinite;
}

.hero-brand-badge:hover .badge-glow-ring {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 40px rgba(207, 92, 119, 0.2), inset 0 0 20px rgba(255, 255, 255, 0.1);
}

/* Engineering HUD Canvas — overflow visible so canvas bleeds outside badge */
#hud-badge-wrap {
    overflow: visible !important;
}

.badge-content {
    position: relative;
    z-index: 3;
    width: 75%;
    height: 75%;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.badge-logo {
    position: absolute;
    width: 85%;
    height: auto;
    object-fit: contain;
    transition: opacity 2s ease-in-out, transform 2s ease-in-out;
}

/* Morph Animation Settings */
.hero-badge-container.badge-left .logo-primary {
    animation: morphPrimary 8s infinite;
}

.hero-badge-container.badge-left .logo-secondary {
    opacity: 0;
    transform: scale(0.8);
    animation: morphSecondary 8s infinite;
}

/* Right badge is offset to create a staggered effect */
.hero-badge-container.badge-right .logo-primary {
    animation: morphPrimary 8s infinite;
    animation-delay: -4s;
}

.hero-badge-container.badge-right .logo-secondary {
    opacity: 0;
    transform: scale(0.8);
    animation: morphSecondary 8s infinite;
    animation-delay: -4s;
}

@keyframes morphPrimary {

    0%,
    40% {
        opacity: 1;
        transform: scale(1);
    }

    50%,
    90% {
        opacity: 0;
        transform: scale(1.1);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes morphSecondary {

    0%,
    40% {
        opacity: 0;
        transform: scale(0.8);
    }

    50%,
    90% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(0.8);
    }
}

@keyframes slowFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--clr-text);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--clr-accent);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        top: 6px;
        opacity: 1;
    }

    100% {
        top: 20px;
        opacity: 0;
    }
}

.scroll-indicator p {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* --- Section Headers --- */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h3 {
    color: var(--clr-highlight);
    font-size: 1.1rem;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--clr-accent);
    text-shadow: none;
    font-weight: 800;
}

.gold-line {
    width: 60px;
    height: 3px;
    background: var(--clr-accent);
    margin: 0 auto;
    box-shadow: 0 0 10px var(--clr-accent);
}

/* --- Animated Shape Divider (Hero to Services) --- */
.hero-waves {
    position: absolute;
    bottom: -5px;
    /* Offset to prevent a hairline gap */
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 10;
}

.waves {
    position: relative;
    width: 100%;
    height: 100%;
    margin-bottom: -7px;
    min-height: 100px;
    max-height: 150px;
}

.parallax>use {
    animation: move-forever 25s cubic-bezier(.55, .5, .45, .5) infinite;
}

.parallax>use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
}

.parallax>use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
}

.parallax>use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
}

.parallax>use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
}

@keyframes move-forever {
    0% {
        transform: translate3d(-90px, 0, 0);
    }

    100% {
        transform: translate3d(85px, 0, 0);
    }
}

/* --- Expertise Wrapper (Combines Services and BIM) --- */
.expertise-wrapper {
    position: relative;
    z-index: 10;
    overflow: hidden;
    /* Solid White Background */
    background: #FFFFFF;
}

[data-theme="dark"] .expertise-wrapper {
    background: linear-gradient(-45deg,
            #121212,
            rgba(207, 92, 119, 0.1),
            #1A1A1A,
            rgba(114, 128, 81, 0.1));
    background-size: 400% 400%;
}

/* --- Services Section --- */
.services {
    position: relative;
    z-index: 2;
    background: transparent;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Ensure grid content stays above background */
.services .container {
    position: relative;
    z-index: 2;
}



.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.glass-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(var(--clr-accent-rgb), 0.1), transparent);
    transform: skewX(-25deg);
    transition: 0.6s;
}

.glass-card:hover::before {
    left: 125%;
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: rgba(var(--clr-accent-rgb), 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.35), 0 0 20px rgba(var(--clr-accent-rgb), 0.1);
}

/* --- 3D Glass Cards (for Services) --- */
.glass-card-3d {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.4) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid transparent;
    border-radius: 20px;
    padding: 15px;
    position: relative;
    box-shadow:
        0 30px 50px rgba(138, 37, 66, 0.15),
        0 0 20px rgba(197, 160, 89, 0.2);
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    will-change: transform;
    animation: antiGravityFloat 6s ease-in-out infinite;
    background-clip: padding-box;
}

.glass-card-3d::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--clr-accent), var(--clr-highlight));
    z-index: -1;
    border-radius: 22px;
    opacity: 0.8;
    box-shadow: 0 0 15px rgba(var(--clr-accent-rgb), 0.5), 0 0 15px rgba(var(--clr-highlight-rgb), 0.5);
    transition: opacity 0.4s ease;
}

@keyframes antiGravityFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

[data-theme="dark"] .glass-card-3d {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow:
        0 30px 50px rgba(0, 0, 0, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.3),
        inset 0 -2px 5px rgba(0, 0, 0, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
}

.glass-inner {
    background: #FFFFFF;
    /* Changed to match the exact logo/header pale pink */
    border-radius: 12px;
    padding: 0;
    height: 100%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 2;
    transition: transform 0.4s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.service-image {
    width: 100%;
    overflow: hidden;
    background: #000;
}

.service-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.08);
}

.service-content {
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
}

.service-content p {
    text-align: center;
    color: var(--clr-highlight);
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.7;
}

.service-content .learn-more {
    margin-top: auto;
}

[data-theme="dark"] .glass-inner {
    background: var(--clr-secondary);
    /* Dark theme keeps its secondary background */
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.glass-card-3d:hover .glass-inner {
    transform: translateZ(20px);
}

.glass-card-3d:hover {
    transform: translateY(-10px) rotateX(2deg) rotateY(-2deg);
    box-shadow:
        10px 40px 60px rgba(0, 0, 0, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.8),
        inset 0 -2px 5px rgba(0, 0, 0, 0.1),
        inset 0 0 20px rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .glass-card-3d:hover {
    box-shadow:
        10px 40px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 1px rgba(255, 255, 255, 0.3),
        inset 0 -2px 5px rgba(0, 0, 0, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
}

.card-icon {
    background: rgba(197, 160, 89, 0.15);
    /* Gold tint */
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(197, 160, 89, 0.4);
    box-shadow: inset 0 0 15px rgba(197, 160, 89, 0.3), 0 0 20px rgba(197, 160, 89, 0.4);
}

.card-icon svg {
    stroke: var(--clr-highlight);
    /* Gold/Olive Green */
    filter: drop-shadow(0 0 5px rgba(197, 160, 89, 0.8));
}

.service-card h4,
.bim-card h4 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--clr-accent);
    /* Maroon text */
    text-shadow: none;
    /* Removed for sharp and clear text */
    font-weight: 800;
    /* Added weight for better clarity */
    min-height: 4rem;
}

.service-card p {
    color: var(--clr-highlight);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.learn-more {
    color: var(--clr-accent);
    font-weight: 800;
    /* Sharp and distinct */
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
}

.learn-more .arrow {
    transition: transform 0.3s ease;
}

.learn-more:hover .arrow {
    transform: translateX(5px);
}

/* --- Services Flip Animation (Retains Front Appearance) --- */
.service-card {
    perspective: 2000px;
    cursor: pointer;
    height: 100%;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.service-card:hover .service-card-inner {
    transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 12px;
}

.service-card-front {
    transform: rotateY(0deg);
    position: relative;
    z-index: 2;
}

.service-card-back {
    transform: rotateY(180deg);
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    z-index: 1;
}

.service-card-back.glass-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.service-card-back p {
    color: var(--clr-highlight);
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* --- BIM Expertise Section --- */
.bim-expertise {
    position: relative;
    z-index: 10;
    overflow: hidden;
    /* Solid White Background */
    background: #FFFFFF;
    background-size: 400% 400%;
    animation: gradientFlow2 15s ease infinite;
}

@keyframes gradientFlow2 {
    0% {
        background-position: 100% 50%;
    }

    50% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

.bim-expertise .container {
    position: relative;
    z-index: 2;
}

.bim-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.bim-card {
    height: 100%;
    cursor: pointer;
    perspective: 2000px;
}

.bim-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.bim-card:hover .bim-card-inner {
    transform: translateY(-10px) rotateY(180deg);
}

.bim-card-front,
.bim-card-back {
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 16px;

    /* Trending Pure Glassmorphism */
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.6);
    border-left: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05), inset 0 0 0 1px rgba(255, 255, 255, 0.1);

    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.4s ease, border-color 0.4s ease, background 0.4s ease;
}

[data-theme="dark"] .bim-card-front,
[data-theme="dark"] .bim-card-back {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.bim-card-front {
    transform: rotateY(0deg);
    z-index: 2;
    position: relative;
}

.bim-card-back {
    transform: rotateY(180deg);
    background: transparent;
    z-index: 1;
    position: absolute;
    top: 0;
    left: 0;
}

.bim-card:hover .bim-card-front,
.bim-card:hover .bim-card-back {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .bim-card:hover .bim-card-front,
[data-theme="dark"] .bim-card:hover .bim-card-back {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.bim-services-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bim-services-list li {
    color: var(--clr-text);
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, color 0.3s ease;
}

.bim-services-list li:hover {
    transform: translateX(10px);
    color: var(--clr-accent);
}

.bim-services-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.bim-services-list li::before {
    content: '⇨';
    color: var(--clr-accent);
    font-size: 1.2rem;
}

.bim-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
    background: #fff;
}

.bim-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.bim-card:hover .bim-image img {
    transform: scale(1.08);
}

.bim-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.bim-content p {
    text-align: center;
}

.bim-content h4 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--clr-text);
}

.bim-content p {
    color: var(--clr-text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* --- Technical Showcase (Process) --- */
.technical-showcase {
    background: var(--clr-primary);
    position: relative;
    overflow: hidden;
}

.showcase-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.text-content .gold-line {
    margin: 0;
    margin-bottom: 2rem;
}

.text-content p {
    color: var(--clr-text-muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.process-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.process-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.check {
    color: var(--clr-accent);
    font-weight: bold;
    background: rgba(var(--clr-accent-rgb), 0.1);
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.visual-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.floating-blueprint {
    width: 250px;
    height: 180px;
    border: 1px solid var(--clr-highlight);
    box-shadow: 0 0 20px rgba(var(--clr-highlight-rgb), 0.2);
    position: relative;
    /* Changed from absolute */
}

.bp-1 {
    align-self: flex-start;
    animation: float 6s ease-in-out infinite;
}

.bp-2 {
    align-self: flex-end;
    border-color: var(--clr-accent);
    box-shadow: 0 0 20px rgba(var(--clr-accent-rgb), 0.2);
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.blueprint-lines {
    width: 100%;
    height: 80%;
    background-image: linear-gradient(var(--clr-highlight) 1px, transparent 1px), linear-gradient(90deg, var(--clr-highlight) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
}

.circle-lines {
    background-image: radial-gradient(circle, var(--clr-accent) 1px, transparent 1px);
    background-size: 15px 15px;
}

.bp-title {
    position: absolute;
    bottom: 10px;
    left: 15px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--clr-text);
    letter-spacing: 2px;
}

/* SVG Animations for Blueprints */
.animated-svg {
    width: 100%;
    height: 70%;
    margin-top: 10px;
    display: block;
}

.svg-draw,
.svg-draw-delayed,
.svg-draw-fast {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: drawPath 6s infinite alternate ease-in-out;
}

.svg-draw-delayed {
    animation-delay: 1.5s;
}

.svg-draw-fast {
    animation-duration: 3s;
    animation-delay: 0.5s;
}

@keyframes drawPath {
    0% {
        stroke-dashoffset: 400;
    }

    40% {
        stroke-dashoffset: 0;
    }

    100% {
        stroke-dashoffset: 0;
    }
}

/* --- Footer --- */
.glass-footer {
    background: var(--clr-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 60px;
    padding-bottom: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h2 span {
    color: var(--clr-accent);
}

.footer-brand p {
    color: var(--clr-highlight);
    font-family: var(--font-heading);
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.company-desc {
    color: var(--clr-text-muted) !important;
    font-family: var(--font-body) !important;
    font-size: 1.05rem !important;
    letter-spacing: normal !important;
    max-width: 400px;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--clr-text);
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: var(--clr-text-muted);
}

.footer-links ul li a:hover {
    color: var(--clr-accent);
    padding-left: 5px;
}

.footer-contact p {
    color: var(--clr-text-muted);
    margin-bottom: 0.8rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.footer-bottom {
    background: #CF5C77;
    padding: 1.2rem 0;
    width: 100%;
}

.footer-bottom-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.footer-bottom p {
    margin: 0;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
}

.scroll-top-btn {
    position: absolute;
    right: 5%;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-top-btn:hover {
    background: rgba(0, 0, 0, 0.3);
    border-color: #ffffff;
    transform: translateY(-3px);
}

@media (max-width: 576px) {
    .footer-bottom-inner {
        padding: 0 50px 0 10px;
        /* Add padding to prevent text overlap with absolute button */
        text-align: center;
    }
}

/* --- Responsive Design (Mobile, Tablet, Laptop) --- */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .showcase-content {
        gap: 2rem;
    }

    .bim-card {
        flex: 0 1 calc(50% - 1rem);
    }
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .desktop-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--clr-primary);
        padding: 2rem;
        border-bottom: 1px solid var(--clr-accent);
    }

    .desktop-nav.active {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .desktop-nav ul {
        flex-direction: column;
        text-align: center;
        width: 100%;
        gap: 1.5rem;
    }

    .desktop-nav a {
        transform: none;
        padding: 5px 0;
        font-size: 1.1rem;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-actions {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }

    .nav-actions .btn-accent {
        display: none;
    }

    .hero-content {
        margin-top: 2rem;
        padding: 0 10px;
    }

    .hero-description {
        padding: 1rem !important;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 60%;
        gap: 0.8rem;
    }

    .hero-badge-container {
        transform: scale(0.5);
        transform-origin: bottom center;
        bottom: 20px;
    }

    .hero-badge-container.badge-left {
        left: -10px;
    }

    .hero-badge-container.badge-right {
        right: -10px;
    }

    .showcase-content {
        grid-template-columns: 1fr;
    }

    .visual-content {
        margin-top: 3rem;
    }

    .bim-card {
        flex: 0 1 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .section-header h2 {
        font-size: 2.8rem;
    }

    .process-list {
        grid-template-columns: 1fr;
    }

    .floating-blueprint {
        width: 200px;
        height: 140px;
    }
}

/* --- Theme Switcher --- */
.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--clr-text);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-right: 0.5rem;
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.08) rotate(15deg);
    box-shadow: 0 0 12px rgba(var(--clr-accent-rgb), 0.35);
}

/* Icons styling */
.theme-toggle-btn svg {
    transition: transform 0.3s ease;
}

.theme-toggle-btn:active svg {
    transform: scale(0.8);
}

/* Light Theme Switch adjustments */
[data-theme="light"] .theme-toggle-btn {
    background: rgba(114, 128, 81, 0.08);
    border-color: rgba(114, 128, 81, 0.15);
    color: var(--clr-text);
}

[data-theme="light"] .theme-toggle-btn:hover {
    background: rgba(114, 128, 81, 0.15);
    box-shadow: 0 0 12px rgba(var(--clr-highlight-rgb), 0.25);
}

[data-theme="light"] .sun-icon {
    display: none !important;
}

[data-theme="light"] .moon-icon {
    display: block !important;
}

/* Text color overrides for compatibility in light mode */
[data-theme="light"] body {
    color: var(--clr-text);
    background-color: var(--clr-background);
}

[data-theme="light"] .bg-overlay {
    background: var(--clr-overlay);
}

[data-theme="light"] .glass-nav {
    border-bottom-color: var(--glass-border);
}

[data-theme="light"] .glass-card {
    background: rgba(255, 255, 255, 0.45);
    border-color: rgba(114, 128, 81, 0.12);
}

[data-theme="light"] .glass-card:hover {
    border-color: rgba(var(--clr-accent-rgb), 0.35);
    box-shadow: 0 15px 30px rgba(114, 128, 81, 0.15), 0 0 20px rgba(var(--clr-accent-rgb), 0.08);
}

[data-theme="light"] .bim-card-front,
[data-theme="light"] .bim-card-back {
    background: rgba(255, 255, 255, 0.65);
    border-color: var(--glass-border);
    box-shadow:
        inset 0 0 20px rgba(255, 255, 255, 0.5),
        0 15px 35px rgba(114, 128, 81, 0.1);
}

[data-theme="light"] .bim-card-back {
    background: #FAF0F2;
}

[data-theme="light"] .bim-card:hover .bim-card-front,
[data-theme="light"] .bim-card:hover .bim-card-back {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(var(--clr-accent-rgb), 0.4);
    box-shadow:
        inset 0 0 20px rgba(var(--clr-accent-rgb), 0.05),
        0 20px 40px rgba(114, 128, 81, 0.15),
        0 0 30px rgba(var(--clr-accent-rgb), 0.15);
}

[data-theme="light"] .bim-services-list li {
    border-bottom-color: rgba(114, 128, 81, 0.1);
    color: var(--clr-text);
}

@media (max-width: 768px) {
    [data-theme="light"] .desktop-nav {
        background: var(--clr-primary);
    }
}

[data-theme="light"] .mobile-menu-btn span {
    background: var(--clr-text);
}

[data-theme="light"] .mouse {
    border-color: var(--clr-text);
}

[data-theme="light"] .glass-footer {
    background: var(--clr-secondary);
    border-top-color: rgba(114, 128, 81, 0.15);
}

[data-theme="light"] .footer-bottom {
    border-top-color: rgba(114, 128, 81, 0.1);
    color: rgba(92, 74, 77, 0.7);
}

.main-heading {
    color: #ffffff;
    /* தூய்மையான வெள்ளை நிறம் எழுத்துக்களுக்கு */
    font-weight: 800;
    line-height: 1.2;
    /* இருண்ட பின்னணியில் எழுத்துக்களை பிரிக்க கருப்பு மற்றும் பிங்க் நிழல் */
    text-shadow:
        2px 2px 4px rgba(0, 0, 0, 0.9),
        /* அடர்த்தியான கருப்பு நிழல் (Contrast-க்காக) */
        0 0 15px rgba(194, 89, 117, 0.8),
        /* உங்கள் லோகோவின் பிங்க் நிற ஒளி (Glow) */
        0 0 30px rgba(194, 89, 117, 0.5);
}

/* ஒரு வரியை மட்டும் லோகோ நிறத்தில் காட்ட வேண்டுமானால் */
.main-heading .highlight {
    color: #C25975;
    /* மெரூன்/பிங்க் நிறம் */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
    /* இதற்கு கருப்பு நிழல் மட்டும் போதும் */
}

/* --- Contact Section (Trikaal Tech Inspired) --- */
.contact-section {
    position: relative;
    z-index: 2;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.contact-info-col .contact-desc {
    font-size: 1.05rem;
    color: var(--clr-text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 28px;
    height: 28px;
    stroke: var(--clr-highlight);
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.contact-text {
    font-size: 1.05rem;
    color: var(--clr-text);
    line-height: 1.6;
}

.contact-text strong {
    color: var(--clr-accent);
    font-weight: 700;
}

/* Floating Label Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group.floating {
    position: relative;
    width: 100%;
}

.form-group.floating input,
.form-group.floating textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.2rem 1rem 0.8rem;
    color: var(--clr-text);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.form-group.floating textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group.floating input:focus,
.form-group.floating textarea:focus {
    border-color: var(--clr-highlight);
    box-shadow: 0 0 10px rgba(var(--clr-highlight-rgb), 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.form-group.floating label {
    position: absolute;
    left: 1rem;
    top: 1.2rem;
    color: var(--clr-text-muted);
    font-size: 1rem;
    pointer-events: none;
    transition: 0.3s ease all;
    transform-origin: left top;
}

.form-group.floating input:focus+label,
.form-group.floating input:not(:placeholder-shown)+label,
.form-group.floating textarea:focus+label,
.form-group.floating textarea:not(:placeholder-shown)+label {
    top: 0.4rem;
    left: 1rem;
    font-size: 0.75rem;
    color: var(--clr-highlight);
    font-weight: 600;
}

[data-theme="light"] .form-group.floating input,
[data-theme="light"] .form-group.floating textarea {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--clr-bg);
}

[data-theme="light"] .form-group.floating input:focus,
[data-theme="light"] .form-group.floating textarea:focus {
    background: #fff;
    border-color: var(--clr-accent);
}

[data-theme="light"] .form-group.floating label {
    color: rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .form-group.floating input:focus+label,
[data-theme="light"] .form-group.floating input:not(:placeholder-shown)+label,
[data-theme="light"] .form-group.floating textarea:focus+label,
[data-theme="light"] .form-group.floating textarea:not(:placeholder-shown)+label {
    color: var(--clr-accent);
}



/* Light mode overrides for better readability in the Contact Section */
[data-theme="light"] .contact-text {
    color: #333333;
}

[data-theme="light"] .contact-desc {
    color: #555555;
}

[data-theme="light"] .contact-text strong {}

/* --- Contact Section (Trikaal Tech Inspired) --- */
.contact-section {
    position: relative;
    z-index: 2;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.contact-info-col .contact-desc {
    font-size: 1.05rem;
    color: var(--clr-text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 28px;
    height: 28px;
    stroke: var(--clr-highlight);
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.contact-text {
    font-size: 1.05rem;
    color: var(--clr-text);
    line-height: 1.6;
}

.contact-text strong {
    color: var(--clr-accent);
    font-weight: 700;
}

/* Floating Label Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group.floating {
    position: relative;
    width: 100%;
}

.form-group.floating input,
.form-group.floating textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.2rem 1rem 0.8rem;
    color: var(--clr-text);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.form-group.floating textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group.floating input:focus,
.form-group.floating textarea:focus {
    border-color: var(--clr-highlight);
    box-shadow: 0 0 10px rgba(var(--clr-highlight-rgb), 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.form-group.floating label {
    position: absolute;
    left: 1rem;
    top: 1.2rem;
    color: var(--clr-text-muted);
    font-size: 1rem;
    pointer-events: none;
    transition: 0.3s ease all;
    transform-origin: left top;
}

.form-group.floating input:focus+label,
.form-group.floating input:not(:placeholder-shown)+label,
.form-group.floating textarea:focus+label,
.form-group.floating textarea:not(:placeholder-shown)+label {
    top: 0.4rem;
    left: 1rem;
    font-size: 0.75rem;
    color: var(--clr-highlight);
    font-weight: 600;
}

[data-theme="light"] .form-group.floating input,
[data-theme="light"] .form-group.floating textarea {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--clr-bg);
}

[data-theme="light"] .form-group.floating input:focus,
[data-theme="light"] .form-group.floating textarea:focus {
    background: #fff;
    border-color: var(--clr-accent);
}

[data-theme="light"] .form-group.floating label {
    color: rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .form-group.floating input:focus+label,
[data-theme="light"] .form-group.floating input:not(:placeholder-shown)+label,
[data-theme="light"] .form-group.floating textarea:focus+label,
[data-theme="light"] .form-group.floating textarea:not(:placeholder-shown)+label {
    color: var(--clr-accent);
}



/* Light mode overrides for better readability in the Contact Section */
[data-theme="light"] .contact-text {
    color: #333333;
}

[data-theme="light"] .contact-desc {
    color: #555555;
}

[data-theme="light"] .contact-text strong {
    color: var(--clr-accent);
}

[data-theme="light"] .contact-icon {
    stroke: var(--clr-highlight);
}

[data-theme="light"] .contact-item {
    border-left: 2px solid rgba(0, 0, 0, 0.05);
    padding-left: 10px;
    margin-left: 10px;
}

/* --- Section Header Styles --- */
.section-header h3 {
    color: var(--clr-highlight);
    font-size: 1.1rem;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: var(--clr-accent);
    font-weight: 800;
    line-height: 1.1;
}

.gold-line {
    width: 60px;
    height: 3px;
    background: var(--clr-accent);
    margin: 0 auto;
}

/* Specific Styles for Contact Page matching Trikaal Tech Layout */
.contact-section {
    padding-top: 150px;
    padding-bottom: 100px;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* LEFT COLUMN */
.contact-info-col {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.contact-info-col h3 {
    color: var(--clr-highlight);
    font-size: 1.1rem;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
}

.contact-info-col h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: var(--clr-accent);
    font-weight: 800;
    line-height: 1.1;
}

.contact-info-col>p {
    color: var(--clr-text-muted);
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
    line-height: 1.6;
}

.address-block {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px dashed rgba(var(--clr-accent-rgb), 0.3);
}

.address-block:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 1rem;
}

.address-block h4 {
    color: var(--clr-accent);
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 1px;
}

.address-item {
    margin-bottom: 1.2rem;
    padding-left: 30px;
}

.address-item h5 {
    color: var(--clr-highlight);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.address-item p {
    color: var(--clr-text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 0.3rem;
}

.contact-details-box {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--clr-accent);
    margin-top: 1.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

[data-theme="light"] .contact-details-box {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--clr-accent);
}

.contact-details-box p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: var(--clr-text);
}

.contact-details-box p:last-child {
    margin-bottom: 0;
}

.contact-details-box a {
    color: var(--clr-text);
    transition: color 0.3s ease;
}

.contact-details-box a:hover {
    color: var(--clr-accent);
}

/* RIGHT COLUMN (ENHANCED GLASS GRAPHICS) */
.contact-form-col {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    border-left: 1px solid rgba(255, 255, 255, 0.4);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    padding: 3.5rem 3rem;
    border-radius: 24px;
    height: fit-content;
    box-shadow: 0 35px 60px rgba(0, 0, 0, 0.25), inset 0 0 20px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    z-index: 1;
    transform: translateZ(0);
    /* Hardware acceleration for blur */
}

/* Glowing Orbs Behind Form (Stronger for better glass effect) */
.contact-form-col::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(var(--clr-accent-rgb), 0.6) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    filter: blur(40px);
    animation: pulseOrb 8s infinite alternate;
}

.contact-form-col::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(var(--clr-highlight-rgb), 0.5) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    filter: blur(40px);
    animation: pulseOrb 6s infinite alternate-reverse;
}

@keyframes pulseOrb {
    0% {
        transform: scale(1) translate(0, 0);
    }

    100% {
        transform: scale(1.5) translate(-20px, 20px);
    }
}

/* Floating Graphic Elements */
.floating-graphic {
    position: absolute;
    z-index: -1;
    opacity: 0.1;
    pointer-events: none;
    animation: floatUpDown 6s ease-in-out infinite;
}

.fg-1 {
    top: 30px;
    right: 30px;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
    color: var(--clr-accent);
}

.fg-2 {
    bottom: 100px;
    right: -20px;
    width: 120px;
    height: 120px;
    animation-delay: -3s;
    color: var(--clr-highlight);
}

@keyframes floatUpDown {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(15deg);
    }
}

.contact-form-col h3 {
    color: var(--clr-highlight);
    font-size: 1.1rem;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
}

.contact-form-col h2 {
    font-size: 2.8rem;
    margin-bottom: 2.5rem;
    color: var(--clr-accent);
    font-weight: 800;
    line-height: 1.1;
}

.input-group {
    position: relative;
    margin-bottom: 1.8rem;
}

.input-group svg {
    position: absolute;
    left: 18px;
    top: 15px;
    width: 20px;
    height: 20px;
    color: var(--clr-text-muted);
    transition: color 0.3s ease, transform 0.3s ease;
    z-index: 2;
}

.form-control {
    width: 100%;
    padding: 15px 20px 15px 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: var(--clr-text);
    font-family: var(--font-body);
    transition: all 0.3s ease;
    font-size: 1rem;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.form-control:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--clr-accent);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.2), inset 0 0 10px rgba(255, 255, 255, 0.05);
}

.form-control:focus+svg,
.input-group:focus-within svg {
    color: var(--clr-accent);
    transform: scale(1.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

[data-theme="light"] .form-control {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid rgba(0, 0, 0, 0.2);
    color: #333333;
}

[data-theme="light"] .form-control:focus {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1), inset 0 0 10px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .form-control::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

/* Animated Send Button */
.btn-send {
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, var(--clr-accent), #e37e96);
    color: #fff !important;
    border: none;
    box-shadow: 0 10px 20px rgba(var(--clr-accent-rgb), 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 700;
    letter-spacing: 2px;
    border-radius: 50px;
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    font-family: var(--font-heading);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-send::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-25deg);
    transition: 0.6s;
}

.btn-send:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 25px rgba(var(--clr-accent-rgb), 0.5);
}

.btn-send:hover::before {
    left: 125%;
}

.btn-send svg {
    transition: transform 0.3s ease;
}

.btn-send:hover svg {
    transform: translateX(5px) translateY(-5px);
}

@media (max-width: 991px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-form-col {
        padding: 2rem;
    }
}

/* ==========================================================================
   Careers Section Styles
   ========================================================================== */
.careers-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.job-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.job-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

[data-theme="light"] .job-card {
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

.job-header {
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--clr-text);
    transition: background 0.3s ease;
}

.job-header:hover {
    background: rgba(var(--clr-accent-rgb), 0.1);
}

[data-theme="light"] .job-header {
    background: rgba(255, 255, 255, 0.3);
}

[data-theme="light"] .job-header:hover {
    background: rgba(255, 255, 255, 0.6);
}

.job-header.active {
    background: #0084c8;
    color: #ffffff;
    border-bottom: none;
}

[data-theme="light"] .job-header.active {
    background: #0084c8;
    color: #ffffff;
    border-bottom: none;
}

.job-body {
    padding: 1.5rem;
    display: none;
}

.job-body.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991px) {
    .careers-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* --- About Us Page Specific Styles --- */
.quick-link {
    color: var(--clr-text);
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    padding: 8px 16px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.quick-link:hover {
    color: #ffffff;
    background: var(--clr-accent);
    box-shadow: 0 0 15px rgba(var(--clr-accent-rgb), 0.5);
}

.highlight-link {
    color: var(--clr-accent);
    border: 1px solid var(--clr-accent);
}

.highlight-link:hover {
    color: #ffffff;
}

.value-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}


@media (max-width: 768px) {
    .about-row {
        gap: 2rem !important;
        flex-direction: column !important;
    }

    .about-row .col {
        min-width: 100% !important;
    }

    .logo img {
        height: 45px !important;
    }

    .nav-container {
        padding: 0 1rem;
    }
}

/* Hide theme toggle button */
.theme-toggle-btn {
    display: none !important;
}

/* Align pills vertically with nav links */
.top-contact {
    transform: translateY(-2px);
}

/* Contact Numbers Highlight & Animation */
.top-contact-item {
    background: transparent;
    padding: 5px 14px;
    border-radius: 30px;
    border: 1.5px solid rgba(128, 128, 128, 0.25);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* The sweeping background */
.top-contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: rgba(207, 92, 119, 0.9);
    /* Solid accent color */
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: -1;
    border-radius: 30px;
}

.top-contact-item:hover::before {
    /* width: 100%; */
}

.top-contact-item:hover {
    /* transform: translateY(-2px); */
    /* box-shadow: 0 6px 15px rgba(207, 92, 119, 0.35); */
    /* border-color: rgba(207, 92, 119, 0.9); */
}

.top-contact-item a {
    transition: color 0.4s ease;
}

.top-contact-item:hover a {
    /* color: #ffffff !important; */
}

/* Added a continuous subtle floating pulse to draw attention to the numbers */
@keyframes subtlePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(207, 92, 119, 0.2);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(207, 92, 119, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(207, 92, 119, 0);
    }
}

.top-contact-item {
    /* animation: subtlePulse 3s infinite; */
}

.top-contact-item:hover {
    /* animation: none; */
}

/* ===== Thalman Premium Ultra Interaction ===== */
/* ===== Thalman Premium Ultra Interaction ===== */
.thalman-premium-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 95px;
    height: 95px;
    margin-right: 2.2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    border-top: 1px solid rgba(255, 255, 255, 1);
    border-left: 1px solid rgba(255, 255, 255, 0.9);
    border-right: 1px solid rgba(255, 255, 255, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.4s ease;
    cursor: pointer;
    overflow: hidden;
    animation: premiumGlowPulse 4s infinite ease-in-out;
}

.thalman-badge-wrapper {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    margin-right: 3rem; /* Space for the orbiting rings */
}

.thalman-badge-wrapper .thalman-premium-badge {
    margin-right: 0; /* Remove margin inside wrapper */
}

/* Blob Wrapper for Brothers & Co. Logo */
.brothers-blob-wrapper {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    margin-right: 2.2rem;
}

.brothers-blob-wrapper .thalman-premium-badge {
    margin-right: 0 !important;
}

.blob-circle {
    position: absolute;
    border-radius: 50%;
    z-index: -1;
    mix-blend-mode: multiply;
}

body.dark-mode .blob-circle {
    mix-blend-mode: screen;
}

.blob-pink {
    width: 75px;
    height: 75px;
    background: rgba(216, 90, 120, 0.7);
    left: -15px;
    top: -15px;
    animation: blobFloat1 6s infinite alternate ease-in-out;
}

.blob-yellow {
    width: 65px;
    height: 65px;
    background: rgba(235, 186, 22, 0.6);
    right: -10px;
    top: -10px;
    animation: blobFloat2 7s infinite alternate-reverse ease-in-out;
}

.blob-green {
    width: 85px;
    height: 85px;
    background: rgba(114, 128, 81, 0.5);
    right: -20px;
    bottom: -15px;
    animation: blobFloat3 8s infinite alternate ease-in-out;
}

@keyframes blobFloat1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(5px, 10px) scale(1.05); }
}

@keyframes blobFloat2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-10px, 5px) scale(0.95); }
}

@keyframes blobFloat3 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-5px, -10px) scale(1.02); }
}

.orbital-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1px dashed;
    pointer-events: none;
    z-index: -1;
    transform-style: preserve-3d;
}

.orbital-ring.ring1 {
    width: 140px;
    height: 140px;
    border-color: rgba(216, 90, 120, 0.35);
    color: rgba(216, 90, 120, 0.8);
    animation: orbitSpin1 8s linear infinite;
}

.orbital-ring.ring2 {
    width: 160px;
    height: 160px;
    border-color: rgba(114, 128, 81, 0.35);
    color: rgba(114, 128, 81, 0.8);
    animation: orbitSpin2 12s linear infinite;
}

.orbital-ring.ring3 {
    width: 180px;
    height: 180px;
    border-color: rgba(235, 186, 22, 0.35);
    color: rgba(235, 186, 22, 0.8);
    animation: orbitSpin3 16s linear infinite;
}

@keyframes orbitSpin1 {
    0% { transform: translate(-50%, -50%) rotateX(65deg) rotateY(20deg) rotateZ(0deg); }
    100% { transform: translate(-50%, -50%) rotateX(65deg) rotateY(20deg) rotateZ(360deg); }
}

@keyframes orbitSpin2 {
    0% { transform: translate(-50%, -50%) rotateX(75deg) rotateY(-30deg) rotateZ(0deg); }
    100% { transform: translate(-50%, -50%) rotateX(75deg) rotateY(-30deg) rotateZ(-360deg); }
}

@keyframes orbitSpin3 {
    0% { transform: translate(-50%, -50%) rotateX(55deg) rotateY(15deg) rotateZ(0deg); }
    100% { transform: translate(-50%, -50%) rotateX(55deg) rotateY(15deg) rotateZ(360deg); }
}

.orbital-ring::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    width: 8px;
    height: 8px;
    background: currentColor;
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px currentColor, 0 0 15px currentColor;
}


/* Moving Sheen Animation */
.thalman-premium-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(216, 90, 120, 0.05) 40%,
            rgba(216, 90, 120, 0.15) 50%,
            rgba(216, 90, 120, 0.05) 60%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    animation: premiumSheen 5s infinite;
    z-index: 1;
    pointer-events: none;
}

/* Circular Accent Ring on Hover */
.thalman-premium-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: border-color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 3;
    pointer-events: none;
}

.thalman-premium-badge:hover {
    /* Removed scale(1.03) to prevent webkit rendering blur */
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15), 0 5px 15px rgba(0, 0, 0, 0.08);
    animation-play-state: paused;
}

.thalman-premium-badge:hover::after {
    border-color: #D85A78;
    /* Soft pink brand color circular accent */
}

.thalman-premium-badge img {
    max-height: 85px;
    /* Fit circle completely */
    max-width: 85px;
    /* Fit circle completely */
    height: auto;
    width: auto;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 2;
    margin-top: -4px; /* Visually center vertically */
    margin-left: -2px; /* Visually center horizontally */
    /* Removed translateZ and will-change to completely eliminate Safari/Chrome hover blur */
}

/* Highlighted Pulsing Border Contact Buttons */
.top-contact-item {
    position: relative;
    padding: 6px 16px;
    border-radius: 30px;
    background: #ffffff;
    border: 1px solid #CF5C77; /* Slightly thinner border for subtler look */
    /* box-shadow: 0 0 8px rgba(207, 92, 119, 0.3), inset 0 0 2px rgba(207, 92, 119, 0.1); */
    /* animation: contactPulse 2.5s infinite alternate; */
    transition: all 0.3s ease;
    overflow: hidden;
}

@keyframes contactPulse {
    0% {
        box-shadow: 0 0 8px rgba(207, 92, 119, 0.3), inset 0 0 2px rgba(207, 92, 119, 0.1);
        border-color: rgba(207, 92, 119, 0.8);
    }
    100% {
        box-shadow: 0 0 15px rgba(207, 92, 119, 0.5), 0 0 5px rgba(207, 92, 119, 0.2), inset 0 0 4px rgba(207, 92, 119, 0.15);
        border-color: #f5849c;
    }
}

/* Shine effect on hover */
.top-contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-20deg);
    transition: all 0.5s ease;
    pointer-events: none; /* Prevents hover flickering */
}

.top-contact-item:hover::before {
    left: 150%;
}

.top-contact-item:hover {
    /* transform: translateY(-2px); */
    /* background: #CF5C77; */
    /* color: #ffffff !important; */
}

.top-contact-item:hover a {
    /* color: #ffffff !important; */
}

.top-contact-item a {
    color: #8c1c2b; /* Dark red/maroon */
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none;
}

/* Flag Icon Borders inside Pill */
.top-contact-item img {
    border: 1px solid #b3b3b3; /* Darker border so white parts of flags are visible */
    border-radius: 2px;
    box-sizing: content-box;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* Dark Mode Pill */
body.dark-mode .top-contact-item {
    background: var(--bg-dark);
}

body.dark-mode .top-contact-item:hover {
    background: #CF5C77;
}

body.dark-mode .top-contact-item:hover {
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.4), 
        inset 0 1px 3px rgba(255, 255, 255, 0.25);
}

body.dark-mode .top-contact-item a {
    color: #ff9fb0 !important; /* Soft pink/red for dark mode */
}

body.dark-mode .top-contact-item img {
    border-color: rgba(255, 255, 255, 0.15);
}

@keyframes premiumSheen {

    0%,
    20% {
        left: -150%;
    }

    80%,
    100% {
        left: 150%;
    }
}

@keyframes premiumGlowPulse {

    0%,
    100% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    }

    50% {
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 0 25px rgba(216, 90, 120, 0.15);
    }
}

@keyframes premiumBlob {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(25px, 15px) scale(1.15);
    }
}

@keyframes premiumBlob2 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-20px, -20px) scale(1.2);
    }
}

@keyframes thalmanFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-5px);
    }
}

.logo-container {
    display: inline-block;
    position: relative;
    overflow: hidden; 
    opacity: 0;
    transform: translateX(-30px) scale(0.8);
    animation: logoReveal 1s ease forwards, floatLogo 4s ease-in-out infinite 1s;
    transition: transform 0.4s ease, filter 0.4s ease;
    line-height: 0;
    padding: 2px;
}

.logo-container:hover {
    animation-play-state: paused;
    transform: scale(1.03) translateY(-2px);
    filter: drop-shadow(0 0 10px rgba(212, 72, 106, 0.4));
}

.logo-container::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.5),
        transparent
    );
    transform: rotate(25deg);
    pointer-events: none;
    z-index: 5;
}

.logo-container:hover::after {
    animation: shineHover 0.8s ease;
}

@keyframes logoReveal {
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes floatLogo {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-4px); }
}

@keyframes shineHover {
    from { left: -100%; }
    to { left: 200%; }
}

.logo-base {
    height: 55px;
    width: auto;
    display: block;
}
.logo-glow {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: auto;
    max-width: none;
    pointer-events: none;
    opacity: 0;
}
/* Olive glow for B */
.logo-glow.part-b {
    clip-path: polygon(0 0, 22% 0, 22% 100%, 0 100%);
    filter: brightness(1.2) drop-shadow(0 0 6px rgba(114, 128, 81, 0.9));
    animation: glowSequenceB 4s infinite;
}
/* Pink glow for & Co (Disabled) */
.logo-glow.part-co {
    display: none;
}
/* Pink glow for Tagline (Disabled) */
.logo-glow.part-tag {
    display: none;
}

@keyframes glowSequenceB {
    0%, 40% { opacity: 0; }
    50% { opacity: 1; }
    70% { opacity: 0; }
    100% { opacity: 0; }
}

/* The Energy Particle tracking the 'B' */
.energy-particle {
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 6px 2px rgba(114, 128, 81, 1);
    /* Tracing the left stem, bottom loop, then top loop of the B */
    offset-path: path("M 4 5 L 4 50 C 45 50, 45 27, 25 27 C 45 27, 45 5, 4 5 Z");
    animation: particleTravel 4s infinite ease-in-out;
    opacity: 0;
}

@keyframes particleTravel {
    0%, 5% { offset-distance: 0%; opacity: 0; }
    10% { opacity: 1; }
    40% { offset-distance: 100%; opacity: 1; }
    45%, 100% { opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════
   PREMIUM CORPORATE — "Brothers & Co." Typography System
   Effects: Metallic Reflection Sweep + Aurora Underline
   Inspired: Apple · Stripe · Bloomberg · Rolls-Royce
   ═══════════════════════════════════════════════════════════ */

/* ── Base h2 wrapper ── */
.section-header h2.about-heading {
    color: var(--clr-heading-main) !important;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.01em;
    text-shadow: none !important;
}

/* ── Highlight Span: Gradient + Metallic Sweep ── */
.section-header h2.about-heading .highlight {
    position: relative;
    display: inline-block;

    /*
     * Base rose-crimson gradient
     * with embedded metallic reflection band
     *
     * The band is a cool silver-rose sheen (not white/glow)
     * it mimics real light reflecting off polished metal letters
     *
     * Gradient angle 108° = diagonal, like angled studio light
     */
    background: linear-gradient(
        108deg,
        #7A1525  0%,       /* deep wine                */
        #A62040  18%,      /* dark crimson             */
        #C43055  30%,      /* rose-red                 */
        /* ── metallic reflection band ──               */
        rgba(210, 140, 155, 0.00) 37%,   /* fade in     */
        rgba(235, 185, 195, 0.45) 41%,   /* silver-rose */
        rgba(248, 218, 223, 0.70) 44%,   /* peak sheen  */
        rgba(235, 185, 195, 0.45) 47%,   /* silver-rose */
        rgba(210, 140, 155, 0.00) 51%,   /* fade out    */
        /* ── resume base ──                            */
        #D94F73  62%,      /* #D94F73 brand crimson    */
        #C63D60  80%,      /* mid rose                 */
        #932038  96%,      /* dark close               */
        #7A1525  100%
    ) !important;

    background-size: 300% 100% !important;
    background-position: 120% center !important;

    -webkit-background-clip: text !important;
    background-clip:         text !important;
    -webkit-text-fill-color: transparent !important;

    font-weight: 900;
    letter-spacing: 0.025em;

    /* Very soft warmth — not a glow, just depth */
    filter:
        drop-shadow(0 2px 6px  rgba(160, 30, 55, 0.10))
        drop-shadow(0 0  18px  rgba(160, 30, 55, 0.06)) !important;

    /* Metallic sweep — 8s cycle */
    animation: metallicReflectionSweep 8s
               cubic-bezier(0.45, 0.05, 0.55, 0.95)
               infinite !important;
}

/* ── Glass-like sheen — top half of letterforms ── */
.section-header h2.about-heading .highlight::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 46%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.06) 0%,
        rgba(255, 255, 255, 0.01) 65%,
        transparent 100%
    );
    pointer-events: none;
    border-radius: 1px;
    z-index: 1;
}

/* ══ Aurora Underline ══
 * A gradient stripe that continuously flows left → right
 * Text stays completely static — only the underline moves
 * Speed: 3s continuous loop (smooth, not jarring)
 * Feel: modern fintech / AI company accent line
 */
.section-header h2.about-heading .highlight::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: -4%;
    width: 108%;
    height: 3px;
    /* Extra-wide gradient so we can scroll it smoothly */
    background: linear-gradient(
        90deg,
        transparent            0%,
        rgba(140, 25, 50, 0.2) 8%,
        rgba(197, 48, 83, 0.6) 20%,
        rgba(217, 79, 115, 0.9) 33%,  /* #D94F73 peak     */
        rgba(243,139,168, 1.0) 50%,   /* #F38BA8 highlight*/
        rgba(217, 79, 115, 0.9) 67%,
        rgba(197, 48, 83, 0.6) 80%,
        rgba(140, 25, 50, 0.2) 92%,
        transparent            100%
    );
    background-size: 200% 100%;
    background-position: 100% 0;
    border-radius: 3px;
    filter: blur(0.5px);
    /* Continuous aurora flow */
    animation: auroraUnderlineFlow 3s linear infinite;
}

.animated-gradient-line {
    position: absolute;
    bottom: 0px;
    left: 0%;
    width: 100%;
    height: 3px;
    background: linear-gradient(
        90deg,
        transparent            0%,
        rgba(140, 25, 50, 0.2) 8%,
        rgba(197, 48, 83, 0.6) 20%,
        rgba(217, 79, 115, 0.9) 33%,
        rgba(243,139,168, 1.0) 50%,
        rgba(217, 79, 115, 0.9) 67%,
        rgba(197, 48, 83, 0.6) 80%,
        rgba(140, 25, 50, 0.2) 92%,
        transparent            100%
    );
    background-size: 200% 100%;
    border-radius: 3px;
    filter: blur(0.5px);
    animation: auroraUnderlineFlow 3s linear infinite;
    pointer-events: none;
}

/* ── Dark theme ── */
[data-theme="dark"] .section-header h2.about-heading {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.55) !important;
}

[data-theme="dark"] .section-header h2.about-heading .highlight {
    background: linear-gradient(
        108deg,
        #C4415E  0%,
        rgba(235, 185, 200, 0.00) 37%,
        rgba(250, 215, 225, 0.55) 41%,
        rgba(255, 240, 244, 0.78) 44%,
        rgba(250, 215, 225, 0.55) 47%,
        rgba(235, 185, 200, 0.00) 51%,
        #F38BA8  65%,
        #EE8FA3  85%,
        #D4697E  100%
    ) !important;
    background-size: 300% 100% !important;
    background-position: 120% center !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    filter:
        drop-shadow(0 0 10px rgba(243, 139, 168, 0.12))
        drop-shadow(0 0 25px rgba(243, 139, 168, 0.06)) !important;
    animation: metallicReflectionSweep 8s
               cubic-bezier(0.45, 0.05, 0.55, 0.95)
               infinite !important;
}

/* ══════════════════════════════════════════
   KEYFRAMES
   ══════════════════════════════════════════

   metallicReflectionSweep — 8-second cycle
   ─────────────────────────────────────────
    0 – 15%  : Band rests far right (off-screen)
   15 – 40%  : Glides diagonally left through letters
   40 – 100% : Band rests far left  (off-screen)
   Pause of ~4.8s between each sweep = expensive feel

   auroraUnderlineFlow — continuous 3s loop
   ─────────────────────────────────────────
   Gradient slides right-to-left seamlessly
   Like a live colour accent beneath the title
   ══════════════════════════════════════════ */

@keyframes metallicReflectionSweep {
    0%,  15%  { background-position:  120% center; }
    40%, 100% { background-position: -120% center; }
}

@keyframes auroraUnderlineFlow {
    0%   { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* Thalman Animated Glass Border Card */
.thalman-glass-card {
    position: relative;
    padding: 3rem;
    border-radius: 24px;
    background: transparent;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
    z-index: 1;
}

/* Animated Gradient Rim (Outer Glow/Border) */
.thalman-glass-card::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(207, 92, 119, 0.6), rgba(114, 128, 81, 0.5), rgba(207, 92, 119, 0.6));
    background-size: 200% 200%;
    animation: glassRimFlow 4s ease infinite;
    z-index: -2;
    filter: blur(6px);
}

/* Pure White Background Layer (Inside the Card) */
.thalman-glass-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-left: 8px solid rgba(207, 92, 119, 0.85); /* Pink left accent */
    z-index: -1;
}

@keyframes glassRimFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Contact Numbers Highlight & Sequential Glow */
.top-contact-item {
    background: #ffffff;
    padding: 5px 14px;
    border-radius: 30px;
    border: 1px solid rgba(207, 92, 119, 0.3);
    box-shadow: 0 2px 6px rgba(207, 92, 119, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    /* animation: sequentialGlow 3s infinite; */
}

.top-contact-item:nth-child(1) { animation-delay: 0s; }
.top-contact-item:nth-child(2) { animation-delay: 1s; }
.top-contact-item:nth-child(3) { animation-delay: 2s; }

@keyframes sequentialGlow {
    0% {
        box-shadow: 0 2px 6px rgba(207, 92, 119, 0.1);
        border-color: rgba(207, 92, 119, 0.3);
    }
    10%, 23% {
        box-shadow: 0 0 15px rgba(207, 92, 119, 0.6), 0 0 30px rgba(207, 92, 119, 0.3);
        border-color: rgba(207, 92, 119, 1);
    }
    33%, 100% {
        box-shadow: 0 2px 6px rgba(207, 92, 119, 0.1);
        border-color: rgba(207, 92, 119, 0.3);
    }
}

/* The sweeping background on hover */
.top-contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: rgba(207, 92, 119, 0.9);
    transition: width 0.3s ease;
    z-index: -1;
    border-radius: 30px;
}

.top-contact-item:hover::before {
    /* width: 100%; */
}

@keyframes professionalWave {
    0% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-2px) rotate(-1deg); }
    50% { transform: translateY(-3px) rotate(0deg); }
    75% { transform: translateY(-2px) rotate(1deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.top-contact-item:hover {
    animation: professionalWave 1.5s ease-in-out infinite !important; 
    /* Stop the sequential loop when hovered and do wave wiggle instead */
    /* box-shadow: 0 0 15px rgba(207, 92, 119, 0.6), 0 0 30px rgba(207, 92, 119, 0.3); */
    /* border-color: rgba(207, 92, 119, 1); */
}

.top-contact-item a {
    transition: color 0.3s ease;
}

.top-contact-item:hover a {
    /* color: #ffffff !important; */
}
