/* 
   Assurance by Jummy - Brand Style Architecture
   Domain: assurancebyjummy.com.ng
   Creative Director: Jumoke Adijat Kolawole
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&family=Great+Vibes&display=swap');

:root {
    /* Color Palette (Default: Dark Theme) */
    --bg-primary: #0F0E0C;
    --bg-secondary: #171513;
    --text-primary: #FAF9F5;
    --text-secondary: #A9A59E;
    --text-muted: #75716C;
    --accent-gold: #C5A059;
    --accent-gold-dark: #A9843D;
    --accent-gold-light: #E2D3B8;
    --border-color: #23211D;
    --white: #171513;
    --black: #FAF9F5;
    --bg-header-scrolled: rgba(15, 14, 12, 0.85);
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-signature: 'Great Vibes', cursive;
    
    /* Animations & Transitions */
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
    /* Override for Light Theme */
    --bg-primary: #FAF9F5;
    --bg-secondary: #F3F1EC;
    --text-primary: #121212;
    --text-secondary: #555555;
    --text-muted: #8E8A85;
    --border-color: #E2DFD8;
    --white: #FFFFFF;
    --black: #000000;
    --bg-header-scrolled: rgba(250, 249, 245, 0.85);
}

/* Reset & Base Elements */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold-dark);
}

/* Background Artwork */
.luxury-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    opacity: 0.25;
}

.luxury-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(197, 160, 89, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(197, 160, 89, 0.03) 0%, transparent 40%);
}

.canvas-circle {
    position: absolute;
    border: 1px solid rgba(197, 160, 89, 0.15);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: rotateSlow 30s linear infinite;
}

.c-1 { width: 500px; height: 500px; border-style: dashed; }
.c-2 { width: 800px; height: 800px; }
.c-3 { width: 1100px; height: 1100px; border-style: dotted; }

@keyframes rotateSlow {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Luxury Header Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 4rem;
    transition: var(--transition-smooth);
    background: transparent;
}

header.scrolled {
    padding: 1rem 4rem;
    background: var(--bg-header-scrolled);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo span {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 5px;
    color: var(--accent-gold);
    text-transform: uppercase;
    margin-top: -3px;
}

.nav-menu {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition-fast);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-gold);
    transition: var(--transition-smooth);
}

.nav-menu a:hover {
    color: var(--accent-gold);
}

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

.nav-cta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    position: relative;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.icon-btn:hover {
    background-color: var(--bg-secondary);
    color: var(--accent-gold);
    transform: rotate(15deg);
}

/* Primary Luxury Button */
.btn-luxury {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--text-primary);
    color: var(--white);
    border: 1px solid var(--text-primary);
    padding: 0.9rem 2.2rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.btn-luxury::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--accent-gold);
    z-index: -1;
    transition: var(--transition-smooth);
}

.btn-luxury:hover {
    color: var(--white);
    border-color: var(--accent-gold);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.2);
}

.btn-luxury:hover::before {
    left: 0;
}

.btn-luxury-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-primary);
}

.btn-luxury-outline:hover {
    background-color: var(--text-primary);
    color: var(--white);
    border-color: var(--text-primary);
}

.btn-luxury-outline::before {
    display: none;
}

.mobile-only {
    display: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-smooth);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: 10rem 4rem 5rem;
    overflow: hidden;
}

.hero-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 4rem;
}

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

.hero-tag {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    display: block;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 5rem;
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.hero-title span {
    font-weight: 300;
    font-style: italic;
    color: var(--accent-gold);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 550px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.hero-gallery {
    position: relative;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-card {
    position: absolute;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.floating-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.floating-card:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 40px 80px rgba(197, 160, 89, 0.25);
    z-index: 15;
}

.floating-card:hover img {
    transform: scale(1.1);
}

/* Staggered card positioning */
.card-main {
    width: 320px;
    height: 450px;
    z-index: 5;
    border: 8px solid var(--white);
}

.card-sub-1 {
    width: 200px;
    height: 280px;
    top: 5%;
    left: -5%;
    z-index: 3;
    border: 4px solid var(--white);
}

.card-sub-2 {
    width: 220px;
    height: 300px;
    bottom: 5%;
    right: -5%;
    z-index: 4;
    border: 6px solid var(--white);
}

/* Sections Structure */
.section {
    padding: 8rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    position: relative;
}

.section-header {
    margin-bottom: 5rem;
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    display: block;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background-color: var(--accent-gold);
    margin: 1.5rem auto 0;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

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

/* About Narrative Section */
.about-image-container {
    position: relative;
}

.about-img-frame {
    width: 100%;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    background-color: var(--white);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.03);
}

.about-img-frame img {
    width: 100%;
    height: auto;
    display: block;
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background-color: var(--text-primary);
    color: var(--white);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-left: 4px solid var(--accent-gold);
}

.experience-badge h4 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--accent-gold);
}

.experience-badge p {
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 0.5rem;
}

.about-text h3 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.about-signature {
    font-family: var(--font-signature);
    font-size: 3.5rem;
    color: var(--accent-gold);
    margin-top: 2rem;
}

/* Competency / Expertise Cards */
.expertise-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    padding: 3rem 2.5rem;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.expertise-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-gold);
    box-shadow: 0 20px 40px rgba(197, 160, 89, 0.08);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 2rem;
    transition: var(--transition-smooth);
}

