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

:root {
    --primary: #00d4ff;
    --primary-dark: #00a8cc;
    --secondary: #6c5ce7;
    --dark: #0a0e27;
    --dark-light: #151a35;
    --dark-lighter: #1e2442;
    --text: #e8eaf0;
    --text-muted: #9ba3c4;
    --accent: #00ff88;
    --gradient: linear-gradient(135deg, #00d4ff 0%, #6c5ce7 100%);
}

[data-theme="light"] {
    --primary: #0099cc;
    --primary-dark: #007aa3;
    --secondary: #5b4ec7;
    --dark: #ffffff;
    --dark-light: #f8f9fa;
    --dark-lighter: #e9ecef;
    --text: #1a1a2e;
    --text-muted: #495057;
    --accent: #00cc66;
    --gradient: linear-gradient(135deg, #0099cc 0%, #5b4ec7 100%);
}

html {
    scroll-behavior: smooth;
}

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

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

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s, border 0.3s;
}

[data-theme="light"] .nav {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    position: relative;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.logo-bracket {
    color: var(--primary);
    font-weight: 700;
}

.logo-text {
    color: var(--text);
    letter-spacing: 2px;
}

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

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

[data-theme="light"] .nav-links a {
    color: var(--text);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

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

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

.btn-contact {
    padding: 10px 24px;
    background: var(--gradient);
    border-radius: 6px;
    color: white !important;
}

[data-theme="light"] .btn-contact {
    color: white !important;
}

.btn-contact::after {
    display: none;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--text);
    transition: 0.3s;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 600;
}

.lang-toggle:hover {
    border-color: var(--primary);
    background: rgba(0, 212, 255, 0.1);
}

.lang-option {
    color: var(--text-muted);
    transition: color 0.3s;
    cursor: pointer;
}

.lang-option.active {
    color: var(--primary);
}

.lang-separator {
    color: rgba(255, 255, 255, 0.3);
}

[data-theme="light"] .lang-separator {
    color: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .lang-toggle {
    border-color: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .lang-toggle:hover {
    border-color: var(--primary);
    background: rgba(0, 153, 204, 0.1);
}

[data-theme="light"] .theme-toggle {
    border-color: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .theme-toggle:hover {
    border-color: var(--primary);
    background: rgba(0, 153, 204, 0.1);
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.theme-toggle:hover {
    border-color: var(--primary);
    background: rgba(0, 212, 255, 0.1);
    transform: rotate(20deg);
}

.theme-icon {
    position: absolute;
    transition: all 0.3s ease;
    color: var(--text);
}

.sun-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

.moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="light"] .sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="light"] .moon-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

/* Hero Section */
.hero {
    padding: 150px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

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

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 10;
}

.hero-tag {
    color: var(--primary);
    font-family: 'Courier New', monospace;
    font-size: 14px;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 212, 255, 0.4);
}

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

.btn-secondary:hover {
    background: var(--primary);
    color: var(--dark);
}

.hero-visual {
    position: absolute;
    right: 100px;
    top: 50%;
    transform: translateY(-50%);
    max-width: 500px;
}

.code-window {
    background: var(--dark-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .code-window {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.window-header {
    background: var(--dark-lighter);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .window-header {
    background: var(--dark-lighter);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.window-dots {
    display: flex;
    gap: 6px;
}

.window-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-muted);
    opacity: 0.5;
}

.window-dots span:nth-child(1) { background: #ff5f56; opacity: 1; }
.window-dots span:nth-child(2) { background: #ffbd2e; opacity: 1; }
.window-dots span:nth-child(3) { background: #27c93f; opacity: 1; }

.window-title {
    color: var(--text-muted);
    font-size: 12px;
    font-family: 'Courier New', monospace;
}

.code-content {
    padding: 24px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.8;
    overflow-x: auto;
}

.code-keyword { color: #ff79c6; }
.code-variable { color: #50fa7b; }
.code-property { color: #8be9fd; }
.code-string { color: #f1fa8c; }

[data-theme="light"] .code-keyword { color: #c7254e; }
[data-theme="light"] .code-variable { color: #0d904f; }
[data-theme="light"] .code-property { color: #0077aa; }
[data-theme="light"] .code-string { color: #a67f03; }

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

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

.section-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 18px;
}

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

.service-card {
    background: var(--dark);
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.2);
}

[data-theme="light"] .service-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .service-card:hover {
    box-shadow: 0 10px 40px rgba(0, 153, 204, 0.15);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: white;
}

.service-title {
    font-size: 22px;
    margin-bottom: 16px;
    font-weight: 600;
}

.service-description {
    color: var(--text-muted);
    line-height: 1.7;
}

/* About Section */
.about {
    padding: 100px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-description {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 17px;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 8px;
}

.location-card {
    background: var(--dark-light);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .location-card {
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.location-card h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.location-text {
    color: var(--text-muted);
    font-size: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.8;
}

.location-text svg {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 4px;
}

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

.contact-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

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

.form-group label {
    color: var(--text);
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    background: var(--dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px 16px;
    border-radius: 8px;
    color: var(--text);
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group textarea:focus {
    box-shadow: 0 0 0 3px rgba(0, 153, 204, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.info-item h4 {
    color: var(--primary);
    font-size: 14px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-item p {
    color: var(--text-muted);
    font-size: 16px;
}

/* Footer */
.footer {
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

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

.footer-logo {
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.footer-text {
    color: var(--text-muted);
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-visual {
        right: 50px;
        max-width: 400px;
    }
    
    .code-content {
        font-size: 11px;
    }
}

@media (max-width: 968px) {
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero-visual {
        position: relative;
        right: 0;
        top: 0;
        transform: none;
        margin-top: 60px;
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark);
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    [data-theme="light"] .nav-links {
        background: white;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        padding: 12px 0;
        text-align: left;
    }
    
    .btn-contact {
        text-align: left;
        display: block;
        width: 100%;
        background: transparent !important;
        color: var(--text) !important;
        padding: 12px 0;
    }
    
    [data-theme="light"] .btn-contact {
        color: var(--text) !important;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .lang-toggle {
        font-size: 14px;
        padding: 10px 16px;
        width: 100%;
        justify-content: center;
    }
    
    .theme-toggle {
        width: 100%;
        height: 50px;
        border-radius: 8px;
    }
    
    .theme-toggle:hover {
        transform: none;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        text-align: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        justify-content: space-between;
        gap: 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

