﻿/* Updated Cool Blue/Purple Theme - All other elements unchanged */
:root {
    /* New Color Palette */
    --alabaster-grey: #e6e5e0ff;
    --deep-twilight: #230462ff;
    --egyptian-blue: #203590ff;
    --glaucous: #6083c5ff;
    --powder-blue: #96b8dbff;
    --pale-sky: #c5dbf0ff;
    
    /* Mapped to existing variable names */
    --primary: var(--deep-twilight);
    --secondary: var(--glaucous);
    --accent: var(--egyptian-blue);
    --accent-hover: var(--deep-twilight);
    --warning: var(--egyptian-blue);
    --bg: var(--alabaster-grey);
    --card-bg: #ffffff;
    --text: #222222;
    --heading: #111111;
    --footer-bg: var(--deep-twilight);
    --light-text: #ffffff;
    --border-color: rgba(35, 4, 98, 0.2);
    
    /* Updated Gradient Combinations with new colors */
    --gradient-primary: linear-gradient(135deg, #230462 0%, #203590 100%);
    --gradient-secondary: linear-gradient(135deg, #6083c5 0%, #230462 100%);
    --gradient-accent: linear-gradient(135deg, #203590 0%, #230462 100%);
    --gradient-natural: linear-gradient(135deg, #FFFFFF 0%, #e6e5e0 100%);
    --gradient-forest: linear-gradient(135deg, #6083c5 0%, #203590 100%);
}

/* ===== GLOBAL STYLES ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    padding-top: 4rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    margin: 0;
    overflow-x: hidden;
    width: 100%;
}

@supports not (font-variation-settings: normal) {
  body {
    font-family: 'Inter', sans-serif;
  }
}

/* ===== UTILITY CLASSES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    width: 100%;
}

.text-center {
    text-align: center;
}

.section-padding {
    padding: 5rem 0;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
    margin-top: 0;
    color: var(--heading);
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1.2rem;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 3rem;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.text-center h2::after {
    left: 50%;
    transform: translateX(-50%);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* ===== IMAGES ===== */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== BUTTONS ===== */
.cta-btn {
    background: var(--accent);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-hover);
    transition: left 0.3s ease;
    z-index: -1;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(32, 53, 144, 0.2);
}

.cta-btn:hover::before {
    left: 0;
}

/* ===== NAVIGATION ===== */
nav {
    background-color: rgba(230, 229, 224, 0.95);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 20px rgba(35, 4, 98, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

nav.scrolled {
    box-shadow: 0 5px 25px rgba(35, 4, 98, 0.15);
    background-color: rgba(230, 229, 224, 0.98);
    padding: 0.8rem 5%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--primary);
}

.logo-icon {
    color: var(--accent);
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1rem;
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    padding: 0.75rem 1.2rem;
    border-radius: 8px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--secondary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover {
    color: var(--secondary);
}

.nav-links a:hover::after {
    width: 80%;
}

.nav-links a.active {
    color: var(--secondary);
    font-weight: 700;
}

.nav-links a.active::after {
    width: 100%;
    background: var(--accent);
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 4rem 5% 3rem;
    background: linear-gradient(135deg, rgba(35, 4, 98, 0.1) 0%, rgba(230, 229, 224, 1) 100%);
    display: flex;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(35, 4, 98, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.hero-contents {
    flex: 1 1 60%;
    min-width: 300px;
    text-align: left;
    position: relative;
    z-index: 1;
}

.hero-contents h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.hero-contents h1 span {
    color: var(--accent);
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin-bottom: 1rem;
    color: var(--text);
    line-height: 1.8;
}

.hero-img-wrapper {
    flex: 0 0 35%;
    max-width: 520px;
    border-radius: 10px;
    overflow: hidden;
    animation: heroImageReveal 1.2s ease-out forwards;
    box-shadow: 0 25px 50px rgba(35, 4, 98, 0.15);
    position: relative;
    z-index: 1;
    border: 8px solid var(--card-bg);
}

.hero-img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
    object-fit: cover;
}

.hero-img-wrapper:hover img {
    transform: scale(1.05);
}

@keyframes heroImageReveal {
    0% {
        opacity: 0;
        transform: scale(0.9) translateX(50px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateX(0);
    }
}

/* ===== GRID LAYOUTS ===== */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    justify-content: center;
    max-width: 100%;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 2rem;
    justify-content: center;
    max-width: 100%;
}

/* ===== SERVICE CARDS ===== */
.service-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: left;
    height: 100%;
    box-shadow: 0 10px 30px rgba(35, 4, 98, 0.05);
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-forest);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(35, 4, 98, 0.15);
    border-color: transparent;
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--secondary);
    background: rgba(96, 131, 197, 0.1);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.service-card p {
    color: var(--text);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Basic mobile responsiveness for above-the-fold */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
        padding: 4rem 5%;
    }

    .hero-contents {
        text-align: center;
    }

    .hero-contents h1 {
        font-size: 2.5rem;
    }

    .hero p {
        margin: 0 auto 2.5rem;
    }

    .hero-img-wrapper {
        max-width: 400px;
        width: 100%;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    nav {
        padding: 0.8rem 5%;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }
    
    .hero {
        padding: 6rem 5% 4rem;
    }
}