@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

[data-theme="dark"] {
    --primary: #f8fafc;
    --primary-light: #cbd5e1;
    --accent: #60a5fa;
    --accent-hover: #3b82f6;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --bg-light: #0f172a;
    --bg-white: #1e293b;
    --border: #334155;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.3), 0 1px 2px -1px rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.3), 0 2px 4px -2px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

header {
    background: var(--bg-white);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-primary);
    padding: 0.25rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
    min-height: 40px;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0.5rem;
    min-height: 40px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-text {
    font-weight: bold;
    font-size: 1.25rem;
    display: flex;
    flex-direction: row;
    align-items: center;
}

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

.logo-gis {
    font-weight: bold;
    color: #525252;
}

[data-theme="dark"] .logo-gis {
    color: #94a3b8;
}

.logo {
    width: 3rem;
    height: auto;
    margin-right: 0.5rem;
    transition: filter 0.3s ease;
}

[data-theme="dark"] .logo {
    filter: brightness(3.5) contrast(1.1);
}

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

.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

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

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

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

.theme-toggle {
    background: none;
    border: 2px solid var(--border);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 1rem;
    color: var(--text-primary);
}

.theme-toggle svg {
    transition: transform 0.3s ease;
}

.theme-toggle:hover {
    border-color: var(--accent);
    transform: rotate(20deg);
}

.theme-toggle:hover svg {
    color: var(--accent);
}

.theme-toggle:active {
    transform: rotate(20deg) scale(0.95);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
    font-size: 0.9375rem;
    letter-spacing: -0.01em;
}

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

section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

#hero {
    margin-top: 60px;
    position: relative;
    color: var(--text-primary);
    text-align: center;
    overflow: hidden;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 4rem 2rem;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("images/hero.png") center/cover no-repeat;
    opacity: 0;
    animation: heroImageReveal 2s ease-out 0.5s forwards;
    z-index: 0;
}

#hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(248, 250, 252, 0.97) 0%,
            rgba(248, 250, 252, 0.92) 35%,
            rgba(248, 250, 252, 0.8) 65%,
            rgba(248, 250, 252, 0.6) 100%);
    z-index: 1;
}

[data-theme="dark"] #hero::after {
    background: linear-gradient(135deg,
            rgba(15, 23, 42, 0.97) 0%,
            rgba(15, 23, 42, 0.92) 35%,
            rgba(15, 23, 42, 0.8) 65%,
            rgba(15, 23, 42, 0.6) 100%);
}

.hero-overlay {
    position: relative;
    z-index: 2;
    padding: 3rem;
    max-width: 720px;
}

@keyframes heroImageReveal {
    0% {
        opacity: 0;
        transform: scale(1.05);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

#hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    animation: fadeInUp 0.8s ease;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

#hero p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.15s backwards;
    color: var(--text-secondary);
    line-height: 1.75;
}

.cta-button {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 0.875rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    animation: fadeInUp 0.8s ease 0.3s backwards;
    letter-spacing: -0.01em;
}

.cta-button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.0625rem;
    margin-bottom: 3.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

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

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
    display: inline-block;
}

.service-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
}

#about {
    background: var(--bg-light);
    max-width: 100%;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 6rem 2rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.about-text p {
    margin-bottom: 1.25rem;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

.expertise-list {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.expertise-list li {
    padding: 0.625rem 0;
    padding-left: 1.75rem;
    position: relative;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.expertise-list li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

.about-tech h3 {
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-top: 1rem;
}

.tech-badge {
    background: var(--bg-white);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.8125rem;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.tech-badge:hover {
    border-color: var(--accent);
    color: var(--accent);
}




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

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.contact-icon {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}


.contact-section {
    background: #f7f8fa;
    padding: 3rem 0 3.5rem 0;
}

.contact-container {
    display: flex;
    flex-direction: row;
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 2px 16px 0 rgba(0, 0, 0, 0.07);
    overflow: hidden;
}

.contact-info {
    flex: 1 1 0;
    padding: 2.5rem 2rem 2.5rem 2.5rem;

    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 260px;
}

.contact-info h2 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 2rem;
    font-weight: 700;
}

.contact-info ul {
    margin: 1rem 0 0.5rem 0;
    padding-left: 1.2rem;
    color: var(--text-secondary);
    font-size: 1rem;
}

.contact-info .contact-extra {
    margin-top: 1.5rem;
}

.contact-info .contact-extra h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-info .contact-extra ul {
    margin: 0;
    padding-left: 1.2rem;
    font-size: 0.98rem;
    color: var(--text-secondary);
}

.contact-form {
    flex: 1 1 0;
    max-width: 420px;
    margin: 0;
    background: var(--bg-white);
    border-radius: 0 12px 12px 0;
    box-shadow: none;
    padding: 2.5rem 2.5rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-form .form-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}


.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    font-family: inherit;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-light);
    color: var(--text-primary);
    transition: border 0.2s;
}


.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-white);
}


.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}


.contact-form button[type="submit"] {
    margin-top: 0.5rem;
    background: linear-gradient(90deg, #3b82f6 0%, #06b6d4 100%);
    color: #fff;
    font-family: inherit;
    font-size: 1.08rem;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    padding: 0.85rem 2.2rem;
    box-shadow: 0 2px 8px 0 rgba(59,130,246,0.08);
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
    letter-spacing: 0.01em;
    outline: none;
}
.contact-form button[type="submit"]:hover, .contact-form button[type="submit"]:focus {
    background: linear-gradient(90deg, #2563eb 0%, #0ea5e9 100%);
    box-shadow: 0 4px 16px 0 rgba(59,130,246,0.13);
    transform: translateY(-2px) scale(1.03);
}


.captcha-row {
    align-items: flex-start;
    gap: 0.5rem;
}


.captcha-row label {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0.25rem;
}


.captcha-row input[type="text"] {
    width: 120px;
    display: inline-block;
}

@media (max-width: 800px) {
    .contact-container {
        flex-direction: column;
        border-radius: 12px;
    }

    .contact-info,
    .contact-form {
        border-radius: 0;
        padding: 2rem 1.2rem;
    }

    .contact-form {
        border-radius: 0 0 12px 12px;
    }
}

footer {
    background: #0f172a;
    color: white;
    text-align: center;
    padding: 2rem;
    border-top: 1px solid #1e293b;
}

footer p {
    font-size: 0.875rem;
    color: #94a3b8;
}

footer strong {
    color: white;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 0 1rem;
    }

    .hamburger {
        display: flex;
    }

    nav ul {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background: var(--bg-white);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        gap: 0;
        border-top: 1px solid var(--border);
    }

    nav ul.active {
        left: 0;
    }

    nav ul li {
        padding: 1rem 0;
    }

    nav a {
        font-size: 1.125rem;
    }

    section {
        padding: 4rem 1.5rem;
    }

    #hero {
        padding: 3rem 1.5rem;
    }

    #hero h1 {
        font-size: 2rem;
    }

    #hero p {
        font-size: 1rem;
    }

    h2 {
        font-size: 1.625rem;
    }

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

    .service-card {
        padding: 1.5rem;
    }

    #about {
        padding: 4rem 1.5rem;
    }

    .technologies {
        gap: 0.5rem;
    }

    .tech-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
}