/* ==========================================================================
   Modern Design System - Ankaya Heating & Cooling (Icy Theme)
   ========================================================================== */
:root {
    /* Core Colors - Icy/Cooling Palette */
    --primary: #00d2ff;       /* Bright Icy Cyan */
    --primary-light: #e6fbff; /* Snow White/Cyan */
    --secondary: #0056b3;     /* Deep Frost Blue */
    --secondary-light: #dbeafe; /* Light Ice Blue */
    
    /* Neutral Palette */
    --dark: #071529;          /* Deep Night Sky / Industrial Cold */
    --text: #334155;
    --text-light: #64748b;
    --bg-light: #f0f8ff;      /* Alice Blue - Subtle cold background */
    --white: #ffffff;
    --border: #cce5ff;        /* Frosty border */
    
    /* Effects */
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 8px 16px -4px rgba(0, 162, 255, 0.15), 0 4px 8px -4px rgba(0, 162, 255, 0.1);
    --shadow-lg: 0 24px 32px -8px rgba(0, 162, 255, 0.2), 0 12px 16px -8px rgba(0, 162, 255, 0.15);
    --glass: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.3);
    
    /* Frost Animation Variables */
    --frost-gradient: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.1) 100%);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text);
    background-color: var(--bg-light);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--dark);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

/* Header & Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.main-header.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    transition: var(--transition);
}

.main-header.scrolled .header-container {
    height: 70px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--primary);
    white-space: nowrap;
}

.logo-accent {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-links > li {
    position: relative;
}

.nav-links a {
    font-weight: 500;
    color: var(--text);
    font-size: 0.95rem;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links li.active a {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links li.active a::after {
    width: 100%;
}

/* Mega Menu */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--white);
    min-width: 900px;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.nav-links li:hover .mega-menu {
    display: grid;
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-column h3 {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    color: var(--primary);
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.mega-column ul li {
    margin-bottom: 0.75rem;
}

.mega-column ul li a {
    color: var(--text-light);
    font-size: 0.95rem;
    transition: var(--transition);
}

.mega-column ul li a:hover {
    color: var(--primary);
    padding-left: 0.5rem;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    background: var(--dark);
    color: var(--white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.9), transparent);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content h1 {
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 10px 15px -3px rgba(0, 102, 204, 0.3);
}

.btn-primary:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(255, 77, 0, 0.3);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--dark);
}

/* Cards */
.card {
    background: var(--white);
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

/* Page Headers */
.page-header {
    padding: 12rem 0 6rem;
    background: var(--dark);
    color: var(--white);
    text-align: center;
    position: relative;
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 1rem;
}

.page-header p {
    color: var(--text-light);
    font-size: 1.25rem;
}

/* Footer */
.main-footer {
    background: var(--dark);
    color: var(--white);
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-light);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
}

.mobile-menu-btn {
    display: none;
}

/* Responsive */
@media (max-width: 1100px) {
    .nav-links { gap: 0.5rem; }
    .nav-links a { font-size: 0.9rem; }
}

@media (max-width: 992px) {
    .mobile-menu-btn { 
        display: block; 
        font-size: 1.8rem; 
        cursor: pointer; 
        color: var(--primary);
        z-index: 1001;
    }
    .nav-links { 
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 2rem;
        align-items: center;
        transition: 0.4s ease-in-out;
        overflow-y: auto;
    }
    .nav-links.active {
        left: 0;
    }
    .nav-links > li {
        margin: 1rem 0;
        width: 100%;
        text-align: center;
    }
    .mega-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0;
        min-width: auto;
        display: none; /* Can be toggled with JS, for now hide on mobile */
    }
    .nav-links li:hover .mega-menu {
        display: none; /* Disable hover mega menu on mobile */
    }
    .hero-content { text-align: center; }
    .hero-buttons { flex-direction: column; align-items: center; }
}

/* Utility */
.section-padding { padding: 80px 0; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.text-center { text-align: center; }

/* Animations */
[data-aos] {
    opacity: 0;
    transition-property: transform, opacity;
}

[data-aos].aos-animate {
    opacity: 1;
}

/* ==========================================================================
   Ice & Frost Effects
   ========================================================================== */
.frost-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><rect width="100" height="100" fill="url(%23frostGradient)"/><defs><linearGradient id="frostGradient" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.3"/><stop offset="50%" stop-color="%2300d2ff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0.4"/></linearGradient></defs></svg>');
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    pointer-events: none;
    z-index: 1;
}

.icy-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px 0 rgba(0, 210, 255, 0.15);
}

.icy-card:hover {
    box-shadow: 0 8px 32px 0 rgba(0, 210, 255, 0.3);
    border-color: var(--primary);
}

.snow-particle {
    position: absolute;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    animation: snowfall linear infinite;
    opacity: 0.8;
}

@keyframes snowfall {
    0% { transform: translateY(-100vh) rotate(0deg); }
    100% { transform: translateY(100vh) rotate(360deg); }
}

.btn-icy {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-icy::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255,255,255,0.2);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.btn-icy:hover::before {
    left: 100%;
    opacity: 1;
}

/* Hero Slider Section */
.hero-slider-section {
    position: relative;
    height: 600px;
    margin-top: 90px;
    overflow: hidden;
}

.heroSwiper {
    width: 100%;
    height: 100%;
}

.hero-slide-item {
    width: 100%;
    height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    background-size: 100% 100% !important;
    background-position: center !important;
}

.hero-slide-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
}

.hero-slide-item .hero-content {
    position: relative;
    z-index: 2;
}

.snow-container-dynamic {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Swiper Navigation Customization */
.heroSwiper .swiper-button-next,
.heroSwiper .swiper-button-prev {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.heroSwiper .swiper-button-next::after,
.heroSwiper .swiper-button-prev::after {
    font-size: 1.25rem;
    font-weight: bold;
}

.heroSwiper .swiper-button-next:hover,
.heroSwiper .swiper-button-prev:hover {
    background: var(--primary);
    color: white;
}

.heroSwiper .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.heroSwiper .swiper-pagination-bullet-active {
    background: var(--primary) !important;
    width: 30px;
    border-radius: 5px;
}

@media (max-width: 992px) {
    .hero-slider-section {
        height: 400px;
        margin-top: 70px;
    }
    .hero-slide-item {
        height: 400px;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
}
