/* 
 * Custom Styles for Lauren Portfolio Theme
 * Add your custom CSS based on Figma design here
 */

/* Import Commissioner Font */
@import url('https://fonts.googleapis.com/css2?family=Commissioner:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* ==========================================================================
   Custom Variables (Add your colors, fonts from Figma)
   ========================================================================== */

:root {
    /* Colors - Update these with your Figma design colors */
    --primary-color: #0073aa;
    --secondary-color: #005177;
    --logo-color: #2A2622;
    --text-color: #655B51;
    --text-light: #666;
    --background: #fff;
    --background-alt: #f8f9fa;
    --border-color: #eee;
    
    /* Typography - Update with your Figma fonts */
    --font-primary: Georgia, 'Times New Roman', Times, serif;
    --font-heading: Georgia, 'Times New Roman', Times, serif;
    
    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 40px;
    --spacing-xl: 60px;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

/* ==========================================================================
   Header Styles
   ========================================================================== */

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.site-branding {
    flex: 0 0 auto;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 20px;
    transition: all 0.3s ease;
}

.site-header.scrolled .logo-avatar {
    width: 38px;
    height: 38px;
    font-size: 16px;
}

.custom-logo-link {
    display: inline-block;
}

.custom-logo {
    max-height: 50px;
    width: auto;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.site-header.scrolled .custom-logo {
    max-height: 38px;
}

.site-identity {
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.site-branding .site-title {
    margin-bottom: 0;
    line-height: 1;
}

.site-branding .site-title a {
    color: var(--logo-color);
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: 1.2;
    transition: all 0.3s ease;
}

.site-header.scrolled .site-title a {
    font-size: 16px;
}

.site-description {
    margin: 2px 0 0 0;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 1;
    font-family: 'Commissioner', sans-serif;
    color: var(--text-color);
    opacity: 0.8;
    transition: all 0.3s ease;
}



.header-nav-wrapper {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.header-btn-outline {
    padding: 8px 18px;
    transition: all 0.3s ease;
}

.site-header.scrolled .header-btn-outline {
    padding: 6px 14px;
}

/* Mobile menu button - hidden by default on desktop */
.mobile-menu-btn {
    display: none;
}

/* Desktop button - shown by default */
.desktop-header-btn {
    display: inline-flex;
}

.mobile-menu-toggle {
    display: none;
}

.site-branding .site-title {
    margin-bottom: 0;
}

.site-branding .site-title a {
    color: var(--logo-color);
    /* font-weight: 700; */
    /* font-size: 1.5rem; */
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
}

.site-description {
    margin: 0;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
    font-family: 'Commissioner', sans-serif;
    color: var(--text-color);
}

.header-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0px;
    padding: 8px 16px;
    border: 1px solid #2A2622;
    background: #F7F5F3;
    border-radius: 9999px;
    color: #2A2622;
    font-family: 'Commissioner', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.header-btn-outline .btn-icon {
    width: 16px;
    height: 16px;
}

.header-btn-outline:hover {
    background-color: #651755;
    color: #fff;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
    position: relative;
}

/* Menu Overlay - Backdrop with blur effect */
body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

body.menu-open::before {
    opacity: 1;
    visibility: visible;
}

body.menu-open {
    overflow: hidden;
}

.hamburger-icon {
    height: 2px;
    background-color: #2A2622;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* Decreasing widths from top to bottom */
.hamburger-icon:nth-child(1) {
    width: 24px;
}

.hamburger-icon:nth-child(2) {
    width: 15px;
}

.hamburger-icon:nth-child(3) {
    width: 9px;
}

/* Active state - all become same width for X animation and white color */
.mobile-menu-toggle.active .hamburger-icon {
    width: 25px;
    background-color: #fff;
}

.mobile-menu-toggle.active .hamburger-icon:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

.mobile-menu-toggle.active .hamburger-icon:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.mobile-menu-toggle.active .hamburger-icon:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
    text-align: center;
    padding: var(--spacing-xl) 0;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-sm);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* ==========================================================================
   Section Styles
   ========================================================================== */

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.portfolio-section,
.about-section {
    padding: var(--spacing-xl) 0;
}

/* ==========================================================================
   Portfolio Grid
   ========================================================================== */

.portfolio-item {
    background: white;
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.portfolio-thumbnail {
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.portfolio-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

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

.portfolio-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
}

.portfolio-title a {
    color: var(--text-color);
}

.portfolio-title a:hover {
    color: var(--primary-color);
}

.portfolio-categories {
    margin-bottom: var(--spacing-sm);
}

.category-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--background-alt);
    border-radius: 20px;
    font-size: 0.85rem;
    margin-right: 8px;
    margin-bottom: 8px;
    color: var(--text-light);
}

.portfolio-excerpt {
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
}

.portfolio-link {
    color: var(--primary-color);
    font-weight: 600;
}

.view-all-portfolio {
    text-align: center;
    margin-top: var(--spacing-lg);
}

/* ==========================================================================
   Single Portfolio
   ========================================================================== */

.single-portfolio .portfolio-featured-image {
    margin-bottom: var(--spacing-lg);
    border-radius: 8px;
    overflow: hidden;
}

.single-portfolio .portfolio-featured-image img {
    width: 100%;
    height: auto;
}

.portfolio-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
}

.back-to-portfolio {
    text-align: center;
}

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

.site-footer {
    background: var(--background-alt);
}

.footer-navigation ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-sm);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .header-inner {
        flex-wrap: nowrap;
        position: relative;
        gap: 10px;
    }
    
    .site-branding {
        flex: 1;
    }
    
    /* Hide desktop button on mobile/tablet */
    .desktop-header-btn {
        display: none;
    }
    
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
        align-items: flex-end;
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 1002;
    }
    
    /* Show logo in mobile menu */
    body.menu-open .site-branding {
        position: fixed;
        top: 20px;
        left: 20px;
        z-index: 1001;
    }
    
    body.menu-open .site-branding .site-title a,
    body.menu-open .site-branding .site-description {
        color: #fff;
    }
    
    /* Dropdown menu from top */
    .header-nav-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        background: #661656;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        z-index: 999;
        overflow-y: auto;
        margin-left: 0;
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                    opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                    visibility 0s linear 0.5s,
                    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: column;
        padding: 0;
        border-radius: 0 0 40px 40px;
    }
    
    /* Mobile menu header with logo */
    .header-nav-wrapper::before {
        content: '';
        display: block;
        height: 70px;
    }
    
    .header-nav-wrapper.active {
        max-height: 100vh;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                    opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                    visibility 0s linear 0s,
                    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    /* Navigation styling */
    .main-navigation {
        padding: 20px 20px 20px;
        width: 100%;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
        padding: 0;
        list-style: none;
        margin: 0;
    }
    
    .main-navigation li {
        width: 100%;
        text-align: center;
        opacity: 0;
        transform: translateY(-15px);
        transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        /* border-bottom: 1px solid rgba(255, 255, 255, 0.1); */
    }
    
    .header-nav-wrapper.active .main-navigation li {
        opacity: 1;
        transform: translateY(0);
    }
    
    .header-nav-wrapper.active .main-navigation li:nth-child(1) { transition-delay: 0.15s; }
    .header-nav-wrapper.active .main-navigation li:nth-child(2) { transition-delay: 0.2s; }
    .header-nav-wrapper.active .main-navigation li:nth-child(3) { transition-delay: 0.25s; }
    .header-nav-wrapper.active .main-navigation li:nth-child(4) { transition-delay: 0.3s; }
    .header-nav-wrapper.active .main-navigation li:nth-child(5) { transition-delay: 0.35s; }
    .header-nav-wrapper.active .main-navigation li:nth-child(6) { transition-delay: 0.4s; }
    
    .main-navigation a {
        display: block;
        padding: 16px 0;
        text-align: center;
        font-size: 16px;
        color: #fff;
        text-decoration: none;
        transition: color 0.3s ease, transform 0.2s ease;
    }
    
    .main-navigation a:hover {
        transform: scale(1.05);
    }
    
    .main-navigation a:hover {
        color: #F7F5F3;
        opacity: 0.8;
    }
    
    /* Mobile menu button styling */
    .mobile-menu-btn {
        display: inline-flex;
        margin: 0 20px 30px;
        /* width: calc(100% - 40px); */
        justify-content: center;
        padding: 14px 24px;
        font-size: 16px;
        border-radius: 50px;
        gap: 8px;
        background: transparent;
        color: #fff;
        border: 1px solid #F7F5F3;
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .header-nav-wrapper.active .mobile-menu-btn {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.5s;
    }
    
    .mobile-menu-btn:hover {
        color: #FFBFF1;
        transform: translateY(0) scale(1.02);
    }
    
    .mobile-menu-btn .btn-text {
        display: inline;
    }
    
    .mobile-menu-btn .btn-icon {
        width: 20px;
        height: 20px;
        filter: brightness(0) invert(1);
        transition: all 0.3s ease;
    }
    
    .mobile-menu-btn:hover .btn-icon {
        filter: none;
        transform: scale(1.1) rotate(5deg);
    }
    
    /* Logo and text adjustments */
    .logo-wrapper {
        gap: 10px;
    }
    
    .site-title {
        font-size: 16px;
    }
    
    .site-description {
        font-size: 12px;
    }
    
    .portfolio-navigation {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .footer-navigation ul {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .site-header {
        padding: 16px 20px;
    }
    
    .container {
        padding: 0 15px;
    }
}

/* Ensure dropdown menu works on tablet too */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Show both navigation and button inline on tablets if there's space */
    .header-nav-wrapper {
        display: flex;
        flex-direction: row;
        align-items: center;
        position: relative;
        max-height: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
    }
    
    .desktop-header-btn {
        display: inline-flex;
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
}

/* Desktop view - ensure proper display */
@media (min-width: 769px) {
    .header-nav-wrapper {
        display: flex;
        flex-direction: row;
        align-items: center;
        position: relative;
        max-height: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
    }
    
    .main-navigation {
        padding: 0;
    }
    
    .desktop-header-btn {
        display: inline-flex;
/*         margin-left: 30px; */
    }
    
    .mobile-menu-btn {
        display: none;
    }
}