/*
 * STYLES.CSS
 * Main stylesheet for seeLL website with modern animations
 * Enhanced responsiveness for all screen sizes
 */

/* =========================================
   1. CSS VARIABLES AND RESET
   ========================================= */
   :root {
    /* Brand Colors */
    --primary: #0a0a0ae0;
    --primary-light: #939393;
    --primary-dark: #525252;
    --secondary: #ffd400;
    --secondary-light: #ffdb2b;
    --secondary-dark: #e6c000;
    
    /* Text Colors */
    --text-light: #ffffff;
    --text-dark: #1a1a1a;
    --text-muted: #777777;
    
    /* UI Colors */
    --bg-color: #f5f9ff;
    --card-bg: #ffffff;
    --border: #e0e0e0;
    
    /* Shadows */
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.15);
    
    /* Status Colors */
    --success: #4caf50;
    --error: #f44336;
    --warning: #ff9800;
    --info: #2196f3;
    
    /* Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50%;
    
    /* Animation Timing */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Layout Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-xxl: 48px;
    
    /* Font Sizes */
    --text-xs: 0.75rem;   /* 12px */
    --text-sm: 0.875rem;  /* 14px */
    --text-base: 1rem;    /* 16px */
    --text-lg: 1.125rem;  /* 18px */
    --text-xl: 1.25rem;   /* 20px */
    --text-2xl: 1.5rem;   /* 24px */
    --text-3xl: 1.875rem; /* 30px */
    --text-4xl: 2.25rem;  /* 36px */
    --text-5xl: 3rem;     /* 48px */
    --text-6xl: 4rem;     /* 64px */
    
    /* Z-index layers */
    --z-base: 1;
    --z-nav: 100;
    --z-popup: 500;
    --z-modal: 1000;
    --z-loader: 2000;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
    min-height: -webkit-fill-available; /* Fix for mobile safari */
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    border: none;
    background: none;
}

button {
    cursor: pointer;
}

ul, ol {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* =========================================
   2. PRELOADER
   ========================================= */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: var(--z-loader);
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.preloader-logo {
    width: 120px;
    animation: float 1.5s ease-in-out infinite alternate;
}

.loading-dots {
    display: flex;
    gap: 8px;
    margin-top: var(--space-lg);
}

.loading-dots span {
    width: 10px;
    height: 10px;
    background-color: var(--secondary);
    border-radius: var(--radius-full);
    animation: pulse 1.5s ease-in-out infinite;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* =========================================
   3. NAVIGATION
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: var(--z-nav);
    transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 0;
    box-shadow: var(--shadow-md);
}

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

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

.navbar-logo img {
    height: 40px;
    transition: height var(--transition-normal);
}

.scrolled .navbar-logo img {
    height: 35px;
}

.navbar-menu-toggle {
    display: none;
    width: 30px;
    height: 22px;
    position: relative;
    cursor: pointer;
    z-index: var(--z-popup);
}

.navbar-menu-toggle span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background-color: var(--primary);
    border-radius: var(--radius-sm);
    left: 0;
    transform: rotate(0deg);
    transition: transform 0.25s ease-in-out, opacity 0.25s ease-in-out;
}

.navbar-menu-toggle span:nth-child(1) {
    top: 0;
}

.navbar-menu-toggle span:nth-child(2) {
    top: 9px;
}

.navbar-menu-toggle span:nth-child(3) {
    top: 18px;
}

.navbar-menu-toggle.active span:nth-child(1) {
    top: 9px;
    transform: rotate(135deg);
}

.navbar-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.navbar-menu-toggle.active span:nth-child(3) {
    top: 9px;
    transform: rotate(-135deg);
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.navbar-link {
    position: relative;
    font-weight: 500;
    padding: var(--space-sm) var(--space-md);
}

.navbar-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-normal);
}

.navbar-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.navbar-btn {
    background-color: var(--secondary);
    color: var(--text-dark);
    padding: var(--space-sm) var(--space-xl);
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 10px rgba(255, 212, 0, 0.3);
}

.navbar-btn:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 212, 0, 0.4);
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 650px;
    display: flex;
    align-items: center;
    padding: 100px 0 50px;
    overflow: hidden;
    background-color: var(--bg-color);
}

.hero .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title {
    font-size: var(--text-6xl);
    margin-bottom: var(--space-lg);
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: var(--text-3xl);
    font-weight: 600;
    margin-bottom: var(--space-xl);
    color: var(--text-dark);
}

.hero-subtitle span {
    display: inline-block;
    animation: bounce 2s infinite alternate;
}

