/* ==========================================================================
   CSS DESIGN SYSTEM - NIHINDU PORTFOLIO (FOUR FRAMES VISUALS)
   ========================================================================== */

/* Design Tokens & Variables */
:root {
    --color-bg: #000000;
    --color-bg-secondary: #080808;
    --color-card-bg: #0c0c0c;
    --color-orange: #ff6600;
    --color-orange-glow: rgba(255, 102, 0, 0.15);
    --color-orange-bright: #ff8533;
    --color-text-primary: #ffffff;
    --color-text-secondary: #a3a3a3;
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-hover: rgba(255, 102, 0, 0.4);
    
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Poppins', sans-serif;
    
    --transition-smooth: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-fast: all 0.25s ease-out;
}

/* Reset and Global Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

button, input, textarea {
    font-family: inherit;
    background: none;
    border: none;
    outline: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.orange-text {
    color: var(--color-orange);
}

/* ==========================================================================
   GLOWING ATMOSPHERE
   ========================================================================== */
.glow-atmosphere {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.glow-leak {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.16;
    mix-blend-mode: screen;
    pointer-events: none;
}

.glow-1 {
    top: -15%;
    right: -10%;
    width: 55vw;
    height: 55vw;
    background: radial-gradient(circle, var(--color-orange) 0%, transparent 70%);
    animation: drift-slow 22s infinite alternate ease-in-out;
}

.glow-2 {
    bottom: -15%;
    left: -10%;
    width: 65vw;
    height: 65vw;
    background: radial-gradient(circle, var(--color-orange) 0%, transparent 75%);
    animation: drift-medium 28s infinite alternate ease-in-out;
}

.glow-3 {
    top: 35%;
    left: 25%;
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, var(--color-orange) 0%, transparent 70%);
    opacity: 0.08;
    animation: drift-slow 35s infinite alternate-reverse ease-in-out;
}

.glow-4 {
    top: 15%;
    left: -5%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--color-orange) 0%, transparent 70%);
    opacity: 0.07;
    animation: drift-medium 20s infinite alternate-reverse ease-in-out;
}

@keyframes drift-slow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(6%, 6%) scale(1.1); }
}

@keyframes drift-medium {
    0% { transform: translate(0, 0) scale(1.05); }
    100% { transform: translate(-8%, 4%) scale(0.95); }
}

/* ==========================================================================
   HEADER NAVIGATION
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: transparent;
    border-bottom: none;
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    padding: 8px 0;
    background-color: transparent;
    border-bottom: none;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: var(--transition-smooth);
}

.main-header.scrolled .header-container {
    height: 65px;
}

.logo-img {
    height: 52px; /* Increased branding logo scale */
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.main-header.scrolled .logo-img {
    height: 42px; /* Scale logo down slightly when header shrinks on scroll */
}

.logo:hover .logo-img {
    filter: drop-shadow(0 0 8px var(--color-orange));
}

.nav-menu {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    position: relative;
    padding: 6px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-orange);
    transition: var(--transition-fast);
    box-shadow: 0 0 8px var(--color-orange);
}

.nav-link:hover, .nav-link.active {
    color: var(--color-text-primary);
}

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

/* Mobile Menu Toggle */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 18px;
    cursor: pointer;
    z-index: 101;
}

.mobile-nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-text-primary);
    transition: var(--transition-fast);
}

.mobile-nav-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: var(--color-orange);
}

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

.mobile-nav-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: var(--color-orange);
}

/* Mobile Dropdown Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(20px);
    z-index: 99;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-nav.open {
    right: 0;
}

.mobile-link {
    font-size: 2rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--color-text-secondary);
    letter-spacing: 2px;
}

.mobile-link:hover {
    color: var(--color-orange);
    text-shadow: 0 0 15px rgba(255, 102, 0, 0.6);
}

/* ==========================================================================
   FRAME SYSTEM (FULL PAGE PANEL STACKING)
   ========================================================================== */
