/* ==========================================================================
   Modern CSS Reset & Custom Properties
   ========================================================================== */

/* Local font declarations only - external fonts loaded via <link> in HTML */
@font-face {
    font-family: Messapia-Bold;
    src: url('/assets/fonts/Messapia-Bold.otf') format('opentype');
    font-display: swap;
}

@font-face {
    font-family: Veru-Serif;
    src: url('/assets/fonts/VeruSerif.ttf') format('truetype');
    font-display: swap;
}

:root {
    /* Colors - Expanded Palette */
    --color-background: rgb(17, 17, 17);
    --color-background-elevated: rgb(26, 26, 26);
    --color-surface: rgba(255, 255, 255, 0.03);
    --color-surface-elevated: rgba(255, 255, 255, 0.06);
    --color-text: rgb(240, 240, 240);
    --color-text-muted: rgb(160, 160, 160);
    --color-turquoise: rgb(5, 166, 174);
    --color-turquoise-light: rgb(80, 200, 210);
    --color-purple: rgb(82, 46, 128);
    --color-purple-light: rgb(120, 80, 180);
    --color-green: rgb(4, 140, 145);
    --color-green-light: rgb(60, 180, 175);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-turquoise) 0%, var(--color-green) 100%);
    --gradient-primary-hover: linear-gradient(135deg, var(--color-turquoise-light) 0%, var(--color-green-light) 100%);
    --gradient-glow: linear-gradient(135deg, rgba(5, 166, 174, 0.4) 0%, rgba(16, 140, 100, 0.4) 100%);
    --gradient-overlay: linear-gradient(180deg, rgba(17, 17, 17, 0.2) 0%, rgba(17, 17, 17, 0.6) 50%, rgba(17, 17, 17, 0.95) 100%);
    
    /* Glassmorphism */
    --glass-background: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(20px);
    
    /* Fonts */
    --font-grotesque: neue-haas-grotesk-display, system-ui, sans-serif;
    --font-freight: freight-big-pro, Georgia, serif;
    --font-messapia: Messapia-Bold, system-ui, sans-serif;
    --font-veru: Veru-Serif, Georgia, serif;
    --font-openSans: 'Open Sans', system-ui, sans-serif;
    
    /* Fluid Typography using clamp() */
    --font-xxx-large: clamp(2.5rem, 5vw, 3.5rem);
    --font-xx-large: clamp(1.875rem, 4vw, 2.5rem);
    --font-x-large: clamp(1.125rem, 3vw, 2rem);
    --font-large: clamp(0.938rem, 2.5vw, 1.563rem);
    --font-medium: clamp(0.75rem, 2vw, 1.25rem);
    
    /* Spacing */
    --spacing-xs: clamp(0.5rem, 1vw, 0.75rem);
    --spacing-sm: clamp(1rem, 2vw, 1.5rem);
    --spacing-md: clamp(2rem, 4vw, 3rem);
    --spacing-lg: clamp(3rem, 6vw, 5rem);
    --spacing-xl: clamp(4rem, 8vw, 6rem);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-medium: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* Shadows */
    --shadow-glow: 0 0 30px rgba(5, 166, 174, 0.3);
    --shadow-glow-intense: 0 0 50px rgba(5, 166, 174, 0.5), 0 0 100px rgba(82, 46, 128, 0.3);
    --shadow-elevated: 0 8px 32px rgba(0, 0, 0, 0.4);
    
    /* Focus ring */
    --focus-ring: 0 0 0 3px var(--color-turquoise);
}

/* ==========================================================================
   Accessibility & Reduced Motion
   ========================================================================== */

/* Skip link for keyboard navigation */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-turquoise);
    color: var(--color-background);
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 8px 8px;
    font-family: var(--font-openSans);
    font-weight: 700;
    text-decoration: none;
    z-index: 9999;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
    outline: none;
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .intro-video video {
        display: none;
    }
}

/* Visually hidden but accessible to screen readers */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.visually-hidden-focusable:not(:focus):not(:focus-within) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ==========================================================================
   Responsive Breakpoints (Mobile-first with min-width fallbacks)
   ========================================================================== */

