/* ==========================================
   SAISUN - World-Class Building Services
   Premium Website Styles
   ========================================== */

/* === CSS Variables === */
:root {
    --primary: #0066FF;
    --primary-dark: #0052CC;
    --primary-light: #4D94FF;
    --secondary: #00D4AA;
    --accent: #FF6B35;
    --dark: #0A0E27;
    --dark-2: #131836;
    --dark-3: #1C2146;
    --gray-100: #F8F9FC;
    --gray-200: #E8ECF4;
    --gray-300: #C4CBD8;
    --gray-400: #8892A4;
    --gray-500: #5C6478;
    --white: #FFFFFF;
    --gradient-1: linear-gradient(135deg, #0066FF 0%, #00D4AA 100%);
    --gradient-2: linear-gradient(135deg, #0066FF 0%, #6C3AFF 100%);
    --gradient-3: linear-gradient(180deg, rgba(10,14,39,0) 0%, #0A0E27 100%);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
    --shadow-glow: 0 0 40px rgba(0,102,255,0.3);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

/* === Preloader === */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s, visibility 0.5s;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader {
    text-align: center;
}

.loader-inner {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-bottom: 20px;
}

.loader-line-wrap {
    width: 4px;
    height: 40px;
    overflow: hidden;
}

.loader-line {
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    border-radius: 4px;
    animation: loader-pulse 1.2s ease-in-out infinite;
}

.loader-line-wrap:nth-child(2) .loader-line { animation-delay: 0.2s; }
.loader-line-wrap:nth-child(3) .loader-line { animation-delay: 0.4s; }

@keyframes loader-pulse {
    0%, 100% { transform: scaleY(0.4); opacity: 0.4; }
    50% { transform: scaleY(1); opacity: 1; }
}

.loader-text {
    color: var(--white);
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 8px;
}

/* === Custom Cursor === */
.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99998;
    transition: transform 0.1s;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(0,102,255,0.3);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99997;
    transition: transform 0.15s, width 0.3s, height 0.3s;
    transform: translate(-50%, -50%);
}

@media (max-width: 768px) {
    .cursor-dot, .cursor-outline { display: none; }
}

/* === Navigation === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: var(--shadow-sm);
}

.navbar {
    width: 100%;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--white);
}

.header.scrolled .logo {
    color: var(--dark);
}

.logo-img {
    height: 44px;
    width: auto;
    filter: none;
    transition: var(--transition);
}

.header.scrolled .logo-img {
    filter: none;
}

.logo-img-light {
    filter: brightness(0) invert(1);
}

.logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 3px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 36px;
}

.nav-link {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.header.scrolled .nav-link {
    color: var(--gray-500);
}

.nav-link:hover, .nav-link.active {
    color: var(--white);
}

.header.scrolled .nav-link:hover,
.header.scrolled .nav-link.active {
    color: #F5A623;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-nav {
    padding: 10px 24px;
    background: var(--gradient-1);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

.header.scrolled .hamburger span {
    background: var(--dark);
}

@media (max-width: 968px) {
    .nav-links { display: none; }
    .btn-nav { display: none; }
    .hamburger { display: flex; }
}

/* === Mobile Menu === */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: var(--dark);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-slow);
}

.mobile-menu.active {
    right: 0;
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
}

.mobile-nav-links li {
    margin: 24px 0;
}

.mobile-nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    transition: var(--transition);
}

.mobile-nav-links a:hover {
    color: var(--primary-light);
}

/* === Hero Section === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--dark);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-particles {
    position: absolute;
    inset: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(0,102,255,0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(0,212,170,0.1) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 80%, rgba(108,58,255,0.1) 0%, transparent 40%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 0 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    margin-bottom: 32px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-badge span:last-child {
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 24px;
}

.title-line {
    display: block;
}

.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    color: rgba(255,255,255,0.6);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 0 40px;
    line-height: 1.8;
}

/* === Buttons === */
.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-1);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(0,102,255,0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(0,102,255,0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.2);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(245,166,35,0.1);
    transform: translateY(-3px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* === Hero Stats === */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stat-icon {
    font-size: 1.8rem;
    color: var(--secondary);
}

.stat-number {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
}

.stat-suffix {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
}

.stat-label {
    display: block;
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.1);
}

/* === Scroll Indicator === */
.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.scroll-text {
    color: rgba(255,255,255,0.4);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: #F5A623;
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% { top: -100%; }
    100% { top: 100%; }
}

/* === Floating Elements === */
.floating-elements {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
}

.float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 500;
    animation: floatAnim 6s ease-in-out infinite;
}

