@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@400;600;700;800&display=swap');

:root {
    --primary: #f1c40f;
    --primary-hover: #d4ac0d;
    --navy-dark: #0a192f;
    --navy-light: #112240;
    --navy-accent: #233554;
    --text-main: #ccd6f6;
    --text-bright: #e6f1ff;
    --text-dim: #8892b0;
    --white: #ffffff;
    --glass: rgba(10, 25, 47, 0.85);
    --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5 {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-bright);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

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

/* --- Navigation --- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: var(--glass);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav.scrolled {
    height: 70px;
    box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

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

.logo img {
    height: 60px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-bright);
}

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

.lang-toggle {
    border: 1px solid var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.8rem;
}

.lang-toggle:hover {
    background: rgba(241, 196, 15, 0.1);
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}



.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 2.5rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary);
    color: var(--navy-dark);
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 14px 0 rgba(241, 196, 15, 0.39);
}

.btn:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.23);
}

.btn-small {
    padding: 0.5rem 1.2rem;
    background: var(--primary);
    color: var(--navy-dark);
    font-weight: 700;
    border-radius: 4px;
    font-size: 0.85rem !important;
}

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

.dashboard-link, .auth-link {
    background: var(--primary) !important;
    color: var(--navy-dark) !important;
    display: inline-block !important;
}

.logout-link {
    font-size: 0.9rem;
    color: var(--text-dim);
    text-decoration: none;
    margin-left: 15px;
}

/* --- Services --- */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary);
}

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

.service-card {
    background: var(--navy-light);
    padding: 3rem 2rem;
    border-radius: 8px;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    cursor: pointer;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    background: var(--navy-accent);
    border-bottom-color: var(--primary);
}

.service-link {
    display: block;
    height: 100%;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--navy-dark);
    font-size: 1.5rem;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* --- Testimonials --- */
.testimonials {
    background: var(--navy-light);
}

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

.testimonial-card {
    background: var(--navy-dark);
    padding: 3rem;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 20px 30px -15px rgba(2, 12, 27, 0.5);
}

.testimonial-content {
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    top: -2.5rem;
    left: -1rem;
    font-size: 8rem;
    color: var(--primary);
    opacity: 0.1;
    font-family: serif;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--navy-accent);
    border: 2px solid var(--primary);
}

.user-info h4 {
    margin: 0;
    font-size: 1rem;
}

.user-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--primary);
}

/* --- Footer --- */
footer {
    padding: 80px 0 30px;
    background: #020c1b;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

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

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: var(--navy-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-bright);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    background: var(--primary);
    color: var(--navy-dark);
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(241, 196, 15, 0.3);
}

.social-icon svg {
    width: 18px;
    height: 18px;
}

.footer-links h4, .footer-contact h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

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

.contact-item i {
    color: var(--primary);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* --- Mobile Menu --- */
.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--primary);
    position: absolute;
    transition: 0.3s;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 9px;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--navy-light);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: 0.4s;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        z-index: 1000;
        padding: 2rem;
    }
    .nav-links.active {
        right: 0;
    }
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    .nav-links a {
        font-size: 1.2rem;
    }
    #nav-auth-container {
        display: none;
        width: 100%;
        text-align: center;
    }
    #nav-auth-container.visible {
        display: block;
    }
    .logout-link {
        display: block;
        margin-left: 0;
        margin-top: 10px;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Animations --- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}