.frame-section {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.frame-container {
    width: 90%;
    max-width: 1400px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.frame-container-centered {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto; /* Center horizontally */
    display: flex;
    align-items: flex-start; /* Align contents to top, preventing vertical centering overflow crops */
    justify-content: center;
}

/* ==========================================================================
   FRAME 1: HERO BANNER (VISUAL HERO PANEL)
   ========================================================================== */
.hero-banner-frame {
    background-color: var(--color-bg);
}

.hero-visual {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end; /* Portrait touches the bottom of the section */
    justify-content: center;
}

.hero-bg-text {
    position: absolute;
    top: 36%; /* Positioned lower to overlap with upper chest/shoulders */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    pointer-events: none;
    z-index: 1; /* Renders behind the image wrapper */
}

.hero-bg-text .sub-heading {
    display: block;
    font-size: clamp(0.95rem, 2vw, 1.3rem);
    font-weight: 500;
    letter-spacing: 8px;
    color: var(--color-text-primary);
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.main-name {
    font-family: var(--font-heading);
    font-size: clamp(5.2rem, 12vw, 10.5rem); /* Substantially larger on both desktop and mobile views */
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: 2px;
    color: var(--color-text-primary);
    text-shadow: 0 12px 35px rgba(0, 0, 0, 0.95);
}

.orange-char {
    color: var(--color-orange);
    text-shadow: 0 0 35px rgba(255, 102, 0, 0.95);
}

/* Photo Wrapper & Waist-Crop settings - Zoomed in */
.hero-img-wrapper {
    position: relative;
    width: 82%; /* Increased to zoom in more */
    max-width: 440px; /* Increased to zoom in more */
    height: 560px; /* Increased height to crop waist down properly */
    overflow: hidden; /* Cuts off bottom of hero.png */
    z-index: 3; /* Displays in front of the text */
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.hero-img-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 450px;
    aspect-ratio: 1;
    background: radial-gradient(circle, rgba(255, 102, 0, 0.55) 0%, transparent 70%);
    filter: blur(48px);
    pointer-events: none;
    z-index: 2; /* Layered in front of Orbitron text, behind photo wrapper */
}

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top; /* Align photo to top to crop waist down */
    transform: scale(1.18); /* Additional scale zoom inside wrapper */
    transform-origin: top center;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.95));
    transition: var(--transition-smooth);
    user-select: none;
}

.hero-photo:hover {
    transform: translateY(-5px) scale(1.21);
}


/* ==========================================================================
   FRAME 2: ABOUT (BIO & RESUME LINK)
   ========================================================================== */
.about-frame {
    background-color: var(--color-bg-secondary);
    background-image: radial-gradient(circle at center, rgba(255, 102, 0, 0.05) 0%, transparent 60%);
}

.about-content-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 820px;
    padding: 2rem;
    z-index: 2;
}

.bio-textbox {
    margin-bottom: 3rem;
}

.bio-intro {
    font-size: clamp(1.05rem, 1.8vw, 1.22rem);
    font-weight: 300;
    line-height: 2.1;
    color: var(--color-text-secondary);
    text-align: justify;
    text-align-last: center;
}

.bio-intro .orange-text {
    font-weight: 600;
    color: var(--color-orange);
}

/* Rounded Pill Button - Dark brown / Orange accent */
.btn-cv {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.1rem 3.2rem;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    background-color: rgba(35, 17, 7, 0.7);
    border: 1px solid #3d200e;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    transition: var(--transition-smooth);
    color: var(--color-text-primary);
}

.btn-cv:hover {
    background-color: rgba(255, 102, 0, 0.16);
    border-color: var(--color-orange);
    box-shadow: 0 0 25px rgba(255, 102, 0, 0.35);
    transform: translateY(-3px);
}

/* ==========================================================================
   FRAME 3: WORKS COLLAGE GRID (SOCIAL MEDIA POSTS)
   ========================================================================== */
.works-grid-frame {
    background-color: var(--color-bg);
    height: auto !important; /* Grow container height naturally */
    min-height: 100vh;
    padding: 140px 0 80px 0; /* Clear header overlap space and prevent top crops */
    overflow: visible !important; /* Override parent frame section overflow:hidden */
    display: block !important; /* Prevent vertical centering Y-overflow clipping */
}

/* 10-Column Collage Grid */
.collage-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 12px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
    z-index: 2;
}

.collage-card {
    position: relative;
    border-radius: 6px;
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    cursor: default; /* Not clickable */
    overflow: visible; /* Prevent any edge clipping */
    transition: var(--transition-smooth);
}

.card-inner {
    position: relative;
    width: 100%;
    height: auto; /* Natural image height flow */
}

/* Ensure designs are NOT cropped (contain fully) */
.collage-card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain; /* Prevents cropping */
    border-radius: 6px; /* Smooth corners */
    transition: transform 0.6s ease;
}

.card-overlay {
    display: none !important; /* Fully disabled hover texts */
}

.card-category {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-orange);
    margin-bottom: 0.2rem;
}

.card-title {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-primary);
}

/* Card Hover States - Zoom & Rotate popout motion */
.collage-card:hover {
    border-color: var(--color-orange);
    box-shadow: 0 0 25px rgba(255, 102, 0, 0.35);
    z-index: 10; /* Ensure active element floats on top */
}

.collage-card:hover img {
    transform: scale(1.06) rotate(1.5deg);
}

.collage-card:hover .card-overlay {
    opacity: 1;
}

/* Grid Placements matching UI Screenshot precisely */
.grid-tid {
    grid-column: 1 / 3;
    grid-row: 1;
}

