@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #0f172a;
    --secondary-color: #0ea5e9;
    --accent-color: #38bdf8;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --glass: rgba(255, 255, 255, 0.7);
    --transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --container-width: 1300px;
    --section-padding: 8rem 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

/* Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--border-color) 0.5px, transparent 0.5px);
    background-size: 30px 30px;
    opacity: 0.3;
    z-index: -1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography Enhancements */
h1,
h2,
h3,
h4,
h5 {
    color: var(--primary-color);
    line-height: 1.2;
    font-weight: 800;
}

p {
    font-size: 1.05rem;
    color: var(--text-secondary);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header & Navigation */
header {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    position: fixed;
    width: 92%;
    max-width: 1400px;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 100px;
    transition: var(--transition);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

header.scrolled {
    width: 85%;
    padding: 0.2rem 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding: 0 3rem;
}

.logo {
    display: flex;
    align-items: center;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border: none;
    transition: var(--transition);
}

.logo img {
    height: 75px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
    /* Extra dark navy blue filter - almost black */
    filter: invert(4%) sepia(21%) saturate(5427%) hue-rotate(193deg) brightness(91%) contrast(100%);
}

.logo:hover {
    transform: scale(1.05);
}

.logo:hover img {
    filter: invert(10%) sepia(21%) saturate(5427%) hue-rotate(193deg) brightness(100%) contrast(100%);
}

.logo span {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-item {
    position: relative;
    padding: 1.5rem 0;
}

.nav-links a {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--secondary-color);
    background: rgba(14, 165, 233, 0.05);
}

/* Dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: white;
    min-width: 280px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    padding: 1rem;
    border-radius: 12px;
    display: flex !important;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.dropdown-item:hover {
    background: var(--bg-light);
    transform: translateX(10px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 160px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.05) 0%, transparent 100%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 5rem;
    letter-spacing: -2px;
    margin-bottom: 2rem;
}

.hero p {
    font-size: 1.35rem;
    margin-bottom: 3rem;
    max-width: 600px;
}

/* Advanced Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e293b 100%);
    color: white !important;
    padding: 1.25rem 2.5rem;
    border-radius: 100px;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.2);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.3);
    filter: brightness(1.1);
}

/* Section Controls */
.section {
    padding: var(--section-padding);
}

.section-title {
    text-align: center;
    margin-bottom: 6rem;
}

.section-title span {
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--secondary-color);
    display: block;
    margin-bottom: 1rem;
}

.section-title h2 {
    font-size: 3.5rem;
    letter-spacing: -1px;
}

/* Service Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
}

.service-card {
    background: white;
    padding: 0;
    border-radius: 40px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-20px);
    border-color: var(--secondary-color);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.06);
}

.service-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: var(--bg-light);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    padding: 3.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

/* Position icon over image if image exists */
.service-image+.service-icon {
    position: absolute;
    top: 210px;
    left: 3.5rem;
}

/* Adjust content padding if icon is absolute */
.service-image+.service-icon+.service-content {
    padding-top: 4.5rem;
}

.service-card:hover .service-icon {
    background: var(--secondary-color);
    color: white;
    transform: rotateY(180deg);
}

/* Stats Section */
.stats-banner {
    background: var(--primary-color);
    padding: 6rem 0;
    color: white;
    border-radius: 60px;
}

.stat-item h3 {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

/* Advanced Features */
.feature-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    padding: 2.5rem;
    background: white;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.feature-item:hover {
    background: var(--primary-color);
}

.feature-item:hover h4,
.feature-item:hover p {
    color: white;
}

/* Main Footer Styling */
.main-footer {
    background: var(--primary-color);
    color: white;
    padding: 8rem 0 4rem;
    border-radius: 80px 80px 0 0;
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(14, 165, 233, 0.1), transparent 50%);
    pointer-events: none;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 8rem;
    margin-bottom: 6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 6rem;
}

.footer-brand .logo {
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin-bottom: 2rem;
}

.footer-brand .logo img {
    height: 50px;
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

.footer-brand .logo:hover img {
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(14, 165, 233, 0.6));
}

.social-links {
    display: flex;
    gap: 1.25rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
    border-color: var(--secondary-color);
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
}

.footer-column h4 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    position: relative;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 30px;
    height: 2px;
    background: var(--secondary-color);
}

.footer-column ul li {
    margin-bottom: 1.25rem;
}

.footer-column ul a {
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-column ul a:hover {
    color: var(--secondary-color);
    padding-left: 10px;
}

.contact-info li {
    display: flex;
    gap: 1.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.contact-info i {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-top: 5px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

.footer-extra {
    display: flex;
    gap: 2.5rem;
}

.footer-extra a {
    color: rgba(255, 255, 255, 0.4);
}

.footer-extra a:hover {
    color: white;
}

/* Responsive */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }
}