/*
Theme Name: Logstr Flytech Theme
Theme URI: https://logstr.io
Author: Logstr Team
Description: A minimalist, high-contrast theme inspired by Flytech.legal.
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500&display=swap');

:root {
    --color-bg: #fcfcfc;
    --color-bg-alt: #f2f4f6;
    --color-primary: #000000;
    /* Black headings */
    --color-accent: #c8e5dd;
    /* Pastel Mint from Flytech */
    --color-accent-hover: #b0dcd0;
    --color-text-main: #1a1a1a;
    --color-text-light: #555555;
    --color-border: #e0e0e0;

    --font-main: 'DM Sans', sans-serif;
    --font-mono: 'Fira Code', monospace;

    --transition: all 0.2s ease-in-out;
}

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

body {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    font-family: var(--font-main);
    line-height: 1.5;
    font-size: 18px;
    /* Slightly larger for modern feel */
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--color-accent);
    color: #000;
    border: 1px solid transparent;
    padding: 12px 24px;
    border-radius: 8px;
    /* Slightly squared */
    font-family: var(--font-main);
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    display: inline-block;
    color: var(--color-primary);
    background-color: transparent;
    border: 1px solid #000;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: var(--font-main);
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: #000;
    color: #fff;
}

/* Header */
#site-header {
    height: 80px;
    display: flex;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background-color: rgba(252, 252, 252, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

#site-header.scrolled {
    border-bottom-color: var(--color-border);
}

#site-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo a {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    letter-spacing: -0.03em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links li a {
    font-weight: 500;
    font-size: 16px;
    color: var(--color-text-main);
}

.nav-links li a:hover {
    color: #000;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Hero Section */
#hero {
    padding: 160px 0 100px;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

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

.overline {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    color: var(--color-text-light);
}

#hero h1 {
    font-size: clamp(48px, 5vw, 72px);
    margin-bottom: 30px;
}

#hero h1 span {
    background: linear-gradient(120deg, var(--color-accent) 0%, var(--color-accent) 100%);
    background-repeat: no-repeat;
    background-size: 100% 30%;
    background-position: 0 88%;
}

.subtitle {
    font-size: 20px;
    color: var(--color-text-light);
    margin-bottom: 40px;
    max-width: 500px;
    line-height: 1.6;
}

.cta-group {
    display: flex;
    gap: 16px;
}

/* Code Visual */
.code-block-visual {
    background-color: #1a1a1a;
    /* Dark contrast for code */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 14px;
}

.code-block-visual pre,
.code-block-visual code {
    background: transparent !important;
    text-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.code-header {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    align-items: center;
}

.filename {
    margin-left: auto;
    color: #888;
    font-size: 12px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.red {
    background-color: #ff5f56;
}

.yellow {
    background-color: #ffbd2e;
}

.green {
    background-color: #27c93f;
}

/* Sections */
section {
    padding: 120px 0;
}

.section-title {
    font-size: 40px;
    margin-bottom: 80px;
    text-align: center;
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.about-card {
    padding: 30px;
    border-radius: 12px;
    background-color: #fff;
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.about-card:hover {
    border-color: #000;
}

.about-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-card p {
    color: var(--color-text-light);
    font-size: 16px;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.service-item {
    background-color: var(--color-bg-alt);
    padding: 40px 30px;
    border-radius: 8px;
    transition: var(--transition);
}

.service-item:hover {
    background-color: var(--color-accent);
    transform: translateY(-5px);
}

.service-item .icon {
    margin-bottom: 20px;
    color: #000;
}

.service-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.service-item p {
    color: var(--color-text-light);
    font-size: 15px;
}

.service-item:hover p {
    color: #000;
}

/* Projects */
.project-row {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 120px;
}

.project-row.reverse {
    flex-direction: row-reverse;
}

.project-image {
    flex: 1.2;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    aspect-ratio: 16/10;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-image:hover img {
    transform: scale(1.05);
}

.project-details {
    flex: 1;
}

.tech-tag {
    display: inline-block;
    background-color: #000;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 12px;
    margin-right: 8px;
    margin-bottom: 16px;
}

.project-desc {
    font-size: 18px;
    color: var(--color-text-light);
    margin-bottom: 30px;
}

/* Page Headers */
.page-header {
    padding: 200px 0 100px;
    text-align: center;
    background-color: var(--color-bg-alt);
}

.page-header h1 {
    font-size: 64px;
    margin-bottom: 20px;
}

/* Stats */
.stats-section {
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

.stat-item h3 {
    font-size: 56px;
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

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

.premium-form input,
.premium-form textarea {
    width: 100%;
    padding: 16px;
    background-color: var(--color-bg-alt);
    border: 1px solid transparent;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 16px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.premium-form input:focus,
.premium-form textarea:focus {
    outline: none;
    background-color: #fff;
    border-color: #000;
}

/* Featured Projects (Home) */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 40px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    border-color: #000;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.project-header h3 {
    font-size: 24px;
    margin: 0;
}

.project-card p {
    color: var(--color-text-light);
    margin-bottom: 30px;
    flex-grow: 1;
}

.project-links a {
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 2px;
}

.project-links a:hover {
    border-color: #000;
}

/* Footer */
footer {
    padding: 80px 0;
    border-top: 1px solid var(--color-border);
    background-color: #fff;
    font-size: 15px;
    color: var(--color-text-light);
}

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

.footer-col h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
    color: #000;
}

.footer-logo {
    font-weight: 700;
    font-size: 24px;
    color: #000;
    margin-bottom: 20px;
    display: block;
}

.contact-info p {
    margin-bottom: 12px;
    display: flex;
    gap: 12px;
}

.contact-info i {
    width: 18px;
    height: 18px;
    stroke-width: 2px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: #000;
    font-weight: 500;
}

.copyright {
    margin-top: 80px;
    text-align: center;
    font-size: 13px;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
/* About Page Story */
.story-content {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
}

.story-text {
    flex: 1;
}

.story-text h2 {
    font-size: 32px;
    margin-bottom: 24px;
}

.story-text p {
    margin-bottom: 20px;
    color: var(--color-text-light);
    font-size: 18px;
}

.story-image {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.story-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.story-image:hover img {
    transform: scale(1.03);
}

/* Responsive */
@media (max-width: 900px) {
    .container {
        padding: 0 24px;
    }

    /* Header */
    #site-header {
        height: 70px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        padding: 30px 0;
        border-bottom: 1px solid var(--color-border);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

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

    .nav-links li {
        width: 100%;
        text-align: center;
        padding: 15px 0;
    }

    .nav-links li a {
        font-size: 18px;
        display: block;
    }

    .nav-links li a.btn-primary {
        display: inline-block;
        margin-top: 10px;
        padding: 12px 30px;
    }

    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        z-index: 1001;
    }

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

    /* Hero */
    #hero {
        padding: 140px 0 80px;
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-text {
        order: 1;
    }

    .hero-visual {
        order: 2;
        display: none;
    }

    #hero h1 {
        font-size: 40px;
    }

    .cta-group {
        justify-content: center;
    }

    /* Grids */
    .about-grid,
    .services-grid,
    .projects-grid,
    .footer-content,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* About Story Mobile */
    .story-content {
        flex-direction: column;
        gap: 40px;
    }

    .story-image {
        width: 100%;
        order: -1;
        /* Image on top for mobile */
    }

    /* Projects Page */
    .project-row,
    .project-row.reverse {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 80px;
    }

    .project-image {
        width: 100%;
        aspect-ratio: 16/9;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .stat-item h3 {
        font-size: 40px;
    }
}