﻿@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Open+Sans:wght@300;400;600&display=swap");

:root {
    /* Logo Colors derived from the image */
    --color-blue: #3b82f6;
    --color-purple: #8b5cf6;
    --color-orange: #f97316;
    --color-pink: #ec4899;
    
    /* Main Gradient */
    --brand-gradient: linear-gradient(135deg, var(--color-blue), var(--color-purple), var(--color-orange));
    
    /* Base Colors */
    --bg-color: #050505;       /* Ultra dark, almost black */
    --surface-color: #121212;  /* Slightly lighter for cards */
    --text-color: #ffffff;
    --text-muted: #a3a3a3;
    --border-color: #262626;

    --container-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Fixes anchor links being covered by fixed header */
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

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

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

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

/* Header */
header {
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

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

.logo img {
    height: 45px;
    width: auto;
    display: block;
    /* Optional: Add a slight drop shadow if needed, but clean is better */
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-color);
    /* Gradient Text Effect for Links */
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lang-switch {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
}

.lang-switch .active {
    color: var(--color-orange); /* Vibrant accent for active lang */
}

/* Hero Section */
.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center, #1a1a2e 0%, var(--bg-color) 70%);
    position: relative;
    padding-top: 80px;
}

/* Add a subtle colorful glow behind hero */
.hero::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--brand-gradient);
    filter: blur(150px);
    opacity: 0.2;
    z-index: -1;
    border-radius: 50%;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

/* Gradient highlight in text */
.hero h1 span, .highlight-text {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--brand-gradient);
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    border-radius: 50px; /* Modern round pill shape */
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border-color);
    box-shadow: none;
    margin-left: 15px;
}

.btn-outline:hover {
    border-color: var(--color-purple);
    color: #fff;
    background: rgba(139, 92, 246, 0.1);
}

/* Cards */
.card {
    background: var(--surface-color);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

/* Colorful top border for cards */
.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--brand-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.card:hover {
    transform: translateY(-10px);
    border-color: #333;
    background: #181818;
}

.card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    font-size: 2.5rem;
    /* Gradient icon! */
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 25px;
    display: inline-block;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.card-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-link:hover {
    color: var(--color-orange);
}

/* Footer */
footer {
    background: #000;
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    margin-top: 50px;
}

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

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: 0.3s ease;
}

.social-links a:hover {
    background: var(--brand-gradient);
    transform: rotate(360deg);
}

/* Animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, visibility;
}

.fade-in-section.visible {
    opacity: 1;
    transform: none;
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner {
        /* Keep row layout for header */
        flex-direction: row;
        align-items: center;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .grid-2 {
        grid-template-columns: 1fr !important;
    }
}


/* Modal Styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.9); 
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #1a1a1a;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 900px;
    border-radius: 10px;
    position: relative;
    text-align: center;
}

.close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 20px;
}

.close:hover,
.close:focus {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

/* --- Mobile Responsive Styles --- */

/* Mobile Navigation Toggle (Hamburger) */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 2000;
}

.nav-toggle span {
    width: 30px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: 0.3s;
}

/* --- Modal Styles --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal-box, .video-modal-box {
    background: var(--surface-color);
    padding: 30px;
    border-radius: 20px;
    max-width: 900px;
    width: 90%;
    position: relative;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    max-height: 90vh;
    overflow-y: auto;
}

.video-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.media-grid-modal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.modal-video-item {
    text-align: center;
}

.modal-video-item video {
    width: 100%;
    border-radius: 12px;
    aspect-ratio: 9/16; 
    object-fit: cover;
    background: #000;
}

@media (max-width: 991px) {
    /* Container padding adjustment */
    .container {
        padding: 0 5%;
    }
    
    /* Header & Navigation */
    .header-inner {
        position: relative;
    }

    .logo {
        z-index: 2001;
        position: relative;
    }

    .lang-switch {
        margin-inline-start: auto;
        margin-right: 15px;
        order: 2;
        z-index: 2001;
        position: relative;
    }

    .nav-toggle {
        display: flex;
        order: 3;
        z-index: 2001;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%; /* Initially hidden */
        width: 70%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
        padding-top: 60px;
        z-index: 1500;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.2rem;
        margin: 15px 0;
    }

    /* Hero Section */
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .hero .btn {
        width: 100%;
        margin: 10px 0;
        display: block;
    }

    .hero .btn-outline {
        margin-left: 0;
    }

    /* Grid Layouts */
    .grid-3, .grid-4 {
        grid-template-columns: 1fr; /* Stack cards vertically */
        gap: 20px;
    }

    .grid-3[style*="repeat(4"] { /* Override inline styles if any */
         grid-template-columns: 1fr !important;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    /* Cards */
    .card {
        padding: 25px;
    }
    
    /* Contact Page Grid */
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    /* Modal responsive */
    .modal-content {
        width: 95%;
        padding: 15px;
    }
    
    .modal-content video {
        max-height: 60vh;
    }
    
    .video-grid-mobile {
        flex-direction: column; 
    }
    
    .video-grid-mobile > div {
        width: 100% !important;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    h1 {
        font-size: 2rem !important;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .logo img {
        height: 35px;
    }
}
