:root {
    --primary-color: #007bff;
    /* Bright Blue */
    --primary-dark: #0056b3;
    --accent-color: #00ecff;
    /* Cyan */
    --bg-dark: #0a101e;
    --bg-card: #111b2e;
    --text-light: #ffffff;
    --text-muted: #a0aab9;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.text-gradient {
    background: linear-gradient(90deg, #fff, var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.center {
    text-align: center;
}

.center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.6);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    margin-left: 10px;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 0;
    background: rgba(10, 16, 30, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-light);
}

.nav-links a:hover {
    color: var(--accent-color);
}

.btn-nav {
    padding: 8px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--primary-color);
    border-radius: 20px;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-dark);
        flex-direction: column;
        padding: 20px;
        text-align: center;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 114, 255, 0.1) 0%, rgba(10, 16, 30, 0.9) 70%);
    z-index: 1;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

/* Hero Video Background */
.hero-video-container iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    transform: translate(-50%, -50%) scale(1.3);
    /* Scale up to hide youtube controls/black bars */
    pointer-events: none;
    object-fit: cover;
    z-index: -1;
}

@media (min-aspect-ratio: 16/9) {
    .hero-video-container iframe {
        height: 56.25vw;
    }
}

@media (max-aspect-ratio: 16/9) {
    .hero-video-container iframe {
        width: 177.78vh;
    }
}

/* About Section Images */
.image-stack-grid {
    position: relative;
    height: 400px;
    width: 100%;
}

.abt-img {
    position: absolute;
    width: 300px;
    height: 220px;
    border-radius: 15px;
    object-fit: cover;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    transition: 0.5s;
}

.img-1 {
    top: 20px;
    left: 20px;
    z-index: 2;
}

.img-2 {
    bottom: 40px;
    right: 20px;
    z-index: 1;
    opacity: 0.8;
}

.image-stack-grid:hover .img-1 {
    transform: scale(1.05) translate(-10px, -10px);
}

.image-stack-grid:hover .img-2 {
    transform: scale(1.05) translate(10px, 10px);
    opacity: 1;
}

/* Portfolio Real Images */
.p-item {
    height: 250px;
    background-color: #222;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.p-item:hover {
    transform: translateY(-5px);
}

.p-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, #000, transparent);
    z-index: 1;
}

.p-item span {
    position: relative;
    z-index: 2;
    font-weight: 600;
}

.p-1 {
    background: url('assets/Social\ Media\ Campaign.jpg') center/cover;
}

.p-2 {
    background: url('assets/come-creare-una-brand-identity-header.jpg') center/cover;
}

.p-3 {
    background: url('assets/The-Right-Way-to-do-SEO-Website-Analysis.webp') center/cover;
}

.p-4 {
    background: url('assets/pexels-solliefoto-320617.jpg') center/cover;
}

/* Testimonials */
.testimonial-card {
    background: var(--glass-bg);
    padding: 40px;
    text-align: center;
    border-radius: 20px;
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid var(--glass-border);
}

.testimonial-card .stars {
    color: gold;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.testimonial-card p {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 20px;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: #080c16;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.c-detail {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.c-detail i {
    font-size: 1.5rem;
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.05);
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.c-detail label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.c-detail p,
.c-detail a {
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-form {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: white;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.full-width {
    width: 100%;
}

/* Footer */
footer {
    padding: 30px 0;
    background: #05080f;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer-content {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.social-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    font-size: 1.2rem;
    color: white;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* Animation Utils */
.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {

    .about-grid,
    .split-layout,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}