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

html {
    scrollbar-gutter: stable;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #e8eaed;
    background: #0d1117;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.body.front-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow: hidden;
}

.front-page main {
    flex: 1;
    display: flex;
}

.front-page #hero {
    flex: 1;
    min-height: 0;
    padding: 120px 3rem 60px;
}

.front-page footer {
    flex-shrink: 0;
}

body.front-page {
    overflow: hidden;
}

body.front-page main {
    flex: 1;
    display: flex;
}

body.front-page #hero {
    flex: 1;
    min-height: 0;
    padding: 120px 3rem 60px;
}

body.front-page footer {
    flex-shrink: 0;
}

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

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

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: #0d1117 !important;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 1200px) {
    .container,
    nav {
        min-width: 0;
    }
}

.logo h1 {
    font-size: 1.25rem;
    font-weight: 300;
    color: #ffffff;
    letter-spacing: -0.02em;
}

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

.nav-links a {
    text-decoration: none;
    color: #e8eaed;
    font-family: 'Google Sans', sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    letter-spacing: -0.01em;
}

.nav-links a:hover {
    color: #58a6ff;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: none;
    background: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    padding: 0;
}

.nav-toggle .bar {
    width: 26px;
    height: 2px;
    background: #e8eaed;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

body.nav-open {
    overflow: hidden;
}

body.nav-open header {
    background: rgba(13, 17, 23, 0.98) !important;
    border-bottom-color: transparent;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

body.nav-open .nav-toggle .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

body.nav-open .nav-toggle .bar:nth-child(2) {
    opacity: 0;
}

body.nav-open .nav-toggle .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 3rem 100px;
    background: #0d1117;
    margin-left: 0;
    width: 100%;
}

/* Page-specific hero sections */
#about-hero, #services-hero, #contact-hero, #use-cases-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 3rem 50px;
    background: #0d1117;
    text-align: center;
    width: 100%;
}

#about-hero {
    min-height: 45vh;
    padding: 120px 3rem 30px;
}

#about-hero h1, #services-hero h1, #contact-hero h1, #use-cases-hero h1 {
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #ffffff;
    letter-spacing: -0.02em;
}

#about-hero p, #services-hero p, #contact-hero p, #use-cases-hero p {
    font-size: 1.25rem;
    color: #c9d1d9;
    max-width: 600px;
    margin: 0 auto;
}

#services-hero p:first-of-type {
    margin-bottom: 1.75rem;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.hero-content h2 {
    font-family: 'Google Sans', sans-serif;
    font-size: 4rem;
    font-weight: 400;
    margin-bottom: 2rem;
    line-height: 1.1;
    color: #ffffff;
    letter-spacing: -0.02em;
    text-align: center;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    color: #c9d1d9;
    line-height: 1.6;
    max-width: 600px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background: #58a6ff;
    color: #0d1117;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.cta-button:hover {
    background: #79c0ff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    transform: translateY(-1px);
}

/* Sections */
main {
    opacity: 0;
    animation: pageFadeIn 0.8s ease-out forwards;
    animation-delay: 0.1s;
    flex: 1;
}

section {
    padding: 80px 0;
    background: #0d1117;
}

#services-content {
    padding-top: 60px;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: left;
    margin-bottom: 2.5rem;
    color: #ffffff;
    letter-spacing: -0.01em;
}

section p {
    font-size: 1rem;
    line-height: 1.6;
    color: #c9d1d9;
    margin-bottom: 1.25rem;
}

/* About Section */
#about-hero .subtitle {
    font-size: 1.25rem;
    color: #c9d1d9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

#about-content {
    padding: 50px 3rem 80px;
    text-align: center;
}

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

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

/* Services Section */
#services-hero p {
    max-width: 1024px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    margin-bottom: 1.4rem;
    font-size: 1rem;
    line-height: 1.6;
    color: #c9d1d9;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.services-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem;
    align-items: stretch;
}

.services-section h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}

.services-section {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    height: 100%;
}

.service-card {
    background: #21262d;
    padding: 2.25rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid #30363d;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 280px;
}

.service-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
    border-color: #58a6ff;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.service-card p {
    line-height: 1.6;
    color: #c9d1d9;
    font-size: 1rem;
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: #21262d;
    padding: 2.25rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid #30363d;
    transition: all 0.3s ease;
}

