/* Numica Website - Optimized Styles */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #000000;
    --white: #FFFFFF;
    --orange: #FA7921;
    --orange-hover: #E86E1E;
    --orange-shadow: rgba(250, 121, 33, 0.3);
    --orange-shadow-hover: rgba(250, 121, 33, 0.4);
    --gray-light: #F5F5F5;
    --gray-medium: #E0E0E0;
    --gray-dark: #333333;
    --max-width: 1200px;
    --transition: all 0.3s ease;
    --shadow-light: rgba(0, 0, 0, 0.05);
    --shadow-medium: rgba(0, 0, 0, 0.1);
    --shadow-heavy: rgba(0, 0, 0, 0.2);
    --white-shadow: rgba(255, 255, 255, 0.2);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

p { margin-bottom: 1rem; }

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

/* Dynamic Header/Navigation - Three States */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* State 2: Semi-transparent over video */
.header.semi-transparent {
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* State 3: White background past hero */
.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 30px;
    width: auto;
}

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

.nav-link {
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    color: var(--white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.header.scrolled .nav-link {
    color: var(--black);
    text-shadow: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--white);
    transition: all 0.3s ease;
}

.header.scrolled .nav-link::after {
    background-color: var(--black);
}

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

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

.header.scrolled .mobile-menu-toggle span {
    background-color: var(--black);
}

/* Full-Screen Hero Section */
.hero {
    height: 100vh;
    width: 100vw;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

/* Fallback background for devices that don't support autoplay */
.hero-fallback-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.hero-fallback-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(250, 121, 33, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(250, 121, 33, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
    z-index: 1;
}

/* Content overlay */
.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.hero-text {
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-title {
    color: var(--white);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    margin-bottom: 3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    animation: fadeInUp 1s ease-out;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
}

.hero-subtitle {
    color: var(--white);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    font-size: 1.25rem;
    margin-bottom: 4rem;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero .cta-button {
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0.8;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--white);
    border-bottom: 2px solid var(--white);
    transform: rotate(45deg);
    opacity: 1;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.cta-button {
    display: block;
    width: fit-content;
    margin: 0 auto;
    padding: 1rem 3rem;
    background-color: var(--orange);
    color: var(--white);
    font-weight: 600;
    border-radius: 0;
    transition: var(--transition);
    text-align: center;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--orange-shadow);
    background-color: var(--orange-hover);
}

/* What is Numica Section */
.what-is-numica {
    padding: 100px 0;
    background-color: var(--gray-light);
}

.definition-block {
    text-align: center;
    margin-bottom: 2rem;
}

.definition-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
}

.pronunciation {
    font-weight: 400;
    font-style: italic;
    color: var(--gray-dark);
}

.definition-text {
    font-size: 1.5rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 300;
}

.philosophy {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.125rem;
}

/* Services Section */
.services {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

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

.service-card {
    text-align: center;
    padding: 2rem;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--orange);
}

.service-title {
    margin-bottom: 1rem;
}

.service-description {
    color: var(--gray-dark);
    line-height: 1.8;
}

/* How We Work Section */
.how-we-work {
    padding: 100px 0;
    background-color: var(--gray-light);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

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

.step-number {
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    border: 2px solid var(--orange);
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--orange);
}

.step-title {
    margin-bottom: 0.5rem;
}

.step-description {
    color: var(--gray-dark);
}

.process-tagline {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 300;
    font-style: italic;
}

/* About Section */
.about {
    padding: 100px 0;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: var(--black);
    color: var(--white);
}

.contact .section-title {
    color: var(--white);
    margin-bottom: 3rem;
}

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

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

.form-input,
.form-textarea {
    width: 100%;
    padding: 1rem;
    background-color: transparent;
    border: 1px solid var(--white);
    color: var(--white);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--white);
    background-color: rgba(255, 255, 255, 0.1);
}

.submit-button {
    width: 100%;
    padding: 1rem 3rem;
    background-color: var(--orange);
    color: var(--white);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--orange-shadow);
    background-color: var(--orange-hover);
}

.contact-email {
    text-align: center;
    font-size: 1.125rem;
}

.contact-email a {
    color: var(--white);
    text-decoration: underline;
}

/* Footer */
.footer {
    padding: 3rem 0;
    background-color: var(--black);
    color: var(--white);
    text-align: center;
}

.footer p {
    margin-bottom: 0.5rem;
}

.footer a {
    color: var(--white);
}

/* Sticky CTA */
.sticky-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 0.75rem 2rem;
    background-color: var(--orange);
    color: var(--white);
    font-weight: 600;
    box-shadow: 0 5px 20px var(--orange-shadow);
    transition: var(--transition);
    z-index: 999;
    opacity: 0;
    transform: translateY(100px);
}

