@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --bg: #0a0a0a;
    --panel: #111113;
    --panel-elevated: #18181b;
    --accent: #e85d04;
    --accent-glow: #ff7b00;
    --muted: #71717a;
    --muted-light: #a1a1aa;
    --text: #f4f4f5;
    --text-dim: #d4d4d8;
    --glass: rgba(255,255,255,0.025);
    --glass-border: rgba(255,255,255,0.06);
    --radius: 4px;
    --radius-lg: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

html, body {
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    background: 
        radial-gradient(ellipse at center, rgba(255,255,255,0.015) 0%, transparent 60%),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 10 10"><circle cx="5" cy="5" r="1" fill="%23212121" opacity="0.9" /></svg>') repeat,
        var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

#mainContent {
    opacity: 0;
    transform: translateY(20px);
    animation: contentReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.2s;
}

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

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 40px;
    background: linear-gradient(180deg, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.8) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transform: translateY(-100%);
    animation: navSlide 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.4s;
}

@keyframes navSlide {
    to {
        transform: translateY(0);
    }
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;

    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.logo:hover {
    transform: scale(1.08) rotate(-2deg);
    box-shadow: 0 6px 30px rgba(232, 93, 4, 0.5);
}

.logo img {
    width: 28px;
    height: 28px;
}

.brand-info {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.brand h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.1;
    color: var(--text);
}

.brand span {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

main {
    padding: 120px 8% 80px;
    max-width: 1400px;
    margin: 0 auto;
}

.hero {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.hero-section {
    opacity: 0;
    transform: translateY(40px);
    animation: sectionReveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    content-visibility: auto;
    contain-intrinsic-size: 0 500px;
}

.hero-section:nth-child(1) { animation-delay: 0.5s; }
.hero-section:nth-child(2) { animation-delay: 0.65s; }
.hero-section:nth-child(3) { animation-delay: 0.8s; }
.hero-section:nth-child(4) { animation-delay: 0.95s; }

.github-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    overflow: hidden;
}

.github-stats img {
    max-width: 100%;
    height: auto;
    width: min(550px, 90vw);
}

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

.hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 20px;
    letter-spacing: -1.5px;
    line-height: 1.1;
    position: relative;
    display: inline-block;
}

.hero h1::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    animation: underlineGrow 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 1.2s;
}

@keyframes underlineGrow {
    to {
        transform: scaleX(1);
    }
}

.hero h2 {
    font-size: clamp(16px, 1.8vw, 19px);
    font-weight: 400;
    color: var(--text-dim);
    max-width: 720px;
    line-height: 1.75;
}

#logo_container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.logo-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 12px;
    background: var(--panel);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: none;
}

.logo-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(232, 93, 4, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.logo-wrapper:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(232, 93, 4, 0.3);
    box-shadow: 
        0 12px 40px rgba(0,0,0,0.4),
        0 0 0 1px rgba(232, 93, 4, 0.1),
        0 0 60px rgba(232, 93, 4, 0.08);
}

.logo-wrapper:hover::before {
    opacity: 1;
}

.loghi {
    width: 44px;
    height: 44px;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 1;
}

.logo-wrapper:hover .loghi {
    transform: scale(1.15) rotate(5deg);
}

.logo-wrapper span {
    opacity: 0;
    color: var(--accent-glow);
    font-size: 12px;
    position: absolute;
    bottom: -30px;
    transition: opacity 0.2s ease-in-out;
    font-weight: bold;
}

.logo-wrapper:hover span {
    opacity: 1;
}

.projects_container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 28px;
    margin-bottom: 60px;
}

.project-card.featured-work {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    flex-wrap: nowrap;
    min-width: 0;
}