.float-card i {
    color: var(--secondary);
}

.float-card-1 { top: 20%; left: 5%; animation-delay: 0s; }
.float-card-2 { top: 60%; right: 5%; animation-delay: 2s; }
.float-card-3 { bottom: 20%; left: 10%; animation-delay: 4s; }

@keyframes floatAnim {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@media (max-width: 768px) {
    .floating-elements { display: none; }
}

/* === Section Base === */
.section {
    padding: 120px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0,102,255,0.08);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-desc {
    color: var(--gray-400);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* === About Section === */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image-stack {
    position: relative;
}

.about-img-1 {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-img-2 {
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 200px;
    border-radius: var(--radius-md);
    border: 6px solid var(--white);
    box-shadow: var(--shadow-md);
}

.experience-badge {
    position: absolute;
    top: -20px;
    right: -20px;
    background: var(--gradient-1);
    color: var(--white);
    padding: 20px 24px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-glow);
}

.exp-icon {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 6px;
}

.exp-number {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
}

.exp-text {
    font-size: 0.75rem;
    opacity: 0.9;
}

.about-content .section-tag {
    display: inline-block;
}

.about-text {
    color: var(--gray-500);
    margin: 20px 0 32px;
    line-height: 1.8;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.feature-icon {
    width: 44px;
    height: 44px;
    background: rgba(0,102,255,0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.feature-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
}

.feature-item p {
    font-size: 0.85rem;
    color: var(--gray-400);
}

@media (max-width: 968px) {
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-img-2 { right: 10px; bottom: -20px; width: 150px; }
}

/* === Services Section === */
.services {
    background: var(--gray-100);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 0;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-icon {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.service-card:hover .service-icon img {
    transform: scale(1.1);
}

.icon-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,102,255,0.2) 0%, rgba(0,102,255,0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-overlay i {
    font-size: 2.5rem;
    color: var(--white);
}

.service-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    padding: 24px 24px 12px;
}

.service-card > p {
    color: var(--gray-400);
    font-size: 0.9rem;
    padding: 0 24px;
    line-height: 1.7;
}

.service-list {
    list-style: none;
    padding: 16px 24px;
}

.service-list li {
    padding: 6px 0;
    color: var(--gray-500);
    font-size: 0.85rem;
    position: relative;
    padding-left: 20px;
}

.service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    background: var(--secondary);
    border-radius: 50%;
    transform: translateY(-50%);
}

.service-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 24px 24px;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.service-link:hover {
    gap: 14px;
}

@media (max-width: 968px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .services-grid { grid-template-columns: 1fr; }
}

/* === Projects Section === */
.projects-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    border: 1px solid var(--gray-200);
    background: var(--white);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-500);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.project-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.project-image {
    position: relative;
    height: 320px;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(10,14,39,0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-category {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    width: fit-content;
}

.project-overlay h3 {
    color: var(--white);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.project-overlay p {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.project-link {
    width: 44px;
    height: 44px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.project-link:hover {
    transform: scale(1.1);
}

@media (max-width: 968px) {
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .projects-grid { grid-template-columns: 1fr; }
    .project-image { height: 260px; }
}

/* === Innovation Section === */
.innovation {
    background: var(--dark);
    color: var(--white);
}

.innovation .section-tag {
    background: rgba(0,212,170,0.1);
    color: var(--secondary);
}

.innovation .section-title {
    color: var(--white);
}

.innovation .section-desc {
    color: rgba(255,255,255,0.5);
}

.innovation-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 64px;
}

.innovation-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
}

.innovation-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(0,102,255,0.3);
    transform: translateY(-4px);
}

.inno-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
}

.innovation-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.innovation-card p {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    line-height: 1.7;
}

/* Tech Showcase */
.tech-showcase {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.tech-visual {
    position: relative;
}

.tech-visual img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-xl);
}

.tech-overlay-content {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,102,255,0.8) 0%, rgba(0,212,170,0.6) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    border-radius: var(--radius-xl);
}

.tech-stat {
    text-align: center;
}

.tech-number {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
}

.tech-number i {
    font-size: 2.5rem;
}

.tech-label {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

@media (max-width: 968px) {
    .innovation-grid { grid-template-columns: repeat(2, 1fr); }
    .tech-overlay-content { gap: 40px; flex-wrap: wrap; padding: 20px; }
    .tech-number { font-size: 2rem; }
}
@media (max-width: 640px) {
    .innovation-grid { grid-template-columns: 1fr; }
    .tech-visual img { height: 300px; }
}

/* === Clients Marquee === */
.clients {
    padding: 80px 0;
    background: var(--gray-100);
    overflow: hidden;
}

.clients-marquee {
    overflow: hidden;
    margin-top: 32px;
}

.marquee-track {
    display: flex;
    gap: 24px;
    animation: marquee 20s linear infinite;
    width: max-content;
}

.client-item {
    padding: 16px 32px;
    background: var(--white);
    border-radius: var(--radius-md);
    font-weight: 600;
    color: var(--gray-500);
    white-space: nowrap;
    border: 1px solid var(--gray-200);
    font-size: 0.9rem;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* === Testimonials === */
.testimonials {
    padding: 100px 0;
}

.testimonial-wrapper {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    min-height: 250px;
}

.testimonial-card {
    text-align: center;
    display: none;
}

.testimonial-card.active {
    display: block;
}

.quote-icon {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

.testimonial-text {
    font-size: 1.2rem;
    color: var(--dark);
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 30px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
}

.author-info span {
    color: var(--gray-400);
    font-size: 0.85rem;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray-200);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary);
    width: 30px;
    border-radius: 5px;
}

/* === Contact Section === */
.contact {
    background: var(--gray-100);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info .section-title {
    text-align: left;
}

.contact-desc {
    color: var(--gray-500);
    margin: 16px 0 40px;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 0.85rem;
    color: var(--gray-400);
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 44px;
    height: 44px;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-3px);
}

/* === Contact Form === */
.contact-form-wrapper {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.contact-form {
    position: relative;
    z-index: 2;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 18px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--dark);
    transition: var(--transition);
    background: var(--gray-100);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,102,255,0.1);
    background: var(--white);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group:last-child {
    margin-bottom: 24px;
}

@media (max-width: 968px) {
    .contact-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
}

/* === Footer === */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-desc {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    line-height: 1.8;
    max-width: 300px;
}

.footer-links h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    font-size: 0.8rem;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--primary-light);
}

@media (max-width: 968px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* === Back to Top === */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: var(--shadow-glow);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
}

/* === Particles === */
.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(0,102,255,0.5);
    border-radius: 50%;
    animation: particleFloat 8s linear infinite;
}

