/* ============================================
   CODE BEACONS TECHNOLOGIES - Main Stylesheet
   Colors derived from logo: teal/cyan (#0ABAB5, #00D4AA, #0D3B66)
   ============================================ */

:root {
    --primary: #0ABAB5;
    --primary-dark: #089B97;
    --primary-light: #00D4AA;
    --accent: #0D3B66;
    --accent-light: #1A5276;
    --dark: #0A0F1C;
    --dark-2: #111827;
    --dark-3: #1F2937;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --white: #FFFFFF;
    --gradient-1: linear-gradient(135deg, #0ABAB5 0%, #00D4AA 50%, #0D3B66 100%);
    --gradient-2: linear-gradient(135deg, #0ABAB5 0%, #00D4AA 100%);
    --gradient-text: linear-gradient(135deg, #0ABAB5, #00D4AA);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 40px rgba(10, 186, 181, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Space Grotesk', 'Inter', sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    color: var(--dark);
    background: var(--white);
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

/* ============================================
   PRELOADER
   ============================================ */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--white);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader {
    text-align: center;
}

.loader-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin: 0 auto 24px;
    animation: pulse 1.5s ease-in-out infinite;
    border-radius: 12px;
}

.loader-bar {
    width: 200px;
    height: 3px;
    background: var(--gray-200);
    border-radius: 3px;
    overflow: hidden;
}

.loader-progress {
    height: 100%;
    background: var(--gradient-2);
    border-radius: 3px;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

@keyframes loading {
    0% { width: 0; margin-left: 0; }
    50% { width: 70%; margin-left: 15%; }
    100% { width: 0; margin-left: 100%; }
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 14px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(248, 252, 252, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 8px 0;
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.navbar.scrolled .nav-cta {
    background: var(--gradient-2);
    color: var(--white);
    border-color: transparent;
}

.navbar.scrolled .nav-cta:hover {
    box-shadow: 0 8px 30px rgba(10, 186, 181, 0.35);
    color: var(--white);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    height: 64px;
    width: auto;
    transition: var(--transition);
    border-radius: 10px;
    object-fit: contain;
}

.navbar.scrolled .nav-logo img {
    height: 56px;
}

.navbar:not(.scrolled) .nav-logo img {
    height: 72px;
    background: var(--white);
    padding: 4px;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 20px;
    font-size: 0.938rem;
    font-weight: 500;
    color: var(--gray-600);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}

/* Scrolled navbar (About, Services, Contact) - brand color to match Code Beacons logo */
.navbar.scrolled .nav-link {
    color: var(--primary);
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    color: var(--primary-dark);
    background: rgba(10, 186, 181, 0.1);
}

.navbar:not(.scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.9);
}

.navbar:not(.scrolled) .nav-link:hover,
.navbar:not(.scrolled) .nav-link.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.15);
}

.navbar:not(.scrolled) .hamburger span {
    background: var(--white);
}

.navbar:not(.scrolled) .nav-cta {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.navbar:not(.scrolled) .nav-cta:hover {
    background: var(--white);
    color: var(--primary-dark);
}

.navbar.scrolled .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: var(--gradient-2);
    border-radius: 2px;
}

.navbar:not(.scrolled) .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
}

.nav-cta {
    margin-left: 16px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 0.938rem;
    font-weight: 600;
    font-family: var(--font-primary);
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(3px);
}

.btn-primary {
    background: var(--gradient-2);
    color: var(--white);
    border-color: transparent;
}

.btn-primary:hover {
    box-shadow: 0 8px 30px rgba(10, 186, 181, 0.35);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--dark);
    border-color: var(--gray-300);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(10, 186, 181, 0.04);
}

.btn-white {
    background: var(--white);
    color: var(--primary-dark);
    border-color: transparent;
}

.btn-white:hover {
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1rem;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 15, 28, 0.88) 0%, rgba(13, 59, 102, 0.82) 50%, rgba(10, 186, 181, 0.65) 100%);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(10, 186, 181, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10, 186, 181, 0.08) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 70%);
    z-index: 1;
}

.floating-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
    z-index: 1;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(10, 186, 181, 0.25);
    top: 10%;
    left: -5%;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: rgba(0, 212, 170, 0.2);
    top: 60%;
    right: -5%;
    animation-delay: -7s;
}

