/* CSS Custom Properties & Variables */
:root {
    /* Colors */
    --color-dark: #1A1F1C;
    --color-dark-green: #1E2A20;
    --color-accent-green: #4A5E4B;
    --color-stripe-dark-green: #2D4A2E;
    --color-stripe-green: #5A8F5C;
    --color-stripe-orange: #D4854A;
    --color-stripe-salmon: #C98B7B;
    --color-cream: #F5F0E8;
    --color-white: #FFFFFF;
    --color-text-light: #E8E8E8;
    --color-text-muted: #A0A0A0;
    --color-button-dark: #2D3E2E;

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 5rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-white);
    background-color: var(--color-dark);
    /* overflow-x: hidden; */
}

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

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

ul,
ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: var(--spacing-xl);
    color: var(--color-dark);
}

.section-title-light {
    color: var(--color-white);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-medium);
    text-transform: uppercase;
}

.btn-primary {
    background-color: var(--color-button-dark);
    color: var(--color-white);
    border: 2px solid var(--color-button-dark);
}

.btn-primary:hover {
    background-color: var(--color-accent-green);
    border-color: var(--color-accent-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(74, 94, 75, 0.3);
}

.btn-dark {
    background-color: var(--color-button-dark);
    color: var(--color-white);
    border: 2px solid var(--color-button-dark);
}

.btn-dark:hover {
    background-color: #1a2a1c;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

.btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-dark);
}

.btn-light {
    background-color: var(--color-white);
    color: var(--color-dark);
    border: 2px solid var(--color-white);
}

.btn-light:hover {
    background-color: transparent;
    color: var(--color-white);
}

/* ============================================
   Header
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    background: var(--color-white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    /* Align with page content padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.logo-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-stripe-orange), #e89a5c);
    box-shadow: 0 2px 8px rgba(212, 133, 74, 0.4);
}

.logo-image {
    height: 50px;
    width: auto;
    transition: transform var(--transition-fast), filter var(--transition-fast);
}

.logo-image:hover {
    transform: scale(1.05);
}

.footer-brand .logo-image {
    height: 60px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: #553C7B;
    letter-spacing: 0.5px;
    margin-left: 0;
}

.menu-toggle {
    color: #7B5EA7;
    font-size: 1rem;
    font-weight: 800;
    /* Bolder text */
    letter-spacing: 2px;
    padding: 12px 40px;
    /* Increased padding */
    transition: all var(--transition-fast);
    border: 3px solid rgba(123, 94, 167, 0.3);
    /* Slightly bolder border */
    border-radius: 50px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    /* Slight nudge left */
}

.menu-toggle:hover {
    opacity: 0.8;
    background: rgba(123, 94, 167, 0.05);
}

/* ============================================
   Navigation Overlay
   ============================================ */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 31, 28, 0.98);
    z-index: 200;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--spacing-2xl);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium);
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nav-close {
    position: absolute;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    font-size: 2.5rem;
    color: var(--color-white);
    transition: transform var(--transition-fast);
}

.nav-close:hover {
    transform: rotate(90deg);
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.nav-link {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--color-white);
    transition: color var(--transition-fast), transform var(--transition-fast);
    transform-origin: left;
}

.nav-link:hover {
    transform: translateX(10px);
}

/* Hero Section */
/* Hero Section */
.hero {
    min-height: 100vh;
    padding: var(--spacing-2xl);
    /* Adjust padding to account for fixed header visually, but keep it balanced */
    padding-top: 100px;
    padding-bottom: 50px;
    background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-green) 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Vertically center the container */
}

.hero-container {
    width: 100%;
    max-width: 1400px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.hero-content {
    max-width: 500px;
    z-index: 10;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
    color: var(--color-cream);
}

.hero-title em {
    font-style: italic;
    display: block;
}

.hero-description {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-xl);
    max-width: 420px;
    line-height: 1.8;
    text-align: justify;
}