.sticky-cta.visible {
    opacity: 1;
    transform: translateY(0);
}

.sticky-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--orange-shadow-hover);
    background-color: var(--orange-hover);
}

.fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Form Messages */
.form-message {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
}

.form-message--success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message--error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Screen Reader Only */
.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;
}

/* Desktop-specific adjustments */
@media screen and (min-width: 769px) {
    .hero-content {
            justify-content: flex-end;
            align-items: center;
        }
    
        .hero-text {
            text-align: left;
            max-width: none;
            width: 40%;
            padding: 0 5rem;
        }
    
        .cta-button {
            margin: 0;
        }
}

/* RESPONSIVE STYLES */

/* Tablet and Mobile Styles */
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
    }
    
    .process-steps {
        gap: 2rem;
    }
}

@media screen and (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transition: right 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
        background-color: var(--black);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
        background-color: var(--black);
    }
    
    /* Full-Screen Hero Section - Mobile */
    .hero {
        height: 100vh;
        min-height: 100vh;
    }
    
    .hero-video {
        object-fit: cover;
        min-height: 100vh;
    }
    
    .hero-content {
        background: rgba(0, 0, 0, 0.5);
    }
    
    .hero-text {
        padding: 0 1.5rem;
    }
    
    .hero-title {
        font-size: clamp(2rem, 6vw, 3rem);
        margin-bottom: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
        margin-bottom: 3.5rem;
    }
    
    .scroll-indicator {
        bottom: 20px;
    }
    
    .scroll-arrow {
        width: 20px;
        height: 20px;
    }
    
    /* Dynamic Navigation - Mobile - Three States */
    .header {
        background-color: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    
    /* State 2: Semi-transparent over video - Mobile */
    .header.semi-transparent {
        background-color: rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }
    
    /* State 3: White background past hero - Mobile */
    .header.scrolled {
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }
    
    .nav-menu {
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
    
    .nav-menu .nav-link {
        color: var(--black);
        text-shadow: none;
    }
    
    /* Sections */
    .what-is-numica,
    .services,
    .how-we-work,
    .about,
    .contact {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
        margin-bottom: 3rem;
    }
    
    /* What is Numica */
    .definition-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }
    
    .definition-text {
        font-size: 1.25rem;
    }
    
    .philosophy {
        font-size: 1rem;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    /* Process Steps */
    .process-steps {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* About */
    .about-content p {
        font-size: 1rem;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 0 20px;
    }
    
    /* Sticky CTA */
    .sticky-cta {
        bottom: 20px;
        right: 20px;
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Small Mobile Styles (max-width: 480px) */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    .nav-container {
        padding: 1rem 1.5rem;
    }
    
    .logo-img {
        height: 25px;
    }
    
    .hero-title {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 0.875rem 2.5rem;
        font-size: 0.95rem;
    }
    
    .definition-text {
        font-size: 1.125rem;
        line-height: 1.6;
    }
    
    .service-icon {
        font-size: 2.5rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        line-height: 50px;
        font-size: 1.25rem;
    }
    
    .process-tagline {
        font-size: 1.25rem;
    }
    
    .form-input,
    .form-textarea {
        padding: 0.875rem;
        font-size: 0.95rem;
    }
    
    .submit-button {
        padding: 0.875rem 2rem;
    }
    
    .contact-email {
        font-size: 1rem;
    }
}

/* Landscape Mobile */
@media screen and (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 80px 0 40px;
    }
    
    .hero-video {
        object-fit: cover;
    }
    
    .nav-menu {
        flex-direction: row;
        height: 100vh;
        padding: 0 2rem;
    }
}

/* High Resolution Displays */
@media screen and (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .definition-text {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 3.5rem;
    }
}

/* Print Styles */
@media print {
    .header, .sticky-cta, .mobile-menu-toggle, .hero-video {
        display: none;
    }
    
    .hero {
        min-height: auto;
        padding: 40px 0;
    }
    
    .hero-title, .hero-subtitle {
        color: var(--black);
        text-shadow: none;
    }
    
    body {
        font-size: 12pt;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
}