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

:root {
    --primary-color: var(--royle-green-light);
    --secondary-color: var(--royle-brown-light);
    --dark-bg: #f9fafb;
    --dark-card: #ffffff;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --highlight: var(--royle-green);
    --gradient: linear-gradient(135deg, var(--royle-green-light), var(--royle-green));
}

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

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

/* Language Selector */
.language-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--royle-gray-100);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.lang-btn:hover {
    color: var(--highlight);
    background-color: var(--royle-green-lightest);
}

.lang-btn.active {
    color: var(--highlight);
    background-color: var(--royle-green-lighter);
}

.lang-divider {
    color: var(--royle-gray-200);
    font-size: 0.875rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #886664 !important;
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 2rem;
}

.nav-brand h1 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 600;
}

.highlight {
    color: var(--highlight);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--royle-gray-100);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    margin-left: 10px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 2rem 4rem;
    background:
        linear-gradient(135deg, rgba(249, 250, 251, 0.9), rgba(249, 250, 251, 0.7)),
        url('hero.png') center center/cover no-repeat,
        radial-gradient(circle at 20% 50%, var(--royle-green-lightest) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, var(--royle-brown-lightest) 0%, transparent 50%);
    background-attachment: fixed;
    background-size: cover;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
}

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

.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

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

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

/* Code Window */
.hero-code {
    display: flex;
    justify-content: center;
}

.code-window {
    background-color: var(--dark-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 500px;
    width: 100%;
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background-color: var(--royle-brown-header);
    border-bottom: 1px solid var(--royle-brown);
}

.code-dots {
    display: flex;
    gap: 0.5rem;
}

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

.code-dots span:first-child {
    background-color: #ef4444;
}

.code-dots span:nth-child(2) {
    background-color: #f59e0b;
}

.code-dots span:nth-child(3) {
    background-color: #10b981;
}

.code-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    color: white;
}

.code-content {
    padding: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.7;
}

.code-comment {
    color: #6b7280;
}

.code-keyword {
    color: #c084fc;
}

.code-variable {
    color: #60a5fa;
}

.code-property {
    color: #34d399;
}

.code-string {
    color: #fbbf24;
}

/* Sections */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* About Section */
.about {
    padding: 6rem 0;
}

.about-content {
    text-align: center;
}

.about-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    background-color: var(--dark-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.feature i {
    font-size: 2.5rem;
    color: var(--royle-green-light);
    margin-bottom: 1rem;
}

.feature h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Services Section */
.services {
    padding: 6rem 0;
    background-color: var(--royle-gray-50);
}

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

.service-card {
    background-color: var(--dark-card);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.service-card i {
    font-size: 3rem;
    color: var(--royle-green-light);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.service-card ul {
    list-style: none;
}

.service-card ul li {
    color: var(--text-muted);
    padding: 0.25rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.service-card ul li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--royle-green-light);
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background-color: var(--royle-gray-50);
}

.contact-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
}

.contact-item i {
    width: 20px;
    color: var(--royle-green-light);
}

.contact-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.contact-form {
    background-color: var(--dark-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

/* Footer */
.footer {
    background-color: var(--dark-card);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1rem;
    box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--highlight);
}

.footer-legal {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.legal-info h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.legal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.legal-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.legal-item strong {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.legal-item span {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.4;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 2rem;
}

/* Logo Styling */
.logo-svg {
    height: 70px;
    width: auto;
}

/* Logo Gradient Animation */
@keyframes subtleGradientShift {
    0%, 100% {
        stop-color: var(--royle-green-light);
    }
    50% {
        stop-color: #6FA060;
    }
}

@keyframes subtleGradientShiftEnd {
    0%, 100% {
        stop-color: var(--royle-green);
    }
    50% {
        stop-color: #567A68;
    }
}

.logo-svg #logoGradient stop:first-child {
    animation: subtleGradientShift 6s ease-in-out infinite;
}

.logo-svg #logoGradient stop:last-child {
    animation: subtleGradientShiftEnd 6s ease-in-out infinite;
}

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

.footer-logo-svg {
    height: 32px;
    width: auto;
}

.footer-logo {
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .language-selector {
        order: -1;
        margin-right: auto;
        margin-left: 1rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .container {
        padding: 0 1rem;
    }

    .nav {
        padding: 1rem;
    }

    .hero {
        padding: 6rem 1rem 4rem;
        background-attachment: scroll;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

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

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

    .about-features {
        grid-template-columns: 1fr;
    }
}
