/* Test02 - Modern Design with Animations */

/* Variables */
:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --secondary: #3b82f6;
    --accent: #06b6d4;
    --text: #334155;
    --text-light: #64748b;
    --bg: #ffffff;
    --bg-light: #f8fafc;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow: 0 10px 25px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --sidebar-width: 280px;
}

/* Reset */
* {
    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;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 40px 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.sidebar-header {
    margin-bottom: 60px;
}

.sidebar-header h2 {
    color: white;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.lang-toggle {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.lang-toggle:hover {
    background: rgba(255,255,255,0.2);
}

.lang-toggle .inactive {
    opacity: 0.5;
}

.sidebar-menu {
    list-style: none;
    flex: 1;
}

.sidebar-menu li {
    margin-bottom: 8px;
}

.sidebar-menu a {
    display: block;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    transition: var(--transition);
    font-size: 15px;
    font-weight: 500;
}

.sidebar-menu a:hover {
    background: rgba(255,255,255,0.1);
    color: white;
    transform: translateX(5px);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background: var(--primary);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    box-shadow: var(--shadow);
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: white;
    transition: var(--transition);
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: 40px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 30px;
    border: 1px solid rgba(255,255,255,0.3);
}

.hero-title {
    color: white;
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-subtitle {
    color: rgba(255,255,255,0.95);
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    font-size: 16px;
}

.btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

.scroll-indicator span {
    display: block;
    font-size: 13px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.scroll-arrow {
    font-size: 24px;
}

/* Services Section */
.services {
    padding: 120px 0;
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 80px;
}

.section-header.centered {
    margin-bottom: 40px;
}

.section-badge {
    display: inline-block;
    color: var(--secondary);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(32px, 4vw, 48px);
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.section-description {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.7;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--bg-light);
    position: absolute;
    top: 20px;
    right: 30px;
    line-height: 1;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: white;
}

.service-icon svg {
    width: 30px;
    height: 30px;
}

.service-card h3 {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 16px;
    font-weight: 700;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 24px;
}

.service-link {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.service-link:hover {
    color: var(--accent);
    transform: translateX(5px);
}

/* Service Detail */
.service-detail {
    padding: 120px 0;
}

.service-detail.alt {
    background: var(--bg-light);
}

.service-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.service-layout.reverse {
    direction: rtl;
}

.service-layout.reverse > * {
    direction: ltr;
}

.service-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.service-img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.service-image-wrapper:hover .service-img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59,130,246,0.3), rgba(6,182,212,0.3));
    opacity: 0;
    transition: var(--transition);
}

.service-image-wrapper:hover .image-overlay {
    opacity: 1;
}

.service-content {
    padding: 20px 0;
}

.service-label {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 24px;
}

.service-content h2 {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 16px;
    font-weight: 800;
}

.service-intro {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
    font-style: italic;
}

.service-section {
    margin-bottom: 40px;
}

.service-section h3 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 16px;
    font-weight: 700;
}

.service-section p {
    color: var(--text);
    line-height: 1.8;
}

.service-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.feature-box {
    background: var(--bg-light);
    padding: 24px;
    border-radius: 12px;
    border-left: 3px solid var(--secondary);
}

.feature-box h4 {
    color: var(--primary);
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 700;
}

.feature-box p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

/* About Section */
.about-section {
    padding: 120px 0;
    background: var(--primary);
    color: white;
}

.about-section .section-badge {
    color: var(--accent);
}

.about-section .section-title {
    color: white;
}

.about-text {
    font-size: 20px;
    line-height: 1.8;
    color: rgba(255,255,255,0.9);
    max-width: 800px;
    margin: 0 auto;
}

/* Contact Section */
.contact-section {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: white;
    text-align: center;
}

.contact-text h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 24px;
}

.contact-text p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.contact-email {
    display: inline-block;
    background: white;
    color: var(--primary);
    padding: 20px 50px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 20px;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.contact-email:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

/* Footer */
.footer {
    background: var(--primary-light);
    color: white;
    padding: 60px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand h3 {
    font-size: 28px;
    margin-bottom: 8px;
}

.footer-brand p {
    font-size: 14px;
    opacity: 0.7;
}

.footer-copy {
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .main-content {
        margin-left: 0;
    }

    .service-layout,
    .service-features-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .hero-title {
        font-size: 36px;
    }

    .section-title {
        font-size: 32px;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}