@keyframes particleFloat {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

/* === Responsive Utilities === */
@media (max-width: 768px) {
    .section { padding: 80px 0; }
    .nav-container { padding: 0 20px; }
    .hero-stats { gap: 20px; }
    .stat-number { font-size: 1.8rem; }
    .stat-divider { display: none; }
}

/* ==========================================
   ENHANCED GRAPHICS & ANIMATIONS
   ========================================== */

/* === Animated Grid Lines === */
.grid-lines {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0.15;
}

.grid-line-h {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,102,255,0.5), transparent);
    animation: gridSlideH 8s linear infinite;
}

.grid-line-h:nth-child(1) { top: 25%; animation-delay: 0s; }
.grid-line-h:nth-child(2) { top: 50%; animation-delay: 2.5s; }
.grid-line-h:nth-child(3) { top: 75%; animation-delay: 5s; }

.grid-line-v {
    position: absolute;
    top: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(0,212,170,0.5), transparent);
    animation: gridSlideV 8s linear infinite;
}

.grid-line-v:nth-child(4) { left: 25%; animation-delay: 1s; }
.grid-line-v:nth-child(5) { left: 50%; animation-delay: 3.5s; }
.grid-line-v:nth-child(6) { left: 75%; animation-delay: 6s; }

@keyframes gridSlideH {
    0% { transform: translateX(-100%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(100%); opacity: 0; }
}

@keyframes gridSlideV {
    0% { transform: translateY(-100%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(100%); opacity: 0; }
}

/* === Glowing Orbs === */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: orbFloat 12s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(0,102,255,0.15);
    top: -10%;
    left: -5%;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: rgba(0,212,170,0.12);
    bottom: -5%;
    right: -5%;
    animation-delay: 4s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: rgba(108,58,255,0.1);
    top: 40%;
    right: 20%;
    animation-delay: 8s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -20px) scale(1.1); }
    50% { transform: translate(-20px, 30px) scale(0.95); }
    75% { transform: translate(20px, 20px) scale(1.05); }
}