.hero-images {
    position: relative;
    min-height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-video-container {
    width: 100%;
    max-width: 500px;
    height: auto;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    /* transform: rotate(-2deg); Removed to make straight */
    transition: transform var(--transition-medium);
}

.hero-video-container:hover {
    transform: scale(1.02);
}

.hero-video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ============================================
   About Section
   ============================================ */
.about {
    background-color: var(--color-cream);
    padding: var(--spacing-2xl) var(--spacing-lg);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
    /* Vertically center aligned */
}

.about-text {
    color: var(--color-dark);
}

.about-intro {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    text-align: justify;
}

.about-intro strong {
    color: #B8860B;
}

.about-details {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-xl);
    color: #4a4a4a;
    text-align: justify;
}

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    max-width: 350px;
    /* Reduced from full width */
    margin: 0 auto;
    /* Center in its column */
}

.about-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ============================================
   Portfolio Section
   ============================================ */
.portfolio {
    background-color: var(--color-dark);
    padding: var(--spacing-2xl) var(--spacing-lg);
}

.portfolio-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    /* Responsive grid */
    gap: 30px;
    margin-bottom: var(--spacing-xl);
}

.portfolio-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-medium);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: left;
    /* Align text left for card style */
    display: flex;
    flex-direction: column;
}

.portfolio-item:hover {
    transform: translateY(-8px);
    border-color: rgba(123, 94, 167, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.portfolio-image {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 0;
    /* Remove radius since it's inside the card */
    margin-bottom: 0;
    /* Remove margin as we have padding in body */
    background: #000;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.portfolio-card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.portfolio-description {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.portfolio-tag {
    display: inline-block;
    background: rgba(123, 94, 167, 0.15);
    color: #9B7BC7;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    align-self: flex-start;
}

.portfolio-link {
    font-size: 0.9rem;
    color: #7B5EA7;
    font-weight: 500;
    margin-top: auto;
    /* Push to bottom */
    display: inline-block;
    transition: color 0.3s ease;
}

.portfolio-item:hover .portfolio-link {
    color: #9B7BC7;
}

.portfolio-cta {
    margin-top: var(--spacing-lg);
}

/* ============================================
   Colorful Stripes
   ============================================ */
.stripes {
    display: flex;
    flex-direction: column;
}

.stripe {
    height: 40px;
}

.stripe-dark-green {
    background-color: var(--color-stripe-dark-green);
}

.stripe-green {
    background-color: var(--color-stripe-green);
    height: 20px;
}

.stripe-orange {
    background-color: var(--color-stripe-orange);
}

.stripe-salmon {
    background-color: var(--color-stripe-salmon);
    height: 25px;
}

/* ============================================
   Scroll Animations
   ============================================ */
.reveal-section {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

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

/* ============================================
   Footer
   ============================================ */
.footer {
    background: linear-gradient(180deg, var(--color-dark) 0%, #0d1210 100%);
    padding: 60px var(--spacing-lg) 20px;
    /* Reduced top/bottom padding */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 0.75fr 1fr 1.25fr;
    gap: 80px;
    padding-bottom: 20px;
    /* Greatly reduced bottom padding */
}

/* Brand Column */
.footer-brand {
    max-width: 350px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: var(--spacing-md);
}

.footer-logo .logo-image {
    height: 40px;
    width: auto;
}

.footer-logo .logo-text {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-white);
    font-style: italic;
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* Footer Headings */
.footer-heading {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-stripe-orange), transparent);
}

/* Quick Links */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 14px;
}

.footer-menu a {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    display: inline-block;
}

.footer-menu a:hover {
    color: var(--color-white);
    transform: translateX(5px);
}

/* Connect Column */
.footer-email {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    transition: color var(--transition-fast);
}

.footer-email:hover {
    color: #7B5EA7;
}

.email-icon {
    font-size: 1rem;
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.social-link:hover {
    color: var(--color-white);
    transform: translateX(5px);
}

.social-link span {
    font-size: 1rem;
}

/* Platform Buttons */
.footer-platforms {
    margin-bottom: var(--spacing-lg);
}

.platform-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.platform-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-color: #2d3748;
    color: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.platform-btn:hover {
    background-color: #4a5568;
    transform: translateY(-2px);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.platform-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    fill: currentColor;
    flex-shrink: 0;
}

.platform-btn span {
    font-weight: 500;
    font-size: 0.9rem;
    flex-grow: 1;
    text-align: center;
}

/* Footer Bottom */
.footer-bottom {
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.footer-bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--spacing-lg);
    /* Match main container padding */
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin: 0;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-legal a {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: var(--color-white);
}

.footer-legal .separator {
    color: rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
}

.chat-btn {
    background: linear-gradient(135deg, #7B5EA7, #553C7B);
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: none;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 15px rgba(123, 94, 167, 0.3);
}

.chat-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(123, 94, 167, 0.4);
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        text-align: center;
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-menu a:hover,
    .social-link:hover {
        transform: none;
    }

    .footer-social {
        align-items: center;
    }

    .footer-links,
    .footer-menu,
    .platform-list {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .platform-list .social-link {
        justify-content: center !important;
        width: 100%;
        display: flex;
        text-align: center;
    }

    .social-link {
        justify-content: center !important;
    }

    .platform-btn {
        justify-content: center;
        width: 100%;
        /* Ensure full width clickable area */
        max-width: 300px;
        /* Limit width */
        margin: 0 auto;
        /* Center the button itself */
    }

    .platform-btn span {
        flex-grow: 0;
        text-align: center;
    }

    .footer-email {
        justify-content: center;
        display: inline-flex;
        /* Use inline-flex to allow margin auto to center it */
        margin-left: auto;
        margin-right: auto;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        /* Re-verify border */
        padding-top: var(--spacing-md);
        width: 100%;
    }

    .footer-bottom p {
        width: 100%;
    }

    .footer-bottom button {
        margin-top: 10px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 100px;
    }

    .hero-content {
        max-width: 100%;
        margin-bottom: var(--spacing-xl);
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-images {
        height: 350px;
    }

    .hero-image-1 {
        width: 220px;
        height: 260px;
    }

    .hero-image-2 {
        width: 200px;
        height: 230px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .about-text {
        order: 1;
    }

    .about-image {
        order: 2;
        max-width: 500px;
        margin: 0 auto;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .footer-links {
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-2xl: 3rem;
    }

    .header {
        padding: 15px 0;
    }

    .header-container {
        padding: 0 20px;
    }

    .hero-container {
        display: flex;
        /* Switch to flex for easier vertical ordering */
        flex-direction: column-reverse;
        /* Images on top, content on bottom */
        gap: var(--spacing-xl);
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        margin: 0 auto;
    }

    .hero-images {
        min-height: auto;
        /* Remove fixed height */
        width: 100%;
        max-width: 300px;
        /* Limit logo size on mobile */
        margin: 0 auto;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
        /* Center definition text on mobile */
    }

    .menu-toggle {
        padding: 10px 24px;
        font-size: 0.9rem;
    }

    .hero {
        min-height: auto;
        padding: var(--spacing-xl) var(--spacing-md);
        padding-top: 100px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-images {
        height: 280px;
    }

    .hero-image-1 {
        width: 180px;
        height: 210px;
    }

    .hero-image-2 {
        width: 160px;
        height: 190px;
    }

    .section-title {
        font-size: 2rem;
    }

    .about {
        padding: var(--spacing-xl) var(--spacing-md);
    }

    .portfolio {
        padding: var(--spacing-xl) var(--spacing-md);
    }

    .portfolio-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-md);
    }

    .footer {
        padding: var(--spacing-xl) var(--spacing-md);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-images {
        height: 220px;
    }

    .hero-image-1 {
        width: 150px;
        height: 180px;
        transform: rotate(-5deg) translateX(-30px);
    }

    .hero-image-2 {
        width: 130px;
        height: 160px;
        transform: rotate(3deg) translateX(50px) translateY(15px);
    }

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

    .nav-overlay {
        padding: var(--spacing-xl);
    }

    .nav-link {
        font-size: 1rem;
    }
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-content {
    animation: fadeIn 0.8s ease forwards;
}

.hero-image {
    animation: fadeIn 1s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

.hero-image-2 {
    animation-delay: 0.5s;
}

.nav-link {
    animation: slideIn 0.5s ease forwards;
    opacity: 0;
}

.nav-overlay.active .nav-link:nth-child(1) {
    animation-delay: 0.1s;
}

.nav-overlay.active .nav-link:nth-child(2) {
    animation-delay: 0.15s;
}

.nav-overlay.active .nav-link:nth-child(3) {
    animation-delay: 0.2s;
}

.nav-overlay.active .nav-link:nth-child(4) {
    animation-delay: 0.25s;
}

.nav-overlay.active .nav-link:nth-child(5) {
    animation-delay: 0.3s;
}

.nav-overlay.active .nav-link:nth-child(6) {
    animation-delay: 0.35s;
}

/* Initial state for scroll animations */
/* REMOVED: Hiding sections by default caused issues. 
   Animations should be on children or managed more carefully. */
.about,
.portfolio {
    /* opacity: 0; */
    /* transform: translateY(30px); */
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.about.visible,
.portfolio.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Inline Edit Mode
   ============================================ */
.edit-mode-btn {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background: #7B5EA7;
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(123, 94, 167, 0.4);
    transition: all 0.3s ease;
}

.edit-mode-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(123, 94, 167, 0.5);
}

.edit-mode-btn.active {
    background: #4CAF50;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.4);
}

/* Editable elements styling */
body.edit-mode [contenteditable="true"] {
    outline: 2px dashed #7B5EA7;
    outline-offset: 4px;
    border-radius: 4px;
    min-height: 1em;
    cursor: text;
}

body.edit-mode [contenteditable="true"]:focus {
    outline: 2px solid #7B5EA7;
    background: rgba(123, 94, 167, 0.1);
}

body.edit-mode [contenteditable="true"]:hover {
    background: rgba(123, 94, 167, 0.05);
}

/* Edit notification */
.edit-notification {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: #7B5EA7;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    z-index: 1001;
    animation: slideDown 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

@keyframes slideDown {
    from {
        transform: translateX(-50%) translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

/* Project edit buttons */
.edit-image-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(123, 94, 167, 0.95);
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .edit-image-btn {
    opacity: 1;
}

.delete-project-btn {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
    background: rgba(244, 67, 54, 0.9);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.delete-project-btn:hover {
    background: #f44336;
}

/* Add project button */
.add-project-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(123, 94, 167, 0.5);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    color: #a0a0a0;
    font-size: 1rem;
}

.add-project-item:hover {
    border-color: #7B5EA7;
    color: #7B5EA7;
    background: rgba(123, 94, 167, 0.1);
}

.portfolio-image {
    position: relative;
}

/* ============================================
   Login Popup
   ============================================ */
.login-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.2s ease;
}

.login-popup {
    background: linear-gradient(135deg, #1a1f1c, #2d3e2e);
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    max-width: 350px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(123, 94, 167, 0.3);
}

.login-popup h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #7B5EA7;
}

.login-popup p {
    color: #a0a0a0;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.login-popup input {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(123, 94, 167, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    text-align: center;
    margin-bottom: 1rem;
    transition: border-color 0.3s ease;
}

.login-popup input:focus {
    outline: none;
    border-color: #7B5EA7;
}

.login-popup input::placeholder {
    color: #666;
}

.login-popup-buttons {
    display: flex;
    gap: 0.75rem;
}

.login-btn {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn.cancel {
    background: rgba(255, 255, 255, 0.1);
    color: #a0a0a0;
}

.login-btn.cancel:hover {
    background: rgba(255, 255, 255, 0.15);
}

.login-btn.submit {
    background: #7B5EA7;
    color: white;
}

.login-btn.submit:hover {
    background: #6a4f91;
    transform: translateY(-2px);
}

.login-error {
    color: #f44336;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    min-height: 1.2rem;
}

/* ============================================
   Dynamic Custom Sections
   ============================================ */
.dynamic-section {
    padding: var(--spacing-2xl);
    background-color: var(--color-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.dynamic-section:nth-of-type(even) {
    background-color: #1e2521;
    /* Slightly lighter/dark green for alternation */
}

.dynamic-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

@media (max-width: 900px) {
    .dynamic-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .dynamic-section.image-right .dynamic-container {
        direction: ltr;
        /* Reset visual order checks if needed, but grid usually handles it order */
    }

    /* Reorder for mobile if image-right */
    .dynamic-section.image-right .dynamic-content-wrapper {
        order: 2;
    }
}

.hero-video-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: transparent !important;
    box-shadow: none !important;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    transition: transform var(--transition-medium);
}

.hero-video-container:hover {
    transform: scale(1.02);
}

.hero-video-container video {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Old Dynamic Section Styles Removed (Using styles-dynamic.css) */

/* ============================================
   Content Protection
   ============================================ */
/* Disable Selection */
body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Allow selection in editable fields */
[contenteditable="true"],
input,
textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Disable Image Dragging */
img {
    -webkit-user-drag: none;
    -webkit-user-drag: none;
    pointer-events: none;
    /* Disables right click/save on images usually, but also click interactions. Re-enable pointer-events for specific interactive images if needed */
}

/* Re-enable pointer events for buttons/links wrapping images if necessary, 
   but user asked to disable left click/download. 
   We'll keep pointer-events: none on IMG, but parents handles clicks. */

.portfolio-image img,
.hero-video,
.dynamic-image-container img {
    pointer-events: none;
}

/* Disable Printing */
@media print {

    html,
    body {
        display: none !important;
    }
}

/* ============================================
   Project Tags
   ============================================ */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 8px;
    justify-content: center;
}

.project-tag {
    background: rgba(123, 94, 167, 0.1);
    color: #7B5EA7;
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
    border: 1px solid rgba(123, 94, 167, 0.2);
}

.tags-editor {
    border: 1px dashed #7B5EA7;
    padding: 5px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #555;
    margin-top: 5px;
    min-height: 24px;
    background: #f9f9f9;
}

.tags-editor:empty:before {
    content: attr(placeholder);
    color: #aaa;
}

.portfolio-content {
    /* Ensure content stacks properly tags logic */
    display: flex;
    flex-direction: column;
}

/* Back Button Unified Style */
/* Back Button Unified Style */
.back-btn {
    color: #7B5EA7;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border: 2px solid #7B5EA7;
    border-radius: 50px;
    background: transparent;
}

.back-btn:hover {
    background: #7B5EA7;
    color: #fff;
    transform: translateX(-3px);
    box-shadow: 0 4px 15px rgba(123, 94, 167, 0.3);
}

/* ============================================
   Featured Projects Modal
   ============================================ */
.featured-popup-overlay {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.featured-popup {
    background: #1e1e1e;
    border: 1px solid #7B5EA7;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    animation: popupScale 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popupScale {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.select-item {
    display: flex;
    align-items: center;
    padding: 15px;
    margin: 8px 0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.select-item:hover {
    background: rgba(123, 94, 167, 0.15);
    border-color: rgba(123, 94, 167, 0.4);
    transform: translateX(5px);
}

.select-item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid #555;
    border-radius: 6px;
    margin-right: 15px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.select-item input[type="checkbox"]:checked {
    background: #7B5EA7;
    border-color: #7B5EA7;
}

.select-item input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 16px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
}

.popup-scroll-area::-webkit-scrollbar {
    width: 8px;
}

.popup-scroll-area::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.popup-scroll-area::-webkit-scrollbar-thumb {
    background: #7B5EA7;
    border-radius: 4px;
}

/* ============================================
   Footer Enhancements
   ============================================ */

/* ============================================
   Info Modal (Privacy/TOS)
   ============================================ */
.info-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 3000;
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(5px);
}

.info-modal {
    background: #1a1f1c;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    border-radius: 0;
    /* Square */
    border: none;
    /* No Border */
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

/* Updated Header Layout */
.info-modal-header {
    padding: 1.5rem 2rem;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: #252c28;
}

.header-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-modal-header h3 {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: #e89a5c;
    font-size: 1.5rem;
    font-weight: 500;
}

.last-updated {
    font-size: 0.8rem;
    color: #a0a0a0;
    margin: 0;
    font-style: italic;
}

.info-modal-close {
    background: none;
    border: none;
    color: #a0a0a0;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.info-modal-close:hover {
    color: #fff;
}

.info-modal-body {
    padding: 1.5rem 2rem 2rem 2rem;
    /* Increased top padding */
    overflow-y: auto;
    color: #d1d5db;
    line-height: 1.6;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    /* Simple sans-serif */
}

/* Simple Scrollbar */
.info-modal-body::-webkit-scrollbar {
    width: 6px;
}

.info-modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.info-modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0;
}

.info-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.info-modal-body h4 {
    color: #fff;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
    /* Simple sans-serif */
    font-weight: 600;
}

.info-modal-body p {
    margin-bottom: 1rem;
    text-align: justify;
}

.info-modal-footer {
    padding: 1rem 2rem;
    border-top: none;
    /* simple layout */
    text-align: right;
    background: rgba(0, 0, 0, 0.2);
}

.modal-btn {
    padding: 0.6rem 2rem;
    background: #e89a5c;
    /* Simple Orange */
    color: white;
    border: none;
    border-radius: 0;
    /* Square */
    cursor: pointer;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    transition: background 0.2s;
}

.modal-btn:hover {
    background: #b56d36;
}

/* ============================================
   Dynamic Custom Sections
   ============================================ */
#dynamic-sections {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2xl);
    padding-bottom: var(--spacing-2xl);
}

.dynamic-section {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

/* Layout Variants */
.dynamic-section.layout-image-left {
    flex-direction: row;
}

.dynamic-section.layout-image-right {
    flex-direction: row-reverse;
}

.dynamic-section.layout-vertical {
    flex-direction: column;
    text-align: center;
}

/* Image & Content sizing */
.dynamic-image {
    flex: 1;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.dynamic-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.dynamic-content {
    flex: 1;
}

.dynamic-content h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-white);
}

.dynamic-content div {
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* EDIT CONTROLS TOOLBAR */
.section-toolbar {
    position: absolute;
    top: -40px;
    right: 0;
    background: #2D3E2E;
    border: 1px solid #4A5E4B;
    border-radius: var(--radius-md);
    padding: 6px;
    display: flex;
    gap: 8px;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.2s;
}

.dynamic-section:hover .section-toolbar {
    opacity: 1;
}

.toolbar-btn {
    background: transparent;
    border: none;
    color: #E8E8E8;
    padding: 4px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toolbar-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.toolbar-separator {
    width: 1px;
    background: #4A5E4B;
    margin: 0 2px;
}

/* Section Separators & Spacing */

/* Distinct Separator Line */
.section-separator {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-text-muted), transparent);
    opacity: 0.3;
    margin-top: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

/* Optional: Colored Separator */
.section-separator-colored {
    background: linear-gradient(90deg, transparent, var(--color-stripe-orange), transparent);
    opacity: 0.6;
    height: 2px;
}

/* Section Spacing Adjustments */
.portfolio {
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
}

/* Pulse Animation for Speaker Icon */
@keyframes pulse-orange {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(212, 133, 74, 0));
    }

    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 10px rgba(212, 133, 74, 0.4));
    }

    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(212, 133, 74, 0));
    }
}

.pulsing svg {
    animation: pulse-orange 2s infinite ease-in-out;
    color: #d4854a;
    /* Ensure the SVG keeps color during anim */
}

/* Local Edit Mode Floating Button */
#editModeBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #7B5EA7, #9B7BC7);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    z-index: 9999 !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#editModeBtn:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

#editModeBtn.saving {
    background: #4A5E4B !important;
    pointer-events: none;
    opacity: 0.8;
}

.edit-mode .editable:hover {
    background: rgba(123, 94, 167, 0.1) !important;
    outline: 2px dashed #7B5EA7 !important;
    cursor: pointer;
}

.edit-controls {
    display: none;
    gap: 5px;
}

.edit-mode .edit-controls {
    display: flex !important;
}

.edit-btn {
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.edit-btn:hover {
    transform: scale(1.1);
}