@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Anton&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

/* Font Montserrat per h3 e p */
h4,
h3,
p,
a {
    font-family: 'Montserrat', sans-serif;
}

/* CSS Document */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Footer */
.footer {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    padding: 3rem 0 2rem;
    /* border-top: 1px solid rgba(0, 0, 0, 0.1); */
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footer-grid" width="12" height="12" patternUnits="userSpaceOnUse"><path d="M 12 0 L 0 0 0 12" fill="none" stroke="rgba(0,0,0,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23footer-grid)"/></svg>');
    opacity: 0.4;
}

.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.footer-left p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.footer-right {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-right a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}

.footer-right a:hover {
    color: var(--primary-color);
    transform: translateY(-1px);
}

.footer-right a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -3px;
    left: 0;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.footer-right a:hover::after {
    width: 100%;
}

/* Footer Mobile Responsiveness */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-right {
        justify-content: center;
        gap: 1.5rem;
    }

    .footer-right a {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .footer-right {
        flex-direction: column;
        gap: 1rem;
    }
}

:root {
    --primary-color: #2f2f2f;
    --secondary-color: #101010;
    --accent-color: #f59e0b;
    --accent-pink: #747474;
    --accent-cyan: #06b6d4;
    --text-primary: #303030;
    --text-secondary: #7f7f7f;
    --text-light: #ffffff;
    --bg-primary: #d9d9d9;
    --bg-secondary: #e5e5e5;
    --bg-dark: #424242;
    --bg-card: #f1f1f1;
    --gradient-primary: #3f3f3f;
    --gradient-secondary: #343434;
    --gradient-tertiary: #3a3a3a;
    --gradient-elegant: #2f2f2f;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --glass: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.2);
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    scroll-behavior: smooth;
    overflow-x: hidden;
    background: var(--bg-primary);
}

/* Navigation */
nav {
    position: fixed;
    top: 1rem;
    left: 50%;
    width: calc(100% - 4rem);
    max-width: 1400px;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.48), rgba(245, 245, 245, 0.16));
    backdrop-filter: blur(8px) saturate(200%);
    -webkit-backdrop-filter: blur(8px) saturate(200%);
    z-index: 1000;
    padding: 0.85rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(255, 255, 255, 0.2);
}

nav.scrolled {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(240, 240, 240, 0.28));
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.65);
    padding: 0.7rem 0;
}

.nav-container {
    max-width: none;
    margin: 0;
    padding: 0 2rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 3rem;
}

.logo {
    font-family: 'Anton', Arial, Helvetica, sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
    margin-left: auto;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a:hover {
    color: var(--primary-color);
    transform: translateY(-1px);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--primary-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 1px;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    margin-left: auto;
}

.hamburger {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.mobile-menu-toggle.active .hamburger:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active .hamburger:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.mobile-menu {
    position: fixed;
    top: -100%;
    right: 0;
    width: 100%;
    height: 100vh;
    /*background: rgba(31, 31, 31, 0.72);*/
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
}

.mobile-menu.active {
    top: 0;
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
}

.mobile-nav-links li {
    margin: 2rem 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active .mobile-nav-links li {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.active .mobile-nav-links li:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-menu.active .mobile-nav-links li:nth-child(2) {
    transition-delay: 0.2s;
}

.mobile-menu.active .mobile-nav-links li:nth-child(3) {
    transition-delay: 0.3s;
}

.mobile-menu.active .mobile-nav-links li:nth-child(4) {
    transition-delay: 0.4s;
}

.mobile-nav-links a {
    font-family: 'Anton', sans-serif;
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--primary-color);
    /*text-shadow: var(--text-secondary) 0px 0px 10px;*/
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-nav-links a:hover {
    transform: scale(1.05);
}

/* About List */
.about-list li {
    list-style-type: none;
    padding: 0;
    color: var(--text-secondary);
}



/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /*background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');*/
    animation: float 25s ease-in-out infinite;
    opacity: 0.7;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    animation: pulse 4s ease-in-out infinite alternate;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(1deg);
    }
}

@keyframes pulse {
    0% {
        opacity: 0.5;
    }

    100% {
        opacity: 0.8;
    }
}

.hero-content {
    text-align: center;
    color: var(--text-primary);
    z-index: 2;
    position: relative;
    max-width: 900px;
    padding: 0 2rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.2s forwards;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.hero h1 {
    font-family: 'Anton', sans-serif;
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.4s forwards;
    line-height: 1.1;
    letter-spacing: 0px;
}

.hero .subtitle {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.6s forwards;
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--bg-card);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transform: translateY(30px);
    opacity: 0;
    animation: fadeInUp 1s ease 0.8s forwards;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /*border: 2px solid var(--text-primary);*/
    backdrop-filter: blur(10px);
    letter-spacing: 0.5px;
}

.cta-button:hover {
    transform: translateY(-3px);
    background: var(--text-primary);
    color: var(--text-light);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--text-primary);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-secondary);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-indicator:hover {
    border-color: var(--text-primary);
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    width: 6px;
    height: 6px;
    background: var(--text-primary);
    border-radius: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(20px);
        opacity: 0;
    }
}

/* Section Styles */
section {
    padding: 8rem 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    font-family: 'Anton', sans-serif;
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 4rem;
    color: var(--text-primary);
    letter-spacing: 0px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 160px;
    height: 0px;
    background: var(--primary-color);
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* About Section */
.about {
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
}

.about-content {
    display: grid;

    grid-template-columns: 1fr 1.5fr;
    gap: 6rem;
    align-items: center;
    position: relative;
}

.about-image {
    width: 100%;
    height: 600px;
    background: url('images/Davide Santellani - foto cv.png') center/cover;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    transform: rotate(-2deg);
    transition: transform 0.4s ease;
}

.about-image:hover {
    transform: rotate(0deg) scale(1.02);
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(127, 127, 127, 0.0);
    transition: opacity 0.3s ease;
}

.about-image:hover::before {
    opacity: 0.7;
}

.about-image::after {}

.about-text h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.3;
}