/* === Animated Circuit SVG === */
.circuit-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6;
}

.circuit-path {
    stroke: rgba(0,212,170,0.2);
    stroke-width: 1;
    fill: none;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: circuitDraw 4s ease-in-out infinite;
}

.circuit-path.delay-1 {
    stroke: rgba(0,102,255,0.2);
    animation-delay: 1s;
}

.circuit-path.delay-2 {
    animation-delay: 2s;
}

.circuit-path.delay-3 {
    stroke: rgba(0,102,255,0.15);
    animation-delay: 3s;
}

@keyframes circuitDraw {
    0% { stroke-dashoffset: 200; opacity: 0; }
    50% { stroke-dashoffset: 0; opacity: 1; }
    100% { stroke-dashoffset: -200; opacity: 0; }
}

.circuit-dot {
    animation: dotPulse 3s ease-in-out infinite;
}

.circuit-dot.dot-2 { animation-delay: 0.8s; }
.circuit-dot.dot-3 { animation-delay: 1.6s; }
.circuit-dot.dot-4 { animation-delay: 2.4s; }

@keyframes dotPulse {
    0%, 100% { opacity: 0.3; r: 3; }
    50% { opacity: 1; r: 5; }
}

/* === Button Glow Effect === */
.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #0066FF, #00D4AA, #6C3AFF, #0066FF);
    background-size: 400% 400%;
    border-radius: 50px;
    z-index: -1;
    animation: glowRotate 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-glow:hover::before {
    opacity: 1;
}

@keyframes glowRotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* === Button Shimmer Effect === */
.btn-shimmer {
    position: relative;
    overflow: hidden;
}

.btn-shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* === Enhanced Service Cards with Gradient Border === */
.service-card {
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 2px;
    background: linear-gradient(135deg, rgba(0,102,255,0), rgba(0,212,170,0));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    transition: var(--transition-slow);
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}

.service-card:hover::before {
    background: linear-gradient(135deg, #0066FF, #00D4AA);
    opacity: 1;
}

/* === Enhanced Innovation Cards - Glassmorphism + Glow === */
.innovation-card {
    position: relative;
    overflow: hidden;
}

.innovation-card::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(0,102,255,0.3), transparent);
    border-radius: 50%;
    top: -50px;
    right: -50px;
    transition: var(--transition-slow);
    opacity: 0;
}

.innovation-card:hover::after {
    opacity: 1;
    transform: scale(2);
}

/* === Animated Section Dividers === */
.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
    margin: 0;
    opacity: 0.3;
}

/* === Text Reveal Animation === */
.reveal-text {
    overflow: hidden;
}

.reveal-text span {
    display: inline-block;
    animation: revealUp 0.8s ease forwards;
    opacity: 0;
    transform: translateY(100%);
}

@keyframes revealUp {
    to { opacity: 1; transform: translateY(0); }
}

/* === Hover Glow on Project Cards === */
.project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    box-shadow: inset 0 0 30px rgba(0,102,255,0.3);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.project-card:hover::after {
    opacity: 1;
}

/* === Floating Badge Enhanced Animation === */
.float-card {
    animation: floatAnim 6s ease-in-out infinite;
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.float-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(0,212,170,0.3), rgba(0,102,255,0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* === Enhanced Hero Title Typing Glow === */
.hero-title .gradient-text {
    position: relative;
    text-shadow: 0 0 40px rgba(0,102,255,0.3);
}

.hero-title .gradient-text::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-1);
    border-radius: 2px;
    animation: lineGrow 2s ease-out forwards;
    animation-delay: 1.5s;
    transform: scaleX(0);
    transform-origin: left;
}

