/* Orivan - Complete Professional Stylesheet */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #60a5fa;
    --accent: #dbeafe;
    --dark: #0f172a;
    --light: #f8fafc;
    --gray: #64748b;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    overflow-x: hidden;
}

a {
    color: inherit;
}

/* Scroll offset for fixed navbar - ensures smooth scrolling to correct position */
.services,
.about,
.contact {
    scroll-margin-top: 110px;
}

.hero {
    scroll-margin-top: 70px;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1.2rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.site-logo {
    max-height: 70px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
    font-size: 0.95rem;
}

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

.lang-switch {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.lang-switch:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
}

/* Hero Section */
.hero {
    margin-top: 70px;
    background: linear-gradient(135deg, #1e3a8a 0%, var(--primary) 100%);
    color: white;
    padding: 5rem 2rem 7rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
    opacity: 0.15;
    top: -250px;
    right: -250px;
    animation: pulse 4s ease-in-out infinite;
}

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

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

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 1.3rem;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -1px;
}

.hero h1 span {
    color: var(--secondary);
}

.hero p {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    color: #e0e7ff;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.95rem 1.8rem;
    border: none;
    border-radius: 7px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

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

.btn-primary:hover {
    background: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.browser-mockup {
    width: 100%;
    max-width: 480px;
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
    animation: float 6s ease-in-out infinite;
    transform: rotate(-2deg);
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(-2deg); }
    50% { transform: translateY(-25px) rotate(1deg); }
}

.browser-header {
    background: #e5e7eb;
    padding: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.browser-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.browser-content {
    padding: 2.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.3rem;
}

.code-line {
    height: 12px;
    background: rgba(255,255,255,0.3);
    border-radius: 6px;
    opacity: 0.3;
    animation: codeGlow 2s ease-in-out infinite;
}

.code-line:nth-child(1) { width: 65%; animation-delay: 0s; }
.code-line:nth-child(2) { width: 88%; animation-delay: 0.2s; }
.code-line:nth-child(3) { width: 58%; animation-delay: 0.4s; }
.code-line:nth-child(4) { width: 78%; animation-delay: 0.6s; }
.code-line:nth-child(5) { width: 70%; animation-delay: 0.8s; }

@keyframes codeGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; background: rgba(255,255,255,0.5); }
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-icon {
    position: absolute;
    font-size: 2.2rem;
    animation: floatRandom 8s ease-in-out infinite;
    opacity: 0.5;
}

.icon-1 { top: 8%; left: 8%; animation-delay: 0s; }
.icon-2 { bottom: 8%; left: 8%; animation-delay: 2s; }
.icon-3 { top: 28%; right: 8%; animation-delay: 4s; }

@keyframes floatRandom {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    25% { transform: translateY(-18px) translateX(12px); }
    50% { transform: translateY(-8px) translateX(-12px); }
    75% { transform: translateY(-22px) translateX(8px); }
}

/* Services Section */
.services {
    padding: 5.5rem 0;
    background: var(--light);
}

.services .container {
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.6rem;
    margin-bottom: 0.8rem;
    color: var(--dark);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 1.05rem;
    margin-bottom: 3.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.service-card {
    background: white;
    padding: 2.3rem;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.07);
    transition: all 0.3s;
    border: 1px solid #e2e8f0;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(30, 64, 175, 0.15);
    border-color: var(--primary);
}

.service-icon {
    width: 58px;
    height: 58px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.4rem;
    font-size: 1.7rem;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.9rem;
    color: var(--dark);
    font-weight: 700;
}

.service-card p {
    color: var(--gray);
    line-height: 1.7;
    font-size: 0.98rem;
}

/* About Section */
.about {
    padding: 5.5rem 2rem;
    background: white;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text h2 {
    font-size: 2.6rem;
    margin-bottom: 1.4rem;
    color: var(--dark);
    font-weight: 800;
    letter-spacing: -0.5px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.about-text p {
    color: var(--gray);
    margin-bottom: 1.4rem;
    font-size: 1.05rem;
    line-height: 1.75;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
    margin-top: 2.5rem;
}

.value-item {
    padding: 1.6rem;
    background: var(--accent);
    border-radius: 10px;
    border-left: 4px solid var(--primary);
}

.value-item h4 {
    color: var(--primary-dark);
    margin-bottom: 0.6rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.value-item p {
    color: var(--gray);
    font-size: 0.93rem;
    line-height: 1.6;
}

/* Launch Offer */
.launch-offer {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 2rem 1.5rem;
    margin: 3rem 1rem 0;
    text-align: center;
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(30, 64, 175, 0.25);
}

.launch-offer h3 {
    font-size: 1.5rem;
    word-wrap: break-word;
    margin-bottom: 1rem;
    font-weight: 800;
}

.launch-offer p {
    font-size: 0.9rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.pricing-highlight {
    background: rgba(255, 255, 255, 0.2);
    padding: 1rem;
    border-radius: 10px;
    margin: 2rem auto;
    max-width: 600px;
}

.pricing-highlight p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.pricing-highlight strong {
    font-size: 1.2rem;
}

/* Contact Section */
.contact {
    padding: 5.5rem 2rem;
    background: var(--dark);
    color: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4.5rem;
    align-items: start;
}

.contact h2 {
    font-size: 2.6rem;
    margin-bottom: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.1rem;
    align-items: start;
}

.contact-item-icon {
    width: 42px;
    height: 42px;
    background: var(--primary);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.contact-item a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--secondary);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

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

.form-group label {
    font-weight: 600;
    font-size: 0.95rem;
}

.form-control {
    padding: 1rem;
    border: 2px solid #334155;
    border-radius: 8px;
    background: #1e293b;
    color: white;
    font-size: 0.98rem;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-light);
}

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

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 0.8rem;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-group label {
    font-weight: 400;
}

.checkbox-group a {
    color: var(--secondary);
    text-decoration: underline;
}

.error-message {
    color: #f87171;
    font-size: 0.88rem;
    min-height: 1.2rem;
}

.form-response {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    display: none;
}

.form-response.success {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid #10b981;
    color: #d1fae5;
    display: block;
}

.form-response.error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    color: #fee2e2;
    display: block;
}

/* Footer - COMPLETELY REDESIGNED */
.footer {
    background: #1e293b;
    color: #94a3b8;
    padding: 4rem 0 0;
}

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

.footer-content {
    display: grid;
    grid-template-columns: 2.5fr 1fr 1fr 1.5fr;
    gap: 4rem;
    padding-bottom: 3rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-brand {
    max-width: 320px;
}

.footer-logo-img {
    margin-bottom: 1.5rem;
    width: 100%;
    max-width: 200px;
    height: auto;
}

.footer-tagline {
    font-size: 1rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 0.7rem;
}

.footer-desc {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.6;
}

.footer-col h4 {
    color: #e2e8f0;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.footer-col li {
    margin: 0;
}

.footer-col a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.9rem;
    display: inline-block;
}

.footer-col a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.footer-contact {
    gap: 1rem;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.footer-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.footer-bottom {
    text-align: center;
    padding: 2rem 0;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: #64748b;
}

/* Legal Pages */
.legal-page {
    margin-top: 90px;
    padding: 4rem 2rem;
    background: white;
    min-height: 60vh;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: 2.8rem;
    margin-bottom: 2rem;
    color: var(--dark);
}

.legal-content h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.legal-content h3 {
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    color: var(--dark);
}

.legal-content p {
    margin-bottom: 1.2rem;
    line-height: 1.8;
    color: var(--gray);
}

.legal-content ul {
    margin-bottom: 1.5rem;
    margin-left: 2rem;
    color: var(--gray);
}

.legal-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.legal-content a {
    color: var(--primary);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
    
    .footer-brand {
        grid-column: span 2;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        background-color: white;
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-200%);
        transition: transform 0.3s;
        gap: 1rem;
    }

    .services {
        padding: 5.5rem 1rem;
    }

    .services .container {
        padding: 0 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        margin: 0 auto;
        padding: 0;
        gap: 1.5rem;
    }

    .service-card {
        margin: 0 auto;
        max-width: 400px;
        width: 100%;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .mobile-menu-btn {
        display: block;
    }

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

    .browser-mockup {
        max-width: 100%;
    }

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

    .values-grid {
        grid-template-columns: 1fr;
    }

    .site-logo {
        max-height: 50px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-brand {
        grid-column: span 1;
    }
}

/* ============================================
   CUSTOM SVG ICON ANIMATIONS
   ============================================ */

/* Floating hero icons - existing animations enhanced */
.floating-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
}

.floating-icon.icon-1 svg {
    animation: float-bounce 3s ease-in-out infinite;
}

.floating-icon.icon-2 svg {
    animation: float-spin 4s ease-in-out infinite;
}

.floating-icon.icon-3 svg {
    animation: float-pulse 2s ease-in-out infinite;
}

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

@keyframes float-spin {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
}

@keyframes float-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.8; }
}

/* Service card icons - hover animations */
.service-icon {
    transition: transform 0.3s ease;
}

.service-icon svg {
    width: 48px;
    height: 48px;
    stroke: var(--primary);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon svg {
    transform: scale(1.1);
    stroke: var(--primary-dark);
    animation: icon-wiggle 0.5s ease;
}

@keyframes icon-wiggle {
    0%, 100% { transform: rotate(0deg) scale(1.1); }
    25% { transform: rotate(-10deg) scale(1.15); }
    75% { transform: rotate(10deg) scale(1.15); }
}

/* Service icon specific animations */
.service-icon svg circle {
    animation: rotate-slow 8s linear infinite;
    transform-origin: center;
}

/* Don't rotate SEO icon circles - keep magnifier together */
.seo-icon svg circle,
.seo-icon svg .magnifier-group {
    animation: none !important;
}

@keyframes rotate-slow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Value icons in about section */
.value-icon {
    width: 32px;
    height: 32px;
    margin-right: 12px;
    stroke: var(--primary);
    vertical-align: middle;
    animation: value-float 3s ease-in-out infinite;
}

.value-item:nth-child(1) .value-icon {
    animation-delay: 0s;
}

.value-item:nth-child(2) .value-icon {
    animation-delay: 0.3s;
}

.value-item:nth-child(3) .value-icon {
    animation-delay: 0.6s;
}

.value-item:nth-child(4) .value-icon {
    animation-delay: 0.9s;
}

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

.value-item h4 {
    display: flex;
    align-items: center;
}

/* Contact icons */
.contact-item-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--primary);
    transition: all 0.3s ease;
}

.contact-item:hover .contact-item-icon svg {
    stroke: var(--primary-dark);
    transform: scale(1.1);
}

.contact-item:hover .contact-item-icon {
    animation: contact-bounce 0.5s ease-out;
}

@keyframes contact-bounce {
    0% { transform: translateY(0); }
    30% { transform: translateY(-10px); }
    50% { transform: translateY(-5px); }
    70% { transform: translateY(-8px); }
    100% { transform: translateY(0); }
}

/* Launch offer icon */
.offer-icon {
    animation: star-twinkle 2s ease-in-out infinite;
}

@keyframes star-twinkle {
    0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
    50% { opacity: 0.7; transform: scale(1.1) rotate(10deg); }
}

/* General SVG styling */
svg {
    overflow: visible;
}

/* Ensure proper sizing for all icons */
.service-card svg,
.value-item svg,
.contact-item svg,
.floating-icon svg {
    display: block;
}