/* ===== HOME PAGE SPECIAL STYLING ===== */
/* Professional AntiGravity Theme */

/* Override fonts for home page only */
body.home-page {
    font-family: var(--font-primary);
    overflow-x: hidden;
    position: relative;
    background-color: #0A0F1F;
    /* Deep Navy Base */
    color: #E0E0E0;
}

body.home-page h1,
body.home-page h2 {
    font-family: var(--font-display);
}

/* ===== ANTIGRAVITY HERO BACKGROUND ===== */
.antigravity-hero-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(to bottom, #0A0F1F 0%, #050810 100%);
    overflow: hidden;
    perspective: 1000px;
}

/* 1. Tech Grid Overlay */
.tech-grid-overlay {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image:
        linear-gradient(rgba(0, 198, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 198, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg) translateY(0);
    animation: gridFloat 30s linear infinite;
    opacity: 0.6;
}

@keyframes gridFloat {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0);
    }

    100% {
        transform: perspective(500px) rotateX(60deg) translateY(50px);
    }
}

/* 2. Tech Particles Canvas Layer */
#techParticlesCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* 3. Floating Tech Shapes */
.floating-tech-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.tech-shape {
    position: absolute;
    background: rgba(0, 245, 255, 0.03);
    border: 1px solid rgba(0, 245, 255, 0.1);
    backdrop-filter: blur(2px);
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0, 198, 255, 0.05);
}

.shape-1 {
    width: 150px;
    height: 150px;
    top: 15%;
    left: 10%;
    transform: rotate(45deg);
    animation: floatShape1 12s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    right: 5%;
    border-radius: 50%;
    border: 1px dashed rgba(106, 90, 205, 0.2);
    animation: floatShape2 15s ease-in-out infinite;
}

.shape-3 {
    width: 100px;
    height: 100px;
    top: 40%;
    right: 30%;
    transform: rotate(15deg);
    animation: floatShape3 10s ease-in-out infinite;
    background: rgba(106, 90, 205, 0.05);
    border-color: rgba(106, 90, 205, 0.15);
}

@keyframes floatShape1 {

    0%,
    100% {
        transform: translate(0, 0) rotate(45deg);
    }

    50% {
        transform: translate(20px, -30px) rotate(50deg);
    }
}

@keyframes floatShape2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-30px, 20px) scale(1.05);
    }
}

@keyframes floatShape3 {

    0%,
    100% {
        transform: translate(0, 0) rotate(15deg);
    }

    50% {
        transform: translate(15px, 15px) rotate(0deg);
    }
}

/* 4. Data Streams */
.data-stream-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.data-stream {
    position: absolute;
    left: -100px;
    width: 150px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 198, 255, 0.5), transparent);
    filter: drop-shadow(0 0 5px #00C6FF);
    animation: dataStreamFlow 8s linear infinite;
    opacity: 0;
}

.data-stream:nth-child(2) {
    animation-delay: 3s;
    animation-duration: 12s;
    background: linear-gradient(90deg, transparent, rgba(106, 90, 205, 0.5), transparent);
}

.data-stream:nth-child(3) {
    animation-delay: 6s;
    animation-duration: 10s;
}

