/* Base Variables & Reset */
:root {
    --primary: #b61d29;
    --primary-light: #d63d49;
    --primary-dark: #8c141e;
    --bg-light: #ffffff;
    --bg-alt: #f8f9fa;
    --bg-card: #ffffff;
    --bg-card-hover: #ffffff;
    --text-main: #1a1a24;
    --text-muted: #5e5e6e;
    --border: #e2e4e8;
    
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
    
    --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

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

h1, h2, h3, h4, .logo-text {
    font-family: var(--font-heading);
    color: var(--text-main);
    line-height: 1.2;
}

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

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

.highlight {
    color: var(--primary);
}

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

.w-100 {
    width: 100%;
}

/* Typography elements */
.section-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 4px;
    background: rgba(182, 29, 41, 0.08);
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff !important;
    padding: 0.875rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    font-family: var(--font-heading);
    border: none;
    cursor: pointer;
    transition: background-color var(--transition), transform var(--transition);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    color: #fff;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--text-main);
    padding: 0.875rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    font-family: var(--font-heading);
    border: 2px solid var(--border);
    cursor: pointer;
    transition: all var(--transition);
}

.btn-secondary:hover {
    border-color: var(--text-main);
    background: var(--bg-alt);
}

/* Structural elements */
.solid-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all var(--transition);
    background: var(--bg-light);
    border-bottom: 1px solid transparent;
}

header.scrolled {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

.site-logo {
    max-height: 48px;
    width: auto;
    display: block;
}

.site-logo-footer {
    max-height: 40px;
    width: auto;
    display: block;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.desktop-nav a:not(.btn-primary) {
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-main);
    position: relative;
    padding-bottom: 2px;
}

.desktop-nav a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition);
}

.desktop-nav a:not(.btn-primary):hover::after,
.desktop-nav a.active::after {
    width: 100%;
}

.desktop-nav a:not(.btn-primary):hover,
.desktop-nav a.active {
    color: var(--primary);
}

.menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1002;
}

.menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--text-main);
    transition: all var(--transition);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--bg-light);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: right 0.4s ease;
}

.mobile-nav-overlay.active {
    right: 0;
}

.close-btn {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 2.5rem;
    color: var(--text-main);
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.mobile-nav-links a {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-main);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
    background: var(--bg-alt); /* Light gray for hero */
}

/* Subtle corporate pattern background */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-text-box .subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-text-box .title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.hero-text-box .description {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: flex-end;
}

/* Clean, crisp code block instead of glassmorphism */
.corp-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 400px;
    border-bottom: 4px solid var(--primary);
}