.project-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
    border-color: #58a6ff;
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.project-card p {
    margin-bottom: 1.25rem;
    line-height: 1.6;
    color: #c9d1d9;
    font-size: 1rem;
}

.project-type {
    display: inline-block;
    background: #30363d;
    color: #58a6ff;
    padding: 0.375rem 0.875rem;
    border-radius: 16px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid #58a6ff;
}

/* Use Cases Section */
.industry-section {
    margin-bottom: 4rem;
}

.industry-section h2 {
    font-size: 2.2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2.5rem;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.75rem;
    margin-bottom: 3rem;
}

.use-case-card {
    background: #21262d;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid #30363d;
    transition: all 0.3s ease;
}

.use-case-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
    border-color: #58a6ff;
}

.use-case-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.use-case-card p {
    line-height: 1.5;
    color: #c9d1d9;
    font-size: 0.95rem;
}

/* Responsive adjustments for use cases */
@media (max-width: 768px) {
    .use-cases-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .industry-section h2 {
        font-size: 1.9rem;
    }
}

/* Contact Section */
#contact-content {
    padding-top: 120px;
}

#contact-content .container {
    max-width: 1100px;
}

.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.contact-grid > * {
    width: 100%;
}

.contact-panel {
    background: #11161f;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    height: 100%;
}

.contact-panel-header h3,
.contact-panel-header h4 {
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.contact-panel-header h3 {
    font-size: 2.2rem;
    letter-spacing: -0.01em;
}

.contact-panel-header h4 {
    font-size: 1.15rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8b949e;
}

.contact-panel-header p {
    margin: 0;
    font-size: 1.05rem;
    color: #c9d1d9;
    line-height: 1.6;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin: 0;
}

.contact-panel-info .contact-details {
    margin-top: 0.5rem;
}

.contact-card {
    background: #161b22;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-height: 120px;
}

.contact-label {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #58a6ff;
}

.contact-card a,
.contact-card p {
    color: #e8eaed;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    margin: 0;
}

.contact-card a:hover {
    color: #58a6ff;
}

.contact-hint {
    font-size: 0.9rem;
    color: #8b949e;
    white-space: nowrap;
}

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

.contact-panel-form .contact-form {
    margin-top: 0.5rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1.25rem;
    border: 1px solid #30363d;
    border-radius: 8px;
    background: #161b22;
    color: #e8eaed;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #58a6ff;
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #8b949e;
}

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

.contact-panel-form {
    width: 100%;
}

@media (max-width: 1100px) {
    .services-layout {
        grid-template-columns: 1fr;
    }
}

/* Footer */
footer {
    background: #161b22;
    padding: 0.75rem 0;
    text-align: center;
    color: #c9d1d9;
    border-top: 1px solid #30363d;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        font-size: 0.98rem;
    }

    nav {
        padding: 1rem 1.5rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        min-height: 100vh;
        padding: 6.5rem 1.75rem 2rem;
        flex-direction: column;
        gap: 1.5rem;
        background: rgba(13, 17, 23, 0.98);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity 0.25s ease, transform 0.25s ease;
        align-items: flex-start;
        z-index: 999;
        backdrop-filter: blur(14px);
    }

    .nav-links.open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-links a {
        font-size: 1.1rem;
    }

    header.scrolled {
        background: rgba(13, 17, 23, 0.98) !important;
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35) !important;
    }

    #hero,
    #about-hero,
    #services-hero,
    #contact-hero,
    #use-cases-hero {
        padding: 120px 1.5rem 70px;
    }

    #about-hero h1,
    #services-hero h1,
    #contact-hero h1,
    #use-cases-hero h1 {
        font-size: 2.45rem;
        line-height: 1.2;
    }

    #about-hero p,
    #services-hero p,
    #contact-hero p,
    #use-cases-hero p {
        font-size: 1.05rem;
    }

    .hero-content p {
        font-size: 1.05rem;
        margin-bottom: 2rem;
    }

    section {
        padding: 60px 0;
    }

    .container {
        padding: 0 18px;
    }

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

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

    .ai-network {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 2rem;
    }

    section {
        padding: 60px 0;
    }

    .container {
        padding: 0 15px;
    }
}