@keyframes lineGrow {
    to { transform: scaleX(1); }
}

/* === Scroll Progress Bar === */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-1);
    z-index: 10000;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(0,102,255,0.5);
}

/* === Mouse Follow Glow (on sections) === */
.section-glow {
    position: relative;
    overflow: hidden;
}

.section-glow::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0,102,255,0.05), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.section-glow:hover::before {
    opacity: 1;
}

/* === Rotating Border on Contact Form === */
.contact-form-wrapper {
    position: relative;
    overflow: hidden;
}

.contact-form-wrapper::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: conic-gradient(from 0deg, transparent, var(--primary), transparent, var(--secondary), transparent);
    animation: rotateBorder 6s linear infinite;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 0;
}

.contact-form-wrapper:hover::before {
    opacity: 0.1;
}

@keyframes rotateBorder {
    100% { transform: rotate(360deg); }
}

/* === Noise Texture Overlay === */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.02;
    pointer-events: none;
    z-index: 2;
}

/* === Improved Stat Items with Border Glow === */
.hero-stats .stat-item {
    padding: 16px 24px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    transition: var(--transition);
}

.hero-stats .stat-item:hover {
    border-color: rgba(0,212,170,0.3);
    background: rgba(0,212,170,0.05);
    transform: translateY(-4px);
}

/* ==========================================
   TECHNOLOGY & SERVICES SECTION
   ========================================== */
.technology {
    background: var(--dark);
    position: relative;
    padding: 120px 0;
}

.technology .section-tag {
    background: rgba(0,212,170,0.1);
    color: var(--secondary);
}

.technology .section-title {
    color: var(--white);
}

.technology .section-desc {
    color: rgba(255,255,255,0.5);
}

.tech-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.tech-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
}

.tech-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,102,255,0.2);
    border-color: rgba(0,102,255,0.4);
}

.tech-card.active {
    border-color: var(--primary);
    box-shadow: 0 20px 50px rgba(0,102,255,0.25);
    transform: translateY(-8px);
}

.tech-card-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.tech-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    filter: brightness(0.7);
}

.tech-card:hover .tech-card-image img {
    transform: scale(1.1);
    filter: brightness(0.9);
}

.tech-card-number {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(0,102,255,0.85);
    backdrop-filter: blur(8px);
    color: var(--white);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-align: center;
    line-height: 1.3;
}

.tech-card-number strong {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    display: block;
}

.tech-card h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
    padding: 16px;
    line-height: 1.4;
    text-align: center;
}

/* Expandable Panel */
.tech-expand-panel {
    display: none;
    margin-top: 36px;
}

.tech-expand-panel.open {
    display: block;
}

.expand-panel-inner {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(0,102,255,0.2);
    border-radius: var(--radius-xl);
    padding: 40px;
    position: relative;
    backdrop-filter: blur(10px);
}

.expand-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.85rem;
}

.expand-close:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: rotate(90deg);
}

.expand-content {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    align-items: start;
}

.expand-left img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.1);
}

.expand-badge {
    display: inline-block;
    padding: 5px 14px;
    background: var(--gradient-1);
    color: var(--white);
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
}

.expand-right h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.expand-right > p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 24px;
}

.expand-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 24px;
    margin-bottom: 24px;
}

.expand-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
}

.expand-feature-item i {
    color: var(--secondary);
    font-size: 0.75rem;
    width: 16px;
    flex-shrink: 0;
}

.expand-feature-item span {
    color: rgba(255,255,255,0.8);
    font-size: 0.82rem;
}

/* Bottom CTA in dark section */
.tech-bottom-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.tech-bottom-cta p {
    color: rgba(255,255,255,0.5);
    font-size: 0.95rem;
    font-weight: 500;
}