@keyframes bounce {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-10px);
    }
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.hero-feature i {
    font-size: var(--text-xl);
    color: var(--secondary);
    background-color: rgba(255, 212, 0, 0.15);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-sm);
    transition: all var(--transition-normal);
}

.hero-feature:hover i {
    transform: translateY(-5px);
    background-color: var(--secondary);
    color: var(--text-dark);
    box-shadow: 0 5px 15px rgba(255, 212, 0, 0.3);
}

.hero-feature span {
    font-weight: 500;
}

.hero-text {
    font-size: var(--text-lg);
    margin-bottom: var(--space-xl);
    color: var(--text-dark);
}

.hero-text span {
    font-size: var(--text-base);
    color: var(--text-muted);
    display: block;
    margin-top: var(--space-xs);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
    opacity: 0;
}

.btn i {
    transition: transform var(--transition-normal);
}

.btn:hover i {
    transform: translateX(-3px);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background-color: var(--primary-dark);
    color: var(--text-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.btn-accent {
    background-color: var(--secondary);
    color: var(--text-dark);
    box-shadow: 0 4px 12px rgba(255, 212, 0, 0.3);
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(255, 212, 0, 0.4);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: fadeInUp 2s infinite;
    cursor: pointer;
}

.scroll-indicator span {
    display: block;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid var(--text-dark);
    border-right: 2px solid var(--text-dark);
    transform: rotate(45deg);
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translate(-50%, 10px);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: var(--radius-full);
    background: radial-gradient(circle, rgba(255, 212, 0, 0.1) 0%, rgba(255, 212, 0, 0) 70%);
    opacity: 0.6;
}

.shape-1 {
    top: 20%;
    left: 10%;
    width: 300px;
    height: 300px;
    animation: shapeFloat 10s infinite ease-in-out;
}

.shape-2 {
    top: 50%;
    right: 10%;
    width: 200px;
    height: 200px;
    animation: shapeFloat 7s infinite ease-in-out reverse;
}

.shape-3 {
    bottom: 10%;
    left: 30%;
    width: 150px;
    height: 150px;
    animation: shapeFloat 8s infinite ease-in-out;
}

.shape-4 {
    top: 30%;
    right: 30%;
    width: 250px;
    height: 250px;
    animation: shapeFloat 9s infinite ease-in-out reverse;
}

@keyframes shapeFloat {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(20px, -20px);
    }
}

/* =========================================
   5. SECTION STYLING
   ========================================= */
.section {
    padding: var(--space-xxl) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xxl);
}

.section-title {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-lg);
    color: var(--primary);
}

.accent {
    color: var(--secondary);
}

.section-divider {
    width: 80px;
    height: 4px;
    background-color: var(--secondary);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
}

.section-divider::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5);
    animation: shimmer 2s infinite linear;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(500%);
    }
}

/* =========================================
   6. SYSTEM SECTION
   ========================================= */
.system-card {
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-xxl);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.system-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.system-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.3) 50%, 
        rgba(255,255,255,0) 100%
    );
    transform: skewX(-25deg);
    transition: 0.7s;
}

.system-card:hover::after {
    left: 150%;
}

.system-logo {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-xl);
}

.system-logo img {
    height: 80px;
    animation: pulse 3s infinite alternate;
}

.system-content {
    max-width: 800px;
    margin: 0 auto;
}

.system-content p {
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}

.system-content .btn {
    margin-top: var(--space-lg);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-xxl);
}

.feature-card {
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--secondary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.feature-card:hover::after {
    transform: scaleX(1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-full);
    background-color: rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    font-size: var(--text-xl);
    color: var(--primary);
    transition: all var(--transition-normal);
}

.feature-card:hover .feature-icon {
    background-color: var(--primary);
    color: var(--text-light);
    transform: rotateY(180deg);
}

.feature-card h3 {
    margin-bottom: var(--space-md);
    font-size: var(--text-xl);
    color: var(--primary);
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: var(--text-sm);
}

/* =========================================
   7. CONTACT SECTION
   ========================================= */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xxl);
    margin-top: var(--space-xl);
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--space-xl);
    transition: transform var(--transition-normal);
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.03);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--space-lg);
    color: var(--primary);
    font-size: var(--text-xl);
    transition: all var(--transition-normal);
    flex-shrink: 0;
}

.contact-item:hover .contact-icon {
    background-color: var(--primary);
    color: var(--text-light);
    transform: rotate(10deg);
    box-shadow: var(--shadow-sm);
}

.contact-text {
    flex: 1;
}

.contact-text h4 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-xs);
    color: var(--primary);
}

