﻿/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1e293b;
    overflow-x: hidden;
}


/* Main Container */
.main-container {
    min-height: 100vh;
    background: white;
    position: relative;
    overflow: hidden;
}


/* Grid Background */
.grid-background {
    position: absolute;
    inset: 0;
    opacity: 0.3;
    background-image: radial-gradient(#e0e0e0 1px, transparent 0);
    background-size: 20px 20px;
    z-index: 1;
}


/* Navigation */
.navigation {
    position: relative;
    z-index: 50;
    padding: 1rem 1.5rem;
}


.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #000000;
}


.logo-accent {
    color: #ef4444;
}


.nav-links {
    display: flex;
    gap: 2rem;
    color: #475569;
}


.nav-links a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}


.nav-links a:hover {
    color: #ef4444;
}


.nav-button {
    background: white;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
}


.nav-button:hover {
    background: white;
    transform: translateY(-2px);
}


/* Hero Section */
.hero {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
}


.hero-content {
    text-align: center;
    max-width: 1024px;
    margin: 0 auto;
}


.animation-container {
    height: 512px;
    }




.hero-title {
    font-size: 4rem;
    font-weight: bold;
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    transition: font-size 0.3s;
}


.letter-i {
    color: #ef4444;
}


.phrase-container {
    height: 3rem;
    overflow: hidden;
    position: relative;
}


.phrase-display {
    font-size: 1.5rem;
    color: #ef4444;
    transition: transform 1s ease-in-out;
}


/* Transformation Phase */
.transformation-container {
    margin-bottom: 3rem;
}


.letter-a {
    color: #ef4444;
    display: inline-block;
    animation: dropInA 0.6s ease forwards;
}


.letter-i-final {
    color: #ef4444;
    display: inline-block;
    animation: shiftI 0.4s ease-out 0.6s forwards;
    transform: rotate(-30deg);
}


.tagline {
    font-size: 1.5rem;
    color: #475569;
    margin-bottom: 1.5rem;
    animation: fadeIn 1s ease-out;
}


.hero-description {
    font-size: 1.125rem;
    color: #64748b;
    margin-bottom: 2rem;
    max-width: 512px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    animation: fadeIn 1s ease-out 0.5s both;
}


.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    animation: fadeIn 1s ease-out 1s both;
}


.primary-button, .secondary-button {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}


.primary-button {
    background: #ef4444;
    color: white;
}


.primary-button:hover {
    background: #dc2626;
    transform: translateY(-2px);
}


.secondary-button {
    background: transparent;
    color: #000000;
    border: 2px solid #000000;
}


.secondary-button:hover {
    background: #000000;
    color: white;
    transform: translateY(-2px);
}


.sparkles-icon {
    font-size: 1.25rem;
}


.hidden {
    display: none;
}


/* Animations */
@keyframes dropInA {
    0% {
        transform: translateY(-100%) scale(1);
        opacity: 0;
    }
    80% {
        transform: translateY(0%) scale(1.05);
        opacity: 1;
    }
    100% {
        transform: translateY(0%) scale(1);
        opacity: 1;
    }
}


@keyframes shiftI {
    0% {
        transform: rotate(-30deg) translateX(0);
    }
    60% {
        transform: rotate(15deg) translateX(10px);
    }
    100% {
        transform: rotate(0deg) translateX(3px);
    }
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}


/* Features Section */
.features {
    position: relative;
    z-index: 10;
    padding: 6rem 1.5rem;
    background: #f8fafc;
}


.section-container {
    max-width: 1280px;
    margin: 0 auto;
}


.section-header {
    text-align: center;
    margin-bottom: 4rem;
}


.section-header h2 {
    font-size: 3rem;
    font-weight: bold;
    color: #000000;
    margin-bottom: 1.5rem;
}


.section-header p {
    font-size: 1.25rem;
    color: #64748b;
    max-width: 768px;
    margin: 0 auto;
}


.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}


.feature-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    overflow: hidden;
}


.feature-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}


.feature-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: transform 0.3s;
}


.feature-card:hover .feature-icon {
    transform: scale(1.1);
}


