/* Lightning Pro - CSS Styles */

/* ========================================
   1. CSS Variables & Reset
   ======================================== */

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

:root {
    --primary-black: #0a0a0a;
    --secondary-grey: #2a2a2a;
    --light-grey: #7a7a7a;
    --beige: #f4f1eb;
    --accent-beige: #e8e2d5;
    --dark-beige: #d4cfc2;
    --darker-beige: #b8b2a1;
    --white: #ffffff;
    --success-green: #4CAF50;

    --transition-fast: 0.3s ease;
    --transition-normal: 0.6s ease;
    --transition-slow: 0.8s ease;

    --shadow-small: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-large: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* ========================================
   2. Base Styles
   ======================================== */

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--beige);
    color: var(--primary-black);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ========================================
   3. Typography
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
}

/* ========================================
   4. Header & Navigation
   ======================================== */

header {
    padding: 2rem 0;
    background-color: var(--beige);
    position: relative;
    box-shadow: var(--shadow-small);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-black);
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
}

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

.nav-links a {
    color: var(--secondary-grey);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-black);
    transition: width var(--transition-fast);
}

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

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

/* ========================================
   5. Language Toggle
   ======================================== */

.toggle-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--light-grey);
    transition: var(--transition-fast);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    font-size: 10px;
    font-weight: 600;
    color: var(--white);
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: var(--white);
    transition: var(--transition-fast);
    border-radius: 50%;
    box-shadow: var(--shadow-small);
}

input:checked + .slider {
    background-color: var(--primary-black);
}

input:checked + .slider:before {
    transform: translateX(30px);
}

.lang-labels {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.lang-label {
    color: var(--light-grey);
    transition: color var(--transition-fast);
}

.lang-label.active {
    color: var(--primary-black);
    font-weight: 600;
}

/* ========================================
   6. Hero Section
   ======================================== */

.hero {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--beige) 0%, var(--accent-beige) 100%);
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 2px,
        rgba(42, 42, 42, 0.02) 2px,
        rgba(42, 42, 42, 0.02) 4px
    );
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    text-align: left;
    animation: slideInLeft 1s ease-out;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    line-height: 0.9;
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--secondary-grey) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--light-grey);
    margin-bottom: 3rem;
    max-width: 500px;
    line-height: 1.6;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: slideInRight 1s ease-out;
}

.robot-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 400px;
}

.robot-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(42, 42, 42, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
    z-index: 1;
}

.hero-robot {
    width: 100%;
    height: auto;
    max-width: 350px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 10px 30px rgba(42, 42, 42, 0.2));
    animation: float 6s ease-in-out infinite;
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.6;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}


/* ========================================
   7. Buttons & CTAs
   ======================================== */

.cta-primary {
    display: inline-block;
    padding: 1rem 3rem;
    background-color: var(--primary-black);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--transition-fast);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.cta-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: var(--secondary-grey);
    transition: all var(--transition-normal);
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.cta-primary:hover::before {
    width: 300%;
    height: 300%;
}

.cta-primary span {
    position: relative;
    z-index: 1;
}

/* ========================================
   8. Services Section
   ======================================== */

.services {
    padding: 6rem 0;
    background-color: var(--dark-beige);
    color: var(--primary-black);
    position: relative;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: var(--primary-black);
}

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

.service-card {
    background-color: var(--beige);
    padding: 3rem 2rem;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    opacity: 1;
    transform: translateY(0);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--primary-black);
    transform: scaleY(0);
    transition: transform var(--transition-fast);
    transform-origin: bottom;
}

.service-card:hover::before {
    transform: scaleY(1);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    background-color: var(--white);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    color: var(--primary-black);
}

.service-card p {
    color: var(--secondary-grey);
    font-weight: 400;
    line-height: 1.8;
}

/* ========================================
   9. Contact Form Section
   ======================================== */

