/* --- VARIABLES & RESET --- */
:root {
    --color-primary: #007BFF;
    --color-secondary: #FFC107;
    --color-success: #28A745;
    --color-danger: #DC3545;
    --color-dark: #121212;
    --color-dark-light: #1e1e1e;
    --color-light: #f4f4f4;
    --color-gray: #aaa;

    --font-family: 'Poppins', sans-serif;
    --transition-speed: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-dark);
    color: var(--color-light);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--color-secondary);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

h1,
h2,
h3,
h4 {
    font-weight: 600;
    line-height: 1.2;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition-speed);
    font-size: 16px;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-secondary);
    color: var(--color-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--color-light);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: white;
}


/* --- HEADER --- */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 15px 0;
    background-color: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    transition: all var(--transition-speed);
}

.header.scrolled {
    background-color: var(--color-dark-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    padding: 10px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    width: 130px;
    height: auto;
    display: block;
}

.logo img {
    width: 100%;
    height: 100%;
    padding: 5px;
    object-fit: cover;
    border-radius: 10px;
    background-color: rgb(255, 255, 255);
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-list a {
    color: var(--color-light);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-speed);
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-light);
    font-size: 24px;
    cursor: pointer;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--color-light), var(--color-gray));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 40px;
    color: var(--color-gray);
}

/* Hero animated shapes */
@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }

    100% {
        transform: translateY(0px) rotate(360deg);
    }
}

.hero-shapes .shape {
    position: absolute;
    border-radius: 20%;
    opacity: 0.1;
    animation: float 15s ease-in-out infinite;
}

.hero-shapes .shape-1 {
    top: 15%;
    left: 10%;
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    animation-duration: 12s;
}

.hero-shapes .shape-2 {
    top: 70%;
    left: 20%;
    width: 80px;
    height: 80px;
    background: var(--color-danger);
    animation-duration: 18s;
}

.hero-shapes .shape-3 {
    top: 20%;
    right: 15%;
    width: 60px;
    height: 60px;
    background: var(--color-success);
    animation-duration: 14s;
}

.hero-shapes .shape-4 {
    bottom: 10%;
    right: 25%;
    width: 40px;
    height: 40px;
    background: var(--color-secondary);
    animation-duration: 16s;
}


/* --- SECTIONS GENERAL --- */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-gray);
    max-width: 500px;
    margin: 0 auto;
}

/* --- SERVICES SECTION --- */
.services-section {
    background-color: var(--color-dark-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--color-dark);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #2a2a2a;
    transition: all var(--transition-speed);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-primary);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* --- ABOUT SECTION --- */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-content p {
    margin-bottom: 20px;
    color: var(--color-gray);
}

.about-content strong {
    color: var(--color-light);
}

.about-image {
    position: relative;
    height: 400px;
}

.about-shape-bg {
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1552664730-d307ca884978?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    position: relative;
    z-index: 1;
}

.about-shape-bg::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    background: var(--color-primary);
    opacity: 0.5;
    z-index: 0;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

/* --- TESTIMONIALS SECTION --- */
.testimonials-section {
    background-color: var(--color-dark-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--color-dark);
    padding: 30px;
    border-radius: 10px;
    border-left: 5px solid var(--color-primary);
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
}

.testimonial-author h4 {
    margin: 0;
    color: var(--color-light);
}

.testimonial-author span {
    color: var(--color-gray);
    font-size: 0.9rem;
}


/* --- CTA SECTION --- */
.cta-section {
    background: linear-gradient(45deg, var(--color-primary), var(--color-danger));
    color: white;
}

.cta-container {
    text-align: center;
}

.cta-container h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.cta-container p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.cta-section .btn-primary {
    background-color: white;
    color: var(--color-dark);
}

.cta-section .btn-primary:hover {
    background-color: var(--color-secondary);
}

/* --- FOOTER --- */
.footer {
    background-color: var(--color-dark-light);
    padding: 60px 0 20px;
    font-size: 0.9rem;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    margin-bottom: 20px;
    color: white;
    font-size: 1.2rem;
}

.footer-brand p {
    margin: 20px 0;
    color: var(--color-gray);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    color: var(--color-gray);
    font-size: 1.2rem;
}

.footer-social a:hover {
    color: var(--color-primary);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    color: var(--color-gray);
}

.footer-col ul a:hover {
    color: white;
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.contact-info span,
.contact-info a {
    color: var(--color-gray);
}

.contact-info i {
    color: var(--color-primary);
    margin-top: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #2a2a2a;
    color: var(--color-gray);
}


/* --- GENERIC PAGE STYLES (PRIVACY, TERMS, etc) --- */
.page-header-section {
    padding-top: 150px;
    padding-bottom: 50px;
    background: var(--color-dark-light);
    text-align: center;
}

.page-title {
    font-size: 3rem;
}

.page-content {
    padding: 80px 0;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--color-dark-light);
    padding: 40px;
    border-radius: 8px;
}

.content-wrapper h2 {
    font-size: 1.8rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--color-primary);
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
}

.content-wrapper p {
    margin-bottom: 15px;
    color: var(--color-gray);
}

.content-wrapper a {
    font-weight: 600;
}

.content-wrapper ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 15px;
    color: var(--color-gray);
}

.content-wrapper .last-updated {
    margin-top: 30px;
    font-style: italic;
    color: var(--color-gray);
}

.content-wrapper strong {
    color: var(--color-light);
}

/* --- CONTACT PAGE --- */
.contact-form-wrapper {
    background: var(--color-dark-light);
    padding: 40px;
    border-radius: 8px;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    background: var(--color-dark);
    border: 1px solid #333;
    border-radius: 5px;
    color: var(--color-light);
    font-family: var(--font-family);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
}

.contact-form button {
    grid-column: 1 / -1;
    justify-self: start;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.info-card {
    background: var(--color-dark-light);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.info-card .icon {
    font-size: 1.5rem;
    color: var(--color-primary);
}

.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed);
    z-index: 2000;
}

.popup:target {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--color-dark-light);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    max-width: 400px;
    position: relative;
}

.popup-content h3 {
    color: var(--color-success);
    margin-bottom: 10px;
}

.popup-content .btn {
    margin-top: 20px;
}


/* --- ANIMATIONS --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card.animate-on-scroll,
.testimonial-card.animate-on-scroll {
    transition-delay: calc(var(--i, 0) * 100ms);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .about-image {
        margin-top: 40px;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .header .container {
        position: relative;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-dark-light);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-in-out;
    }

    .nav.active {
        max-height: 500px;
        /* or a large enough value */
    }

    .nav-list {
        flex-direction: column;
        padding: 20px;
        gap: 0;
    }

    .nav-list li {
        width: 100%;
    }

    .nav-list a {
        display: block;
        padding: 15px;
        text-align: center;
    }

    .nav-list a:hover {
        background-color: var(--color-dark);
    }

    .nav-list a::after {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title,
    .page-title {
        font-size: 2rem;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }
}