.expertise-card:hover .card-icon {
    transform: scale(1.2) rotate(5deg);
}

.expertise-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.expertise-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    flex-grow: 1;
}

/* Portfolio Collection Section */
.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.filter-btn {
    background: none;
    border: 1px solid var(--border-color);
    padding: 0.6rem 1.8rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 30px;
    transition: var(--transition-fast);
    color: var(--text-secondary);
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--accent-gold);
    color: #0F0E0C;
    border-color: var(--accent-gold);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.portfolio-item {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 3/4;
    box-shadow: 0 15px 30px rgba(0,0,0,0.03);
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
    opacity: 0;
    transition: var(--transition-smooth);
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-category {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
}

.portfolio-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: #FAF9F5;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.view-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #FAF9F5;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.view-btn span {
    font-size: 1.2rem;
    transition: var(--transition-smooth);
}

.view-btn:hover span {
    transform: translateX(5px);
}

/* Professional Timeline */
.timeline {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background-color: var(--border-color);
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 5rem;
    position: relative;
    width: 50%;
    padding-right: 4rem;
}

.timeline-item:nth-child(even) {
    align-self: flex-end;
    margin-left: 50%;
    padding-right: 0;
    padding-left: 4rem;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--accent-gold);
    border: 4px solid var(--bg-primary);
    position: absolute;
    right: -8px;
    top: 10px;
    z-index: 10;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -8px;
    right: auto;
}

.timeline-date {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
}

.timeline-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    transition: var(--transition-smooth);
}

.timeline-card:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 20px 40px rgba(197, 160, 89, 0.06);
    transform: translateY(-3px);
}

.timeline-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
}

.timeline-card h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.timeline-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Call to Action Resume Download Section */
.resume-cta {
    background-color: var(--bg-secondary);
    border-radius: 4px;
    padding: 6rem;
    text-align: center;
    border: 1px solid var(--border-color);
    margin-top: 5rem;
}

.resume-cta h3 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.resume-cta p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* Luxury Interactive Contact Form */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    padding: 5rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.02);
}

.contact-info h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.contact-details {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-details li {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.contact-details li span.detail-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition-smooth);
}

.contact-details li:hover span.detail-icon {
    background-color: var(--accent-gold);
    color: var(--white);
    transform: scale(1.1);
}

.contact-details h5 {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.contact-details p.detail-val {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0;
}

/* Elegant Form Styling */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.form-group {
    position: relative;
}

.form-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 0.8rem 0;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

.form-input:focus {
    outline: none;
    border-bottom-color: var(--accent-gold);
}

.form-label {
    position: absolute;
    left: 0;
    top: 0.8rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition-smooth);
}

.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
    top: -1.2rem;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent-gold);
    font-weight: 700;
}

/* Footer Section */
footer {
    background-color: #0F0E0C;
    color: #E2DFD8;
    padding: 6rem 4rem 3rem;
    border-top: 1px solid #1E1C18;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 4rem;
    border-bottom: 1px solid #23211D;
    margin-bottom: 3rem;
}

.logo.footer-logo {
    color: #FAF9F5;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3.5rem;
}

