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

:root {
    --primary-color: #4a9db5;
    --secondary-color: #5eb3cc;
    --accent-bronze: #d4a574;
    --accent-tan: #e8c399;
    --dark-color: #1a1410;
    --darker-color: #0f0d0a;
    --warm-dark: #2a1f1a;
    --warm-darker: #1f1612;
    --text-color: #e8d9c8;
    --text-light: #c4b5a5;
    --text-lighter: #9a8b7b;
    --bg-light: #2d2420;
    --bg-dark: #1f1612;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #4a9db5 0%, #5eb3cc 100%);
    --gradient-accent: linear-gradient(135deg, #d4a574 0%, #e8c399 100%);
    --gradient-dark: linear-gradient(135deg, #1a1410 0%, #2a1f1a 100%);
    --gradient-warm: linear-gradient(135deg, #2a1f1a 0%, #3d2f26 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--dark-color);
}

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

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(26, 20, 16, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(212, 165, 116, 0.1);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 24px;
    font-weight: 900;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0px;
}

.logo-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.logo-sea {
    color: var(--secondary-color);
}

.logo-byte {
    color: var(--secondary-color);
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 16px;
    border-radius: 8px;
}

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

.nav-link.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 10px 24px;
}

.nav-link.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-dark);
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(212, 165, 116, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(74, 157, 181, 0.1) 0%, transparent 50%);
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 72px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.title-line {
    display: block;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.title-line:nth-child(1) { animation-delay: 0.2s; }
.title-line:nth-child(2) { animation-delay: 0.4s; }

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

.hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.8s forwards;
    opacity: 0;
}

.btn {
    padding: 14px 32px;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    border: 2px solid transparent;
}

.btn-large {
    padding: 16px 40px;
    font-size: 18px;
}

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

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

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

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

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 13px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 20px; }
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

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

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 48px;
    font-weight: 900;
    color: var(--text-color);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 20px;
    color: var(--text-light);
}

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

.service-card {
    background: var(--bg-dark);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(212, 165, 116, 0.2);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-bronze);
    background: var(--warm-darker);
}

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

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-icon svg {
    width: 32px;
    height: 32px;
    color: var(--white);
}

.service-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 16px;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ===== About Section ===== */
.about {
    padding: 120px 0;
    background: var(--bg-dark);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-visual {
    position: relative;
    height: 500px;
}

.visual-card {
    position: absolute;
    background: var(--gradient-primary);
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
}

.card-1 {
    width: 280px;
    height: 200px;
    top: 0;
    left: 0;
    opacity: 0.9;
}

.card-2 {
    width: 280px;
    height: 200px;
    top: 120px;
    right: 0;
    background: linear-gradient(135deg, #4a9db5 0%, #2d5a6b 100%);
    opacity: 0.8;
}

.card-3 {
    width: 280px;
    height: 200px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-accent);
    opacity: 0.7;
}

.about-visual:hover .visual-card {
    transform: translateY(-10px);
}

.card-2:hover {
    transform: translateY(-10px) scale(1.05);
}

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

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-item {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
}

.contact-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 28px;
    height: 28px;
    color: var(--white);
}

.contact-item h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
}

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

.contact-form {
    background: var(--bg-dark);
    padding: 48px;
    border-radius: 16px;
    border: 1px solid rgba(212, 165, 116, 0.2);
}

.form-group {
    margin-bottom: 24px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid rgba(212, 165, 116, 0.2);
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    transition: var(--transition);
    background: var(--warm-darker);
    color: var(--text-color);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-lighter);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-bronze);
    box-shadow: 0 0 0 4px rgba(212, 165, 116, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    width: 100%;
    cursor: pointer;
    border: none;
    font-family: 'Inter', sans-serif;
}

/* ===== Footer ===== */
.footer {
    background: var(--gradient-dark);
    color: var(--white);
    padding: 80px 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
    margin-bottom: 48px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 16px;
}

.footer-company-name {
    font-size: 24px;
    font-weight: 900;
    display: flex;
    align-items: center;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
}

.footer-column h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-column ul {
    list-style: none;
}

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

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
}

/* ===== Responsive Design ===== */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 76px;
        left: -100%;
        flex-direction: column;
        background: var(--warm-darker);
        width: 100%;
        padding: 32px 24px;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
        align-items: flex-start;
        border-top: 1px solid rgba(212, 165, 116, 0.2);
    }

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

    .mobile-menu-toggle {
        display: flex;
    }

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

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

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

    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .section-title {
        font-size: 36px;
    }

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

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-visual {
        height: 400px;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 36px;
    }

    .btn-large {
        padding: 14px 28px;
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .services {
        padding: 80px 0;
    }

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

    .contact-form {
        padding: 32px 24px;
    }
}

/* ===== Animations ===== */
[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-left"] {
    transform: translateX(30px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

[data-aos="zoom-in"] {
    transform: scale(0.9);
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
}
