/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary: #ff6b35;
    --primary-dark: #e85a2a;
    --secondary: #f7931e;
    --accent: #ffd166;
    --dark: #1a1a2e;
    --dark-light: #16213e;
    --text: #e8e8e8;
    --text-muted: #a0a0a0;
    --bg: #0f0f1e;
    --bg-light: #1a1a2e;
    --success: #06ffa5;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ===== Header & Navigation ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 15, 30, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 107, 53, 0.1);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text);
}

.logo-icon {
    font-size: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: var(--transition);
}

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

.nav-link:hover::after {
    width: 100%;
}

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

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text);
    border-radius: 3px;
    transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: linear-gradient(135deg, var(--bg) 0%, var(--dark-light) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.15) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    border-radius: 50%;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.hero-content {
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

.highlight {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

/* ===== Oven Animation ===== */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.oven-animation {
    position: relative;
    width: 400px;
    height: 400px;
}

.oven {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #2a2a3e 0%, #1a1a2e 100%);
    border-radius: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.oven-door {
    width: 250px;
    height: 250px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #16213e;
    border-radius: 15px;
    border: 3px solid #0f0f1e;
}

.oven-window {
    width: 200px;
    height: 200px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 107, 53, 0.3) 0%, transparent 70%);
    border-radius: 10px;
    overflow: hidden;
}

.fire-particle {
    width: 10px;
    height: 10px;
    background: var(--secondary);
    border-radius: 50%;
    position: absolute;
    animation: fire 2s ease-in-out infinite;
    box-shadow: 0 0 20px var(--primary);
}

.fire-particle:nth-child(1) {
    left: 30%;
    animation-delay: 0s;
}

.fire-particle:nth-child(2) {
    left: 50%;
    animation-delay: 0.5s;
}

.fire-particle:nth-child(3) {
    left: 70%;
    animation-delay: 1s;
}

@keyframes fire {
    0%, 100% {
        bottom: 20px;
        opacity: 1;
        transform: scale(1);
    }
    50% {
        bottom: 150px;
        opacity: 0;
        transform: scale(0.5);
    }
}

.idea-icon {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 3rem;
    animation: floatToOven 3s ease-in-out infinite;
}

.system-icon {
    position: absolute;
    bottom: 0;
    right: 0;
    font-size: 3rem;
    animation: floatFromOven 3s ease-in-out infinite;
}

@keyframes floatToOven {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 1;
    }
    50% {
        transform: translate(100px, 100px);
        opacity: 0.3;
    }
}

@keyframes floatFromOven {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 1;
    }
    50% {
        transform: translate(-100px, -100px);
        opacity: 0.3;
    }
}

/* ===== Services Section ===== */
.services {
    padding: var(--spacing-xl) 0;
    background: var(--bg-light);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(90deg, var(--text), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.service-card {
    background: var(--dark);
    padding: var(--spacing-md);
    border-radius: 15px;
    border: 1px solid rgba(255, 107, 53, 0.1);
    transition: var(--transition);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.2);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.service-description {
    color: var(--text-muted);
    line-height: 1.8;
}

/* ===== Technologies Section ===== */
.technologies {
    padding: var(--spacing-xl) 0;
    background: var(--bg);
}

.tech-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

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

.tech-category-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--primary);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    justify-content: center;
}

.tech-tag {
    background: var(--dark);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    border: 1px solid rgba(255, 107, 53, 0.2);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.tech-tag:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 107, 53, 0.3);
}

/* ===== About Section ===== */
.about {
    padding: var(--spacing-xl) 0;
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.about-description {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.stat {
    text-align: center;
    padding: var(--spacing-md);
    background: var(--dark);
    border-radius: 10px;
    border: 1px solid rgba(255, 107, 53, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: var(--spacing-xs);
}

.process-flow {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
}

.process-step {
    background: var(--dark);
    padding: var(--spacing-md);
    border-radius: 15px;
    text-align: center;
    border: 2px solid rgba(255, 107, 53, 0.2);
    transition: var(--transition);
}

.process-step:hover {
    transform: scale(1.05);
}

.highlight-step {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.2), rgba(247, 147, 30, 0.2));
    border-color: var(--primary);
}

.step-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-xs);
}

.step-text {
    font-weight: 600;
    font-size: 0.9rem;
}

.process-arrow {
    font-size: 2rem;
    color: var(--primary);
    font-weight: 900;
}

/* ===== Contact Section ===== */
.contact {
    padding: var(--spacing-xl) 0;
    background: var(--bg);
}

.contact-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--text);
}

.form-input {
    padding: 1rem;
    background: var(--dark);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 8px;
    color: var(--text);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.btn-large {
    grid-column: 1 / -1;
    padding: 1.25rem;
    font-size: 1.1rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.info-item {
    display: flex;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: var(--dark);
    border-radius: 10px;
    border: 1px solid rgba(255, 107, 53, 0.1);
}

.info-icon {
    font-size: 2rem;
}

.info-text h4 {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xs);
}

.info-text p {
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-xs);
}

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

.social-link:hover {
    color: var(--secondary);
    text-decoration: underline;
}

/* ===== Footer ===== */
.footer {
    background: var(--dark-light);
    padding: var(--spacing-lg) 0;
    border-top: 1px solid rgba(255, 107, 53, 0.1);
}

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

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: var(--spacing-sm);
}

.footer-text {
    color: var(--text-muted);
    margin-bottom: var(--spacing-xs);
}

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

/* ===== Responsive Design ===== */
@media (max-width: 968px) {
    .hero-container,
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .oven-animation {
        width: 300px;
        height: 300px;
    }
    
    .oven {
        width: 250px;
        height: 250px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .process-flow {
        flex-direction: column;
    }
    
    .process-arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        flex-direction: column;
        background: var(--bg-light);
        padding: var(--spacing-md);
        gap: var(--spacing-sm);
        transition: var(--transition);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-md: 1rem;
        --spacing-lg: 2rem;
        --spacing-xl: 3rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-categories {
        grid-template-columns: 1fr;
    }
}