.contact {
    padding: 6rem 0;
    background-color: var(--accent-beige);
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.contact p {
    font-size: 1.2rem;
    color: var(--light-grey);
    margin-bottom: 3rem;
}

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

.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-group {
    flex: 1;
}

.form input,
.form textarea,
.form select {
    width: 100%;
    padding: 1rem;
    border: 2px solid transparent;
    background-color: var(--white);
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    transition: all var(--transition-fast);
    outline: none;
    border-radius: 4px;
    box-shadow: var(--shadow-small);
}

/* Phone number group styling */
.phone-group {
    display: flex;
    gap: 1rem;
}

.country-code-group {
    flex: 0 0 160px;
}

.phone-number-group {
    flex: 1;
}

.country-code-group select {
    font-size: 0.9rem;
    cursor: pointer;
}

.form input:focus,
.form textarea:focus,
.form select:focus {
    border-color: var(--primary-black);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

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

.form button {
    align-self: center;
    margin-top: 1rem;
}

/* ========================================
   10. Footer
   ======================================== */

footer {
    padding: 3rem 0;
    background-color: var(--darker-beige);
    color: var(--primary-black);
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
}

.footer-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.footer-links a {
    color: var(--secondary-grey);
    text-decoration: none;
    transition: color var(--transition-fast);
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-black);
    transition: width var(--transition-fast);
}

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

.footer-links a:hover::after {
    width: 100%;
}

.footer-copy {
    flex-basis: 100%;
    margin-top: 1rem;
    color: var(--secondary-grey);
    font-size: 0.9rem;
}

/* ========================================
   11. Animations
   ======================================== */

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-content h1 {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.4s;
}

.hero .cta-primary {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.6s;
}

/* ========================================
   12. Responsive Design
   ======================================== */

/* Tablet */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        padding: 4rem 0;
        min-height: 60vh;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-content {
        text-align: center;
        order: 2;
    }

    .hero-visual {
        order: 1;
    }

    .hero h1 {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .hero-subtitle {
        font-size: 1.2rem;
        max-width: 100%;
    }

    .robot-container {
        max-width: 300px;
        margin: 0 auto;
    }

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

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

    .form-row {
        flex-direction: column;
    }

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

    .container {
        padding: 0 1.5rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .logo {
        font-size: 1.5rem;
    }

    .hero {
        padding: 3rem 0;
        min-height: 50vh;
    }

    .hero-grid {
        gap: 2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .robot-container {
        max-width: 250px;
    }

    .hero-robot {
        max-width: 250px;
    }

    .cta-primary {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }

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

    .service-card {
        padding: 2rem 1.5rem;
    }

    .service-card h3 {
        font-size: 1.2rem;
    }

    .contact h2 {
        font-size: 2rem;
    }

    .container {
        padding: 0 1rem;
    }
}

/* ========================================
   13. Utility Classes
   ======================================== */

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

/* ========================================
   14. Dark Mode Preparation
   ======================================== */

/* Dark mode toggle button */
.dark-mode-btn {
    background: none;
    border: 2px solid var(--primary-black);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--primary-black);
}

.dark-mode-btn:hover {
    background-color: var(--primary-black);
    color: var(--beige);
}

/* Dark mode variables */
[data-theme="dark"] {
    --beige: #1a1a1a;
    --accent-beige: #2a2a2a;
    --dark-beige: #333333;
    --darker-beige: #0a0a0a;
    --primary-black: #f4f1eb;
    --secondary-grey: #cccccc;
    --light-grey: #999999;
    --white: #0a0a0a;
}

[data-theme="dark"] body {
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

/* Animation for service cards when they come into view */
.service-card.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* ========================================
   15. Accessibility
   ======================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--primary-black);
    outline-offset: 2px;
}

/* Sticky header styles */
header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--beige);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

header.sticky.hidden {
    transform: translateY(-100%);
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-black);
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:first-child {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:last-child {
    transform: rotate(-45deg) translate(7px, -6px);
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links.mobile-active {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--beige);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}