.orb-3 {
    width: 200px;
    height: 200px;
    background: rgba(94, 234, 212, 0.15);
    bottom: 10%;
    left: 30%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 10px) scale(1.02); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(10, 186, 181, 0.15);
    border: 1px solid rgba(10, 186, 181, 0.3);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 28px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-hero {
    background: linear-gradient(135deg, #0ABAB5, #00D4AA, #5EEAD4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 16px;
    font-weight: 500;
}

.hero-tagline .typing-text {
    color: var(--primary-light);
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.063rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 64px;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
}

.stat-suffix {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-light);
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.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: 50%;
    background: var(--primary);
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { top: -50%; }
    100% { top: 150%; }
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 64px;
}

.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.section-desc {
    font-size: 1.063rem;
    color: var(--gray-500);
    line-height: 1.7;
}

/* ============================================
   SERVICES GRID
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-2);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    border-color: rgba(10, 186, 181, 0.2);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 186, 181, 0.08);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-icon i {
    font-size: 1.4rem;
    color: var(--primary);
}

.service-card:hover .service-icon {
    background: var(--gradient-2);
}

.service-card:hover .service-icon i {
    color: var(--white);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.938rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 20px;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
}

.card-link i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.card-link:hover i {
    transform: translateX(4px);
}

.section-cta {
    text-align: center;
}

/* ============================================
   ABOUT PREVIEW
   ============================================ */
.about-preview {
    background: var(--gray-100);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content .section-tag {
    display: block;
    text-align: left;
}

.about-content .section-title {
    text-align: left;
}

.about-text {
    font-size: 1rem;
    color: var(--gray-600);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 32px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.938rem;
    font-weight: 500;
    color: var(--dark);
}

.feature-item i {
    color: var(--primary);
    font-size: 1.1rem;
}

.about-visual {
    position: relative;
}

.about-image-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-height: 400px;
}

.about-photo {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
    display: block;
}

.about-float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    animation: floatCard 6s ease-in-out infinite;
}

.about-float-card i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 186, 181, 0.1);
    border-radius: var(--radius-sm);
    color: var(--primary);
    font-size: 1rem;
    flex-shrink: 0;
}

.about-float-card strong {
    display: block;
    font-size: 0.875rem;
    color: var(--dark);
}

.about-float-card span {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.card-1 {
    top: -10px;
    right: -20px;
    animation-delay: 0s;
}

.card-2 {
    bottom: -10px;
    left: -20px;
    animation-delay: -3s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
}

.cta-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary-dark) 50%, var(--primary) 100%);
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.1rem;
    opacity: 0.85;
    max-width: 500px;
    margin: 0 auto 36px;
}

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--dark);
    color: var(--gray-400);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 48px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
    height: 72px;
    width: auto;
    margin-bottom: 16px;
    border-radius: 12px;
    background: var(--white);
    padding: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    object-fit: contain;
}

.footer-tagline {
    font-size: 0.938rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 12px;
}

.footer-desc {
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    color: var(--gray-400);
    transition: var(--transition);
}

.footer-socials a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 24px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--gray-400);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.875rem;
}

.footer-contact i {
    color: var(--primary);
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-contact a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   PAGE HEADER (for inner pages)
   ============================================ */
.page-header {
    padding: 160px 0 80px;
    background: var(--gray-100);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 60% 60% at 20% 50%, rgba(10, 186, 181, 0.05) 0%, transparent 60%),
        radial-gradient(ellipse 40% 60% at 80% 30%, rgba(0, 212, 170, 0.04) 0%, transparent 60%);
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header .section-tag {
    margin-bottom: 12px;
}

.page-header h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--gray-500);
    max-width: 560px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 0.875rem;
}

.breadcrumb a {
    color: var(--gray-500);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb span {
    color: var(--gray-400);
}

.breadcrumb .current {
    color: var(--primary);
    font-weight: 500;
}

/* ============================================
   ABOUT PAGE SPECIFICS
   ============================================ */
.about-mission {
    background: var(--white);
}

.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.mission-card {
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.mission-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mission-card h3 i {
    color: var(--primary);
}

.mission-card p {
    color: var(--gray-600);
    line-height: 1.8;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.value-card {
    text-align: center;
    padding: 36px 24px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.value-card:hover {
    border-color: rgba(10, 186, 181, 0.2);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.value-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 186, 181, 0.08);
    border-radius: var(--radius-md);
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: var(--primary);
    transition: var(--transition);
}

.value-card:hover .value-icon {
    background: var(--gradient-2);
    color: var(--white);
}

.value-card h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.value-card p {
    font-size: 0.875rem;
    color: var(--gray-500);
    line-height: 1.6;
}

.team-note {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.team-note h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
}

.team-note p {
    color: var(--gray-600);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 32px;
}

/* ============================================
   SERVICES PAGE SPECIFICS
   ============================================ */
.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 60px 0;
    border-bottom: 1px solid var(--gray-200);
}

.service-detail:last-child {
    border-bottom: none;
}

.service-detail.reverse {
    direction: rtl;
}

.service-detail.reverse > * {
    direction: ltr;
}

.service-detail-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 186, 181, 0.08);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    font-size: 2rem;
    color: var(--primary);
}