@keyframes dataStreamFlow {
    0% {
        left: -150px;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

/* 5. Center Hero Glow */
.hero-glow-center {
    position: fixed;
    /* Fixed to stay behind content on scroll */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vh;
    background: radial-gradient(circle, rgba(0, 198, 255, 0.08) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    animation: glowPulseCenter 5s ease-in-out infinite alternate;
}

@keyframes glowPulseCenter {
    0% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* ===== HERO TYPOGRAPHY & ELEMENTS ===== */

/* Gradient Title */
/* GOLDEN TITLE UPDATE */
body.home-page .hero-title {
    /* Removed font-family override */
    text-transform: none;
    letter-spacing: -1px;
}

body.home-page .hero-title .title-main {
    font-family: 'Playfair Display', serif;
    color: #FFEC8B;
    background: none;
    -webkit-text-fill-color: initial;
    background-clip: border-box;
    -webkit-background-clip: border-box;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    filter: none;
    animation: none;
    font-weight: 700;
}

body.home-page .hero-title .title-sub {
    color: #FFEC8B;
    background: none;
    -webkit-text-fill-color: initial;
    background-clip: border-box;
    -webkit-background-clip: border-box;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    opacity: 0.95;
    letter-spacing: 2px;
    font-weight: 700;
}

body.home-page .hero-tagline {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: rgba(255, 255, 255, 0.9);
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
        filter: drop-shadow(0 0 20px rgba(0, 198, 255, 0.3));
    }

    100% {
        background-position: 100% 50%;
        filter: drop-shadow(0 0 30px rgba(0, 245, 255, 0.6));
    }
}

/* Glass Buttons */
body.home-page .btn-primary {
    background: rgba(0, 198, 255, 0.1);
    color: #00F5FF;
    border: 1px solid rgba(0, 198, 255, 0.4);
    box-shadow: 0 0 15px rgba(0, 198, 255, 0.1);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

body.home-page .btn-primary:hover {
    background: rgba(0, 198, 255, 0.2);
    box-shadow: 0 0 25px rgba(0, 198, 255, 0.4);
    transform: translateY(-2px);
    border-color: #00F5FF;
    color: #FFFFFF;
}

body.home-page .btn-secondary {
    background: transparent;
    color: #E0E0E0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.home-page .btn-secondary:hover {
    border-color: #6A5ACD;
    color: #6A5ACD;
    background: rgba(106, 90, 205, 0.1);
}

/* Glass Cards */
body.home-page .feature-card,
body.home-page .service-preview-card,
body.home-page .stat-card {
    background: rgba(10, 15, 31, 0.7);
    border: 1px solid rgba(0, 198, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

body.home-page .feature-card:hover,
body.home-page .service-preview-card:hover {
    border-color: #00F5FF;
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.15);
    transform: translateY(-5px);
}

/* Icons */
body.home-page .feature-icon svg,
body.home-page .service-icon svg {
    stroke: #00C6FF;
    filter: drop-shadow(0 0 8px rgba(0, 198, 255, 0.5));
}

body.home-page .stat-number {
    color: #00F5FF;
    text-shadow: 0 0 15px rgba(0, 245, 255, 0.5);
}

/* Animation Visibility */
body.home-page .it-animations-section {
    z-index: 5;
    position: relative;
    /* Ensure only orange animation shows */
}

/* ===== SERVICE CARD BACKGROUND PHOTOS ===== */

/* Base Service Card Updates */
body.home-page .service-preview-card {
    position: relative;
    overflow: hidden;
    /* Ensure content stays above background */
    z-index: 1;
    /* Clean transition for hover effects */
    transition: all 0.4s ease;
    /* Improve text contrast */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Common Background Image Settings */
body.home-page .service-preview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Dark Overlay for Readability */
    opacity: 0.15;
    z-index: -1;
    transition: all 0.5s ease;
    filter: grayscale(80%) blur(1px);
}

/* Hover Effect: Brighten Image & Add Color */
body.home-page .service-preview-card:hover::before {
    opacity: 0.4;
    filter: grayscale(0%) blur(0px);
    transform: scale(1.1);
}

/* 1. Tech & Security */
body.home-page .service-preview-card:nth-child(1)::before {
    background-image: url('https://images.unsplash.com/photo-1550751827-4bd374c3f58b?q=80&w=800&auto=format&fit=crop');
}

/* 2. CCTV & AMC */
body.home-page .service-preview-card:nth-child(2)::before {
    background-image: url('https://images.unsplash.com/photo-1557597774-9d273605dfa9?q=80&w=800&auto=format&fit=crop');
}

/* 3. Networking */
body.home-page .service-preview-card:nth-child(3)::before {
    background-image: url('https://images.unsplash.com/photo-1544197150-b99a580bb7a8?q=80&w=800&auto=format&fit=crop');
}

/* 4. Access Control */
body.home-page .service-preview-card:nth-child(4)::before {
    background-image: url('https://images.unsplash.com/photo-1563986768609-322da13575f3?q=80&w=800&auto=format&fit=crop');
}

/* 5. Intercom Systems */
body.home-page .service-preview-card:nth-child(5)::before {
    background-image: url('https://images.unsplash.com/photo-1586023492125-27b2c045efd7?q=80&w=800&auto=format&fit=crop');
}

/* 6. POS Solution */
body.home-page .service-preview-card:nth-child(6)::before {
    background-image: url('https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?q=80&w=800&auto=format&fit=crop');
}

/* Specific Border Colors */
/* Tech & Security: Green */
body.home-page .service-preview-card:nth-child(1):hover {
    border-color: #00FF7F;
}

/* CCTV: Blue */
body.home-page .service-preview-card:nth-child(2):hover {
    border-color: #00C6FF;
}

/* Networking: Purple */
body.home-page .service-preview-card:nth-child(3):hover {
    border-color: #9D4EDD;
}

/* Access Control: Gold */
body.home-page .service-preview-card:nth-child(4):hover {
    border-color: #FFD700;
}

/* Intercom: Cyan */
body.home-page .service-preview-card:nth-child(5):hover {
    border-color: #00FFFF;
}

/* POS: Orange */
body.home-page .service-preview-card:nth-child(6):hover {
    border-color: #FF8C00;
}

/* Highlight Text Styles */
.highlight-text-gold {
    display: block;
    margin-top: 0.5rem;
    padding: 0.2rem 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #FFD700;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 4px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.1);
    width: fit-content;
}

body.home-page .service-preview-card:hover .highlight-text-gold {
    background: rgba(255, 215, 0, 0.2);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    transform: scale(1.02);
    transition: all 0.3s ease;
}