/* ===== PHENIGHT CYBERSECURITY PRO - GLOBAL STYLES ===== */

:root {
    --dark-brown: #1a0e05;
    --gold: #D4A853;
    --cream: #FDFDE1;
    --white: #FFFFF5;
    --black: #000000;
    --gold-light: rgba(212, 168, 83, 0.1);
    --gold-medium: rgba(212, 168, 83, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100%;
}

img,
svg,
video,
canvas,
iframe {
    max-width: 100%;
}

a[href^="mailto:"] {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-60px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(60px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes popIn {
    0% { opacity: 0; transform: scale(0.5); }
    70% { transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes popInLeft {
    0% { opacity: 0; transform: translateX(-100px) scale(0.8); }
    70% { transform: translateX(10px) scale(1.05); }
    100% { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes popInRight {
    0% { opacity: 0; transform: translateX(100px) scale(0.8); }
    70% { transform: translateX(-10px) scale(1.05); }
    100% { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes slideInRotate {
    from { opacity: 0; transform: translateY(60px) rotate(-5deg); }
    to { opacity: 1; transform: translateY(0) rotate(0deg); }
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

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

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(212, 168, 83, 0.3); }
    50% { box-shadow: 0 0 40px rgba(212, 168, 83, 0.6); }
}

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

@keyframes scan {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

@keyframes blink {
    50% { border-color: transparent; }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotateIn {
    from { opacity: 0; transform: rotate(-180deg) scale(0); }
    to { opacity: 1; transform: rotate(0deg) scale(1); }
}

@keyframes flipInX {
    from { transform: perspective(400px) rotateX(90deg); opacity: 0; }
    to { transform: perspective(400px) rotateX(0deg); opacity: 1; }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.6); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes ripple {
    0% { transform: scale(0); opacity: 1; }
    100% { transform: scale(4); opacity: 0; }
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

/* ===== SCROLL ANIMATIONS ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.from-left {
    transform: translateX(-60px);
}

.animate-on-scroll.from-right {
    transform: translateX(60px);
}

.animate-on-scroll.pop {
    transform: scale(0.7);
}

.animate-on-scroll.rotate {
    transform: translateY(60px) rotate(-5deg);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1) rotate(0deg);
}

/* ===== PARTICLES ===== */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 6s infinite ease-in-out;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 8s; }
.particle:nth-child(2) { left: 25%; animation-delay: 1s; animation-duration: 6s; }
.particle:nth-child(3) { left: 40%; animation-delay: 2s; animation-duration: 7s; }
.particle:nth-child(4) { left: 55%; animation-delay: 0.5s; animation-duration: 9s; }
.particle:nth-child(5) { left: 70%; animation-delay: 1.5s; animation-duration: 6.5s; }
.particle:nth-child(6) { left: 85%; animation-delay: 3s; animation-duration: 8.5s; }
.particle:nth-child(7) { left: 15%; animation-delay: 2.5s; animation-duration: 7.5s; }
.particle:nth-child(8) { left: 60%; animation-delay: 0.8s; animation-duration: 5.5s; }

/* ===== HEADER ===== */
header {
    background: rgba(26, 14, 5, 0.95);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(212, 168, 83, 0.2);
    animation: slideDown 0.6s ease-out;
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 0.7rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo-icon {
    width: 50px;
    height: 50px;
    animation: popIn 0.8s ease-out;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.logo-text h1 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gold);
    letter-spacing: 1px;
    line-height: 1;
}

.logo-text span {
    font-size: 0.7rem;
    color: var(--cream);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 500;
    opacity: 0.8;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

nav a {
    color: var(--cream);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    position: relative;
}

nav a:hover, nav a.active {
    color: var(--gold);
    background: var(--gold-light);
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30%;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--gold);
    cursor: pointer;
    padding: 0.5rem;
}

/* ===== HERO BADGE (shared across all pages) ===== */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--gold-light);
    border: 1px solid rgba(212, 168, 83, 0.3);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    color: var(--gold);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

/* ===== HERO BREADCRUMB (shared across all pages) ===== */
.hero-breadcrumb {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 2rem;
    color: var(--cream);
    font-size: 0.9rem;
}

.hero-breadcrumb a {
    color: var(--gold);
    text-decoration: none;
    transition: opacity 0.3s;
}

.hero-breadcrumb a:hover { opacity: 0.8; }

.hero-breadcrumb span {
    color: var(--cream);
    opacity: 0.5;
}

.hero-breadcrumb .current {
    color: var(--cream);
    opacity: 0.8;
}



/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--gold), #c49848);
    color: var(--black);
    padding: 1rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 30px rgba(212, 168, 83, 0.3);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.6s;
}

.btn-primary:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(212, 168, 83, 0.5);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: transparent;
    color: var(--gold);
    padding: 1rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    border: 2px solid var(--gold);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 168, 83, 0.2), transparent);
    transition: left 0.5s;
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-secondary:hover {
    background: var(--gold-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(212, 168, 83, 0.2);
}

.btn-icon {
    width: 20px;
    height: 20px;
}

/* ===== SECTION STYLES ===== */
.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

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

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.section-header p {
    font-size: 1.15rem;
    max-width: 650px;
    margin: 0 auto;
    opacity: 0.7;
}

/* ===== DARK SECTION TEXT COLORS ===== */
.dark-section h1,
.dark-section h2,
.dark-section h3,
.dark-section h4,
.stats h1,
.stats h2,
.stats h3,
.why-choose h1,
.why-choose h2,
.why-choose h3,
.testimonials h1,
.testimonials h2,
.testimonials h3 {
    color: var(--white);
}

.dark-section p,
.stats p,
.why-choose p,
.testimonials p {
    color: var(--cream);
}

/* Hero sections - default white text */
[class*="-hero"] h1,
[class*="-hero"] h2,
[class*="-hero"] h3,
[class*="-hero"] h4 {
    color: var(--white);
}

[class*="-hero"] > div > p,
[class*="-hero"] .hero-content p {
    color: var(--cream);
}


/* Dark section text */
.dark-section .section-header h2,
.stats .section-header h2,
.why-choose .section-header h2,
.testimonials .section-header h2 {
    color: var(--white);
}

.dark-section .section-header p,
.stats .section-header p,
.why-choose .section-header p,
.testimonials .section-header p {
    color: var(--cream);
}

/* Light section text */
.light-section .section-header h2,
.services .section-header h2,
.trusted .section-header h2,
.cta .section-header h2 {
    color: var(--dark-brown);
}

.light-section .section-header p,
.services .section-header p,
.trusted .section-header p,
.cta .section-header p {
    color: var(--dark-brown);
}

/* ===== GRID LINES & SCAN EFFECT ===== */
.grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(212, 168, 83, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 168, 83, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    animation: scan 4s linear infinite;
    opacity: 0.3;
    pointer-events: none;
}

/* ===== TERMINAL ===== */
.hero-terminal {
    max-width: 700px;
    margin: 4rem auto 0;
    background: rgba(26, 14, 5, 0.9);
    border: 1px solid rgba(212, 168, 83, 0.3);
    border-radius: 12px;
    overflow: hidden;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(212, 168, 83, 0.1);
    border-bottom: 1px solid rgba(212, 168, 83, 0.2);
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }

.terminal-title {
    flex: 1;
    text-align: center;
    font-size: 0.8rem;
    color: var(--gold);
    font-family: 'JetBrains Mono', monospace;
}

.terminal-body {
    padding: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}

.terminal-line {
    margin-bottom: 0.5rem;
    color: var(--cream);
    opacity: 0.8;
}

.terminal-prompt {
    color: var(--gold);
}

.terminal-success {
    color: #27c93f;
}

.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: var(--gold);
    animation: blink 1s infinite;
    vertical-align: middle;
    margin-left: 4px;
}

/* ===== STATS ===== */
.stats {
    background: var(--dark-brown);
    padding: 5rem 2rem;
    position: relative;
}

.stats::before, .stats::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.stats::before { top: 0; }
.stats::after { bottom: 0; }

.stats-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    border: 1px solid rgba(212, 168, 83, 0.2);
    transition: all 0.4s ease;
}

.stat-card:hover {
    background: rgba(212, 168, 83, 0.1);
    border-color: var(--gold);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: var(--gold-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    transition: all 0.4s ease;
}

.stat-card:hover .stat-icon {
    animation: rotateIn 0.6s ease-out, glow 2s infinite;
}

.stat-icon svg {
    width: 28px;
    height: 28px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--cream);
    font-size: 0.95rem;
    opacity: 0.7;
    font-weight: 500;
}

/* ===== SERVICES (LIGHT) ===== */
.services {
    background: var(--white);
    padding: 8rem 2rem;
}

.services-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: rgba(26, 14, 5, 0.03);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(26, 14, 5, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    background: var(--white);
    border-color: var(--gold);
    box-shadow: 0 20px 50px rgba(26, 14, 5, 0.1);
}

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

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--gold-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    background: var(--gold);
    animation: popIn 0.5s ease-out;
}

.service-icon svg {
    width: 36px;
    height: 36px;
    color: var(--gold);
    transition: color 0.4s ease;
}

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

.service-card h3 {
    color: var(--dark-brown);
    font-size: 1.35rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-card p {
    color: var(--dark-brown);
    line-height: 1.7;
    opacity: 0.7;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
}

.service-link:hover {
    gap: 0.75rem;
    color: var(--dark-brown);
}

.service-link svg {
    width: 18px;
    height: 18px;
}

/* ===== WHY CHOOSE (DARK) ===== */
.why-choose {
    background: var(--dark-brown);
    padding: 8rem 2rem;
}

.why-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.why-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.why-content > p {
    color: var(--cream);
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    line-height: 1.8;
    opacity: 0.7;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 1.2rem 0;
    padding-left: 3rem;
    position: relative;
    color: var(--cream);
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(212, 168, 83, 0.1);
    transition: all 0.3s ease;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li:hover {
    padding-left: 3.5rem;
    color: var(--gold);
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: var(--gold-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.feature-list li:hover::before {
    background: var(--gold);
    animation: popIn 0.4s ease-out;
}

.feature-list li::after {
    content: '✓';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    font-weight: bold;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.feature-list li:hover::after {
    color: var(--dark-brown);
}

.why-visual {
    position: relative;
}

.shield-graphic {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    animation: float 6s ease-in-out infinite;
}

.shield-graphic svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 40px rgba(212, 168, 83, 0.3));
}

.shield-ring {
    animation: rotate 10s linear infinite;
    transform-origin: center;
}

.shield-ring-reverse {
    animation: rotate 15s linear infinite reverse;
    transform-origin: center;
}

/* ===== TRUSTED (LIGHT) ===== */
.trusted {
    background: var(--white);
    padding: 5rem 2rem;
    text-align: center;
}

.trusted-logos {
    max-width: 1000px;
    margin: 3rem auto 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.trusted-logo {
    padding: 1.2rem 2.5rem;
    background: rgba(26, 14, 5, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(26, 14, 5, 0.1);
    color: var(--dark-brown);
    opacity: 0.6;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s ease;
}

.trusted-logo:hover {
    opacity: 1;
    border-color: var(--gold);
    background: var(--gold-light);
    transform: scale(1.05);
}

/* ===== TESTIMONIALS (DARK) ===== */
.testimonials {
    background: var(--black);
    padding: 8rem 2rem;
    position: relative;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(212, 168, 83, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.testimonials-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.testimonial-card {
    background: rgba(26, 14, 5, 0.8);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(212, 168, 83, 0.15);
    transition: all 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.testimonial-quote {
    font-size: 3rem;
    color: var(--gold);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 1rem;
}

.testimonial-card p {
    color: var(--cream);
    line-height: 1.8;
    opacity: 0.8;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    background: var(--gold-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--gold);
    font-size: 1.2rem;
}

.testimonial-name {
    font-weight: 600;
    color: var(--white);
}

.testimonial-role {
    font-size: 0.85rem;
    color: var(--cream);
    opacity: 0.6;
}

.testimonial-stars {
    color: var(--gold);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* ===== CTA ===== */
.cta {
    padding: 8rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta.light {
    background: var(--white);
}

.cta.dark {
    background: var(--dark-brown);
}

.cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(212, 168, 83, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.cta p {
    font-size: 1.1rem;
    opacity: 0.8;
    max-width: 700px;
    margin: 1.5rem auto 0;
    line-height: 1.8;
}

/* nav position:relative moved to .nav-container for full-width dropdown */



/* ===== FOOTER ===== */
footer {
    background: var(--dark-brown);
    padding: 5rem 2rem 2rem;
    border-top: 1px solid rgba(212, 168, 83, 0.2);
}

.footer-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 4rem;
}


.footer-col p {
    color: var(--cream);
    opacity: 0.6;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.footer-brand,
.footer-col {
    min-width: 0;
}

.footer-brand p {
    color: var(--cream);
    opacity: 0.6;
    margin-top: 1rem;
    line-height: 1.7;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.footer-col a {
    color: var(--cream);
    text-decoration: none;
    display: block;
    padding: 0.5rem 0;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.footer-col a:hover {
    color: var(--gold);
    opacity: 1;
    padding-left: 0.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(212, 168, 83, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    transition: all 0.3s ease;
    padding: 0;
    opacity: 1;
}

.footer-social a:hover {
    background: var(--gold);
    color: var(--black);
    padding: 0;
    animation: popIn 0.4s ease-out;
}

.footer-social svg {
    width: 20px;
    height: 20px;
}

.footer-newsletter input {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 168, 83, 0.2);
    border-radius: 8px;
    color: var(--cream);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-family: inherit;
}

.footer-newsletter input:focus {
    outline: none;
    border-color: var(--gold);
}

.footer-newsletter button {
    width: 100%;
    padding: 0.75rem;
    background: var(--gold);
    color: var(--black);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.footer-newsletter button:hover {
    background: #e8c068;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(212, 168, 83, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--cream);
    opacity: 0.5;
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    row-gap: 0.75rem;
}

.footer-bottom-links a {
    color: var(--cream);
    opacity: 0.5;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--gold);
    opacity: 1;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 1.5rem;
        gap: 0.75rem;
    }
    nav a {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Hamburger nav: 860px and below */
@media (max-width: 860px) {
    .nav-container {
        align-items: center;
    }
    nav ul {
        /* Always flex in mobile — visibility controlled by max-height + opacity,
           NOT display, so CSS transitions actually animate */
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        width: 100%;
        background: rgba(14, 8, 2, 0.97);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0;
        border-bottom: 2px solid rgba(212, 168, 83, 0.4);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
        z-index: 999;
        /* Hidden state */
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.3s ease;
        /* top is set dynamically by JS to sit right below the header */
    }
    nav ul.active {
        max-height: 600px;
        opacity: 1;
        pointer-events: all;
    }
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 10px;
        background: rgba(212, 168, 83, 0.1);
        border: 1px solid rgba(212, 168, 83, 0.25);
        color: var(--gold);
        transition: all 0.3s ease;
        cursor: pointer;
    }
    .logo-icon {
        width: 40px !important;
        height: 40px !important;
    }
    .logo-text h1 {
        font-size: 1.2rem !important;
        line-height: 1 !important;
    }
    .logo-text span {
        font-size: 0.58rem !important;
        letter-spacing: 2px !important;
    }
    .mobile-menu-btn:hover,
    .mobile-menu-btn[aria-expanded="true"] {
        background: rgba(212, 168, 83, 0.2);
        border-color: rgba(212, 168, 83, 0.5);
    }
    nav ul li {
        width: 100%;
        border-bottom: 1px solid rgba(212, 168, 83, 0.1);
    }
    nav ul li:last-child {
        border-bottom: none;
    }
    nav a {
        display: flex;
        align-items: center;
        width: 100%;
        text-align: left;
        padding: 1rem 1.75rem;
        border-radius: 0;
        font-size: 1rem;
        font-weight: 500;
        letter-spacing: 0.02em;
        color: rgba(245, 235, 220, 0.85);
        transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
        border-bottom: none;
    }
    nav a::before {
        content: '';
        display: inline-block;
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background: var(--gold);
        margin-right: 0.75rem;
        opacity: 0;
        transform: scale(0);
        transition: opacity 0.2s ease, transform 0.2s ease;
        flex-shrink: 0;
    }
    nav a:hover,
    nav a.active {
        background: rgba(212, 168, 83, 0.08);
        color: var(--gold);
        padding-left: 2rem;
    }
    nav a:hover::before,
    nav a.active::before {
        opacity: 1;
        transform: scale(1);
    }
    nav a.active::after {
        display: none;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        text-align: center;
    }
    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    .footer-newsletter,
    .footer-newsletter input,
    .footer-newsletter button {
        width: 100%;
    }
    .footer-col {
        width: 100%;
    }
    .logo-text h1 {
        font-size: 1.4rem;
    }
    .logo-text span {
        font-size: 0.65rem;
    }
}

/* Force consistent mobile header/menu across pages
   (many pages define nav styles inline after styles.css). */
@media (max-width: 860px) {
    body.mobile-menu-open {
        overflow: hidden !important;
    }

    header nav ul {
        display: flex !important;
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        padding: 0 !important;
        gap: 0 !important;
        max-height: 0 !important;
        overflow: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        z-index: 1000 !important;
        box-sizing: border-box !important;
    }

    header nav ul.active {
        display: flex !important;
        max-height: 600px !important;
        opacity: 1 !important;
        pointer-events: all !important;
    }

    body > ul.mobile-menu-layer {
        margin: 0 !important;
        list-style: none !important;
        background: rgba(14, 8, 2, 0.97) !important;
        backdrop-filter: blur(24px) !important;
        -webkit-backdrop-filter: blur(24px) !important;
        border-bottom: 2px solid rgba(212, 168, 83, 0.35) !important;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7) !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0 !important;
        padding: 0 !important;
    }

    body > ul.mobile-menu-layer li {
        width: 100% !important;
    }

    body > ul.mobile-menu-layer a {
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        padding: 0.9rem 1.15rem !important;
        color: var(--cream) !important;
        text-decoration: none !important;
        font-weight: 500 !important;
        font-size: 0.96rem !important;
        border-radius: 0 !important;
        border-bottom: 1px solid rgba(212, 168, 83, 0.12) !important;
        background: transparent !important;
    }

    body > ul.mobile-menu-layer a:hover,
    body > ul.mobile-menu-layer a.active {
        color: var(--gold) !important;
        background: rgba(212, 168, 83, 0.12) !important;
    }

    header nav ul li {
        width: 100% !important;
    }

    header nav a {
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        text-align: left !important;
        border-radius: 0 !important;
        padding: 0.85rem 1.15rem !important;
        font-size: 0.96rem !important;
        line-height: 1.3 !important;
    }

    header .mobile-menu-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

@media (max-width: 600px) {
    .nav-container {
        padding: 0 1rem;
    }
    nav ul {
        padding: 1rem 1rem 1.5rem;
    }
    .footer-grid {
        gap: 1.5rem;
    }
}

/* ===== SMALL SCREEN FIXES (480px and below) ===== */
@media (max-width: 480px) {
    header {
        padding: 0.65rem 0 !important;
    }
    .logo-icon {
        width: 34px !important;
        height: 34px !important;
    }
    .logo-text h1 {
        font-size: 1.05rem !important;
    }
    .logo-text span {
        font-size: 0.52rem !important;
        letter-spacing: 1.6px !important;
    }
    .btn-primary,
    .btn-secondary {
        padding: 0.85rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
        justify-content: center;
    }

    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .section-header h2 {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 1.5rem 1rem;
    }

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

    footer {
        padding: 3rem 1rem 1.5rem;
    }
}

/* Force consistent footer layout on mobile across pages
   (many pages define footer CSS inline after styles.css). */
@media (max-width: 860px) {
    footer .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    footer .footer-brand,
    footer .footer-col {
        width: 100% !important;
        min-width: 0 !important;
    }

    footer .footer-bottom {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 1rem !important;
    }

    footer .footer-bottom-links {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 1rem !important;
    }

    footer .footer-newsletter,
    footer .footer-newsletter input,
    footer .footer-newsletter button {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    /* Extra-specific safety override against page-level !important rules */
    html body footer .footer-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
    }

    html body footer .footer-col,
    html body footer .footer-brand,
    html body footer .footer-newsletter {
        max-width: 100% !important;
        min-width: 0 !important;
    }
}

@media (max-width: 992px) {
    footer .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
}

/* Android-focused responsive polish across all pages */
@media (max-width: 768px) {
    section,
    .hero,
    [class*="-hero"],
    .cta,
    .services,
    .stats,
    .trusted,
    .testimonials,
    .why-choose {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .section-header p,
    .section-subtitle,
    .hero p,
    [class*="-hero"] p {
        font-size: 1rem !important;
        line-height: 1.6 !important;
    }

    .hero h1,
    .hero h2,
    [class*="-hero"] h1,
    [class*="-hero"] h2 {
        font-size: clamp(2rem, 8vw, 3rem) !important;
        line-height: 1.18 !important;
        letter-spacing: 0 !important;
        max-width: 16ch !important;
        margin-left: auto !important;
        margin-right: auto !important;
        text-wrap: balance;
    }

    .btn-primary,
    .btn-secondary,
    button,
    input,
    select,
    textarea {
        max-width: 100% !important;
    }
}

/* Ultimate horizontal overflow guard */
@media (max-width: 992px) {
    body,
    section,
    header,
    footer,
    .nav-container,
    .contact-container,
    .locations-grid,
    .services-grid,
    .industry-grid,
    .case-grid,
    .stats-grid,
    .testimonials-grid {
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    .hero h1,
    .hero h2,
    [class*="-hero"] h1,
    [class*="-hero"] h2 {
        font-size: clamp(1.75rem, 8.6vw, 2.35rem) !important;
        line-height: 1.2 !important;
        max-width: 14.5ch !important;
    }

    .hero p,
    [class*="-hero"] p {
        font-size: 0.98rem !important;
    }

    .service-card,
    .testimonial-card,
    .stat-card,
    .pricing-card,
    .location-card {
        padding: 1.25rem !important;
    }
}

/* ===== WHATSAPP FLOATING BUBBLE ===== */
.whatsapp-bubble {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #D4A853 0%, #B6893D 100%);
    color: #1a0e05;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
    z-index: 1400;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.whatsapp-bubble:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.32);
    background: linear-gradient(135deg, #e4bc6e 0%, #c49848 100%);
}

.whatsapp-bubble svg {
    width: 30px;
    height: 30px;
    display: block;
}

@media (max-width: 480px) {
    .whatsapp-bubble {
        width: 52px;
        height: 52px;
        right: 14px;
        bottom: 14px;
    }
    .whatsapp-bubble svg {
        width: 26px;
        height: 26px;
    }
}
