/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Loading Animation Styles - Improved for better UX */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease-out, visibility 0.6s ease-out;
    /* Prevent any layout shifts */
    overflow: hidden;
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    /* Ensure it doesn't interfere with scrolling */
    pointer-events: none;
}

.loading-content {
    text-align: center;
    color: #fff;
}

.loading-logo {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.2s forwards;
}

.loading-progress {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1px;
    overflow: hidden;
    margin: 0 auto;
}

.loading-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.8));
    border-radius: 1px;
    animation: loadingProgress 1.5s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes loadingProgress {
    0% {
        width: 0%;
    }
    50% {
        width: 70%;
    }
    100% {
        width: 100%;
    }
}

/* Page Content Animation - Improved for better loading */
.page-content {
    opacity: 0;
    /* Remove transform to prevent layout shifts */
    transition: opacity 0.8s ease-out;
    /* Ensure proper positioning during load */
    min-height: 100vh;
    position: relative;
}

.page-content.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

.reveal-delay-5 {
    transition-delay: 0.5s;
}

/* Staggered Grid Animation */
.overview-card {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.overview-card.animate {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.overview-card:nth-child(1) { transition-delay: 0.1s; }
.overview-card:nth-child(2) { transition-delay: 0.2s; }
.overview-card:nth-child(3) { transition-delay: 0.3s; }
.overview-card:nth-child(4) { transition-delay: 0.4s; }
.overview-card:nth-child(5) { transition-delay: 0.5s; }

/* Navigation Animation - Improved for smoother loading */
.navbar {
    /* Remove problematic initial opacity and transform */
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.loaded {
    /* Keep navbar always visible and properly positioned */
    opacity: 1;
    transform: translateY(0);
}

/* Hero Animation */
.hero-title, .hero-subtitle, .hero-description {
    opacity: 0;
    transform: translateY(30px);
}

.hero-title.animate {
    animation: heroFadeIn 1s ease-out 0.3s forwards;
}

.hero-subtitle.animate {
    animation: heroFadeIn 1s ease-out 0.5s forwards;
}

.hero-description.animate {
    animation: heroFadeIn 1s ease-out 0.7s forwards;
}

.hero-buttons.animate {
    animation: heroFadeIn 1s ease-out 0.9s forwards;
}

.profile-photo {
    opacity: 0;
    transform: scale(0.8);
}

.profile-photo.animate {
    animation: profilePhotoReveal 1.2s ease-out 0.4s forwards;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes profilePhotoReveal {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: #000;
    background-color: #fff;
    overflow-x: hidden;
    max-width: 100vw;
    font-weight: 400;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 5vw, 4rem);
    width: 100%;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 2rem;
    letter-spacing: -0.025em;
    color: #000;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 300;
    letter-spacing: -0.04em;
}

h2 {
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    font-weight: 300;
    letter-spacing: -0.03em;
}

h3 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 400;
    letter-spacing: -0.02em;
}

h4 {
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

p {
    margin-bottom: 1.5rem;
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    line-height: 1.6;
    color: #333;
    max-width: 60ch;
    font-weight: 400;
}

.lead {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    font-weight: 300;
    color: #000;
    line-height: 1.5;
    max-width: 50ch;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 2.5rem;
    text-decoration: none;
    border-radius: 0;
    font-weight: 400;
    transition: all 0.3s ease;
    border: 1px solid #000;
    cursor: pointer;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
    background: transparent;
    color: #000;
    min-height: 48px;
}

.btn-primary {
    background-color: #000;
    color: #fff;
}

.btn-primary:hover {
    background-color: #fff;
    color: #000;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    color: #000;
    border: 1px solid #000;
}

.btn-secondary:hover {
    background-color: #000;
    color: #fff;
    transform: translateY(-1px);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    background-color: #000;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    padding: 1rem 0;
    transition: all 0.3s ease;
    overflow: visible;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 5vw, 4rem);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    overflow: visible;
    position: relative;
}

.nav-logo .logo-img {
    height: 48px;
    width: auto;
    display: block;
    transform: scale(1.7);
    transform-origin: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
    overflow: visible;
    gap: 0.5rem;
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

.nav-item {
    position: relative;
}

.nav-item.dropdown {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #fff;
    font-weight: 400;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    letter-spacing: 0.005em;
    padding: 0.6rem 1.2rem;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0rem;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background-color: #fff;
    border-radius: 50%;
}

.nav-link i {
    margin-left: 0.4rem;
    font-size: 0.7rem;
    opacity: 0.7;
    transition: all 0.2s ease;
}

/* Mobile chevron rotation for dropdown */
.nav-link .fa-chevron-down {
    transition: transform 0.3s ease;
    margin-left: 10px;
    font-size: 0.7em;
    opacity: 0.8;
}

.nav-link.dropdown-active .fa-chevron-down {
    transform: rotate(180deg);
    opacity: 1;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #000;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    padding: 0.5rem 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s ease;
    list-style: none;
    margin: 0;
}

.dropdown-menu li {
    border: none;
    outline: none;
    box-shadow: none;
    background: transparent;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Desktop dropdown behavior */
@media (min-width: 969px) {
    .dropdown-menu {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        max-height: none;
        overflow: hidden;
        background-color: #000;
        box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 2px;
        padding: 0.5rem 0;
        min-width: 200px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: all 0.25s ease;
        z-index: 1000;
        margin: 0;
        width: auto;
    }
      .dropdown-link {
        display: block;
        padding: 0.7rem 1.2rem;
        color: #fff;
        text-decoration: none;
        transition: all 0.15s ease;
        font-weight: 400;
        font-size: 0.9rem;
        letter-spacing: 0.005em;
        border-radius: 0;
        margin: 0;
    }
    
    .dropdown-link:first-child {
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
    }
    
    .dropdown-link:last-child {
        border-bottom: none;
        border-bottom-left-radius: 8px;
        border-bottom-right-radius: 8px;
    }    .dropdown-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: #fff;
        /* Remove the translateX to prevent extending beyond container */
    }
    
    /* Show dropdown menu on hover for desktop */
    .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
    
    /* Make sure dropdown toggle has a pointer cursor */
    .dropdown .nav-link {
        cursor: pointer;
    }
    
    /* Visual feedback on hover */
    .dropdown:hover .nav-link {
        color: #2c3e50;
    }
}

/* Global dropdown link styling (will be overridden by desktop-specific rules) */
.dropdown-link {
    display: block;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Mobile Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
    position: fixed;
    right: clamp(1rem, 5vw, 4rem);
    top: 50%;
    transform: translateY(-50%);
}

.hamburger .bar {
    width: 24px;
    height: 2px;
    background-color: #fff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hamburger animation when active */
.hamburger.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Navigation Styles */
@media screen and (max-width: 968px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        width: 100%;
        height: 100vh;
        justify-content: center;
        align-items: center;
        transition: 0.3s;
        transform: none;
        gap: 1rem;
        z-index: 1000;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        text-align: center;
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 0.8rem 2rem;
        justify-content: center;
        text-align: center;
    }
    
    .nav-link i {
        margin-left: 0.3rem;
    }
    
    .dropdown-menu {
        position: static;
        background: transparent;
        box-shadow: none;
        padding: 0;
        margin-top: 0;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transform: none;
        transition: all 0.3s ease;
    }
    
    .dropdown-menu.show {
        opacity: 1;
        visibility: visible;
        max-height: 300px;
        padding: 0.5rem 0;
        margin-top: 0.5rem;
    }
    
    .dropdown-link {
        color: #ccc;
        font-size: 1rem;
        padding: 0.6rem 2rem;
    }
}

@media screen and (min-width: 969px) {
    .hamburger {
        display: none;
    }
}

/* Mobile Menu Active Class for Body */
body.menu-open {
    overflow: hidden;
}

/* Navbar transparent when menu is open */
body.menu-open .navbar {
    background-color: transparent;
    backdrop-filter: none;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px clamp(1rem, 5vw, 4rem) 80px;
    background: #fff;
    width: 100%;
    overflow-x: hidden;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 6rem;
    align-items: center;
    width: 100%;
}

/* Default: hide both, then show appropriate one in media queries */
.mobile-only {
    display: none;
}

.desktop-only {
    display: none;
}

/* Hide the profile image in hero-content on desktop since we have it in the grid */
@media screen and (min-width: 969px) {
    .mobile-only {
        display: none !important;
    }
      .desktop-only {
        display: flex !important;
        justify-content: center;
        align-items: center;
    }
      .hero-text {
        text-align: left !important;
        align-items: flex-start !important;
        display: block !important;
    }
    
    .hero-title,
    .hero-subtitle,
    .hero-description {
        text-align: left !important;
    }
    
    .hero-buttons {
        justify-content: flex-start !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        align-items: flex-start !important;
        text-align: left !important;
        display: flex !important;
    }
}

@media screen and (max-width: 968px) {
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: flex !important;
        justify-content: center;
    }
    
    .hero {
        padding: 160px clamp(1rem, 5vw, 4rem) 60px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        max-width: 100%;
    }
    
    .hero-text {
        order: 2;
    }
    
    .hero-image {
        order: 1;
        margin-bottom: 1rem;
    }
    
    .hero-buttons {
        justify-content: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

.hero-title {
    color: #000;
    margin-bottom: 1.5rem;
    font-weight: 300;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: #666;
    margin-bottom: 2rem;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.02em;
}

.hero-description {
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    color: #333;
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 50ch;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: clamp(200px, 25vw, 280px);
    height: clamp(200px, 25vw, 280px);
    max-width: 100%;
    background-color: #f8f8f8;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #999;
    font-size: 0.9rem;
    font-weight: 300;
    margin: 0 auto;
}

.profile-photo {
    width: clamp(200px, 25vw, 280px);
    height: clamp(200px, 25vw, 280px);
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: block;
    margin: 0 auto;
}

.image-placeholder i {
    margin-bottom: 1rem;
    opacity: 0.6;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.section-description {
    text-align: center;
    color: #7f8c8d;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Page Header Styles */
.page-header {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    text-align: center;
}

.page-header h1 {
    color: white;
    margin-bottom: 1rem;
    font-size: 3rem;
}

.page-header p {
    font-size: 1.2rem;
    color: #ecf0f1;
    margin: 0;
}

/* Overview Section for Home Page */
.overview-section {
    padding: 120px 0;
    background-color: #fff;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    font-weight: 300;
    color: #000;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 4rem;
    margin-top: 5rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.overview-card {
    background-color: #fff;
    padding: 2.5rem 1.8rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    text-align: left;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 8px;
}

.overview-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 0, 0, 0.15);
    color: #000;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.overview-card i {
    font-size: 1.8rem;
    color: #000;
    margin-bottom: 1.2rem;
    opacity: 0.8;
}

.overview-card h3 {
    color: #000;
    margin-bottom: 0.8rem;
    font-size: 1.25rem;
    font-weight: 500;
}

.overview-card p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Bio Page Styles */
.bio-hero {
    padding: 8rem clamp(1rem, 5vw, 4rem) 4rem;
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    color: #fff;
    min-height: 60vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 100%;
}

.bio-hero-content {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 300px);
    gap: 4rem;
    align-items: center;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
}

.bio-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 300;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #fff;
    letter-spacing: -0.025em;
}

.bio-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    opacity: 0.9;
    line-height: 1.6;
    font-weight: 400;
    color: #fff;
    letter-spacing: 0.02em;
}

.bio-hero-image {
    display: flex;
    justify-content: center;
}

.bio-portrait {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.bio-portrait:hover {
    transform: scale(1.05);
}

.bio-main-section {
    padding: 6rem 0;
    background: #fff;
}

.bio-story {
    max-width: 900px;
    margin: 0 auto;
}

.bio-lead {
    font-size: clamp(1.3rem, 3vw, 1.5rem);
    font-weight: 300;
    line-height: 1.6;
    color: #2c3e50;
    margin-bottom: 3rem;
    text-align: center;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.025em;
}

.bio-text-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.bio-column p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
}

/* Mobile Responsive */
@media (max-width: 968px) {
    .bio-hero {
        padding: 8rem 0 3rem;
        min-height: 50vh;
    }
    
    .bio-hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 0 1rem;
    }
    
    .bio-portrait {
        width: 240px;
        height: 240px;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
        margin: 0 auto;
    }
    
    .bio-title {
        font-size: clamp(2rem, 8vw, 2.8rem);
        margin-bottom: 1rem;
    }
    
    .bio-subtitle {
        font-size: clamp(1rem, 4vw, 1.2rem);
        padding: 0 1rem;
        margin-bottom: 0;
    }
    
    .bio-main-section {
        padding: 4rem 0;
    }
    
    .bio-story {
        padding: 0 1rem;
    }
    
    .bio-lead {
        font-size: clamp(1.1rem, 5vw, 1.3rem);
        margin-bottom: 2rem;
        padding: 0 0.5rem;
    }
    
    .bio-text-columns {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .bio-column p {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 1.25rem;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .bio-hero {
        padding: 8rem 0 2rem;
    }
    
    .bio-portrait {
        width: 200px;
        height: 200px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    }
    
    .bio-title {
        font-size: clamp(1.8rem, 10vw, 2.2rem);
        line-height: 1.1;
    }
    
    .bio-subtitle {
        font-size: clamp(0.9rem, 5vw, 1.1rem);
        line-height: 1.5;
    }
    
    .bio-lead {
        font-size: clamp(1rem, 6vw, 1.2rem);
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }
    
    .bio-column p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

/* Overview Grid Responsive Styles */
@media (max-width: 1200px) {
    .overview-grid {
        max-width: 1200px;
        gap: 3rem;
    }
}

@media (max-width: 968px) {
    .overview-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 2.5rem;
        margin-top: 3rem;
        padding: 0 clamp(1rem, 5vw, 4rem);
    }
    
    .overview-section {
        padding: 80px clamp(1rem, 5vw, 4rem) 60px;
    }
    
    .overview-card {
        padding: 2rem 1.5rem;
    }
    
    .overview-card h3 {
        font-size: 1.2rem;
    }
    
    .overview-card p {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .overview-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
        margin-top: 2.5rem;
    }
    
    .overview-card {
        padding: 2.5rem 2rem;
        text-align: center;
    }
    
    .overview-card i {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .overview-card h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .overview-card p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .overview-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .overview-card {
        padding: 2rem 1.5rem;
    }
}

/* Legacy Bio Styles - Keeping for compatibility */
.bio-section {
    background-color: #f8f9fa;
}

.bio-content {
    max-width: 800px;
    margin: 0 auto;
}

.bio-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #555;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.skill-item {
    text-align: center;
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-5px);
}

.skill-item i {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.skill-item h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.skill-item p {
    color: #7f8c8d;
    margin: 0;
}

/* Enhanced Bio Styles */
.bio-main {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.bio-image {
    display: flex;
    justify-content: center;
}

.bio-image .image-placeholder {
    width: 280px;
    height: 280px;
}

.skill-details {
    list-style: none;
    margin-top: 1rem;
}

.skill-details li {
    padding: 0.3rem 0;
    color: #666;
    font-size: 0.9rem;
}

.skill-details li:before {
    content: "•";
    color: #2c3e50;
    margin-right: 0.5rem;
}

.philosophy-section {
    background-color: #f8f9fa;
    padding: 3rem 0;
    border-radius: 10px;
    margin-top: 3rem;
}

.philosophy-content blockquote {
    font-style: italic;
    font-size: 1.3rem;
    color: #2c3e50;
    border-left: 4px solid #2c3e50;
    padding-left: 2rem;
    margin: 2rem 0;
}

.recognition-section {
    margin-top: 3rem;
}

.recognition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.recognition-item {
    text-align: center;
    padding: 1.5rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.recognition-item i {
    color: #2c3e50;
    margin-bottom: 1rem;
}

/* Portfolio Sections */
.portfolio-section {
    background-color: #f8f9fa;
}

.portfolio-section:nth-child(even) {
    background-color: #fff;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.portfolio-item {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 650px;
}

.portfolio-item:hover {
    transform: translateY(-10px);
}

.portfolio-image {
    height: 280px;
    background-color: #ecf0f1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #95a5a6;
}

.portfolio-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.portfolio-content h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.portfolio-content p:first-of-type {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1rem;
}

.portfolio-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.portfolio-link {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 1px solid #2c3e50;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.portfolio-link:hover {
    background-color: #2c3e50;
    color: white;
}

/* Portfolio Page Enhancements */
.portfolio-intro {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-lead {
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
    line-height: 1.6;
    font-weight: 400;
    color: #555;
    letter-spacing: 0.02em;
    text-align: center;
    margin: 0 auto;
    max-width: 600px;
}

.category-section {
    margin-bottom: 4rem;
}

.category-title {
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #2c3e50;
}

.category-description {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Music Portfolio Enhancements */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(44, 62, 80, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: all 0.3s ease;
}

.portfolio-item:hover .play-button {
    opacity: 1;
}

.project-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
}

.detail-item {
    background-color: #f8f9fa;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-item i {
    color: #2c3e50;
}

.music-process, .filmmaking-process {
    margin-top: 4rem;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.process-step {
    text-align: center;
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: #2c3e50;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin: 0 auto 1rem;
}

/* Film Portfolio Enhancements */
.video-preview {
    position: relative;
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 3px;
    font-size: 0.8rem;
}

.film-credits {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.film-credits p {
    margin: 0.3rem 0;
}

.technical-specs {
    margin-top: 4rem;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.spec-category {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
}

.spec-category h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.spec-category ul {
    list-style: none;
}

.spec-category li {
    padding: 0.5rem 0;
    color: #666;
    border-bottom: 1px solid #eee;
}

.spec-category li:last-child {
    border-bottom: none;
}

/* Writing Portfolio Enhancements */
.document-type {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #2c3e50;
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 600;
}

.writing-details {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.writing-details p {
    margin: 0.3rem 0;
}

.publications-section {
    margin-top: 4rem;
}

.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.publication-item {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    position: relative;
}

.publication-item h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.publication-item p {
    color: #666;
    margin-bottom: 1rem;
}

.pub-date {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: #2c3e50;
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 3px;
    font-size: 0.8rem;
}

/* Photography Portfolio Enhancements */
.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(44, 62, 80, 0.9);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
    padding: 1rem;
    text-align: center;
}

.photo-item:hover .photo-overlay {
    opacity: 1;
}

.photo-overlay h4 {
    color: white;
    margin-bottom: 0.5rem;
}

.photo-overlay p {
    color: #ecf0f1;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.view-photo {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.view-photo:hover {
    background-color: white;
    color: #2c3e50;
}

.photography-approach {
    margin-top: 4rem;
}

.approach-content {
    max-width: 800px;
    margin: 0 auto;
}

.philosophy-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.point-item {
    text-align: center;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.point-item i {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.point-item h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.point-item p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
}

.featured-work {
    margin-top: 4rem;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.featured-item {
    display: flex;
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.featured-image {
    width: 80px;
    height: 80px;
    background-color: #f8f9fa;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.featured-image i {
    color: #2c3e50;
}

.featured-content h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.featured-content p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.featured-year {
    background-color: #2c3e50;
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 3px;
    font-size: 0.8rem;
}

/* Contact Page Styles - Modern Design */

/* Contact Hero Section */
.contact-hero {
    padding: 8rem 0 6rem;
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.contact-hero-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.contact-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    line-height: 1.1;
    margin: 0 0 1.5rem 0;
    letter-spacing: -0.02em;
    color: #fff; /* Ensure white color */
}

.contact-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9); /* Slightly more opaque for better readability */
    margin: 0;
    max-width: 50ch;
}

.contact-hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-visual-element {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-visual-element i {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.8);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Contact Main Section */
.contact-main-section {
    padding: 6rem 0;
    background: #fff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    align-items: start; /* This aligns items to the top */
}

.section-heading {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    font-weight: 500;
    color: #000;
    margin: 0 0 2rem 0;
    line-height: 1.2;
}

/* Contact Form Styles */
.contact-form {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    max-width: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    display: block;
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    transition: all 0.3s ease;
    background: #fafafa;
    color: #333;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #000;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.submit-btn {
    width: 100%;
    padding: 1.2rem 2rem;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.submit-btn:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.submit-btn:active {
    transform: translateY(0);
}

.form-note {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 0;
}

/* Contact Info Styles */
.contact-info-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Changed from center to flex-start for top alignment */
    align-items: stretch; /* Changed from center to stretch for full width */
}

/* Social Connections */
.social-connections {
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.social-connections h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #000;
    margin: 0 0 1.5rem 0;
    text-align: center;
}

.social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.social-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 1.2rem;
    background: #fff;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.social-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #e0e0e0;
}

.social-item i {
    font-size: 1.5rem;
    color: #000;
    margin-bottom: 0.5rem;
}

.social-item span {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

/* Responsive Design for Contact Page */
@media (max-width: 968px) {
    .contact-hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
        padding: 0 1rem;
    }
    
    .contact-hero {
        padding: 7rem 0 4rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
        padding: 0 1rem;
    }
    
    .social-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .contact-main-section {
        padding: 4rem 0;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1.2rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.9rem 1rem;
        font-size: 0.9rem;
    }
    
    .submit-btn {
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 640px) {
    .contact-hero {
        padding: 7rem 0 3rem;
    }
    
    .contact-hero-visual {
        display: none;
    }
    
    .contact-hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .social-grid {
        grid-template-columns: 1fr;
    }
}

/* Portfolio Hero Section */
.portfolio-hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    color: #fff;
    min-height: 60vh;
    display: flex;
    align-items: center;
    text-align: center;
}

.portfolio-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
    gap: 2rem;
}

.portfolio-hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.portfolio-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 300;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #fff;
    letter-spacing: -0.025em;
}

.portfolio-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    opacity: 0.9;
    line-height: 1.6;
    font-weight: 400;
    color: #fff;
    letter-spacing: 0.02em;
    max-width: 600px;
    text-align: center;
}

.portfolio-hero-visual {
    display: flex;
    justify-content: center;
}

.portfolio-visual-element {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #fff;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.portfolio-visual-element:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

/* Portfolio Main Section Spacing */
.portfolio-main-section {
    padding: 4rem 0;
}

@media (max-width: 968px) {
    .portfolio-hero {
        padding: 8rem 0 3rem;
        min-height: 50vh;
    }
    
    .portfolio-hero-content {
        gap: 1.5rem;
    }
    
    .portfolio-visual-element {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .portfolio-hero {
        padding: 9rem 0 2rem;
        min-height: 40vh;
    }
    
    .portfolio-visual-element {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
}

/* Portfolio content structure for consistent alignment */
.portfolio-content-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-content-description {
    margin-bottom: auto;
}

.portfolio-content-footer {
    margin-top: auto;
    padding-top: 1rem;
}

/* Global Styles Overrides */
body {
    overflow-x: hidden;
}

/* Prevent any element from causing horizontal scroll */
*, *::before, *::after {
    max-width: 100%;
    box-sizing: border-box;
}

/* Ensure all grid layouts are responsive */
.portfolio-grid,
.hero-content,
.footer-content {
    width: 100%;
    max-width: 100%;
}

/* Animation improvements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.portfolio-item,
.skill-item {
    animation: fadeInUp 0.6s ease forwards;
}

/* Smooth scrolling offset for fixed navbar */
section {
    scroll-margin-top: 80px;
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Accessibility improvements */
.nav-link:focus,
.btn-primary:focus,
.btn-secondary:focus,
.portfolio-link:focus,
.social-link:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .navbar,
    .hero,
    .contact-section,
    .footer {
        display: none;
    }
    
    section {
        page-break-inside: avoid;
        padding: 1rem 0;
    }
}

/* Override all text width constraints on mobile */
    .hero-content p,
    .hero-content h1,
    .hero-content h2,
    .hero-content h3,
    .hero-content .lead {
        max-width: none !important;
        width: 100% !important;
        text-align: center !important;        margin-left: auto !important;
        margin-right: auto !important;
    }

/* DESKTOP BUTTON ALIGNMENT FIX - CENTER ALIGNMENT */
@media screen and (min-width: 969px) {
    .hero .hero-content .hero-text .hero-buttons {
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        margin: 0 !important;
        padding: 0 !important;
        width: auto !important;
        display: flex !important;
    }
    
    .hero .hero-content .hero-text .hero-buttons .btn-primary,
    .hero .hero-content .hero-text .hero-buttons .btn-secondary {
        margin-left: 0.75rem !important;
        margin-right: 0.75rem !important;
    }
}

/* Desktop-specific positioning for Portfolio dropdown dot */
@media screen and (min-width: 969px) {
    .dropdown .nav-link.active::after {
        left: calc(50% - 10px); /* Shift left to account for chevron icon */
    }
}

/* Responsive line break for hero subtitle */
.mobile-break {
    display: none;
}

/* Show line break on larger mobile screens for better text distribution */
@media (max-width: 968px) and (min-width: 400px) {
    .mobile-break {
        display: inline;
    }
}

/* Bio Hero Text Alignment */
.bio-hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 968px) {
    .bio-hero-text {
        text-align: center;
        align-items: center;
    }
}

/* Medium Embed Section */
.medium-section {
    background: #f8f9fa;
    padding: 3rem;
    border-radius: 12px;
    margin: 3rem 0;
}

.medium-embed-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.medium-header {
    padding: 2rem;
    background: linear-gradient(135deg, #00ab6c 0%, #00d084 100%);
    color: white;
}

.medium-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.medium-details h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.medium-details p {
    margin: 0 0 1rem 0;
    opacity: 0.9;
}

.medium-details .portfolio-link {
    color: white;
    border: 2px solid white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.medium-details .portfolio-link:hover {
    background: white;
    color: #00ab6c;
}

.medium-iframe-wrapper {
    position: relative;
    width: 100%;
    min-height: 600px;
    background: #f8f9fa;
}

.medium-iframe {
    width: 100%;
    height: 600px;
    border: none;
    background: white;
}

.medium-footer {
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    text-align: center;
    border-top: 1px solid #e9ecef;
}

.medium-footer p {
    margin: 0;
    color: #666;
}

.medium-footer a {
    color: #00ab6c;
    text-decoration: none;
    font-weight: 500;
}

.medium-footer a:hover {
    text-decoration: underline;
}

/* Responsive Medium Section */
@media (max-width: 968px) {
    .medium-section {
        padding: 2rem;
        margin: 2rem 0;
    }
    
    .medium-header {
        padding: 1.5rem;
    }
    
    .medium-info {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .medium-iframe {
        height: 500px;
    }
    
    .medium-footer {
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .medium-section {
        padding: 1rem;
        margin: 1.5rem 0;
    }
    
    .medium-iframe {
        height: 400px;
    }
    
    .medium-details h4 {
        font-size: 1.25rem;
    }
}

/* Medium Articles Grid */
.medium-articles-container {
    padding: 2rem;
    background: white;
}

.medium-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.medium-article-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.medium-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #00ab6c;
}

.medium-article-card .article-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #f8f9fa;
}

.medium-article-card .article-icon {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #00ab6c 0%, #00d084 100%);
    color: white;
    font-size: 2rem;
}

.medium-article-card .article-content {
    padding: 1.5rem;
}

.medium-article-card .article-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.medium-article-card .article-description {
    color: #666;
    line-height: 1.6;
    margin: 0 0 1rem 0;
    font-size: 0.95rem;
}

.medium-article-card .article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.medium-article-card .article-date {
    color: #999;
    font-size: 0.875rem;
}

.medium-article-card .read-more {
    color: #00ab6c;
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
}

.medium-article-card:hover .read-more {
    color: #008a55;
}

.medium-article-card.fallback-card {
    text-align: center;
    grid-column: 1 / -1;
    max-width: 500px;
    margin: 0 auto;
}

.loading-message {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-style: italic;
}

/* Unsplash Photo Gallery Loading States */
.photos-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f0f0f0;
    border-top: 3px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.photos-loading p {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

/* Photography Grid Styles */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.photo-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: #fff;
}

.photo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.photo-container {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-item:hover .photo-container img {
    transform: scale(1.05);
}

/* Unsplash CTA Styles */
.unsplash-cta {
    margin-top: 4rem;
    padding: 3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    text-align: center;
    color: white;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-icon {
    margin-bottom: 1.5rem;
}

.cta-icon i {
    font-size: 3rem;
    color: white;
}

.cta-text h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: 600;
}

.cta-text p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.portfolio-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.portfolio-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    color: #667eea;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .photo-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .photo-item.no-image {
        min-height: 350px;
    }
    
    .photo-content {
        padding: 1.5rem;
    }
    
    .photo-item.no-image .photo-content {
        padding: 1.5rem;
    }
    
    .portfolio-main-section {
        padding: 2rem 0;
    }
    
    .portfolio-intro {
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    .category-section {
        margin-bottom: 3rem;
    }
    
    .category-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        padding: 0 1rem;
    }
}

/* Video Container Styles */
.video-container {
    position: relative;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.video-thumbnail {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.video-thumbnail:hover {
    transform: scale(1.02);
}

.video-thumbnail img {
    border-radius: 8px;
    transition: filter 0.3s ease;
}

.video-thumbnail:hover img {
    filter: brightness(0.8);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.play-button i {
    color: #000;
    font-size: 20px;
    margin-left: 3px; /* Slight offset to center the play icon */
}

.video-thumbnail:hover .play-button {
    background: rgba(255, 255, 255, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-container iframe {
    border-radius: 8px;
}

/* Performance placeholder images */
.portfolio-image img[src*="placeholder"] {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    position: relative;
}

.portfolio-image .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8), rgba(45, 45, 45, 0.8));
}

/* Footer Styles */
.footer {
    background-color: #000000;
    color: white;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-left h3 {
    color: white;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
}

.footer-left p {
    color: #cccccc;
    line-height: 1.6;
    max-width: 400px;
}

.footer-right p {
    color: #cccccc;
    margin: 0;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-left p {
        max-width: none;
    }
}

/* Score Modal Styles */
.score-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
}

.score-modal-content {
    position: relative;
    background-color: #000;
    margin: 2% auto;
    width: 95%;
    max-width: 1200px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.score-modal-header {
    background-color: #000;
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px 8px 0 0;
}

.score-modal-header h3 {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
}

.close-score {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.close-score:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.score-modal-body {
    padding: 0;
    background-color: #fff;
    border-radius: 0 0 8px 8px;
}

.score-modal-body embed {
    width: 100%;
    height: 80vh;
    min-height: 600px;
    border: none;
    border-radius: 0 0 8px 8px;
}

.score-placeholder {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.score-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .score-modal-content {
        width: 98%;
        margin: 1% auto;
    }
    
    .score-modal-header {
        padding: 0.8rem 1rem;
    }
    
    .score-modal-header h3 {
        font-size: 1rem;
    }
    
    .score-modal-body embed {
        height: 70vh;
        min-height: 400px;
    }
}

/* Score Preview Styles */
.score-preview {
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    height: 200px;
}

.score-preview embed {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
}

.score-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.score-preview:hover .score-overlay {
    background: rgba(0, 0, 0, 0.7);
}

.score-overlay i {
    color: white;
    font-size: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.score-preview:hover .score-overlay i {
    opacity: 1;
}

/* Audio Player Styles */
.audio-player {
    margin: 1rem 0;
}

.audio-player audio {
    width: 100%;
    height: 40px;
}

/* No Image Portfolio Items */
.portfolio-item.no-image .portfolio-image {
    display: none;
}

.portfolio-item.no-image {
    grid-column: span 1;
    min-height: 400px;
}