@media only screen and (max-width: 768px) {
    .roman-graphic {
        margin-top: 5rem;
        margin-inline-end: 3.3rem;
    }
    .roman-head {
        height: 15rem;
        margin-top: -23rem;
    }
    .custom-pad {
        padding: 5% 5%;
    }
    .cta-button {
        margin-top: 4rem;
        width: auto;
        min-width: 0;
        display: inline-block;
    }
    .footer {
        padding: 2rem;
    }
}

@media only screen and (max-width: 991px) {
    #contact-heading {
        transform: none !important;
        font-size: var(--font-xx-large) !important;
    }
    .menuD {
        display: none;
    }
    .menuM-icon {
        display: block;
        font-size: 2.2rem;
    }
}

@media only screen and (min-width: 992px) {
    .menuD {
        display: flex;
    }
    .menuM-icon, #menu, #logo3, #logo4 {
        display: none;
    }
}

@media only screen and (max-width: 375px) {
    #contact-heading {
        transform: none !important;
        font-size: var(--font-x-large) !important;
    }
    #logo, #logo2 {
        font-size: var(--font-xx-large) !important;
    }
}

@media only screen and (max-width: 1400px) and (min-width: 1000px) {
    #clients {
        margin-bottom: 10rem !important;
    }
    #about {
        margin-bottom: 10rem !important;
    }
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-background);
    color: var(--color-text);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--color-turquoise) transparent;
    position: relative;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::-webkit-scrollbar {
    width: 0.5rem;
}

body::-webkit-scrollbar-track {
    background: var(--color-background);
}

body::-webkit-scrollbar-thumb {
    background-color: var(--color-turquoise);
    border-radius: 4px;
}

.site {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for mobile */
    display: flex;
    flex-direction: column;
}

/* Focus states for accessibility */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
    border-radius: 4px;
}

/* Main content fills available space for footer positioning */
main {
    flex: 1 0 auto;
}

a, a:hover {
    text-decoration: none;
    color: inherit;
}

button {
    border: none
}

.custom-pad {
    padding: 13% 5%;
}

.pointer {
    cursor: pointer;
}

.custom-gray {
    background: radial-gradient(ellipse at center, 
        rgba(227, 227, 227, 1) 0%, 
        rgba(158, 156, 158, 1) 0%, 
        rgba(173, 173, 173, 1) 0%, 
        rgba(166, 166, 166, 1) 52%, 
        rgba(135, 135, 135, 1) 100%);
}

.custom-gray:hover, .custom-gray:active {
    background: rgb(118, 248, 255);
    background: radial-gradient(circle, rgba(118, 248, 255, 1) 46%, rgba(5, 166, 175, 1) 100%);
}

/* HEADER */

#menu {
    background-color: black;
    position: fixed;
    top: 0;
    left: 0;
    margin: 0;
    padding: 5rem 0;
    display: none;
}

.animate-menu {
    animation: resize 1s;
}

.navbar {
    position: fixed;
    width: 100vw;
    transition: top 0.35s, background-color 0.3s, backdrop-filter 0.3s;
    background: transparent;
}

/* Navbar glass effect on scroll */
.navbar.scrolled {
    background: var(--glass-background);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
}

#logo {
    font-family: var(--font-veru);
    font-size: var(--font-xxx-large);
    pointer-events: none;
    z-index: 3;
    position: relative;
}

#logo2 {
    font-family: var(--font-veru);
    font-size: var(--font-xxx-large);
}

#logo3 {
    position: absolute;
    margin-left: 3rem;
    font-family: var(--font-freight);
    font-size: var(--font-large);
    z-index: 5;
    padding: 3px;
    border-radius: 3px;
}

#logo4 {
    position: absolute;
    font-family: var(--font-freight);
    margin-left: 3rem;
    margin-top: 3rem;
    z-index: 5;
    padding: 3px;
    border-radius: 3px;
}

.logo-hidden {
    display: none;
}

.underline {
    display: inline;
    position: relative;
    overflow: hidden;
    font-size: medium;
    color: var(--color-white);
    font-family: var(--font-messapia);
}

