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

:root {
    --primary-color: #03c2fc;
    --primary-dark: #029bca;
    --secondary-color: #599ea6;
    --accent-color: #03f0fc;
    --accent-2: #d12eb9;
    --text-dark: #012732;
    --text-light: #365f63;
    --bg-light: #eef5f6;
    --bg-white: #ffffff;
    --bg-gradient: linear-gradient(135deg, #03c2fc 0%, #599ea6 50%, #03f0fc 100%);
    --border-color: #bdd8db;
    --shadow: 0 8px 16px rgba(3, 194, 252, 0.15), 0 4px 8px rgba(89, 158, 166, 0.1);
    --shadow-lg: 0 16px 32px rgba(3, 194, 252, 0.2), 0 8px 16px rgba(89, 158, 166, 0.15);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    backdrop-filter: blur(10px);
    box-shadow: none;
    z-index: 1000;
    padding: 0.75rem 0;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background: rgba(3, 194, 252, 0.9);
    box-shadow: var(--shadow);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.logo-subtitle {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: rgba(255, 255, 255, 1);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: -60px;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('static/bg.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: -1;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-variation-settings: "wdth" 100;
    margin-bottom: 0.5rem;
    color: white;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.hero-title-sub {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background: var(--primary-dark);
}


/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

/* Services Section */
.services {
    background-color: var(--bg-light);
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
    justify-content: center;
}

.services-grid .service-card {
    flex: 1 1 100%;
    max-width: 100%;
}

@media (min-width: 600px) {
    .services-grid .service-card {
        flex: 1 1 calc(50% - 1rem);
        max-width: calc(50% - 1rem);
    }
}

@media (min-width: 900px) {
    .services-grid .service-card {
        flex: 1 1 calc(33.333% - 1.34rem);
        max-width: calc(33.333% - 1.34rem);
    }
    
    .services-grid .service-card:nth-child(4),
    .services-grid .service-card:nth-child(5) {
        flex: 1 1 calc(50% - 1rem);
        max-width: calc(50% - 1rem);
    }
}

.service-card {
    background: var(--text-dark);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: left;
    border: none;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 200px;
}


.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(3, 194, 252, 0.1), rgba(89, 158, 166, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.16), 0 8px 16px rgba(0, 0, 0, 0.12);
}


.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.service-card p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    font-size: 1rem;
    position: relative;
    z-index: 1;
    flex-grow: 1;
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.portfolio-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.portfolio-placeholder {
    aspect-ratio: 16/9;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
    position: relative;
    overflow: hidden;
}


/* About Section */
.about {
    background-color: var(--bg-light);
}

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

.about-text p {
    color: var(--text-light);
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Contact Section */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(3, 194, 252, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    display: none;
}

.form-message.success {
    background-color: #d1fae5;
    color: #065f46;
    display: block;
}

.form-message.error {
    background-color: #fee2e2;
    color: #991b1b;
    display: block;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(3, 194, 252, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .logo-subtitle {
        display: none;
    }

    .logo-img {
        height: 35px;
    }

    .hero-background {
        background-position: center center;
        background-size: cover;
    }

    .hero-background::before {
        background: rgba(0, 0, 0, 0.4);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-title-sub {
        font-size: 1.25rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-background {
        background-position: center center;
        background-size: cover;
    }

    .hero-background::before {
        background: rgba(0, 0, 0, 0.45);
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-title-sub {
        font-size: 1.125rem;
    }

    .section-title {
        font-size: 1.75rem;
    }
}

/* Large screens - optimize background positioning */
@media (min-width: 1200px) {
    .hero-background {
        background-position: center center;
        background-size: cover;
    }
}

/* Medium screens */
@media (min-width: 769px) and (max-width: 1199px) {
    .hero-background {
        background-position: center center;
        background-size: cover;
    }
}