.grid-zest {
    grid-column: 1 / 3;
    grid-row: 2;
}

.grid-vita {
    grid-column: 3 / 9;
    grid-row: 1 / 3;
}

.grid-wish {
    grid-column: 9 / 11;
    grid-row: 1;
}

.grid-sana {
    grid-column: 9 / 11;
    grid-row: 2;
}

/* Bottom Row */
.grid-door {
    grid-column: 1 / 3;
    grid-row: 3;
}

.grid-window {
    grid-column: 3 / 5;
    grid-row: 3;
}

.grid-family {
    grid-column: 5 / 7;
    grid-row: 3;
}

.grid-car {
    grid-column: 7 / 9;
    grid-row: 3;
}

.grid-career {
    grid-column: 9 / 11;
    grid-row: 3;
}

/* ==========================================================================
   FRAME 4: STATS & FEATURED (adbou 2)
   ========================================================================== */
.works-stats-frame {
    background-color: var(--color-bg-secondary);
    background-image: radial-gradient(circle at center, rgba(255, 102, 0, 0.05) 0%, transparent 60%);
}

.stats-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 900px;
    z-index: 2;
}

.stats-panel .section-title {
    font-size: clamp(1.8rem, 3.8vw, 3rem);
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1.1;
    margin-bottom: 3rem;
    text-transform: uppercase;
}

/* Featured side-by-side showcase block with badge */
.featured-showcase-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.8rem;
    width: 100%;
    margin-bottom: 3.5rem;
    position: relative;
}

.showcase-card {
    flex: 1;
    max-width: 250px;
    cursor: default; /* Not clickable */
    overflow: visible; /* Change to visible to prevent any potential crop issues */
    border-radius: 8px;
    border: 1px solid var(--color-border);
    transition: var(--transition-smooth);
}

.showcase-card:hover {
    border-color: var(--color-orange);
    box-shadow: 0 0 25px rgba(255, 102, 0, 0.35);
    transform: translateY(-4px);
}

.showcase-img {
    width: 100%;
    height: auto;
    object-fit: contain; /* Prevents cropping */
    display: block;
    border-radius: 8px; /* Apply border-radius directly to the image since card overflow is visible */
    transition: transform 0.6s ease;
}

.showcase-card:hover .showcase-img {
    transform: scale(1.06) rotate(1.5deg);
}

/* Overlay Stats Badge in Center */
.stats-counter-badge {
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    padding: 1.4rem 1.8rem;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 130px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    z-index: 5;
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-orange);
    line-height: 1;
    margin-bottom: 0.2rem;
}

.stats-label {
    font-size: 0.7rem;
    letter-spacing: 2px;
    font-weight: 600;
    color: var(--color-text-primary);
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    max-width: 620px;
    opacity: 0.8;
}

/* ==========================================================================
   FRAME 5: CONTACT PAGE
   ========================================================================== */
.contact-frame {
    background-color: var(--color-bg);
    min-height: 100vh;
    height: auto; /* Expand naturally on smaller screens */
    padding: 120px 0 60px 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4.5rem;
    align-items: start;
}

.contact-heading {
    font-size: clamp(2rem, 3.8vw, 3.2rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.contact-sub {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-bottom: 3.5rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
    margin-bottom: 3.5rem;
}

.method-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.method-icon {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.method-item:hover .method-icon {
    border-color: var(--color-orange);
    background-color: rgba(255, 102, 0, 0.02);
}

.method-title {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-text-secondary);
    margin-bottom: 0.2rem;
}

.method-link {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--color-text-primary);
}

.method-link:hover {
    color: var(--color-orange);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    transition: var(--transition-smooth);
}

.social-icon:hover {
    color: var(--color-text-primary);
    border-color: var(--color-orange);
    background-color: var(--color-orange-glow);
    box-shadow: 0 0 15px rgba(255, 102, 0, 0.25);
    transform: translateY(-2px);
}

/* Form Styles */
.contact-form-wrapper {
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    padding: 3rem;
    border-radius: 16px;
    position: relative;
    transition: var(--transition-smooth);
}

.contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    border: 1px solid transparent;
    background: linear-gradient(135deg, var(--color-orange), transparent 45%) border-box;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.25;
    transition: var(--transition-smooth);
}

.contact-form-wrapper:hover::before {
    opacity: 0.55;
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-input {
    width: 100%;
    padding: 0.85rem 0;
    font-size: 1rem;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid var(--color-border);
    transition: border-color 0.3s ease;
}

.form-input.text-area {
    min-height: 100px;
    resize: none;
}

.form-label {
    position: absolute;
    top: 0.85rem;
    left: 0;
    font-size: 1rem;
    color: var(--color-text-secondary);
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), font-size 0.3s cubic-bezier(0.25, 1, 0.5, 1), color 0.3s ease;
}