.underline:after {
    content: "";
    position: absolute;
    z-index: -1;
    right: 0;
    width: 0;
    bottom: -5px;
    background: var(--color-turquoise);
    height: 4px;
    transition-property: width;
    transition-duration: 0.3s;
    transition-timing-function: ease-out;
    top: 9px;
    z-index: 5;
}

.underline:hover:after, .underline:focus:after, .underline:active:after {
    left: -5px;
    right: auto;
    width: 110%;
}

.intro-video {
    width: 100%;
    min-width: 100%;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile browsers */
    max-height: 100vh;
    max-height: 100dvh;
    object-fit: cover;
    overflow: hidden;
    position: relative;
}

/* Hero gradient overlay for text contrast */
.intro-video::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-overlay);
    pointer-events: none;
    z-index: 1;
}

/* Hero visible headline */
.hero-headline {
    position: absolute;
    bottom: 15%;
    left: 5%;
    right: 5%;
    z-index: 3;
    font-family: var(--font-messapia);
    font-size: clamp(2rem, 6vw, 4.5rem);
    line-height: 1.1;
    color: var(--color-text);
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.5);
}

.hero-headline .gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Scroll indicator */
.scroll-indicator {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-muted);
    font-family: var(--font-openSans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: fadeInUp 1s ease 1s both;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-indicator.hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
    pointer-events: none;
}

.scroll-indicator::after {
    content: '';
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-turquoise), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
    50% { opacity: 1; transform: scaleY(1); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

#video {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    vertical-align: middle;
    object-fit: cover;
    background-color: var(--color-background);
}

.description {
    padding-top: 0;
    padding-bottom: 8rem; /* Space for fixed footer */
    position: relative;
}

/* Glass panel for content sections */
.glass-panel {
    background: var(--glass-background);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: var(--spacing-lg);
}

.description-text {
    font-family: var(--font-grotesque);
    font-weight: 700;
    color: #ffffff;
}

@media (min-width: 768px) {
    .description-text {
        font-size: 1.25rem;
        max-width: 50%;
    }
}

.description-text p {
    margin-bottom: 1em;
}

.description-text p:last-child {
    margin-bottom: 0;
}

.cta-button {
    font-family: var(--font-grotesque);
    font-weight: 700;
    padding: 1rem 2.5rem;
    min-width: 0;
    font-size: 1rem;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-turquoise), var(--color-green), var(--color-turquoise));
    background-size: 200% 200%;
    animation: gradientFlow 4s ease infinite;
    color: var(--color-text);
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(5, 166, 174, 0.3);
    transition: transform var(--transition-bounce), 
                box-shadow var(--transition-medium),
                letter-spacing var(--transition-fast);
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Button glow effect */
.cta-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary-hover);
    opacity: 0;
    transition: opacity var(--transition-medium);
    border-radius: inherit;
}

/* Button shine effect */
.cta-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 60%;
    height: 200%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}

.cta-button:hover::before {
    opacity: 1;
}

.cta-button:hover::after {
    left: 120%;
}

.cta-button:hover,
.cta-button:focus-visible {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow-intense);
    letter-spacing: 2px;
}

