/* ==========================================
   AETHERTECH DYNAMICS - ULTIMATE CORE STYLES
   Colors: Navy (#1a2c42), Coral (#e85a4f), Green (#5d9c59), Gold (#ffc857)
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
    /* Brand Colors (Strictly Preserved) */
    --primary-color: #1a2c42;        /* Deep navy blue */
    --primary-dark: #0f1a29;
    --primary-light: #2d4a6d;
    --secondary-color: #e85a4f;      /* Coral accent */
    --secondary-dark: #c5423a;
    --secondary-light: #ff7b6e;
    --tertiary-color: #5d9c59;       /* Muted green / Security accent */
    --accent-color: #ffc857;         /* Gold accent */
    
    /* Neutral & Text Colors */
    --text-color: #1e293b;
    --text-light: #64748b;
    --light-text: #ffffff;
    --dark-bg: #0f1a29;
    --light-bg: #f8fafc;
    --card-bg: #ffffff;
    --border-color: rgba(26, 44, 66, 0.08);
    --border-glow: rgba(232, 90, 79, 0.25);
    
    /* Modern Glassmorphism & Elevation */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-dark: rgba(15, 26, 41, 0.85);
    --glass-border: rgba(255, 255, 255, 0.2);
    --transition-speed: 0.3s;
    --box-shadow: 0 4px 12px rgba(26, 44, 66, 0.06);
    --card-shadow: 0 10px 30px -5px rgba(26, 44, 66, 0.07), 0 4px 12px rgba(0, 0, 0, 0.03);
    --hover-shadow: 0 22px 45px -10px rgba(26, 44, 66, 0.14), 0 8px 24px rgba(232, 90, 79, 0.1);
    
    /* Typography Stacks */
    --font-heading: 'Outfit', 'Space Grotesk', sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    line-height: 1.65;
    color: var(--text-color);
    background-color: var(--light-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.25;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all var(--transition-speed) ease;
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

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

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-header .badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(232, 90, 79, 0.1);
    color: var(--secondary-color);
    border: 1px solid rgba(232, 90, 79, 0.2);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 2.25rem;
    color: var(--primary-color);
    margin-bottom: 16px;
    position: relative;
    display: block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 4px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 720px;
    margin: 24px auto 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--light-text);
    box-shadow: 0 6px 20px rgba(26, 44, 66, 0.25);
}

.btn-primary:hover {
    color: var(--light-text);
    box-shadow: 0 10px 28px rgba(26, 44, 66, 0.38);
    transform: translateY(-3px);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: var(--light-text);
    box-shadow: 0 6px 20px rgba(232, 90, 79, 0.3);
}

.btn-secondary:hover {
    color: var(--light-text);
    box-shadow: 0 10px 28px rgba(232, 90, 79, 0.45);
    transform: translateY(-3px);
}

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

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--light-text);
    transform: translateY(-3px);
}