.service-detail h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 16px;
}

.service-detail p {
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 20px;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.938rem;
    color: var(--gray-600);
}

.service-features li i {
    color: var(--primary);
    font-size: 0.85rem;
}

.service-visual {
    border-radius: var(--radius-xl);
    overflow: hidden;
    min-height: 320px;
}

.service-visual img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.service-detail:hover .service-visual img {
    transform: scale(1.03);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.process-step {
    text-align: center;
    padding: 36px 24px;
    position: relative;
    transition: var(--transition);
}

.process-step:hover .step-number {
    color: rgba(10, 186, 181, 0.2);
}

.process-step:hover h4 {
    color: var(--primary);
}

.step-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: rgba(10, 186, 181, 0.1);
    margin-bottom: 16px;
    line-height: 1;
}

.process-step h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.process-step p {
    font-size: 0.875rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 28px;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    border: 1px solid transparent;
}

.contact-info-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: rgba(10, 186, 181, 0.15);
}

.contact-info-card a {
    transition: var(--transition);
}

.contact-info-card .icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 186, 181, 0.1);
    border-radius: var(--radius-md);
    color: var(--primary);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-info-card h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.contact-info-card p,
.contact-info-card a {
    font-size: 0.938rem;
    color: var(--gray-600);
}

.contact-info-card a:hover {
    color: var(--primary);
}

.contact-form-wrapper {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 48px;
}

.contact-form-wrapper h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.contact-form-wrapper > p {
    color: var(--gray-500);
    margin-bottom: 32px;
    font-size: 0.938rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 14px 18px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: 0.938rem;
    color: var(--dark);
    background: var(--gray-100);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(10, 186, 181, 0.1);
}

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

.form-submit {
    margin-top: 24px;
}

.form-submit .btn {
    width: 100%;
    justify-content: center;
    padding: 16px;
}

.form-success {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.form-success.show {
    display: block;
}

.form-success i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.form-success h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--dark);
    margin-bottom: 8px;
}

.form-success p {
    color: var(--gray-500);
}

.map-section {
    padding: 0 0 100px;
}

.map-wrapper {
    border-radius: var(--radius-xl);
    overflow: hidden;
    height: 400px;
    border: 1px solid var(--gray-200);
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-visual {
        order: -1;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .mission-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-detail {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .service-detail.reverse {
        direction: ltr;
    }

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 72px 0;
    }

    .nav-logo img {
        height: 52px;
    }

    .navbar:not(.scrolled) .nav-logo img {
        height: 58px;
        padding: 3px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 360px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 32px 32px;
        gap: 4px;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-link {
        width: 100%;
        padding: 14px 16px;
        font-size: 1rem;
        color: var(--primary) !important;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .nav-menu .nav-link:hover,
    .nav-menu .nav-link.active {
        color: var(--primary-dark) !important;
        background: rgba(10, 186, 181, 0.1);
    }

    .nav-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        min-height: auto;
        padding: 140px 0 80px;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
        background: rgba(255, 255, 255, 0.15);
    }

    .hero-scroll {
        display: none;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

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

    .about-float-card {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .cta-actions {
        flex-direction: column;
    }

    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 32px 24px;
    }

    .page-header {
        padding: 120px 0 60px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 1.875rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .service-card {
        padding: 28px 24px;
    }

    .about-image-wrapper {
        min-height: 280px;
    }

    .about-photo {
        min-height: 280px;
    }

    .page-header h1 {
        font-size: 1.75rem;
        line-height: 1.25;
    }

    .page-header p {
        font-size: 0.95rem;
    }

    .contact-info-card {
        padding: 20px;
    }

    .service-detail {
        padding: 36px 0;
    }

    .service-detail h3 {
        font-size: 1.4rem;
    }

    .mission-card {
        padding: 28px;
    }

    .value-card {
        padding: 28px 20px;
    }

    .back-to-top {
        bottom: 24px;
        right: 24px;
        width: 44px;
        height: 44px;
    }

    .cta-content h2 {
        font-size: 1.5rem;
    }

    .footer-logo {
        height: 56px;
    }
}

/* Touch-friendly: ensure tap targets are at least 44px */
@media (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }

    .nav-link {
        min-height: 44px;
    }

    .footer-socials a {
        min-width: 44px;
        min-height: 44px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        min-height: 48px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Prevent horizontal scroll on mobile */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }
}

/* Improve map on mobile */
@media (max-width: 768px) {
    .map-wrapper {
        height: 300px;
        border-radius: var(--radius-lg);
    }

    .map-section {
        padding: 0 0 72px;
    }
}

/* Mobile menu overlay */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.nav-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--gradient-2);
    z-index: 10001;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(10, 186, 181, 0.5);
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-2);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(10, 186, 181, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(10, 186, 181, 0.5);
}

/* ============================================
   CURSOR GLOW FOLLOWER
   ============================================ */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(10, 186, 181, 0.07) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
    .cursor-glow { display: none; }
}