.contact-text p a {
    color: var(--text-dark);
    position: relative;
    display: inline-block;
    word-break: break-word;
}

.contact-text p a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-normal);
}

.contact-text p a:hover {
    color: var(--primary);
}

.contact-text p a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.social-icons {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.social-icon {
    width: 45px;
    height: 45px;
    background-color: rgba(0, 0, 0, 0.03);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all var(--transition-normal);
}

.social-icon:hover {
    background-color: var(--primary);
    color: var(--text-light);
    transform: translateY(-5px);
    box-shadow: var(--shadow-sm);
}

/* Contact Form */
.contact-form {
    flex: 1;
    min-width: 300px;
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
}

.contact-form h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-xl);
    color: var(--primary);
    text-align: center;
}

.form-group {
    position: relative;
    margin-bottom: var(--space-xl);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border);
    background-color: transparent;
    transition: border-color var(--transition-normal);
    font-size: var(--text-base);
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group label {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    transition: all var(--transition-normal);
    font-size: var(--text-base);
}

.form-group textarea ~ label {
    top: var(--space-md);
    transform: none;
}

.form-group.focused label,
.form-group input.has-value + label,
.form-group textarea.has-value + label {
    top: -5px;
    font-size: var(--text-xs);
    color: var(--primary);
}

.form-highlight {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width var(--transition-normal);
}

.form-group.focused .form-highlight {
    width: 100%;
}

.btn-submit {
    width: 100%;
    background-color: var(--primary);
    color: var(--text-light);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.btn-submit:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

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

.btn-submit::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.btn-submit:hover::after {
    width: 400px;
    height: 400px;
    opacity: 0;
}

/* =========================================
   8. FOOTER
   ========================================= */
.footer {
    margin-top: var(--space-xxl);
    position: relative;
    background-color: var(--primary);
    color: var(--text-light);
    padding: var(--space-xxl) 0 var(--space-lg);
}

.footer-wave {
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

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

.footer-logo {
    margin-bottom: var(--space-lg);
}

.footer-logo img {
    height: 40px;
}

.footer-info p {
    margin-bottom: var(--space-lg);
    opacity: 0.8;
}

.footer-social {
    display: flex;
    gap: var(--space-md);
}

.footer-social a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.footer-social a:hover {
    background-color: var(--secondary);
    color: var(--text-dark);
    transform: translateY(-5px);
}

.footer-links h4,
.footer-newsletter h4 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-lg);
    position: relative;
    display: inline-block;
}

.footer-links h4::after,
.footer-newsletter h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary);
    transition: width var(--transition-normal);
}

.footer-links:hover h4::after,
.footer-newsletter:hover h4::after {
    width: 60px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.footer-links ul a {
    opacity: 0.8;
    transition: all var(--transition-normal);
    position: relative;
    display: inline-block;
}

.footer-links ul a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--secondary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-normal);
}

.footer-links ul a:hover {
    opacity: 1;
    color: var(--secondary);
    transform: translateX(5px);
}

.footer-links ul a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.footer-newsletter p {
    opacity: 0.8;
    margin-bottom: var(--space-lg);
}

.newsletter-group {
    display: flex;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.newsletter-group input {
    flex: 1;
    padding: var(--space-md);
    background-color: transparent;
    color: var(--text-light);
}

.newsletter-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-group button {
    width: 50px;
    background-color: var(--secondary);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-normal);
}

.newsletter-group button:hover {
    background-color: var(--secondary-dark);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-lg);
    font-size: var(--text-sm);
    opacity: 0.7;
}

/* =========================================
   9. BACK TO TOP BUTTON
   ========================================= */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: var(--text-light);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: var(--z-nav);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--secondary);
    color: var(--text-dark);
    transform: translateY(-5px);
}

/* =========================================
   10. MODAL
   ========================================= */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 90%;
    max-width: 500px;
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform: scale(0.9);
    transition: transform var(--transition-normal);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: var(--space-lg);
    background-color: var(--primary);
    color: var(--text-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: var(--text-lg);
}

.modal-close {
    font-size: var(--text-xl);
    color: var(--text-light);
    background: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.modal-close:hover {
    transform: rotate(90deg);
    color: var(--secondary);
}

.modal-body {
    padding: var(--space-xl);
    text-align: center;
}

.success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-xl);
    position: relative;
}

.check-icon {
    width: 80px;
    height: 80px;
    position: relative;
    border-radius: var(--radius-full);
    background-color: #f6f6f6;
    box-shadow: 0 0 0 var(--success);
    animation: checkmark-circle 0.8s ease-in-out both;
}