.cta-button:active {
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

.cta-button span {
    position: relative;
    z-index: 1;
}

/* Secondary/outline button variant */
.cta-button--outline {
    background: transparent;
    border: 2px solid var(--color-turquoise);
    box-shadow: none;
}

.cta-button--outline::before {
    background: var(--gradient-primary);
}

.cta-button--outline:hover {
    border-color: transparent;
}

.heading {
    transform: rotate(-90deg);
    font-size: var(--font-xxx-large) !important;
    font-family: var(--font-messapia);
    letter-spacing: 5px;
    white-space: nowrap;
    z-index: 3 !important;
    pointer-events: none;
}

.client-box {
    width: 100%;
    height: 12rem;
    margin: 0 5px;
}

.client-content {
    width: 100%;
    height: 100%;
    background: url(/assets/images/team.jpg);
    background-size: contain;
    opacity: 0.2;
}

.client-content:hover {
    opacity: 1;
}

.client-box-cta {
    background: rgb(42, 13, 56);
    background: radial-gradient(circle, rgba(42, 13, 56, 1) 47%, rgba(35, 5, 64, 1) 100%);
}

.client-box-text {
    padding: 1rem 2rem;
    font-size: var(--font-large);
    font-family: var(--font-messapia);
    text-align: right;
}

.team-img {
    width: 100%;
}

.about-text {
    font-size: var(--font-large);
    font-family: var(--font-messapia);
}

#contact {
    height: 50rem;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.map-container {
    width: max-content;
}

.social-button {
    background: var(--color-turquoise);
    font-size: var(--font-x-large);
    border-radius: 4px;
    margin: 0 3px;
    height: 4rem;
    width: 4rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: black;
}

.email-button {
    font-family: var(--font-messapia);
    padding: 5px 10px;
    min-width: 15rem;
    font-size: var(--font-large);
    border-radius: 5px;
    background-color: transparent;
    border: 2px solid var(--color-turquoise);
    color: var(--color-text);
}

.roman-graphic {
    font-family: var(--font-veru);
    color: var(--color-turquoise);
    font-size: var(--font-xx-large);
    margin-right: 5rem;
}

.roman-head-menu {
    height: 20rem;
    position: relative;
    left: -8rem;
    bottom: -2rem
}

.roman-head {
    height: 20rem;
    margin-top: -30rem;
}

#rotating-background {
    font-family: var(--font-veru);
    color: var(--color-turquoise);
    font-size: var(--font-xxx-large);
    position: fixed;
    top: 40%;
    left: 0;
    z-index: 1;
    opacity: 0.1;
    will-change: transform;
}

.z-2 {
    z-index: 2 !important;
    position: relative;
}

.z-3 {
    z-index: 3;
}

#glitchY {
    position: absolute;
    writing-mode: vertical-rl;
    white-space: nowrap;
    top: 5vh;
    left: 10vh;
    letter-spacing: 2px;
    font-size: var(--font-medium);
    font-weight: 600;
    color: var(--color-text);
    animation: 0.4s shake infinite alternate;
    font-family: var(--font-messapia);
}

#glitchX {
    position: absolute;
    top: 50vh;
    right: 5vh;
    letter-spacing: 2px;
    font-size: var(--font-medium);
    font-weight: 600;
    color: var(--color-text);
    animation: 0.8s shake infinite alternate;
    font-family: var(--font-messapia);
}

@keyframes shake {
    0% {
        transform: translateY(-4rem);
        transform: translateX(-10rem);
    }
    5% {
        transform: translateY(5rem);
        transform: translateX(10rem);
    }
    10% {
        transform: translateY(-10rem);
        transform: translateX(-4rem);
    }
    15% {
        transform: translateY(5rem);
    }
    20% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(0);
    }
}

.hidden {
    display: none !important;
}

.invisible {
    visibility: hidden !important;
}

.visible {
    visibility: visible !important;
}

.google-wrapper {
    position: relative;
    width: 100%;
    z-index: 3;
}

#google-map {
    width: 100%;
    height: 250px;
    z-index: 3;
}

#google-map-overlay {
    width: 100%;
    height: 250px;
    background: var(--color-turquoise);
    position: absolute;
    opacity: 0.5;
    top: 0px;
    left: 0px;
    z-index: 99 !important;
    pointer-events: none;
}

.map-text {
    font-size: var(--font-large);
    font-family: var(--font-messapia);
    color: var(--color-text);
}

.map-container {
    width: 100%;
}

.show-animation {
    animation: show-text 1s forwards ease-in-out;
}

@keyframes show-text {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes resize {
    from {
        width: 0;
        height: 0;
    }
    to {
        width: 100%;
        height: 100%;
    }
}

.default-user {
    position: relative;
    width: 100%;
    height: 100%;
}

#overlay {
    position: absolute;
    background: rgba(227, 227, 227, 0.5);
    width: 100%;
    z-index: 1;
    height: 100%;
}

#overlay:hover {
    background: transparent;
}

.image {
    position: relative;
}

.image a {
    display: block;
    position: absolute;
    z-index: 5;
    cursor: pointer;
}

[data-title]:hover:after {
    opacity: 1;
    transition: all 0.1s ease 0.5s;
    visibility: visible;
}