/* ============================================
   HERO PARTICLES CANVAS
   ============================================ */
.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

/* ============================================
   TYPING TEXT
   ============================================ */
.typing-wrapper {
    display: inline-flex;
    align-items: center;
}

.typing-text {
    border-right: 2px solid var(--primary-light);
    padding-right: 4px;
    animation: blink-caret 0.8s step-end infinite;
    min-width: 10px;
    min-height: 1.2em;
}

@keyframes blink-caret {
    0%, 100% { border-color: var(--primary-light); }
    50% { border-color: transparent; }
}

/* ============================================
   FORM INTERACTIONS
   ============================================ */
.form-group.focused label {
    color: var(--primary);
}

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.03);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

.shake {
    animation: shake 0.5s ease;
}

/* ============================================
   SERVICE VISUAL HOVER ANIMATION
   ============================================ */
.service-visual.active img {
    transform: scale(1.05);
}

/* ============================================
   STAGGERED GRID CHILDREN
   ============================================ */
.services-grid > *,
.values-grid > *,
.process-steps > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.services-grid > *.visible,
.values-grid > *.visible,
.process-steps > *.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   ENHANCED CARD HOVER GLOW
   ============================================ */
.service-card {
    transform-style: preserve-3d;
    will-change: transform;
}

.value-card,
.mission-card,
.contact-info-card {
    transform-style: preserve-3d;
    will-change: transform;
}

/* ============================================
   HERO PARALLAX
   ============================================ */
.hero-image {
    will-change: transform;
    transform: scale(1.1);
}

.hero-content {
    will-change: transform, opacity;
}

/* ============================================
   BLOGS PAGE
   ============================================ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}

.blog-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.blog-card:hover {
    border-color: rgba(10, 186, 181, 0.2);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.blog-card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--gray-100);
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-body {
    padding: 24px;
}

.blog-card-date {
    display: block;
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 8px;
}

.blog-card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 12px;
    line-height: 1.3;
}

.blog-card-description {
    font-size: 0.938rem;
    color: var(--gray-600);
    line-height: 1.7;
}

.blog-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-500);
}

.blog-empty i {
    font-size: 3rem;
    color: var(--gray-300);
    margin-bottom: 16px;
}

.blog-submit-section {
    background: var(--gray-100);
}

.blog-form-wrapper {
    max-width: 640px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px;
    border: 1px solid var(--gray-200);
}

.blog-form .form-group {
    margin-bottom: 20px;
}

.blog-form .form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
}

.blog-form .form-group input,
.blog-form .form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: 0.938rem;
    background: var(--gray-100);
    transition: var(--transition);
}

.blog-form .form-group input:focus,
.blog-form .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
}

.blog-publish-instructions {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--gray-200);
}

.blog-publish-instructions h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-publish-instructions h4 i {
    color: var(--primary);
}

.blog-publish-instructions p,
.blog-publish-instructions ol {
    font-size: 0.938rem;
    color: var(--gray-600);
    margin-bottom: 12px;
    line-height: 1.7;
}

.blog-publish-instructions ol {
    padding-left: 20px;
}

.blog-publish-instructions label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
    margin: 16px 0 8px;
}

.blog-json-output {
    background: var(--dark);
    color: var(--primary-light);
    padding: 16px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    overflow-x: auto;
    margin-bottom: 12px;
    white-space: pre-wrap;
    word-break: break-all;
}

.blog-publish-instructions .btn {
    margin-top: 8px;
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-form-wrapper {
        padding: 24px;
    }
}
