/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0077ff;
    --secondary-color: #6c5ce7;
    --dark-bg: #0b0d17;
    --light-bg: #f8f9fa;
    --text-color: #1a1a1a;
    --light-text: #ffffff;
    --accent-color: #00d2ff;
    --gray-color: #4b5563;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.1);
    --card-bg: #ffffff;
}

[data-theme="dark"] {
    --light-bg: #05070a;
    --text-color: #f3f4f6;
    --gray-color: #9ca3af;
    --glass-bg: rgba(5, 7, 10, 0.85);
    --glass-border: rgba(255, 255, 255, 0.15);
    --card-bg: #111827;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

span {
    color: var(--primary-color);
}

/* Header and Navigation */
header {
    background-color: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 10px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

/* Toggle light and dark logo visibility */
.logo .logo-dark {
    display: none;
}

body[data-theme="dark"] .logo .logo-light {
    display: none;
}

body[data-theme="dark"] .logo .logo-dark {
    display: block;
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links li a {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-color);
}

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

.header-btns {
    display: flex;
    align-items: center;
    gap: 20px;
}

.theme-toggle {
    cursor: pointer;
    font-size: 20px;
    color: var(--text-color);
    transition: transform 0.3s ease;
}

.theme-toggle:hover {
    transform: rotate(20deg);
}

.menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    background: linear-gradient(135deg, var(--light-bg) 0%, rgba(108, 92, 231, 0.05) 100%);
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-color);
}

.hero-text p {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--gray-color);
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

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

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

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
    transform: translateY(-2px);
}

.hero-image {
    flex: 1;
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

.abstract-shape {
    position: absolute;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    top: -50px;
    right: -50px;
    filter: blur(80px);
    opacity: 0.2;
    z-index: 1;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100%;
    background-color: var(--dark-bg);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: left 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-menu-overlay.active {
    left: 0;
}

.close-menu {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 30px;
    color: var(--light-text);
    cursor: pointer;
}

.mobile-nav-links li {
    margin: 20px 0;
    text-align: center;
}

.mobile-nav-links li a {
    font-size: 32px;
    font-weight: 700;
    color: var(--light-text);
}

/* Stats Section */
.stats {
    padding: 60px 0;
    background-color: var(--dark-bg);
    color: var(--light-text);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 42px;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 16px;
    color: #aaa;
}

/* Services Section */
.services {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.section-title p {
    font-size: 18px;
    color: var(--gray-color);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    padding: 40px;
    background-color: var(--card-bg);
    border-radius: 15px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--glass-border);
}

.service-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.service-card i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.service-card p {
    color: var(--gray-color);
}

/* Process Section */
.process {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    font-size: 64px;
    font-weight: 800;
    color: var(--primary-color);
    opacity: 0.1;
    line-height: 1;
    margin-bottom: -30px;
}

.step h3 {
    font-size: 24px;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.step p {
    color: var(--gray-color);
    font-size: 16px;
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.about-text p {
    font-size: 18px;
    color: var(--gray-color);
    margin-bottom: 20px;
}

.features li {
    margin-bottom: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features li i {
    color: var(--primary-color);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.contact-container {
    max-width: 700px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--glass-border);
    background-color: var(--card-bg);
    color: var(--text-color);
    border-radius: 5px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-color);
    opacity: 0.8;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(0, 119, 255, 0.3);
}

.contact-form button {
    width: 100%;
    border: none;
    font-size: 18px;
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: var(--light-text);
    padding: 80px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    flex: 2;
}

.footer-logo a {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    display: inline-block;
}

.footer-logo p {
    color: #aaa;
    max-width: 300px;
}

.footer-links, .footer-contact, .footer-social {
    flex: 1;
}

.footer-contact ul li {
    margin-bottom: 10px;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact ul li a {
    color: #aaa;
}

.footer-contact ul li a:hover {
    color: var(--light-text);
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--light-text);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #aaa;
}

.footer-links ul li a:hover {
    color: var(--light-text);
}

.footer-social {
    flex: 1;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 20px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #666;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 36px;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .menu-btn {
        display: block;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
}