.card-header {
    display: flex;
    gap: 8px;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.card-code pre {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: #444; /* Dark code text */
    overflow-x: hidden;
}

.keyword { color: #d73a49; } /* Reddish keyword */
.string { color: #032f62; } /* Blueish string */
.function { color: #6f42c1; } /* Purple function */
.property { color: #005cc5; }
.variable { color: #e36209; }

/* Sections Common */
.section {
    padding: 6rem 0;
}

/* About Section */
.about {
    background: var(--bg-light);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    margin-top: 2.5rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    font-weight: 500;
    color: var(--text-main);
}

.icon-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(182, 29, 41, 0.1);
    border-radius: 50%;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: bold;
}
.icon-check::after {
    content: '✓';
}

.about-visual {
    position: relative;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg width="400" height="400" xmlns="http://www.w3.org/2000/svg"><rect width="100%" height="100%" fill="%23f4f5f7"/><text x="50%" y="50%" fill="%23a0a0b2" alignment-baseline="middle" text-anchor="middle" font-family="sans-serif">Korporativ Şəkil Yeri</text></svg>') center/cover;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.stats-card {
    position: absolute;
    bottom: -2rem;
    right: -2rem;
    background: var(--primary);
    color: #fff;
    padding: 1.5rem 2.5rem;
    border-radius: 4px;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.stats-card h3 {
    font-size: 3rem;
    margin-bottom: 0.25rem;
    color: #fff;
}

.stats-card p {
    font-size: 1rem;
    margin: 0;
    opacity: 0.9;
    font-weight: 500;
}

/* Services */
.services {
    background: var(--bg-alt); /* Light gray bg for contrast against white cards */
}

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

.service-card {
    padding: 2.5rem 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-bottom-color: var(--primary);
    background: var(--bg-light);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: rgba(182, 29, 41, 0.05);
    color: var(--primary);
    border-radius: 8px;
    border: 1px solid rgba(182, 29, 41, 0.1);
}

.service-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* Portfolio */
.portfolio {
    background: var(--bg-light);
}

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

.portfolio-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 320px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    background: var(--bg-alt);
}

.portfolio-bg {
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
    /* Placeholder gradient for light mode */
    background: linear-gradient(135deg, #e9ecef, #f8f9fa);
}

.portfolio-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
    color: #fff;
    transform: translateY(10px);
    opacity: 0.9;
    transition: all 0.4s ease;
}

.portfolio-content h4 {
    color: #fff;
}

.portfolio-item:hover .portfolio-bg {
    transform: scale(1.05);
}

.portfolio-item:hover .portfolio-content {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-content h4 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}

.portfolio-content p {
    color: #e0e0e0;
    font-size: 0.95rem;
}

/* Contact */
.contact {
    background: var(--bg-alt);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item .icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    color: var(--primary);
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--text-main);
}

.contact-item p {
    margin: 0;
    color: var(--text-muted);
}

.contact-form-wrapper {
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-main);
    font-family: var(--font-body);
    transition: all var(--transition);
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(182, 29, 41, 0.1);
}

.form-status {
    margin-top: 1rem;
    font-size: 0.95rem;
    text-align: center;
    font-weight: 500;
}
.form-status.success { color: #2e7d32; }
.form-status.error { color: #c62828; }

/* Footer */
.footer {
    background: #1a1a1a;
    color: #fff;
    padding: 4rem 0 2rem 0;
}

.footer .logo-text {
    color: #fff;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: #a0a0a0;
    margin-top: 1rem;
    max-width: 320px;
}

.footer h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: #fff;
}

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

.footer-links li {
    margin-bottom: 0.85rem;
}

.footer-links a {
    color: #a0a0a0;
}

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

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 44px;
    height: 44px;
    border-radius: 4px;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all var(--transition);
    color: #fff;
    font-weight: bold;
}

.social-icons a:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #888;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-content, .about-container, .contact-container {
        grid-template-columns: 1fr;
    }
    
    .hero-text-box .title {
        font-size: 3.2rem;
    }

    .hero-text-box {
        text-align: center;
    }

    .hero-text-box .description {
        margin: 0 auto 2rem auto;
    }

    .hero-buttons {
        justify-content: center;
    }
    
    .about-visual {
        order: -1;
        margin-bottom: 3rem;
    }
    .stats-card {
        right: 0;
        bottom: -1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-brand p {
        margin: 1rem auto;
    }

    .social-icons {
        justify-content: center;
    }
}

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

    .desktop-nav {
        display: none;
    }
    
    .menu-btn {
        display: flex;
    }

    header {
        padding: 1rem 0;
    }
    
    .hero-text-box .title {
        font-size: 2.2rem;
    }

    .hero-text-box .subtitle {
        font-size: 0.9rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
    }
    
    .section {
        padding: 3.5rem 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .stats-card {
        padding: 1rem 1.5rem;
    }

    .stats-card h3 {
        font-size: 2.2rem;
    }

    .image-wrapper {
        min-height: 250px;
    }

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

    .contact-form-wrapper {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-text-box .title {
        font-size: 1.8rem;
    }

    .corp-card {
        padding: 1rem;
    }

    .card-code pre {
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}