.check-icon .icon-line {
    height: 5px;
    background-color: var(--success);
    display: block;
    border-radius: var(--radius-sm);
    position: absolute;
    z-index: 10;
}

.check-icon .icon-line.line-tip {
    top: 46px;
    left: 14px;
    width: 25px;
    transform: rotate(45deg);
    animation: checkmark-line-tip 0.8s ease-in-out both;
}

.check-icon .icon-line.line-long {
    top: 38px;
    right: 8px;
    width: 47px;
    transform: rotate(-45deg);
    animation: checkmark-line-long 0.8s ease-in-out both;
}

@keyframes checkmark-circle {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.1);
    }
    100% {
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0.1);
    }
}

@keyframes checkmark-line-tip {
    0% {
        width: 0;
        left: 1px;
        top: 19px;
    }
    54% {
        width: 0;
        left: 1px;
        top: 19px;
    }
    70% {
        width: 50px;
        left: -8px;
        top: 37px;
    }
    84% {
        width: 17px;
        left: 21px;
        top: 48px;
    }
    100% {
        width: 25px;
        left: 14px;
        top: 46px;
    }
}

@keyframes checkmark-line-long {
    0% {
        width: 0;
        right: 46px;
        top: 54px;
    }
    65% {
        width: 0;
        right: 46px;
        top: 54px;
    }
    84% {
        width: 55px;
        right: 0;
        top: 35px;
    }
    100% {
        width: 47px;
        right: 8px;
        top: 38px;
    }
}

.modal-footer {
    padding: var(--space-lg);
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid var(--border);
}