.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
    transform: translateY(-20px);
    font-size: 0.8rem;
    color: var(--color-orange);
}

.input-bar {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--color-orange);
    transition: width 0.3s ease, left 0.3s ease;
    box-shadow: 0 0 8px var(--color-orange);
}

.form-input:focus ~ .input-bar {
    width: 100%;
    left: 0;
}

.form-input:focus {
    border-bottom-color: transparent;
}

.btn-submit {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1.1rem;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    background-color: var(--color-orange);
    color: var(--color-text-primary);
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(255, 102, 0, 0.2);
    transition: var(--transition-smooth);
}

.btn-submit:hover {
    background-color: var(--color-orange-bright);
    box-shadow: 0 0 25px rgba(255, 102, 0, 0.45);
    transform: translateY(-2px);
}

.btn-submit svg {
    transition: transform 0.3s ease;
}

.btn-submit:hover svg {
    transform: translate(2px, -2px);
}

.form-status {
    margin-top: 1.2rem;
    font-size: 0.9rem;
    text-align: center;
    min-height: 24px;
}

.form-status.success { color: #4ade80; }
.form-status.error { color: #f87171; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
    background-color: var(--color-bg);
    border-top: 1px solid var(--color-border);
    padding: 2.2rem 0;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    z-index: 2;
    position: relative;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}



/* ==========================================================================
   SCROLL REVEAL / MOTION CLASSES
   ========================================================================== */
.reveal-fade-up {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.9s cubic-bezier(0.25, 1, 0.5, 1), transform 0.9s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-fade-left {
    opacity: 0;
    transform: translateX(-35px);
    transition: opacity 0.9s cubic-bezier(0.25, 1, 0.5, 1), transform 0.9s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-fade-right {
    opacity: 0;
    transform: translateX(35px);
    transition: opacity 0.9s cubic-bezier(0.25, 1, 0.5, 1), transform 0.9s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-active {
    opacity: 1;
    transform: translate(0, 0);
}

.delay-1 { transition-delay: 0.05s; }
.delay-2 { transition-delay: 0.1s; }
.delay-3 { transition-delay: 0.15s; }
.delay-4 { transition-delay: 0.2s; }
.delay-5 { transition-delay: 0.25s; }

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

/* Tablets / Medium Viewports */
@media (max-width: 1100px) {
    .frame-section {
        height: auto;
        min-height: 100vh;
        padding: 100px 0 50px 0;
    }

    .hero-img-wrapper {
        height: 420px;
    }

    .collage-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 600px;
        gap: 8px;
    }

    .collage-card {
        grid-column: span 1 !important;
        grid-row: auto !important;
    }

    .grid-vita {
        grid-column: span 2 !important; /* Spans full width on tablet stack */
    }

    .featured-showcase-row {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

    .showcase-card {
        width: 100%;
        max-width: 260px;
    }

    .stats-counter-badge {
        width: 100%;
        max-width: 260px;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .hero-banner-frame {
        height: 100vh !important; /* Maintain full screen home frame */
        padding: 0 !important; /* Remove push padding */
    }

/* Mobile Screens */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .mobile-nav-toggle {
        display: flex;
    }

    .hero-logo-wrapper {
        top: 105px;
    }

    .hero-banner-frame {
        height: 100vh !important; /* Maintain full screen home frame */
        padding: 0 !important; /* Remove push padding */
    }

    .hero-bg-text {
        top: 42% !important; /* Move text lower so it overlaps behind the head of the photo */
    }

    .hero-img-wrapper {
        width: 80%;
        height: 440px; /* Align visual elements to bottom */
        margin-top: auto; /* Push wrapper to bottom of full height flex hero */
    }

    .hero-photo {
        transform: scale(1.18) !important; /* Reset zoom to match desktop proportions */
    }

    .hero-img-glow {
        width: 320px;
        height: 320px;
        filter: blur(35px);
    }

    .contact-form-wrapper {
        padding: 2.2rem 1.8rem;
    }
}

@media (max-width: 480px) {
    .main-name {
        letter-spacing: 0;
    }

    .hero-bg-text {
        top: 45% !important; /* Move text lower so it overlaps behind the head of the photo */
    }

    .hero-img-wrapper {
        width: 90%;
        height: 380px; /* Align visual elements to bottom */
        margin-top: auto;
    }

    .hero-photo {
        transform: scale(1.18) !important; /* Reset zoom to match desktop proportions */
    }

    .hero-img-glow {
        width: 260px;
        height: 260px;
        filter: blur(30px);
    }

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

    .grid-vita {
        grid-column: span 1 !important;
    }

    .contact-form-wrapper {
        padding: 1.8rem 1.2rem;
    }
}
