@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Poppins:wght@500;600;700;800&family=Plus+Jakarta+Sans:wght@500;600;700&display=swap');

:root {
    /* Color System */
    --primary-dark: #0f172a;
    --primary-main: #1e3a8a;
    --primary-light: #581c87;
    --gradient-primary: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #581c87 100%);

    --accent: #f59e0b;
    --accent-hover: #d97706;
    --accent-glow: rgba(245, 158, 11, 0.4);

    --bg-body: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-glass: rgba(255, 255, 255, 0.9);

    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #f1f5f9;

    /* Spacing & Layout */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --container-width: 1440px;
    /* Increased for full page feel */
    --header-height: 80px;

    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.05);
    --shadow-glow: 0 0 20px var(--accent-glow);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    line-height: 1.2;
    color: var(--primary-dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

/* Utility Classes */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
    /* More breathing room */
    width: 100%;
}

.section {
    padding: 120px 0;
    /* More vertical space */
    position: relative;
    overflow: hidden;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.text-accent {
    color: var(--accent);
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-light);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(30, 58, 138, 0.2);
    /* Lighter shadow */
}

.btn-accent {
    background: var(--accent);
    color: #fff;
    box-shadow: var(--shadow-md);
}

.btn-accent:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-outline {
    background: transparent;
    border-color: var(--primary-main);
    color: var(--primary-main);
}

.btn-outline:hover {
    background: var(--primary-main);
    color: var(--white);
}

/* Header */
.header {
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    /* More solid for clarity */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
    height: 80px;
    /* Keep consistent height */
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.5rem;
    /* Larger logo text */
    color: var(--primary-dark);
}

.logo img {
    height: 52px;
    /* Slightly larger logo */
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 40px;
    /* More space between links */
}

.nav-link {
    font-weight: 500;
    color: var(--text-main);
    position: relative;
    padding: 5px 0;
    font-size: 1.05rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-main);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: var(--primary-dark);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding-top: calc(var(--header-height) + 120px);
    padding-bottom: 160px;
    background: linear-gradient(180deg, rgba(235, 240, 255, 0.5) 0%, rgba(255, 255, 255, 0) 100%);
    /* Very light wash instead of dark overlay */
    display: flex;
    align-items: center;
    min-height: 90vh;
}

.hero-content {
    max-width: 1000px;
    /* Wider content area */
    margin: 0 auto;
    text-align: center;
}

.hero-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(30, 58, 138, 0.05);
    /* Lighter bg */
    color: var(--primary-main);
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 32px;
    border: 1px solid rgba(30, 58, 138, 0.1);
}

.hero-title {
    font-size: 4.5rem;
    /* Bigger title */
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.35rem;
    color: var(--text-muted);
    margin-bottom: 48px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Stats/Trust Section */
.stats-bar {
    margin-top: -80px;
    padding-bottom: 80px;
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Force 4 columns on large screens */
    gap: 0;
    /* Seamless look */
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 0;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    max-width: 1200px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 20px;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    /* More spacing */
    align-items: center;
}

.section-header {
    margin-bottom: 80px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 16px;
    display: block;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 24px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 32px;
}

.feature-box {
    padding: 32px;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
    /* Light accent border instead of dark bg */
    background: var(--white);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-main);
    margin-bottom: 20px;
}

/* Services */
.bg-light {
    background-color: #f8fafc;
    /* Even lighter gray */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 column grid */
    gap: 40px;
}

.service-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 48px 32px;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-align: left;
    /* Keep left aligned for modern feel */
}

/* REMOVED DARK HOVER OVERLAY */
.service-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
    border-bottom: 4px solid var(--accent);
    /* Accent bottom border on hover */
}

.service-card:hover h3 {
    color: var(--primary-main);
    /* Change text to primary color */
}

.service-icon {
    width: 72px;
    height: 72px;
    background: rgba(30, 58, 138, 0.05);
    /* Very light bg */
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-main);
    margin-bottom: 32px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary-main);
    color: var(--white);
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.project-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-surface);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    height: 240px;
    position: relative;
    overflow: hidden;
    background: #e2e8f0;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay i {
    color: white;
    font-size: 2.5rem;
    transform: scale(0.8);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-card:hover .project-overlay i {
    transform: scale(1);
}

.project-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--primary-dark);
}

.project-credit {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.contact-info {
    padding: 40px;
    background: var(--gradient-primary);
    color: white;
}

.contact-info h3 {
    color: white;
    margin-bottom: 24px;
}

.info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: center;
}

.info-item i {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.contact-form {
    padding: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid #e2e8f0;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: #f8fafc;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-main);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: #cbd5e1;
    padding-top: 80px;
    padding-bottom: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.cert-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.cert-badge {
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
    .header .container {
        padding: 0 20px;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--bg-surface-glass);
        flex-direction: column;
        padding: 100px 40px;
        transition: var(--transition);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(10px);
    }

    .nav-menu.active {
        right: 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .about-grid,
    .contact-wrapper,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .stats-bar {
        margin-top: 0;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat-item {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        border-right: none;
        padding: 20px 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .stats-grid,
    .about-features {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}