.project-card .project-preview {
    width: 50%;
    flex-shrink: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.project-card .project-preview .gallery-work {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-card .project-preview .visual-ref-title {
    margin: 0 0 12px 0;
    font-family: 'Poppins', sans-serif;
    color: var(--accent-glow);
    font-size: 18px;
    font-weight: 600;
}

.project-card .project-preview .mini-preview {
    flex: 1;
    min-height: 0;
}

.project-card .project-preview .mini-preview-frame {
    height: 100%;
    min-height: 280px;
    border: none;
    border-radius: 0;
    background: #080809;
    overflow: hidden;
    position: relative;
}

.project-card .project-content {
    width: 50%;
    flex-shrink: 0;
    min-width: 0;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-card {
    background: var(--panel);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(232, 93, 4, 0.06) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(232, 93, 4, 0.2);
    box-shadow: 
        0 20px 60px rgba(0,0,0,0.5),
        0 0 0 1px rgba(232, 93, 4, 0.08),
        0 0 80px rgba(232, 93, 4, 0.05);
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover .project-cover {
    filter: saturate(1.1);
}

@media (max-width: 768px) {
    .project-card.featured-work {
        flex-direction: column;
    }
    
    .project-card .project-preview,
    .project-card .project-content {
        width: 100%;
    }
}

.project-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    text-align: center;
}

.server-logo {
    width: 200px;
    height: 200px;
    object-fit: contain;
    border-radius: 10px;
}

.project-title {
    font-family: 'Poppins', sans-serif;
    margin: 0 0 12px 0;
    color: var(--text);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-align: center;
}

.project-header h3 {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    color: var(--text);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.visual-ref-title {
    margin: 0 0 16px 0;
    font-family: 'Poppins', sans-serif;
    color: var(--accent-glow);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.project-role {
    background: rgba(255,255,255,0.06);
    color: var(--muted-light);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.project-description {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}

.project-techs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.project-techs-works {
    display: flex;
    justify-items: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.project-techs-works .logo-wrapper {
    height: 38px;
    width: 38px;
}




.project-techs-works .logo-wrapper img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.project-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.project-link {
    color: var(--accent-glow);
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.project-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.project-link:hover {
    color: var(--accent-glow);
}

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

.mini-preview {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mini-preview-frame {
    flex: 1;
    min-height: 300px;
    border: none;
    border-radius: 0;
    background: #080809;
    overflow: hidden;
    position: relative;
}

.mini-preview iframe {
    width: 100%;
    height: 100%;
    border: 0;
    transform: none;
    pointer-events: auto; /* Abilitiamo l'interazione */
    cursor: url('https://i.ibb.co/sd9S9Nc1/navigation.png') 12 12, auto !important; /* Forza il cursore sull'iframe */
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mini-preview iframe.loaded {
    opacity: 1;
}

.iframe-loader {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: #080809;
    z-index: 10;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.iframe-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(232, 93, 4, 0.2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.iframe-loader span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
}

.gallery-work {
    display: flex;
    flex-direction: column;
    padding: 16px;
    height: 100%;
    background: transparent;
    border: none;
}

.contact_container {
    display: flex;
    gap: 24px;
    margin-top: 16px;
}

/* carosello tech stack */
.stack-section {
    margin-top: 100px;
    overflow: hidden;
    padding-bottom: 60px;
}

.stack-marquee {
    max-width: 1000px;
    margin: 40px auto 0;
    position: relative;
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.07); 
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.3); 
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    z-index: 1;
}


.stack-track {
    display: flex;
    width: max-content;
    animation: scrollStack 30s linear infinite;
}


.stack-marquee::before,
.stack-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.stack-marquee::before {
    left: 0;
    background: linear-gradient(to right, #0a0a0a 0%, transparent 100%);
}

.stack-marquee::after {
    right: 0;
    background: linear-gradient(to left, #0a0a0a 0%, transparent 100%);
}

.stack-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px; 
    padding: 12px 40px; 
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.8;
}

.stack-item:hover {
    transform: translateY(-10px);
    opacity: 1;
}

.stack-item img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.stack-item span {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent); 
    letter-spacing: 0.5px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.stack-item:hover span {
    opacity: 1;
    transform: translateY(0);
}

@keyframes scrollStack {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50%));
    }
}

@media (max-width: 768px) {
    .stack-item {
        padding: 20px 25px;
    }
    .stack-item img {
        width: 36px;
        height: 36px;
    }
    .stack-marquee::before,
    .stack-marquee::after {
        width: 80px;
    }
}

.contact-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: var(--panel);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-link::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(232, 93, 4, 0.15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-link:hover {
    transform: translateY(-4px) scale(1.05);
    border-color: rgba(232, 93, 4, 0.3);
    box-shadow: 
        0 16px 40px rgba(0,0,0,0.4),
        0 0 40px rgba(232, 93, 4, 0.1);
}

.contact-link:hover::before {
    opacity: 1;
}

#logo_ds, #logo_github {
    width: 32px;
    height: 32px;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 1;
    filter: brightness(0) invert(1);
}

#logo_github {
    filter: brightness(0) invert(1);
}

.contact-link:hover #logo_ds,
.contact-link:hover #logo_github {
    transform: scale(1.2) rotate(5deg);
}

footer {
    padding: 32px 40px;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer {
    color: var(--accent-glow);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.footer span {
    color: var(--accent);
    font-weight: 700;
}

.box.arrow {
    position: fixed;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    pointer-events: none;
    background: url('https://i.ibb.co/sd9S9Nc1/navigation.png') no-repeat center center;
    background-size: contain;
    z-index: 9999999999;
    transition: transform 0.08s ease-out;
}

* {
    cursor: none !important;
}

a, button, input, textarea {
    cursor: none !important;
}

a {
    cursor: none !important;
}

@media (max-width: 900px) {
    .nav {
        padding: 14px 24px;
    }
    
    main {
        padding: 100px 5% 60px;
    }
    
    .hero {
        gap: 60px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero h2 {
        font-size: 16px;
    }
    
    #logo_container {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 12px;
    }
    
    .logo-wrapper {
        padding: 14px 8px;
    }
    
    .loghi {
        width: 32px;
        height: 32px;
    }
    
    .contact_container {
        gap: 16px;
    }
    
    .contact-link {
        width: 54px;
        height: 54px;
    }
}

@media (max-width: 640px) {
    .hero h1 {
        font-size: 28px;
    }
    
    .project-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .project-links {
        gap: 12px;
    }
    
    .mini-preview-frame {
        min-height: 220px;
    }
    
    footer {
        padding: 24px 20px;
    }
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: #2a2a2e;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3a3a3e;
}

::selection {
    background: rgba(232, 93, 4, 0.3);
    color: var(--text);
}


/* developer card */


.code-card-wrapper {
    position: relative;
    perspective: 1000px;
}

.code-card-wrapper .tilt-card {
    position: relative;
    width: 100%;
    max-width: 380px;
    margin-left: auto;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(17, 17, 19, 0.9);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.02),
        0 20px 50px -20px rgba(0, 0, 0, 0.5),
        0 0 80px -30px rgba(232, 93, 4, 0.15);
    overflow: hidden;
    transform-style: preserve-3d;
    will-change: transform;
    transition: box-shadow 0.4s cubic-bezier(0.03, 0.98, 0.52, 0.99);
}

.code-card-wrapper .tilt-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.02) 50%,
        rgba(255, 255, 255, 0.05) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.code-card-wrapper .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(255, 255, 255, 0.02);
}

.code-card-wrapper .window-controls {
    display: flex;
    gap: 6px;
}

.code-card-wrapper .window-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.code-card-wrapper .window-dot.red { 
    background: linear-gradient(135deg, #ff5f57, #ff3b30);
    box-shadow: 0 0 10px rgba(255, 95, 87, 0.4);
}

.code-card-wrapper .window-dot.yellow { 
    background: linear-gradient(135deg, #ffbd2e, #ffb800);
    box-shadow: 0 0 8px rgba(255, 189, 46, 0.3);
}

.code-card-wrapper .window-dot.green { 
    background: linear-gradient(135deg, #28ca42, #28c840);
    box-shadow: 0 0 8px rgba(40, 202, 66, 0.3);
}

.code-card-wrapper .file-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: #71717a;
}

.code-card-wrapper .live-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 4px rgba(232, 93, 4, 0.6); }
    50% { opacity: 0.5; box-shadow: 0 0 8px rgba(232, 93, 4, 0.2); }
}

.code-card-wrapper .card-content {
    padding: 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    line-height: 1.6;
}

.code-card-wrapper .code-line {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.code-card-wrapper .line-number {
    color: rgba(113, 113, 122, 0.5);
    font-size: 9px;
    min-width: 16px;
    text-align: right;
    user-select: none;
    font-style: italic;
}

.code-card-wrapper .code-content {
    flex: 1;
}

.code-card-wrapper .keyword { color: #fb923c; font-weight: 500; }
.code-card-wrapper .string { color: #fdba74; }
.code-card-wrapper .number { color: #fca5a5; }
.code-card-wrapper .property { color: #e2e8f0; }
.code-card-wrapper .method { color: #f4f4f5; }
.code-card-wrapper .boolean { color: #c084fc; }

.code-card-wrapper .indent-1 { padding-left: 12px; }

.code-card-wrapper .card-glow {
    display: none;
}

.code-card-wrapper .tilt-card:hover {
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.02),
        0 25px 60px -20px rgba(0, 0, 0, 0.6),
        0 0 100px -30px rgba(232, 93, 4, 0.25);
}




.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 1100px) {
    .hero-split {
        grid-template-columns: 1fr;
    }
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delay for child elements */
.reveal-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-children.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-children.visible > *:nth-child(3) { transition-delay: 0.15s; }
.reveal-children.visible > *:nth-child(4) { transition-delay: 0.2s; }
.reveal-children.visible > *:nth-child(5) { transition-delay: 0.25s; }
.reveal-children.visible > *:nth-child(6) { transition-delay: 0.3s; }
.reveal-children.visible > *:nth-child(7) { transition-delay: 0.35s; }
.reveal-children.visible > *:nth-child(8) { transition-delay: 0.4s; }
.reveal-children.visible > *:nth-child(9) { transition-delay: 0.45s; }

.reveal-children.visible > * {
    opacity: 1;
    transform: translateY(0);
}

.hero-content {
    min-width: 0;
}