.zap-gradient {
    background: linear-gradient(to right, #ef4444, #dc2626);
    color: white;
}


.shield-gradient {
    background: linear-gradient(to right, #000000, #374151);
    color: white;
}


.bulb-gradient {
    background: linear-gradient(to right, #ef4444, #000000);
    color: white;
}


.feature-card h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #000000;
    margin-bottom: 1rem;
}


.feature-card p {
    color: #64748b;
    margin-bottom: 1.5rem;
}


.feature-image {
    margin-top: 1.5rem;
    border-radius: 0.375rem;
    overflow: hidden;
}


.feature-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: transform 0.3s;
}


.feature-card:hover .feature-image img {
    transform: scale(1.05);
}


/* About Section */
.about {
    position: relative;
    z-index: 10;
    padding: 6rem 1.5rem;
}


.about-grid {
    display: fllex;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}


.about-content h2 {
    font-size: 3rem;
    font-weight: bold;
    color: #000000;
    margin-bottom: 2rem;
}


.about-content p {
    font-size: 1.125rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}


.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}


.stat {
    text-align: center;
}


.stat-number {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}


.stat:first-child .stat-number {
    color: #ef4444;
}


.stat:last-child .stat-number {
    color: #000000;
}


.stat-label {
    color: #64748b;
}


.about-visual {
    position: relative;
}


.visual-container {
    width: 100%;
    height: 24rem;
    background: linear-gradient(to bottom right, #fef2f2, #f8fafc);
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
}


.icons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 2rem;
}


.animated-icon {
    font-size: 3rem;
    animation: pulse 2s infinite;
}


.delay-0 { animation-delay: 0s; }
.delay-200 { animation-delay: 0.2s; }
.delay-400 { animation-delay: 0.4s; }
.delay-600 { animation-delay: 0.6s; }
.delay-800 { animation-delay: 0.8s; }
.delay-1000 { animation-delay: 1s; }


/* Contact Section */
.contact {
    position: relative;
    z-index: 10;
    padding: 6rem 1.5rem;
    background: #f8fafc;
}


.contact .section-container {
    text-align: center;
}


.contact h2 {
    font-size: 3rem;
    font-weight: bold;
    color: #000000;
    margin-bottom: 2rem;
}


.contact p {
    font-size: 1.25rem;
    color: #64748b;
    margin-bottom: 3rem;
}


.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    max-width: 384px;
    margin: 0 auto;
}


.email-input {
    background: white;
    border: 2px solid #e2e8f0;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    color: #000000;
    transition: border-color 0.2s;
}


.email-input:focus {
    outline: none;
    border-color: #ef4444;
}


.contact-button {
    background: #ef4444;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
}


.contact-button:hover {
    background: #dc2626;
    transform: translateY(-2px);
}


/* Footer */
.footer {
    position: relative;
    z-index: 10;
    padding: 1.5rem;
    text-align: center;
    background: #000000;
}


.footer p {
    font-size: 0.875rem;
    color: #94a3b8;
    letter-spacing: 0.05em;
}


/* Chat Styles */
.chat-button {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 50;
    background: #ef4444;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.3);
    transition: all 0.3s;
    font-size: 1.5rem;
}


.chat-button:hover {
    background: #dc2626;
    transform: scale(1.1);
}


.chat-window {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 50;
    width: 384px;
    height: 384px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    display: hidden;
    flex-direction: column;
}


.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    background: #ef4444;
    border-radius: 1rem 1rem 0 0;
}


.chat-header h3 {
    color: white;
    font-weight: 600;
}


.chat-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: background 0.2s;
}


.chat-close:hover {
    background: rgba(255, 255, 255, 0.2);
}


.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}


.message {
    max-width: 100%;
    padding: 0.75rem;
    border-radius: 0.5rem;
}


.bot-message {
    background: #f1f5f9;
    color: #000000;
    border: 1px solid #e2e8f0;
    align-self: flex-start;
}


.user-message {
    background: #ef4444;
    color: white;
    align-self: flex-end;
}


.chat-input-form {
    padding: 1rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 0.5rem;
}


.chat-input {
    flex: 1;
    background: white;
    border: 2px solid #e2e8f0;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    color: #000000;
    transition: border-color 0.2s;
}


.chat-input:focus {
    outline: none;
    border-color: #ef4444;
}


.chat-send {
    background: #ef4444;
    color: white;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}


.chat-send:hover {
    background: #dc2626;
}


/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        flex-direction: column;
    }
    
    .chat-window {
        width: calc(100vw - 3rem);
        right: 1.5rem;
        left: 1.5rem;
    }
}


@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
    
    .contact-form {
        flex-direction: row;
    }
}