.btn-close {
    padding: var(--space-sm) var(--space-xl);
    background-color: var(--primary);
    color: var(--text-light);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.btn-close:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* =========================================
   11. ANIMATIONS
   ========================================= */
/* Fade Up */
[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Fade Right */
[data-aos="fade-right"] {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos="fade-right"].aos-animate {
    opacity: 1;
    transform: translateX(0);
}

/* Fade Left */
[data-aos="fade-left"] {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos="fade-left"].aos-animate {
    opacity: 1;
    transform: translateX(0);
}

/* Width */
[data-aos="width"] {
    width: 0;
    transition: width 0.6s ease;
}

[data-aos="width"].aos-animate {
    width: 80px;
}

/* =========================================
   12. MEDIA QUERIES
   ========================================= */
@media (max-width: 1200px) {
    :root {
        --space-xxl: 40px;
    }
    
    .hero-title {
        font-size: var(--text-5xl);
    }
    
    .hero-subtitle {
        font-size: var(--text-2xl);
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 992px) {
    :root {
        --space-xl: 28px;
        --space-xxl: 36px;
    }
    
    .hero-title {
        font-size: var(--text-4xl);
    }
    
    .hero-subtitle {
        font-size: var(--text-xl);
    }

    .hero-features {
        gap: var(--space-lg);
    }
    
    .section-title {
        font-size: var(--text-3xl);
    }
    
    .feature-card h3 {
        font-size: var(--text-lg);
    }
}

@media (max-width: 768px) {
    :root {
        --space-lg: 20px;
        --space-xl: 24px;
        --space-xxl: 32px;
    }
    
    .navbar-menu-toggle {
        display: block;
    }
    
    .navbar-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100%;
        background-color: var(--card-bg);
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: var(--space-xxl) var(--space-lg);
        box-shadow: var(--shadow-lg);
        transition: right var(--transition-normal);
        z-index: 99;
    }
    
    .navbar-links.active {
        right: 0;
    }
    
    body.menu-open::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 90;
    }
    
    .hero-title {
        font-size: var(--text-3xl);
    }

    .hero-subtitle {
        font-size: var(--text-lg);
    }
    
    .hero-text {
        font-size: var(--text-base);
    }
    
    .hero-features {
        flex-direction: column;
        align-items: center;
        margin-bottom: var(--space-lg);
    }
    
    .hero-feature i {
        width: 50px;
        height: 50px;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .section {
        padding: var(--space-xl) 0;
    }
    
    .section-header {
        margin-bottom: var(--space-xl);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .contact-container {
        flex-direction: column;
        gap: var(--space-xl);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .footer-wave {
        top: -80px;
    }
    
    .footer-wave svg {
        height: 80px;
    }
}

@media (max-width: 576px) {
    :root {
        --space-sm: 6px;
        --space-md: 12px;
        --space-lg: 16px;
        --space-xl: 20px;
        --space-xxl: 24px;
    }
    
    .container {
        padding: 0 var(--space-md);
    }
    
    .navbar {
        padding: 15px 0;
    }
    
    .navbar.scrolled {
        padding: 10px 0;
    }
    
    .navbar-logo img {
        height: 30px;
    }
    
    .hero {
        min-height: 600px;
        padding: 90px 0 40px;
    }
    
    .hero-title {
        font-size: var(--text-2xl);
        margin-bottom: var(--space-md);
    }
    
    .hero-subtitle {
        font-size: var(--text-base);
        margin-bottom: var(--space-lg);
    }
    
    .hero-text {
        font-size: var(--text-sm);
        margin-bottom: var(--space-lg);
    }
    
    .hero-feature i {
        width: 45px;
        height: 45px;
        font-size: var(--text-lg);
    }
    
    .hero-feature span {
        font-size: var(--text-sm);
    }
    
    .btn {
        padding: var(--space-sm) var(--space-lg);
        font-size: var(--text-sm);
    }
    
    .btn i {
        font-size: var(--text-base);
    }
    
    .section-title {
        font-size: var(--text-xl);
    }
    
    .section-divider {
        width: 60px;
        height: 3px;
    }
    
    .system-card {
        padding: var(--space-lg);
    }
    
    .system-logo img {
        height: 50px;
    }
    
    .system-content p {
        font-size: var(--text-sm);
    }
    
    .feature-card {
        padding: var(--space-lg);
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: var(--text-lg);
    }
    
    .feature-card h3 {
        font-size: var(--text-base);
    }
    
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .contact-icon {
        margin-bottom: var(--space-md);
        margin-right: 0;
        width: 50px;
        height: 50px;
    }
    
    .contact-text h4 {
        font-size: var(--text-base);
    }
    
    .contact-form {
        padding: var(--space-lg);
    }
    
    .form-group {
        margin-bottom: var(--space-lg);
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
    
    .footer {
        padding-top: var(--space-xl);
    }
    
    .footer-wave {
        top: -40px;
    }
    
    .footer-wave svg {
        height: 40px;
    }
    
    .footer-logo img {
        height: 30px;
    }
    
    .footer-links h4, .footer-newsletter h4 {
        font-size: var(--text-base);
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    :root {
        --space-xs: 4px;
        --space-sm: 5px;
        --space-md: 10px;
        --space-lg: 15px;
        --space-xl: 18px;
        --space-xxl: 22px;
    }
    
    .container {
        padding: 0 var(--space-sm);
    }
    
    .navbar {
        padding: 10px 0;
    }
    
    .navbar.scrolled {
        padding: 8px 0;
    }
    
    .navbar-logo img {
        height: 25px;
    }
    
    .hero-title {
        font-size: var(--text-xl);
    }
    
    .hero-subtitle {
        font-size: var(--text-sm);
    }
    
    .hero-text {
        font-size: var(--text-xs);
    }
    
    .hero-feature i {
        width: 40px;
        height: 40px;
        font-size: var(--text-base);
    }
    
    .btn {
        padding: var(--space-xs) var(--space-md);
        font-size: var(--text-xs);
    }
    
    .section-title {
        font-size: var(--text-lg);
    }
    
    .system-logo img {
        height: 40px;
    }
    
    .feature-card {
        padding: var(--space-md);
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
        margin-bottom: var(--space-md);
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
    }
    
    .social-icon {
        width: 35px;
        height: 35px;
    }
    
    .footer-social a {
        width: 35px;
        height: 35px;
    }
    
    .footer-bottom {
        font-size: var(--text-xs);
    }
}

/* Touch device enhancements */
@media (hover: none) {
    .btn:active, 
    .navbar-btn:active,
    .navbar-link:active,
    .contact-text p a:active,
    .footer-links ul a:active,
    .back-to-top:active,
    .social-icon:active {
        opacity: 0.7;
        transform: scale(0.95);
    }
    
    .btn::after, 
    .btn-submit::after {
        display: none;
    }
    
    .navbar-link::after,
    .contact-text p a::after,
    .footer-links ul a::after {
        transform: scaleX(0.3);
    }
    
    .form-group label {
        font-size: 90%;
    }
}

/* High pixel density screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body {
        -webkit-font-smoothing: subpixel-antialiased;
    }
}

/* =========================================
   13. PRINT STYLES
   ========================================= */
@media print {
    .navbar,
    .preloader,
    .back-to-top,
    .scroll-indicator,
    .hero-shapes,
    .btn-submit,
    .footer-wave {
        display: none !important;
    }
    
    body {
        background-color: white;
    }
    
    .section {
        padding: 1cm 0;
        page-break-inside: avoid;
    }
    
    .footer {
        background-color: white;
        color: black;
    }
}