/* ========================================
   MAX ISAKOV ARCHITECTURE - Main Stylesheet
   ======================================== */

:root {
    --color-bg: #ffffff;
    --color-bg-light: #f5f5f5;
    --color-bg-card: #fafafa;
    --color-primary: #333333;
    --color-primary-hover: #555555;
    --color-accent: #333333;
    --color-text: #333333;
    --color-text-muted: #777777;
    --color-border: #e0e0e0;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

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

/* ========================================
   NAVIGATION
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
    letter-spacing: 0.1em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-menu a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--color-text);
}

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

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

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 100px 24px 60px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    color: var(--color-text);
}

.hero-credentials {
    font-size: 1rem;
    color: var(--color-text-muted);
    letter-spacing: 0.2em;
    margin-bottom: 16px;
    font-weight: 400;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 16px;
    font-weight: 500;
}

.hero-tagline {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: #000000;
    color: #ffffff;
}

.btn-primary:hover {
    background: #333333;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: var(--color-bg-card);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-bg-light);
    border-color: var(--color-primary);
}

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-outline:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* ========================================
   SERVICES OVERVIEW
   ======================================== */

.services-overview {
    padding: 100px 24px;
    background: var(--color-bg-light);
}

.services-overview h2,
.featured-projects h2,
.contact-cta h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    font-weight: 600;
}

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

.service-card {
    background: var(--color-bg-card);
    padding: 40px 32px;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-card h3 {
    font-size: 1.35rem;
    margin-bottom: 16px;
    font-weight: 600;
}

.service-card p {
    color: var(--color-text-muted);
    margin-bottom: 20px;
    line-height: 1.7;
}

.link-arrow {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.link-arrow:hover {
    color: var(--color-primary-hover);
}

/* ========================================
   FEATURED PROJECTS
   ======================================== */

.featured-projects {
    padding: 100px 24px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.project-card {
    text-decoration: none;
    color: var(--color-text);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-8px);
}

.project-image {
    height: 220px;
    border-radius: 12px;
    margin-bottom: 16px;
    transition: var(--transition);
}

.project-card:hover .project-image {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.project-card h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.project-card p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.center-btn {
    text-align: center;
}

/* ========================================
   ABOUT TEASER
   ======================================== */

.about-teaser {
    padding: 100px 24px;
    background: var(--color-bg-light);
    text-align: center;
}

.about-teaser blockquote {
    font-size: 1.75rem;
    font-style: italic;
    color: var(--color-accent);
    margin-bottom: 24px;
    font-weight: 300;
}

.about-teaser p {
    max-width: 700px;
    margin: 0 auto 32px;
    color: var(--color-text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* ========================================
   CONTACT CTA
   ======================================== */

.contact-cta {
    padding: 100px 24px;
    text-align: center;
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-light) 100%);
}

.contact-cta p {
    max-width: 600px;
    margin: 0 auto 32px;
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

/* ========================================
   FOOTER
   ======================================== */

footer {
    padding: 60px 24px 32px;
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 32px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.footer-brand p,
.footer-contact p {
    color: var(--color-text-muted);
}

.footer-contact a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}

.footer-bottom p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* ========================================
   PAGE STYLES (About, Services, etc.)
   ======================================== */

.page-header {
    padding: 140px 24px 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 16px;
}

.page-header p {
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.page-content {
    padding: 60px 24px 100px;
}

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

.content-section h2 {
    font-size: 1.75rem;
    margin-bottom: 24px;
    color: var(--color-primary);
}

.content-section h3 {
    font-size: 1.35rem;
    margin: 32px 0 16px;
}

.content-section p {
    color: var(--color-text-muted);
    margin-bottom: 16px;
    line-height: 1.8;
}

.content-section ul {
    list-style: none;
    margin: 16px 0;
}

.content-section li {
    color: var(--color-text-muted);
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
}

.content-section li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--color-accent);
}

/* ========================================
   CONTACT FORM
   ======================================== */

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

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

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--color-bg);
        flex-direction: column;
        padding: 32px 24px;
        gap: 24px;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
    }

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

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

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

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}