[data-title]:after {
    content: attr(data-title);
    color: var(--color-text);
    font-size: var(--font-large);
    font-family: var(--font-messapia);
    position: relative;
    opacity: 0;
    z-index: 99999;
    visibility: hidden;
    top: 75%;
}

[data-title] {
    position: relative;
}

/* MODAL */

.modal-content {
    background: var(--color-background-elevated);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

.modal-fullscreen {
    width: 95vw;
    max-width: none;
    height: 95%;
    margin: 1rem auto;
}

.modal-header {
    border: none;
}

.modal-title {
    font-family: var(--font-messapia);
    font-size: var(--font-medium);
}

.footer {
    flex-shrink: 0; /* Prevent footer from shrinking */
    position: relative;
    width: 100%;
    background: var(--glass-background);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-top: 1px solid var(--glass-border);
    color: var(--color-text);
    padding: 1.5rem 4rem;
    font-family: var(--font-grotesque);
    z-index: 100;
}

/* Gradient line at top of footer */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0.5;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 767px) {
    .footer-content {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--color-surface-elevated);
    color: var(--color-text-muted);
    font-size: 1rem;
    transition: all var(--transition-medium);
}

.footer-social a:hover {
    background: var(--gradient-primary);
    color: var(--color-text);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

#graphic-video {
    width: 45rem;
    position: absolute;
    bottom: -5rem;
    right: 18rem;
}

.header {
    padding-bottom: 10rem;
}

/* FONDOVI FOOTER */

.flex{
    display: flex;
    padding: 40px 20px 0 20px;
    gap: 20px;
    align-items: center;
    z-index: 2;
}

.flex > img{
    object-fit: contain;
    width: calc(100% / 3);
    max-height: 100px;
}

@media only screen and (max-width: 1550px) {
    #graphic-video {
        right: 5rem;
    }
}

@media only screen and (max-width: 1315px) {
    #graphic-video {
        width: 35rem;
        bottom: 0;
    }
}

@media only screen and (max-width: 1200px) {
    #graphic-video {
        width: 35rem;
        right: 0;
    }
    .description-text {
        font-size: 1.125rem;
    }
}

@media only screen and (max-width: 1000px) {
    #graphic-video {
        width: 30rem;
        right: 0;
    }
    .description-text {
        font-size: 1rem;
    }
}

@media only screen and (max-width: 767px) {
    .description {
        padding-bottom: 15rem !important;
    }
    
    .flex{
        flex-direction: column;
        padding: 20px 20px 0 20px;
    }
    
    .flex > img{
        width: 100%;
    }
}

@media only screen and (max-width: 600px) {
    .description {
        padding-bottom: 15rem !important;
    }
}

@media only screen and (max-width: 470px) {
    #graphic-video {
        width: 25rem;
        right: 0;
    }
}

@media only screen and (max-width: 375px) {
    #graphic-video {
        width: 22rem;
        right: 0;
    }
}

/* ==========================================================================
   Visual Enhancement Utilities
   ========================================================================== */

/* Gradient text */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glow effect on hover */
.glow-hover {
    transition: box-shadow var(--transition-medium);
}

.glow-hover:hover {
    box-shadow: var(--shadow-glow);
}

/* Link with animated underline */
.link-animated {
    position: relative;
    color: var(--color-text);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.link-animated::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-medium);
}

.link-animated:hover {
    color: var(--color-turquoise);
}

.link-animated:hover::after {
    width: 100%;
}

/* Staggered animation delays for AOS */
[data-aos-delay="100"] { transition-delay: 100ms; }
[data-aos-delay="200"] { transition-delay: 200ms; }
[data-aos-delay="300"] { transition-delay: 300ms; }
[data-aos-delay="400"] { transition-delay: 400ms; }

/* Subtle floating animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.float {
    animation: float 6s ease-in-out infinite;
}

/* Pulse glow animation */
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(5, 166, 174, 0.2); }
    50% { box-shadow: 0 0 40px rgba(5, 166, 174, 0.4); }
}

.pulse-glow {
    animation: pulseGlow 3s ease-in-out infinite;
}

/* Noise texture overlay (optional decorative) */
.noise-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}