/* GENERAL */
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    color: #35241c;
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    border-bottom: 1px solid rgba(53, 36, 28, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar .logo {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.navbar .logo-image {
    height: 65px;
    width: auto;
    transition: all 0.3s ease;
}

.navbar.scrolled .logo-image {
    height: 50px;
}

.navbar nav {
    display: flex;
    align-items: center;
}

.navbar nav a {
    margin-left: 20px;
    color: #35241c;
    text-decoration: none;
    font-size: 0.95em;
    transition: color 0.3s ease;
    position: relative;
}

.navbar nav a:hover {
    color: #de241c;
}

.navbar nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #de241c;
    transition: width 0.3s ease;
}

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

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

/* LANGUAGE SELECTOR */
.language-selector {
    display: flex;
    gap: 4px;
    margin-left: 15px;
    padding-left: 15px;
    border-left: 1px solid rgba(53, 36, 28, 0.08);
}

.lang-option {
    background: none;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 1em;
    padding: 3px 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
}

.lang-option:hover {
    background: rgba(53, 36, 28, 0.05);
    border-color: rgba(53, 36, 28, 0.1);
    opacity: 0.8;
    transform: scale(1.05);
}

.lang-option.active {
    background: rgba(53, 36, 28, 0.08);
    border-color: rgba(53, 36, 28, 0.15);
    opacity: 1;
}

.lang-option:active {
    transform: scale(0.98);
}

/* HAMBURGER MENU */
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    width: 30px;
    height: 24px;
    position: relative;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: #35241c;
    border-radius: 3px;
    transition: all 0.3s ease;
    position: absolute;
    left: 0;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger span:nth-child(3) {
    bottom: 0;
}

.hamburger.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* HERO */
.hero {
    padding: 120px 0;
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
    position: relative;
    overflow: hidden;
}

/* Neural Network Animation */
.neural-network {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2em;
    color: #7c7670;
    margin-bottom: 40px;
}

.buttons a {
    padding: 14px 26px;
    text-decoration: none;
    border-radius: 8px;
    margin: 0 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: inline-block;
    font-weight: 500;
}

.btn-primary {
    background: linear-gradient(135deg, #de241c 0%, #b51d16 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(222, 36, 28, 0.3);
    border: none;
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(222, 36, 28, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(222, 36, 28, 0.5);
    }
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff2e24 0%, #de241c 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 8px;
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 35px rgba(222, 36, 28, 0.5);
    animation: none;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:active {
    transform: translateY(-2px) scale(1.02);
    transition: transform 0.1s ease;
}

.btn-secondary {
    border: 2px solid #de241c;
    color: #de241c;
    background: rgba(222, 36, 28, 0.05);
    box-shadow: 0 4px 15px rgba(222, 36, 28, 0.1);
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(135deg, #de241c 0%, #b51d16 100%);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
    border-radius: 8px;
}

.btn-secondary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(222, 36, 28, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -2;
}

.btn-secondary:hover {
    color: #ffffff;
    border-color: #de241c;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 35px rgba(222, 36, 28, 0.35);
}

.btn-secondary:hover::before {
    width: 100%;
}

.btn-secondary:hover::after {
    width: 300px;
    height: 300px;
}

.btn-secondary:active {
    transform: translateY(-2px) scale(1.02);
    transition: transform 0.1s ease;
}

/* SECTION */
.section {
    padding: 80px 0;
}

.section.dark {
    background: #f8f8f8;
}

/* FEATURES GRID */
.features-grid, .usecases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-item, .usecase-item {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(53, 36, 28, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: default;
}

.feature-item::before, .usecase-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(222, 36, 28, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.feature-item:hover, .usecase-item:hover {
    transform: translateY(-8px);
    border-color: rgba(222, 36, 28, 0.3);
    box-shadow: 0 12px 40px rgba(222, 36, 28, 0.15),
                0 0 0 1px rgba(222, 36, 28, 0.1);
}

.feature-item:hover::before, .usecase-item:hover::before {
    opacity: 1;
}

.feature-item h3, .usecase-item h3 {
    transition: color 0.3s ease;
}

.feature-item:hover h3, .usecase-item:hover h3 {
    color: #de241c;
}

/* ARCHITECTURE */
.architecture-box {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(53, 36, 28, 0.1);
    transition: all 0.4s ease;
    position: relative;
}

.architecture-box:hover {
    border-color: rgba(222, 36, 28, 0.2);
    box-shadow: 0 8px 30px rgba(222, 36, 28, 0.1);
}

.architecture-box ul {
    position: relative;
    z-index: 1;
}

.architecture-box li {
    transition: transform 0.3s ease, color 0.3s ease;
    padding: 8px 0;
}

.architecture-box li:hover {
    transform: translateX(5px);
    color: #de241c;
}

/* MODERN CONTACT FORM */
.contact-header {
    text-align: center;
    margin-bottom: 35px;
}

.contact-header h2 {
    font-size: 2.2em;
    margin-bottom: 10px;
}

.contact-subtitle {
    font-size: 1.05em;
    color: #7c7670;
    margin-top: 0;
}

/* Contact Form Container */
.contact-form-container {
    max-width: 650px;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 18px;
    border: 1px solid rgba(53, 36, 28, 0.1);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(222, 36, 28, 0.1);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.contact-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #de241c 0%, #b51d16 100%);
}

.contact-form-modern {
    display: flex;
    flex-direction: column;
    gap: 22px;
    align-items: stretch;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9em;
    font-weight: 600;
    color: #35241c;
    letter-spacing: 0.3px;
    padding-left: 2px;
}

.label-icon {
    width: 16px;
    height: 16px;
    color: #de241c;
}

.form-input {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 18px;
    background: #f8f8f8;
    border: 2px solid rgba(53, 36, 28, 0.1);
    border-radius: 12px;
    color: #35241c;
    font-size: 1em;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

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

.form-input:hover {
    border-color: rgba(222, 36, 28, 0.3);
    background: #ffffff;
}

.form-input:focus {
    border-color: #de241c;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(222, 36, 28, 0.1);
    transform: translateY(-1px);
}

.form-input::placeholder {
    color: #94948c;
}

/* Submit Button */
.btn-submit {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 32px;
    margin-top: 8px;
    background: linear-gradient(135deg, #de241c 0%, #b51d16 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    box-sizing: border-box;
    font-size: 1.05em;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 25px rgba(222, 36, 28, 0.35);
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-submit:hover::before {
    opacity: 1;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(222, 36, 28, 0.5);
}

.btn-submit:active {
    transform: translateY(-1px);
}

.btn-submit.loading {
    pointer-events: none;
}

.btn-submit.loading .btn-text,
.btn-submit.loading .btn-arrow {
    opacity: 0;
}

.btn-submit.loading .btn-loader {
    opacity: 1;
}

.btn-text {
    transition: opacity 0.3s ease;
}

.btn-arrow {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

.btn-submit:hover .btn-arrow {
    transform: translateX(5px);
}

/* Loader Spinner */
.btn-loader {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    opacity: 0;
    animation: spin 0.8s linear infinite;
    transition: opacity 0.3s ease;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Form Message */
.form-message-modern {
    padding: 16px;
    border-radius: 10px;
    font-size: 0.95em;
    text-align: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    display: none;
}

.form-message-modern.show {
    opacity: 1;
    transform: translateY(0);
    display: block;
    animation: slideDown 0.4s ease;
}

.form-message-modern.success {
    background: rgba(110, 231, 183, 0.1);
    border: 1px solid rgba(110, 231, 183, 0.3);
    color: #6EE7B7;
}

.form-message-modern.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #EF4444;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Input Validation States */
.form-input.error {
    border-color: #EF4444;
}

.form-input.success {
    border-color: #6EE7B7;
}

/* Old contact form (keep for backwards compatibility) */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.form-message {
    margin-top: 20px;
    font-size: 1.1em;
    color: #6EE7B7;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* FOOTER */
footer {
    text-align: center;
    padding: 20px 0;
    background: #ffffff;
    border-top: 1px solid rgba(53, 36, 28, 0.1);
    color: #7c7670;
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    /* Show hamburger menu on mobile */
    .hamburger {
        display: flex;
    }
    
    /* Adjust logo for mobile */
    .navbar .logo-image {
        height: 50px;
    }
    
    .navbar.scrolled .logo-image {
        height: 42px;
    }
    
    /* Hide/show mobile menu */
    .navbar nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        border-left: 1px solid rgba(53, 36, 28, 0.1);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    }
    
    .navbar nav.active {
        right: 0;
    }
    
    .navbar nav a {
        margin: 15px 0;
        font-size: 1.1em;
        padding: 10px 20px;
    }
    
    .navbar nav a::after {
        display: none;
    }
    
    /* Language selector in mobile menu */
    .language-selector {
        margin-top: 25px;
        margin-left: 0;
        padding-left: 0;
        padding-top: 15px;
        border-left: none;
        border-top: 1px solid rgba(53, 36, 28, 0.08);
        gap: 6px;
    }
    
    .lang-option {
        font-size: 1.3em;
        padding: 6px 10px;
        opacity: 0.6;
    }
    
    .lang-option.active {
        opacity: 1;
    }
    
    /* Adjust hero for fixed navbar */
    .hero {
        padding: 160px 0 100px;
    }
    
    .hero h1 {
        font-size: 2em;
    }
    
    .hero p {
        font-size: 1em;
    }
    
    /* Adjust buttons for mobile */
    .buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .buttons a {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
    
    /* Adjust grids for mobile */
    .features-grid, .usecases-grid {
        grid-template-columns: 1fr;
    }
    
    /* Adjust sections padding */
    .section {
        padding: 60px 0;
    }
    
    /* Contact Form Mobile */
    .contact-header h2 {
        font-size: 2em;
    }
    
    .contact-subtitle {
        font-size: 1em;
    }
    
    .contact-form-container {
        padding: 30px 25px;
        border-radius: 16px;
    }
    
    .form-input {
        padding: 14px 18px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .form-textarea {
        min-height: 110px;
    }
    
    .btn-submit {
        padding: 16px 28px;
        font-size: 1em;
        width: 100%;
    }
}

/* Tablet adjustments */
@media (max-width: 1024px) and (min-width: 769px) {
    .hero h1 {
        font-size: 2.5em;
    }
    
    .features-grid, .usecases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Add padding to body for fixed navbar */
body {
    padding-top: 70px;
}

/* SCROLL ANIMATIONS */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation delays for grid items */
.feature-item, .usecase-item {
    opacity: 0;
    animation: none;
}

.feature-item.visible, .usecase-item.visible {
    opacity: 1;
    animation: slideUpFadeIn 0.6s ease forwards;
}

.feature-item.visible:nth-child(1) { animation-delay: 0.1s; }
.feature-item.visible:nth-child(2) { animation-delay: 0.2s; }
.feature-item.visible:nth-child(3) { animation-delay: 0.3s; }
.feature-item.visible:nth-child(4) { animation-delay: 0.4s; }

.usecase-item.visible:nth-child(1) { animation-delay: 0.1s; }
.usecase-item.visible:nth-child(2) { animation-delay: 0.2s; }
.usecase-item.visible:nth-child(3) { animation-delay: 0.3s; }
.usecase-item.visible:nth-child(4) { animation-delay: 0.4s; }

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

/* Section titles animation */
.section h2 {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section h2.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero animation on load */
.hero h1 {
    animation: slideUpFade 0.8s ease forwards;
    opacity: 0;
}

.hero p {
    animation: slideUpFade 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero .buttons {
    opacity: 0;
}

.hero .buttons .btn-primary {
    animation: slideInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
    opacity: 0;
}

.hero .buttons .btn-secondary {
    animation: slideInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
    opacity: 0;
}

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

@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);
    }
}

/* TOAST NOTIFICATIONS */
.toast-container {
    position: fixed;
    top: 100px;
    right: 30px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    background: #ffffff;
    color: #35241c;
    padding: 18px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(53, 36, 28, 0.1);
    min-width: 300px;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 15px;
    animation: toastSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: right;
}

.toast.removing {
    animation: toastSlideOut 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 1em;
    margin-bottom: 4px;
}

.toast-message {
    font-size: 0.9em;
    color: #7c7670;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: #94948c;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.toast-close:hover {
    color: #35241c;
}

.toast.success {
    border-left: 4px solid #10B981;
}

.toast.success .toast-icon {
    color: #10B981;
}

.toast.error {
    border-left: 4px solid #EF4444;
}

.toast.error .toast-icon {
    color: #EF4444;
}

.toast.info {
    border-left: 4px solid #de241c;
}

.toast.info .toast-icon {
    color: #de241c;
}

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

@keyframes toastSlideOut {
    from {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
    to {
        transform: translateX(400px) scale(0.95);
        opacity: 0;
    }
}

/* Toast Mobile */
@media (max-width: 768px) {
    .toast-container {
        top: 80px;
        right: 15px;
        left: 15px;
    }
    
    .toast {
        min-width: auto;
        max-width: none;
    }
}

