/* CSS Reset & Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #0066ff;
    --color-primary-dark: #0052cc;
    --color-text: #1a1a2e;
    --color-text-light: #64748b;
    --color-background: #ffffff;
    --color-background-alt: #f8fafc;
    --color-border: #e2e8f0;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    line-height: 1.6;
    background: var(--color-background);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
}

p {
    color: var(--color-text-light);
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    font-weight: 500;
    color: var(--color-text-light);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--color-primary);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.hero h1 {
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Services Section */
.services {
    padding: 120px 0;
    background: var(--color-background);
}

.services h2 {
    text-align: center;
    margin-bottom: 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.service-card {
    padding: 40px 32px;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-background-alt);
    border-radius: 12px;
    margin-bottom: 24px;
    color: var(--color-primary);
}

.service-card h3 {
    margin-bottom: 12px;
    color: var(--color-text);
}

.service-card p {
    font-size: 0.95rem;
}

/* About Section */
.about {
    padding: 120px 0;
    background: var(--color-background-alt);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about h2 {
    margin-bottom: 32px;
}

.about p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.about p a {
    color: var(--color-primary);
    font-weight: 500;
    transition: var(--transition);
}

.about p a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid var(--color-border);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* Contact Section */
.contact {
    padding: 120px 0;
    background: var(--color-background);
}

.contact h2 {
    text-align: center;
    margin-bottom: 16px;
}

.contact-intro {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 60px;
}

.contact-info-centered {
    display: flex;
    justify-content: center;
    gap: 60px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-item svg {
    color: var(--color-primary);
    flex-shrink: 0;
    margin-top: 4px;
}

.contact-item h4 {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 4px;
    font-weight: 500;
}

.contact-item a,
.contact-item p {
    color: var(--color-text);
    font-size: 1rem;
}

.contact-item a:hover {
    color: var(--color-primary);
}

/* Section CTA */
.section-cta {
    text-align: center;
    margin-top: 48px;
}

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

.btn-secondary:hover {
    background: var(--color-primary);
    color: white;
}

/* Service Card Links */
.service-card-link {
    text-decoration: none;
    display: block;
}

.service-card-link:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

/* Page Hero (for inner pages) */
.page-hero {
    padding: 140px 24px 80px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    text-align: center;
}

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
    color: var(--color-text);
}

.page-hero p {
    font-size: 1.2rem;
    color: var(--color-text-light);
}

/* Portfolio Page */
.portfolio {
    padding: 80px 0 120px;
    background: var(--color-background);
}

.portfolio-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.portfolio-card {
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 40px;
    transition: var(--transition);
}

.portfolio-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.portfolio-content h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--color-text);
}

.portfolio-tagline {
    font-size: 0.95rem;
    color: var(--color-primary);
    font-weight: 500;
    margin-bottom: 16px;
}

.portfolio-content p {
    margin-bottom: 24px;
    line-height: 1.7;
}

.portfolio-content .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
}

/* Active nav link */
.nav-links a.active {
    color: var(--color-primary);
}

/* Footer */
.footer {
    background: var(--color-text);
    color: white;
    padding: 60px 0 24px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
    color: white;
    display: block;
    margin-bottom: 12px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--color-border);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu {
        display: flex;
    }

    .mobile-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        padding: 100px 24px 60px;
        min-height: auto;
    }

    .services,
    .about,
    .contact {
        padding: 80px 0;
    }

    .stats {
        flex-direction: column;
        gap: 32px;
    }

    .contact-info-centered {
        flex-direction: column;
        align-items: center;
        gap: 32px;
    }

    .footer-content {
        flex-direction: column;
        gap: 32px;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .service-card {
        padding: 32px 24px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}
