@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Space Indigo & Baltic Blue Palette */
    --primary: #21295c;
    --primary-light: #1b3b6f;
    --accent: #065a82;
    --accent-hover: #1c7293;
    --frosted: #9eb3c2;
    --light-cyan: #e0e7ff;

    --text-main: #1e293b;
    --text-muted: #475569;
    --bg-main: #ffffff;
    --bg-alt: #f8fafc;
    --bg-dark: #21295c;
    --white: #ffffff;
    --border: #e2e8f0;

    /* Layout */
    --container: 1200px;
    --transition: cubic-bezier(0.4, 0, 0.2, 1);
    --duration: 0.4s;

    /* Enhanced Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(33, 41, 92, 0.1), 0 8px 10px -6px rgba(33, 41, 92, 0.1);
    --shadow-lg: 0 20px 40px -10px rgba(33, 41, 92, 0.2);
    --shadow-xl: 0 25px 50px -12px rgba(33, 41, 92, 0.25);
    --glow: 0 0 20px rgba(6, 90, 130, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    background-image: radial-gradient(var(--border) 0.5px, transparent 0.5px);
    background-size: 30px 30px;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    border-radius: 8px;
}

/* Utilities */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-title .underline {
    width: 50px;
    height: 4px;
    background: var(--accent);
    margin: 0 auto;
    border-radius: 10px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all var(--duration) var(--transition);
    border: none;
    gap: 10px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    opacity: 0;
    transition: opacity var(--duration) var(--transition);
    z-index: -1;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), var(--glow);
    color: var(--white);
}

.btn-primary:hover::before {
    opacity: 1;
}

.hero .btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    box-shadow: 0 10px 20px rgba(6, 90, 130, 0.3);
}

.hero .btn-primary:hover {
    box-shadow: 0 15px 30px rgba(6, 90, 130, 0.5);
    background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent) 100%);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(6, 90, 130, 0.2);
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(6, 90, 130, 0.4);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.hero .btn-outline {
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--white);
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.hero .btn-outline:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

/* Header & Nav */
header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

header.scrolled {
    padding: 12px 0;
    box-shadow: var(--shadow-md);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1.5px;
    transition: transform var(--duration) var(--transition);
}

.logo:hover h1 {
    transform: scale(1.05);
}

.logo span {
    color: var(--accent);
    text-shadow: 0 0 10px rgba(6, 90, 130, 0.2);
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 24px;
}

.nav-links>li {
    position: relative;
}

.nav-links a {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--duration) var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links>li>a:hover,
.nav-links>li>a.active {
    color: var(--accent);
}

/* Premium Dropdown */
.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: var(--white);
    box-shadow: var(--shadow-xl);
    min-width: 240px;
    border-radius: 16px;
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration) var(--transition);
    border: 1px solid var(--border);
    pointer-events: none;
    /* Prevent interaction when hidden */
}

/* Invisible bridge to catch hover */
.dropdown::after {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

.dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--white);
}

.nav-links li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
    pointer-events: all;
}

.dropdown li {
    padding: 0;
}

.dropdown a {
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 13px;
}

.dropdown a:hover {
    background: var(--bg-alt);
    color: var(--accent);
}

/* Hero Modern */
.hero {
    padding: 160px 0 120px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: var(--white);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(33, 41, 92, 0.3) 0%, rgba(33, 41, 92, 0.6) 100%);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 140%;
    height: 100px;
    background: var(--bg-main);
    border-radius: 50%;
    z-index: 2;
}

.hero .container {
    position: relative;
    z-index: 3;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--white);
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.hero p {
    font-size: clamp(1.1rem, 3vw, 1.25rem);
    color: rgba(255, 255, 255, 0.98);
    max-width: 700px;
    margin: 0 auto 48px;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* Cards & Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.service-card {
    background: var(--white);
    padding: 48px 40px;
    border-radius: 32px;
    border: 1px solid var(--border);
    transition: all var(--duration) var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    opacity: 0;
    transition: opacity var(--duration) var(--transition);
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover h3,
.service-card:hover p,
.service-card:hover i {
    color: var(--white);
}

.service-card i {
    font-size: 52px;
    color: var(--accent);
    margin-bottom: 28px;
    display: inline-block;
    transition: color var(--duration) var(--transition);
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    transition: color var(--duration) var(--transition);
}

.service-card p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.7;
    transition: color var(--duration) var(--transition);
}

/* Why Choose Us - Enhanced */
.why-us {
    background: var(--bg-alt);
    border-radius: 40px;
    margin: 40px 20px;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.feature-item {
    background: var(--white);
    padding: 40px;
    border-radius: 28px;
    box-shadow: var(--shadow-md);
    transition: all var(--duration) var(--transition);
    border: 1px solid var(--border);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.feature-item-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(6, 90, 130, 0.1) 0%, rgba(6, 90, 130, 0.05) 100%);
    color: var(--accent);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 24px;
    transition: all var(--duration) var(--transition);
}

.feature-item:hover .feature-item-icon {
    background: var(--accent);
    color: var(--white);
    transform: scale(1.1) rotate(5deg);
}

/* Footer Premium Clean */
footer {
    background: var(--bg-dark);
    color: #94a3b8;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-col p {
    font-size: 15px;
    line-height: 1.7;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    font-size: 15px;
    position: relative;
    padding-left: 0;
    transition: all var(--duration) var(--transition);
}

.footer-col ul li a:hover {
    color: var(--accent);
    padding-left: 8px;
}

.footer-col ul li a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all var(--duration) var(--transition);
}

.footer-col ul li a:hover::before {
    left: -12px;
    opacity: 1;
}

/* Forms & Contact */
input,
select,
textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--bg-alt);
    border-radius: 16px;
    font-family: inherit;
    font-size: 15px;
    transition: all var(--duration) var(--transition);
    background: var(--white);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(6, 90, 130, 0.1);
    transform: translateY(-2px);
}

.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 40px;
    padding: 24px;
    border-radius: 24px;
    transition: var(--transition);
    background: transparent;
}

.contact-info-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    background: var(--bg-alt);
    color: var(--primary);
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.5rem;
    transition: var(--transition);
}

.contact-info-card:hover .contact-icon {
    background: var(--primary);
    color: var(--white);
    transform: rotate(-5deg) scale(1.1);
}

.contact-info-item {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.contact-info-item i {
    color: var(--accent);
    margin-top: 5px;
}

.disclaimer {
    font-size: 13px;
    line-height: 1.6;
    padding: 32px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom {
    text-align: center;
    font-size: 14px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Mobile Responsive Overhaul */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 80%;
        background: var(--white);
        flex-direction: column;
        padding: 100px 40px;
        z-index: 999;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }

    .nav-links.show {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
        font-size: 28px;
        z-index: 1000;
        cursor: pointer;
    }

    .hero {
        padding: 80px 0 60px;
    }

    .hero-btns {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section {
        padding: 60px 0;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animated {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-alt);
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Global Shimmer Effect */
.service-card,
.btn {
    position: relative;
}

.service-card::after,
.btn::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(30deg);
    transition: none;
    pointer-events: none;
}

.service-card:hover::after,
.btn:hover::after {
    left: 150%;
    transition: all 0.6s ease-in-out;
}

/* Enhancing Mobile Nav */
@media (max-width: 768px) {
    .nav-links {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        padding: 50% 40px;
        text-align: center;
    }

    .nav-links a {
        font-size: 20px;
        justify-content: center;
        margin-bottom: 15px;
    }
}