@media (max-width: 968px) {
    .tech-services-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .expand-content { grid-template-columns: 1fr; gap: 24px; }
    .expand-features { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .tech-services-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .expand-panel-inner { padding: 24px; }
    .expand-right h3 { font-size: 1.2rem; }
    .tech-card-image { height: 150px; }
    .tech-bottom-cta { flex-direction: column; gap: 12px; }
}

@media (max-width: 480px) {
    .tech-services-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .tech-card h4 { font-size: 0.75rem; padding: 12px 8px; }
    .tech-card-image { height: 130px; }
}

/* ==========================================
   TECHNOLOGY MODAL POPUP
   ========================================== */
.tech-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 14, 39, 0.85);
    backdrop-filter: blur(12px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 40px;
}

.tech-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.tech-modal {
    background: var(--white);
    border-radius: var(--radius-xl);
    max-width: 900px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9) translateY(30px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 40px 100px rgba(0,0,0,0.3);
}

.tech-modal-overlay.active .tech-modal {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: var(--gray-100);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--gray-500);
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--primary);
    color: var(--white);
    transform: rotate(90deg);
}

.modal-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.modal-image {
    position: relative;
    height: 100%;
    min-height: 400px;
    overflow: hidden;
    border-radius: var(--radius-xl) 0 0 var(--radius-xl);
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-badge {
    position: absolute;
    top: 24px;
    left: 24px;
    background: rgba(0,102,255,0.9);
    backdrop-filter: blur(8px);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.modal-info {
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-info h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
    line-height: 1.3;
}

.modal-desc {
    color: var(--gray-500);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 24px;
}

.modal-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.modal-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.modal-feature-item:hover {
    background: rgba(0,102,255,0.05);
    transform: translateX(4px);
}

.modal-feature-item i {
    color: var(--secondary);
    font-size: 0.85rem;
    width: 20px;
}

.modal-feature-item span {
    font-size: 0.88rem;
    color: var(--dark);
    font-weight: 500;
}

.modal-cta {
    margin-top: auto;
}

@media (max-width: 768px) {
    .tech-modal-overlay { padding: 20px; }
    .modal-content { grid-template-columns: 1fr; }
    .modal-image { 
        min-height: 200px; 
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    }
    .modal-info { padding: 30px 24px; }
    .modal-info h2 { font-size: 1.3rem; }
}

/* Scrollbar styling for modal */
.tech-modal::-webkit-scrollbar {
    width: 6px;
}

.tech-modal::-webkit-scrollbar-track {
    background: transparent;
}

.tech-modal::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 3px;
}

/* ==========================================
   ATTENTION-GRABBING TECH SECTION ENHANCEMENTS
   ========================================== */

/* === Highlight Banner === */
.tech-highlight-banner {
    position: relative;
    background: rgba(0,102,255,0.08);
    border: 1px solid rgba(0,102,255,0.2);
    border-radius: var(--radius-lg);
    padding: 20px 32px;
    margin-bottom: 48px;
    overflow: hidden;
}

.banner-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,102,255,0.1), rgba(0,212,170,0.1), rgba(0,102,255,0.1));
    background-size: 200% 100%;
    animation: bannerGlow 4s ease-in-out infinite;
}

@keyframes bannerGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.banner-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 2;
}

.banner-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
    animation: bannerPulse 2s ease-in-out infinite;
}

@keyframes bannerPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); box-shadow: 0 0 20px rgba(0,102,255,0.4); }
}

.banner-content p {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    margin: 0;
}

.banner-content p strong {
    color: var(--secondary);
}

.banner-arrow {
    color: var(--secondary);
    animation: bounceDown 1.5s ease-in-out infinite;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* Tech cards use pure CSS flip - no extra styles needed */

@keyframes cardShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* === Pulsing Border Animation on Section === */
.technology::after {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 3px;
    background: var(--gradient-1);
    border-radius: 2px;
    animation: techBorderPulse 3s ease-in-out infinite;
}

@keyframes techBorderPulse {
    0%, 100% { opacity: 0.3; left: 10%; right: 10%; }
    50% { opacity: 1; left: 5%; right: 5%; }
}

/* === Bottom CTA === */
.tech-bottom-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--gray-200);
}

.tech-bottom-cta p {
    color: var(--gray-500);
    font-size: 0.95rem;
    font-weight: 500;
}

/* === Auto-scroll hint for mobile === */
@media (max-width: 768px) {
    .tech-highlight-banner { padding: 16px 20px; }
    .banner-content { flex-direction: column; text-align: center; gap: 10px; }
    .banner-content p { font-size: 0.85rem; }
    .tech-bottom-cta { flex-direction: column; gap: 12px; }
}