.about-text p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.skills {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.skill-tag {
    font-family: 'Montserrat', sans-serif;
    padding: 0.75rem 1.5rem;
    background: var(--bg-card);
    color: var(--primary-color);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 0px solid rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.skill-tag:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Portfolio Section */
.portfolio {
    background: var(--bg-primary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 2rem;
}

.portfolio-item {
    background: var(--bg-card);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(20px);
    opacity: 0;
    border: 0px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.portfolio-item.animate {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-item:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-2xl);
}

.portfolio-image {
    width: 100%;
    height: 180px;
    background-color: var(--primary-color);
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.portfolio-item:nth-child(1) .portfolio-image {
    background-image: url('images/tesimagistrale.jpg');
}

.portfolio-item:nth-child(2) .portfolio-image {
    background-image: url('images/mano_home.jpg');
}

.portfolio-item:nth-child(3) .portfolio-image {
    background-image: url('images/Garden_Guardian_card3.png');
}

.portfolio-item:nth-child(4) .portfolio-image {
    background-image: url('images/scontrino_card.jpg');
}

.portfolio-item:nth-child(5) .portfolio-image {
    background-image: url('images/La_Dissolvenza_home.jpg');
}

.portfolio-item:nth-child(6) .portfolio-image {
    background-image: url('images/rpicamera.jpg');
}

.portfolio-item:nth-child(7) .portfolio-image {
    background-image: url('images/dcgan.jpg');
}

.portfolio-item:nth-child(10) .portfolio-image {
    background-image: url('images/pong.jpg');
}

.portfolio-item:nth-child(8) .portfolio-image {
    background-image: url('images/ruin_rift_poster.png');
}

.portfolio-item:nth-child(9) .portfolio-image {
    background-image: url('images/garbage_truck.jpg');
}

.portfolio-item:nth-child(11) .portfolio-image {
    background-image: url('images/Run_Over_Thumbnail.jpg');
}



.portfolio-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-image::before {
    background-color: rgba(255, 255, 255, 0.1);
}

.portfolio-content {
    padding: 2rem;
}

.portfolio-content h4 {
    font-family: 'Anton', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.portfolio-content p {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.portfolio-tech {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tech-tag {
    padding: 0.4rem 1rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: var(--primary-color);
    color: var(--text-light);
}

/* Contatti Section */
.contatti {
    background-color: var(--bg-primary);
    padding-bottom: 10rem;
    /* Space for the stack */
}

.contact-stack-container {
    position: relative;
    width: 340px;
    height: 200px;
    margin: 4rem auto 0;
    perspective: 1000px;
    display: flex;
    justify-content: center;
}

.contact-card-item {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.48), rgba(245, 245, 245, 0.16));
    backdrop-filter: blur(8px) saturate(200%);
    -webkit-backdrop-filter: blur(8px) saturate(200%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: grab;
    user-select: none;
    transform-origin: center bottom;
}

.contact-card-item:active {
    cursor: grabbing;
}

.card-hint-arrow {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.6;
    animation: bounce-arrow 1.5s infinite;
    pointer-events: none;
    color: var(--text-secondary);
}

@keyframes bounce-arrow {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.contact-card-item a {
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    pointer-events: none;
    /* Let JS handle clicks */
    font-weight: 500;
}

.contact-icon {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Stacking Logic */
.contact-card-item[data-pos="0"] {
    z-index: 3;
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: auto;
    /* Allow interaction */
}

.contact-card-item[data-pos="0"] a {
    pointer-events: auto;
    /* Allow link click on top card */
}

.contact-card-item[data-pos="1"] {
    z-index: 2;
    transform: scale(0.95) translateY(15px);
    opacity: 0.7;
    pointer-events: none;
}

.contact-card-item[data-pos="2"] {
    z-index: 1;
    transform: scale(0.9) translateY(30px);
    opacity: 0.4;
    pointer-events: none;
}

/* Animation for cycling */
.contact-card-item.cycling {
    transform: scale(0.9) translateY(-100px) !important;
    opacity: 0 !important;
}

@media (max-width: 480px) {
    .contact-stack-container {
        width: 300px;
        height: 180px;
    }

    .contact-card-item a {
        font-size: 1rem;
    }
}


/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.animate {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-left.animate {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-right.animate {
    opacity: 1;
    transform: translateX(0);
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .hero h1 {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    nav {
        left: 50%;
        width: calc(100% - 1.5rem);
        max-width: none;
        transform: translateX(-50%);
        border-radius: 24px;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero .subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 1.5rem;
    }

    section {
        padding: 5rem 0;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-text h3 {
        font-size: 2rem;
    }

    .skills {
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .container {
        padding: 0 1rem;
    }
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    max-width: 550px;
    margin: 0 auto;
    background: rgba(31, 31, 31, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 1rem 1.5rem;
    z-index: 9999;
    transform: translateY(calc(100% + 3rem));
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-content h3 {
    margin-bottom: 0.3rem;
    font-size: 1rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-content p {
    color: var(--bg-primary);
    font-size: 0.85rem;
    margin: 0;
    max-width: 700px;
}

.cookie-content a {
    color: var(--bg-primary);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.cookie-content a:hover {
    color: var(--text-light);
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.cookie-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.cookie-btn.accept {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.cookie-btn.accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: var(--text-light);
}

.cookie-btn.reject {
    background: transparent;
    border: 1px solid var(--bg-primary);
    color: var(--bg-primary);
}

.cookie-btn.reject:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: flex-end;
    }
}