/* Global Variables & Reset */
:root {
    --bg-color: #050a10;
    --bg-secondary: #0b121e;
    --card-bg: rgba(20, 25, 35, 0.6);
    --primary-color: #3b82f6;
    --accent-color: #60a5fa;
    --text-color: #e2e8f0;
    --text-muted: #94a3b8;
    --white: #ffffff;
    --gradient-main: linear-gradient(135deg, #3b82f6 0%, #2dd4bf 100%);
    --gradient-glow: radial-gradient(circle at center, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --border-color: rgba(255, 255, 255, 0.05);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--white);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-main);
    color: var(--bg-color);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--white);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 10, 16, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 90px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links a:not(.btn-nav) {
    font-size: 0.95rem;
    color: var(--text-color);
    font-weight: 500;
}

.nav-links a:not(.btn-nav):hover {
    color: var(--primary-color);
}

.btn-nav {
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-nav:hover {
    background: var(--primary-color);
    color: var(--bg-color);
    border-color: var(--primary-color);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    /* Offset for header */
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: var(--gradient-glow);
    z-index: -1;
    pointer-events: none;
}

.hero-text-wrapper {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* About Section */
.about {
    position: relative;
}

.about-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 60px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about p.lead {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 16px;
}

.about p {
    color: var(--text-muted);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(30, 41, 59, 0.6);
}

.icon-box {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    background: rgba(59, 130, 246, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.service-card h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-muted);
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* Make grid masonry-ish if desired, but standard grid is safer for responsiveness */

.portfolio-item {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    /* group: hover - removed invalid property */
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.portfolio-img {
    height: 220px;
    overflow: hidden;
    position: relative;
    background-color: #222;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-img img {
    transform: scale(1.05);
}

.portfolio-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .overlay {
    opacity: 1;
}

.btn-view {
    padding: 10px 24px;
    background: var(--white);
    color: var(--bg-color);
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
}

.portfolio-info {
    padding: 20px;
}

.portfolio-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.portfolio-info span {
    font-size: 0.85rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Why Us */
.why-us {
    background: var(--bg-secondary);
}

.why-grid {
    display: flex;
    justify-content: center;
}

.why-content {
    max-width: 800px;
    width: 100%;
}

.why-list {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.why-list li {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.why-list i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 4px;
}

.why-list strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--white);
}

.why-list p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    position: relative;
    text-align: center;
    padding: 100px 20px;
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent, rgba(59, 130, 246, 0.1));
    z-index: -1;
}

.cta-container h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    border: none;
}

.btn-whatsapp:hover {
    background: #1ebc57;
    transform: translateY(-2px);
}

.btn-instagram {
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
    color: white;
    border: none;
}

.btn-instagram:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 60px 0 20px;
    background: #000;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-logo {
    height: 70px;
    width: auto;
    object-fit: contain;
}

.bilingual-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
}

.contact-link:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    color: #555;
    font-size: 0.8rem;
    padding-top: 20px;
    border-top: 1px solid #111;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .section {
        padding: 60px 0;
        /* Reduced padding for mobile */
    }

    .hero-title {
        font-size: 2.5rem;
        /* Slightly smaller for better fit */
        margin-bottom: 20px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .header-container {
        padding: 0 20px;
    }

    .logo-img {
        height: 60px;
        /* Smaller logo for mobile header to save space */
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(5, 10, 16, 0.95);
        /* More opaque for readability */
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 30px 20px;
        border-bottom: 1px solid var(--border-color);
        gap: 20px;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-toggle {
        display: block;
        color: var(--white);
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .about-card {
        padding: 40px 20px;
    }

    .footer-content {
        justify-content: center;
        text-align: center;
        gap: 30px;
    }

    .footer-brand,
    .footer-contact {
        align-items: center;
        /* Center align flex items in footer */
    }
}