/* ==========================================
   ENHANCED HERO - SPLIT LAYOUT
   ========================================== */

/* Hero Background Image */
.hero-bg-image {
    position: absolute;
    inset: 0;
    background: url('../images/site/building-tower.jpg') center/cover no-repeat;
    opacity: 0.06;
}

/* Split Layout */
.hero-split {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    min-height: 100vh;
}

.hero-left {
    padding-top: 80px;
}

.hero-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
}

/* Trust Indicators */
.hero-trust {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
}

.trust-item i {
    color: var(--secondary);
    font-size: 0.9rem;
}

.trust-divider {
    width: 1px;
    height: 20px;
    background: rgba(255,255,255,0.15);
}

/* Hero Visual - Building */
.hero-visual {
    position: relative;
    width: 100%;
    max-width: 420px;
}

.building-svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 40px rgba(0,102,255,0.1));
}

/* Window glow animation */
.bldg-window {
    animation: windowGlow 4s ease-in-out infinite;
}
.w1 { animation-delay: 0s; }
.w2 { animation-delay: 0.3s; }
.w3 { animation-delay: 0.6s; }
.w4 { animation-delay: 0.9s; }
.w5 { animation-delay: 1.2s; }
.w6 { animation-delay: 1.5s; }
.w7 { animation-delay: 1.8s; }
.w8 { animation-delay: 2.1s; }
.w9 { animation-delay: 2.4s; }
.w10 { animation-delay: 2.7s; }
.w11 { animation-delay: 3.0s; }
.w12 { animation-delay: 0.2s; }
.w13 { animation-delay: 0.5s; }
.w14 { animation-delay: 0.8s; }
.w15 { animation-delay: 1.1s; }

@keyframes windowGlow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; fill: rgba(0,212,170,0.6); }
}

/* HVAC Fan rotation */
.hvac-fan {
    animation: fanSpin 2s linear infinite;
    transform-origin: center;
}

@keyframes fanSpin {
    to { transform: rotate(360deg); }
}

/* Airflow animation */
.airflow {
    stroke-dasharray: 10;
    stroke-dashoffset: 0;
    animation: airflowMove 2s linear infinite;
}

.airflow.delay-1 { animation-delay: 0.5s; }
.airflow.delay-2 { animation-delay: 1s; }

@keyframes airflowMove {
    to { stroke-dashoffset: -20; }
}

/* Pipe animation */
.pipe-line {
    animation: pipeFlow 3s linear infinite;
}

.pipe-line.delay-1 { animation-delay: 1.5s; }

@keyframes pipeFlow {
    to { stroke-dashoffset: -16; }
}

/* Floating Info Cards */
.hero-info-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(10,14,39,0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    animation: infoFloat 5s ease-in-out infinite;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.hero-info-card i {
    font-size: 1.2rem;
    color: var(--secondary);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,212,170,0.1);
    border-radius: 8px;
}

.card-label {
    display: block;
    font-size: 0.65rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-value {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
}

.card-1 { top: 15%; right: 0; animation-delay: 0s; }
.card-2 { bottom: 30%; left: -10px; animation-delay: 1.5s; }
.card-3 { bottom: 10%; right: 10%; animation-delay: 3s; }

@keyframes infoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Responsive */
@media (max-width: 968px) {
    .hero-split {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
        padding: 0 24px;
    }
    .hero-left { padding-top: 120px; }
    .hero-right { padding-top: 0; }
    .hero-cta { justify-content: center; }
    .hero-trust { justify-content: center; }
    .hero-subtitle { margin: 0 auto 40px; }
    .hero-visual { max-width: 300px; margin: 0 auto; }
    .hero-info-card { display: none; }
}

@media (max-width: 640px) {
    .hero-right { display: none; }
    .hero-left { padding-top: 140px; padding-bottom: 60px; }
}

/* === Contact Links Styling === */
.contact-item a {
    color: var(--gray-400);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.contact-item a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.contact-item {
    position: relative;
    z-index: 2;
}

.contact-details {
    position: relative;
    z-index: 2;
}

.social-links {
    position: relative;
    z-index: 2;
}