.btn-light {
    background: var(--light-text);
    color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.btn-light:hover {
    color: var(--secondary-color);
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
    transform: translateY(-3px);
}

/* Enhanced Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
}

.top-bar {
    background: var(--primary-dark);
    color: var(--light-text);
    padding: 8px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s ease;
}

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

.contact-info span {
    margin-right: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.85);
}

.contact-info i {
    color: var(--accent-color);
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    color: rgba(255, 255, 255, 0.8);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: var(--light-text);
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Main Navigation */
.main-nav {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 20px rgba(15, 26, 41, 0.05);
    border-bottom: 1px solid rgba(26, 44, 66, 0.06);
    transition: all 0.4s ease;
}

header.scrolled .main-nav {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(15, 26, 41, 0.1);
}

header.scrolled .top-bar {
    max-height: 0;
    padding: 0;
    overflow: hidden;
    border: none;
    opacity: 0;
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 52px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

header.scrolled .logo img {
    height: 44px;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
    transition: all 0.3s ease;
    padding: 6px;
}

.menu-toggle:hover {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 0;
    position: relative;
    transition: all 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -4px;
    left: 0;
    background: linear-gradient(90deg, var(--secondary-color), var(--secondary-light));
    border-radius: 3px;
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary-color);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Common Hero Section */
.hero {
    position: relative;
    padding: 190px 0 120px;
    background: linear-gradient(135deg, rgba(15, 26, 41, 0.92), rgba(26, 44, 66, 0.88)), url('../images/CT.png') center/cover no-repeat;
    color: var(--light-text);
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(232, 90, 79, 0.15) 0%, rgba(255, 200, 87, 0.05) 40%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 840px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.25rem;
    color: var(--light-text);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 36px;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Call to Action Banner */
.cta {
    padding: 90px 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: var(--light-text);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(232, 90, 79, 0.2) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(255, 200, 87, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

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

.cta h2 {
    color: var(--light-text);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 36px;
}

/* Footer Styling */
.footer-main {
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 40px;
    position: relative;
    border-top: 4px solid var(--secondary-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr 1.5fr;
    gap: 48px;
    margin-bottom: 60px;
}

.footer-about p {
    margin: 18px 0;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-logo {
    height: 52px;
    width: auto;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 12px;
    display: inline-block;
}

.footer-links h3,
.footer-services h3,
.footer-contact h3 {
    color: var(--light-text);
    font-size: 1.2rem;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.footer-links h3::after,
.footer-services h3::after,
.footer-contact h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.footer-links ul li,
.footer-services ul li {
    margin-bottom: 12px;
}

.footer-links a,
.footer-services a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover,
.footer-services a:hover {
    color: var(--accent-color);
    transform: translateX(4px);
}

.footer-contact ul li {
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
}

.footer-contact ul li i {
    color: var(--secondary-color);
    margin-top: 4px;
}

.footer-bottom {
    background-color: #070d15;
    padding: 24px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9rem;
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: var(--light-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
    box-shadow: 0 8px 20px rgba(232, 90, 79, 0.4);
    z-index: 99;
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-4px) scale(1.05);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate { opacity: 0; }
.animate.fade-in { animation: fadeIn 0.8s ease forwards; }
.animate.fade-in-up { animation: fadeInUp 0.8s ease forwards; }
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }

/* Responsive Media Queries */
/* Services Overview Grid & Cards */
.services-overview {
    padding: 100px 0;
    background-color: var(--light-bg);
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 44px 32px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: height 0.3s ease;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--hover-shadow);
}

.service-card:hover::before {
    height: 6px;
}

.service-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--light-text);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 1.8rem;
    box-shadow: 0 10px 20px rgba(26, 44, 66, 0.18);
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    transform: rotateY(180deg);
    box-shadow: 0 10px 20px rgba(232, 90, 79, 0.3);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: var(--secondary-color);
}

.service-card h4 {
    color: var(--tertiary-color);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.98rem;
    line-height: 1.65;
}

/* Solutions Showcase */
.solutions-showcase {
    padding: 100px 0;
    background-color: var(--card-bg);
}

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

.solution-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 320px;
    box-shadow: var(--card-shadow);
}

.solution-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.solution-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 26, 41, 0.92) 0%, rgba(15, 26, 41, 0.4) 60%, transparent 100%);
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: var(--light-text);
    transition: all 0.4s ease;
}

.solution-overlay h3 {
    color: var(--light-text);
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.solution-overlay p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    line-height: 1.4;
}

.solution-item:hover img {
    transform: scale(1.08);
}

.solution-item:hover .solution-overlay {
    background: linear-gradient(to top, rgba(15, 26, 41, 0.96) 0%, rgba(15, 26, 41, 0.55) 100%);
}

/* Floating Elements */
.floating-element {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 90, 79, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
    z-index: 1;
    animation: floatAnim 16s infinite ease-in-out;
}

@keyframes floatAnim {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.1); }
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -320px;
        width: 300px;
        height: 100vh;
        background: var(--card-bg);
        flex-direction: column;
        align-items: flex-start;
        padding: 90px 32px 32px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
        transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 1001;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        margin-bottom: 20px;
    }

    .nav-links a {
        font-size: 1.1rem;
        display: block;
        padding: 10px 0;
    }

    .close-menu {
        position: absolute;
        top: 24px;
        right: 24px;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--primary-color);
    }

    .hero {
        padding: 150px 0 90px;
    }

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

    .hero p {
        font-size: 1.05rem;
    }

    .section-header h2 {
        font-size: 1.85rem;
    }

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

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

@media (max-width: 576px) {
    .top-bar {
        display: none;
    }

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