/* ===================================
   MARCHETTI SYSTEMS – Premium Design System
   =================================== */

/* --- Reset & Custom Properties --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy-deep: #000d1a;
    --navy: #001a33;
    --navy-light: #002952;
    --gold: #c5a059;
    --gold-light: #d4b876;
    --gold-dark: #a68540;
    --silver: #c0c0c0;
    --silver-light: #e0e0e0;
    --text: #f0f0f0;
    --text-muted: rgba(240, 240, 240, 0.6);
    --glass-bg: rgba(0, 26, 51, 0.4);
    --glass-border: rgba(197, 160, 89, 0.15);
    --glass-shadow: rgba(0, 0, 0, 0.3);
    --gradient-gold: linear-gradient(135deg, #c5a059, #d4b876, #a68540);
    --gradient-navy: linear-gradient(180deg, #000d1a 0%, #001a33 50%, #002952 100%);
    --font-primary: 'Outfit', 'Inter', 'Segoe UI', sans-serif;
    --font-body: 'Inter', 'Segoe UI', sans-serif;
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-fast: 0.2s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--gradient-navy);
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Particles Canvas --- */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* --- Utilities --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.gold {
    color: var(--gold);
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--navy-deep);
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(197, 160, 89, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
}

.btn-outline:hover {
    background: rgba(197, 160, 89, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(197, 160, 89, 0.2);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ===================================
   NAVIGATION
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(0, 13, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.8rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text);
}

.nav-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    object-fit: cover;
    transition: var(--transition);
}

.nav-logo:hover .nav-logo-img {
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.5);
}

.nav-logo-text {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 1px;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--gold);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--gold);
    transition: var(--transition-fast);
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8rem 2rem 4rem;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(197, 160, 89, 0.05) 0%, transparent 60%);
    animation: heroGlow 8s ease-in-out infinite;
}

@keyframes heroGlow {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-logo-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 2.5rem;
}

.hero-logo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gold);
    box-shadow: 0 0 60px rgba(197, 160, 89, 0.3), 0 0 120px rgba(197, 160, 89, 0.1);
    position: relative;
    z-index: 1;
    animation: logoFloat 6s ease-in-out infinite;
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.2) 0%, transparent 70%);
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 1;
    }
}

.hero-title {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 6px;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: titleReveal 0.8s forwards;
}

.title-line:nth-child(2) {
    animation-delay: 0.3s;
}

.title-line.gold {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes titleReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-family: var(--font-primary);
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    color: var(--silver);
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s 0.6s forwards;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
    opacity: 0;
    animation: fadeInUp 0.8s 0.8s forwards;
}

.hero-cta-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s 1s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s 1.5s forwards;
    z-index: 2;
    pointer-events: none;
}

.scroll-indicator span {
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(240, 240, 240, 0.35);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: rgba(197, 160, 89, 0.4);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    51% {
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* ===================================
   SECTIONS – General
   =================================== */
.section {
    padding: 8rem 0;
    position: relative;
}

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

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.section-title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* --- Scroll Animations --- */
[data-animate] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   ABOUT SECTION
   =================================== */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.about-card {
    padding: 2.5rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transition: var(--transition);
}

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

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border-color: rgba(197, 160, 89, 0.3);
}

.about-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    color: var(--gold);
}

.about-icon svg {
    width: 100%;
    height: 100%;
}

.about-card h3 {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--gold-light);
}

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

/* ===================================
   SERVICES SECTION
   =================================== */
.services {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 13, 26, 0.5) 50%, transparent 100%);
}

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

.service-card {
    position: relative;
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover::after {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(197, 160, 89, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.service-number {
    font-family: var(--font-primary);
    font-size: 4rem;
    font-weight: 800;
    color: rgba(197, 160, 89, 0.1);
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    line-height: 1;
}

.service-content h3 {
    font-family: var(--font-primary);
    font-size: 1.4rem;
    color: var(--gold-light);
    margin-bottom: 1rem;
}

.service-content p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.service-features {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.service-features li {
    font-size: 0.8rem;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    background: rgba(197, 160, 89, 0.1);
    color: var(--gold);
    border: 1px solid rgba(197, 160, 89, 0.2);
    letter-spacing: 0.5px;
}

/* ===================================
   TECHNOLOGY SECTION
   =================================== */
.tech-showcase {
    display: grid;
    gap: 3rem;
}

.tech-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.stat-card {
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(197, 160, 89, 0.3);
}

.stat-value {
    font-family: var(--font-primary);
    font-size: 3rem;
    font-weight: 800;
    color: var(--gold);
    display: inline;
}

.stat-unit {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    color: var(--gold-light);
    display: inline;
    margin-left: 2px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tech-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.tech-feature {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    transition: var(--transition);
}

.tech-feature:hover {
    border-color: rgba(197, 160, 89, 0.3);
    transform: translateX(5px);
}

.tech-feature-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.tech-feature h4 {
    font-family: var(--font-primary);
    color: var(--gold-light);
    margin-bottom: 0.4rem;
    font-size: 1rem;
}

.tech-feature p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ===================================
   PROCESS / TIMELINE SECTION
   =================================== */
.process {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 13, 26, 0.5) 50%, transparent 100%);
}

.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 30px;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--gold), rgba(197, 160, 89, 0.1));
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    position: relative;
}

.timeline-marker {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 30px rgba(197, 160, 89, 0.3);
}

.timeline-marker span {
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--navy-deep);
}

.timeline-content {
    padding: 2rem;
    flex: 1;
    transition: var(--transition);
}

.timeline-content:hover {
    border-color: rgba(197, 160, 89, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.timeline-content h3 {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    color: var(--gold-light);
    margin-bottom: 0.75rem;
}

.timeline-content p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ===================================
   CONTACT SECTION
   =================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    padding: 2rem;
    transition: var(--transition);
}

.contact-card:hover {
    border-color: rgba(197, 160, 89, 0.3);
    transform: translateY(-3px);
}

.contact-icon {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}

.contact-card h3 {
    font-family: var(--font-primary);
    color: var(--gold-light);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.contact-card a {
    color: var(--gold);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.contact-card a:hover {
    color: var(--gold-light);
}

.contact-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.contact-form {
    padding: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--silver);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1.2rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text);
    background: rgba(0, 26, 51, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    outline: none;
    transition: var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    border-top: 1px solid var(--glass-border);
    padding: 3rem 0 2rem;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(197, 160, 89, 0.1);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
}

.footer-name {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.2rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-powered {
    font-size: 0.75rem !important;
    margin-top: 0.4rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.5;
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .tech-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .tech-features {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 300px;
        height: 100vh;
        background: rgba(0, 13, 26, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: var(--transition);
        border-left: 1px solid var(--glass-border);
    }

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

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

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

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero-logo {
        width: 140px;
        height: 140px;
    }

    .hero-title {
        letter-spacing: 3px;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: center;
    }

    .tech-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-timeline::before {
        left: 20px;
    }

    .timeline-marker {
        width: 42px;
        height: 42px;
    }

    .timeline-marker span {
        font-size: 1rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-brand {
        flex-direction: column;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .section {
        padding: 5rem 0;
    }
}

@media (max-width: 480px) {
    .stat-value {
        font-size: 2.2rem;
    }

    .timeline-item {
        gap: 1rem;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

