:root {
    --primary-color: #0b2545; /* Deep Navy Blue */
    --secondary-color: #13315c; /* Lighter Navy */
    --accent-color: #1a659e; /* Bright Ocean Blue */
    --accent-light: #dceaf5; /* Very light blue for backgrounds */
    --text-main: #334155; /* Slate 700 */
    --text-light: #64748b; /* Slate 500 */
    --bg-main: #ffffff;
    --bg-alt: #f8fafc; /* Slate 50 */
    --glass-bg: rgba(255, 255, 255, 0.85);
    
    --transition-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.section-bg-alt {
    background-color: var(--bg-alt);
}

.text-center {
    text-align: center;
}

/* Typography Utilities */
.section-subtitle {
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition-fast);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 14px rgba(11, 37, 69, 0.2);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(11, 37, 69, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: var(--transition-fast);
    padding: 20px 0;
}

.header.scrolled {
    background-color: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 15px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

.logo span {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-main);
    transition: var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition-fast);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: 80px;
    padding-bottom: 100px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(26,101,158,0.1) 0%, rgba(255,255,255,0) 70%);
    z-index: 0;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--primary-color);
}

.hero-desc {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

.hero-btns {
    display: flex;
    gap: 16px;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 48px;
}

.service-card {
    background-color: var(--bg-main);
    border-radius: 16px;
    padding: 32px;
    border: 1px solid #f1f5f9;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border-color: transparent;
}

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background-color: var(--accent-light);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: var(--transition-fast);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    background-color: var(--accent-color);
    color: #fff;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-desc {
    color: var(--text-light);
    font-size: 0.9375rem;
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 48px;
}

.portfolio-card {
    background-color: var(--bg-main);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: var(--transition-fast);
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.portfolio-img-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
    background-color: #f1f5f9;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.portfolio-card:hover .portfolio-img {
    transform: scale(1.05);
}

.portfolio-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: var(--glass-bg);
    backdrop-filter: blur(4px);
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 9999px;
    z-index: 2;
}

.portfolio-content {
    padding: 24px;
}

.portfolio-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.portfolio-desc {
    color: var(--text-light);
    font-size: 0.9375rem;
}

/* Contact */
.contact-section {
    position: relative;
    color: #fff;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--primary-color);
    z-index: -2;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-info-card {
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 40px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}
.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
}

.contact-text h4 {
    color: #fff;
    margin-bottom: 4px;
    font-size: 1.1rem;
}

.contact-text p {
    color: rgba(255,255,255,0.7);
    margin: 0;
}

/* Footer */
.footer {
    background-color: #051324;
    color: rgba(255,255,255,0.7);
    padding: 60px 0 30px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    color: #fff;
    margin-bottom: 16px;
    display: block;
}

.footer-title {
    color: #fff;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.875rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.75rem;
    }
    .contact-container {
        grid-template-columns: 1fr;
    }
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-main);
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    .nav-links.active {
        display: flex;
    }
    .mobile-menu-btn {
        display: block;
    }
    .hero {
        padding-top: 120px;
    }
    .hero-title {
        font-size: 2.25rem;
    }
    .footer-top {
        grid-template-columns: 1fr;
    }
}