.footer-col h5 {
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-col a {
    text-decoration: none;
    color: #A9A59E;
    font-size: 0.9rem;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-col a::before {
    content: '\203A'; /* Chevron symbol › */
    font-size: 1.1rem;
    color: var(--accent-gold);
    transition: var(--transition-fast);
    line-height: 1;
    transform: translateX(0);
    display: inline-block;
}

.footer-col a:hover {
    color: var(--accent-gold); /* elegant high contrast gold */
    padding-left: 0.2rem;
}

.footer-col a:hover::before {
    transform: translateX(4px);
    color: var(--accent-gold);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #8E8A85;
    font-size: 0.85rem;
}

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

.social-icon {
    color: #8E8A85;
    text-decoration: none;
    transition: var(--transition-fast);
}

.social-icon:hover {
    color: var(--accent-gold);
    transform: translateY(-2px);
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 14, 12, 0.95);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 85%;
    max-height: 85%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    border: 5px solid var(--white);
}

.lightbox-caption {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-top: 1.5rem;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2.2rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.lightbox-close:hover {
    color: var(--accent-gold);
    transform: rotate(90deg);
}

/* Intersection Observer Reveal Animation Classes */
.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Media Queries */
@media (max-width: 1200px) {
    header, header.scrolled {
        padding: 1rem 2rem;
    }
    .hero {
        padding: 8rem 2rem 4rem;
    }
    .section {
        padding: 6rem 2rem;
    }
    .hero-title {
        font-size: 4rem;
    }
    .grid-2 {
        gap: 3rem;
    }
}

@media (max-width: 991px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 6rem;
    }
    .hero-gallery {
        height: 500px;
        order: -1;
    }
    .card-main {
        width: 280px;
        height: 380px;
    }
    .card-sub-1 {
        width: 180px;
        height: 240px;
    }
    .card-sub-2 {
        width: 190px;
        height: 260px;
    }
    .grid-3 {
        grid-template-columns: 1fr 1fr;
    }
    .portfolio-grid {
        grid-template-columns: 1fr 1fr;
    }
    .timeline::before {
        left: 20px;
    }
    .timeline-item {
        width: 100%;
        padding-right: 0;
        padding-left: 3rem;
    }
    .timeline-item:nth-child(even) {
        margin-left: 0;
        padding-left: 3rem;
    }
    .timeline-dot {
        left: 12px !important;
        right: auto;
    }
    .contact-container {
        grid-template-columns: 1fr;
        gap: 4rem;
        padding: 3rem;
    }
}

@media (max-width: 768px) {
    /* Header Responsive Optimization */
    header, header.scrolled {
        padding: 0.8rem 1.5rem;
    }
    .logo {
        font-size: 1.1rem;
    }
    .logo span {
        font-size: 0.55rem;
        letter-spacing: 3px;
    }
    .nav-cta {
        gap: 0.75rem;
    }
    .nav-cta .btn-luxury {
        display: none !important;
    }
    #themeToggleBtn {
        padding: 0.3rem;
    }
    #themeToggleBtn span {
        font-size: 18px !important;
    }

    .mobile-only {
        display: block !important;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background-color: var(--bg-primary);
        box-shadow: -10px 0 30px rgba(0,0,0,0.15);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        z-index: 1000;
        padding: 3rem;
    }
    .nav-menu.active {
        display: flex;
    }
    .menu-toggle {
        display: flex;
    }
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    .section {
        padding: 4rem 1.2rem !important;
    }
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .hero-title {
        font-size: 3rem;
    }
    .resume-cta {
        padding: 3rem 1.5rem;
    }

    /* Gallery & Portfolio Responsive Adjustments */
    .portfolio-filter {
        flex-wrap: wrap !important;
        gap: 0.75rem 0.5rem !important;
        margin-bottom: 2.5rem !important;
        padding: 0 0.5rem !important;
    }
    .filter-btn {
        padding: 0.5rem 1.2rem !important;
        font-size: 0.7rem !important;
        letter-spacing: 1px !important;
    }
    .portfolio-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    /* Contact Section Overflow Fix */
    .contact-container {
        padding: 2.5rem 1.2rem !important;
        gap: 3rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden;
    }
    .contact-details li {
        gap: 1rem !important;
        width: 100%;
    }
    .contact-details p.detail-val {
        font-size: 0.9rem !important;
        word-break: break-all !important;
    }

    /* Footer Centering on Mobile */
    footer {
        padding: 4rem 1.5rem 2rem;
    }
    .footer-top {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
        align-items: center;
    }
    .footer-top > div {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .logo.footer-logo {
        align-items: center;
    }
    .footer-links {
        width: 100%;
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
        text-align: center;
    }
    .footer-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-col ul {
        align-items: center;
    }
    .footer-col a {
        justify-content: center;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        align-items: center;
    }
}

@media (max-width: 576px) {
    .grid-3, .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .footer-links {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .experience-badge {
        padding: 1.5rem 1rem;
        bottom: -20px;
        right: -10px;
    }
    .experience-badge h4 {
        font-size: 1.8rem;
    }
}
