/*
Theme Name: OnePagePortfolio
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --text-primary: #333333;
    --accent: #0073aa;
    --border: #dddddd;
}

body.dark-mode {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --text-primary: #f0f0f0;
    --border: #444444;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: 0.3s;
}

/* ====================
   HEADER
   ==================== */
.site-header {
    position: sticky;
    top: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 1rem 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Desktop Menu */
.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
}

.nav-menu a.active {
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
}

/* Mobile Menu */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 5px 0;
}

.mobile-navigation {
    display: none;
}

.dark-mode-toggle {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
}

/* ====================
   FULL PAGE SECTIONS
   ==================== */
.full-page {
    min-height: 100vh;
    width: 100%;
    position: relative;
}

.full-page:not(:last-child) {
    margin-bottom: 40px;
}

/* Center content for regular sections (home, profile, etc.) */
.full-page:not(.image-overlay-section) {
    display: flex;
    align-items: center;
    justify-content: center;
}

.full-page:not(.image-overlay-section) .wp-block-group__inner-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Image overlay sections - different layout */
.full-page.image-overlay-section {
    display: block;
}

/* ====================
   IMAGE OVERLAY SECTIONS
   ==================== */
.image-overlay-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-overlay-section img {
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 85vh !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
}

/* Transparent overlay content */
.image-overlay-section .overlay-content {
    position: absolute;
    z-index: 10;
    padding: 20px;
    max-width: 500px;
}

/* Headings */
.image-overlay-section .overlay-content h2,
.image-overlay-section .overlay-content .wp-block-heading {
    color: white !important;
    font-size: 4rem !important;
    font-weight: bold !important;
    margin-bottom: 1rem !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Buttons */
.image-overlay-section .overlay-content .wp-block-button {
    margin-top: 0.5rem;
}

.image-overlay-section .overlay-content .wp-block-button__link {
    background: #0073aa !important;
    color: white !important;
    padding: 0.75rem 2rem !important;
    font-size: 1.2rem !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
    border: none !important;
}

.image-overlay-section .overlay-content .wp-block-button__link:hover {
    background: #005a87 !important;
    transform: scale(1.05) !important;
}

/* ====================
   OVERLAY POSITIONS
   ==================== */
/* Top Right (default) */
.image-overlay-section .overlay-content {
    top: 120px;
    right: 30px;
    text-align: right;
}

/* Top Left */
.image-overlay-section .overlay-content.top-left {
    top: 120px;
    left: 30px;
    right: auto;
    text-align: left;
}

/* Center */
.image-overlay-section .overlay-content.center {
    top: 50%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
    text-align: center;
}

/* Bottom Right */
.image-overlay-section .overlay-content.bottom-right {
    top: auto;
    bottom: 120px;
    right: 30px;
    text-align: right;
}

/* Bottom Left */
.image-overlay-section .overlay-content.bottom-left {
    top: auto;
    bottom: 120px;
    left: 30px;
    right: auto;
    text-align: left;
}

/* ====================
   NAVIGATION ARROWS
   ==================== */
.section-nav {
    position: fixed;
    right: 20px;
    bottom: 50%;
    transform: translateY(50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-arrow {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.nav-arrow:hover {
    background: #005a87;
    transform: scale(1.05);
}

/* ====================
   MOBILE
   ==================== */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: block;
    }
    
    .mobile-navigation {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100%;
        background: var(--bg-primary);
        padding: 5rem 2rem;
        transition: left 0.3s;
        display: block;
        z-index: 999;
    }
    
    .mobile-navigation.open {
        left: 0;
    }
    
    .mobile-nav-menu {
        list-style: none;
    }
    
    .mobile-nav-menu li {
        margin-bottom: 1rem;
    }
    
    .mobile-nav-menu a {
        color: var(--text-primary);
        text-decoration: none;
        font-size: 1.2rem;
    }
    
    /* Mobile overlay - bottom center */
    .image-overlay-section .overlay-content {
        top: auto !important;
        bottom: 40px !important;
        left: 20px !important;
        right: 20px !important;
        text-align: center !important;
        transform: none !important;
    }
    
    .image-overlay-section .overlay-content h2,
    .image-overlay-section .overlay-content .wp-block-heading {
        font-size: 2rem !important;
        text-align: center !important;
    }
    
    .image-overlay-section .overlay-content .wp-block-button {
        text-align: center !important;
    }
    
    .full-page:not(:last-child) {
        margin-bottom: 20px;
    }
}

/* ====================
   UTILITY CLASSES
   ==================== */
.border-image {
    border: 3px solid #0073aa;
}

.border-rounded {
    border: 2px solid #ddd;
    border-radius: 12px;
}

.shadow-image {
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.shadow-heavy {
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.border-shadow {
    border: 2px solid #0073aa;
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.shadow-on-hover {
    transition: box-shadow 0.3s ease;
}

.shadow-on-hover:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.25);
}

.inner-shadow {
    box-shadow: inset 0 0 10px rgba(0,0,0,0.2);
}

/* ====================
   IMAGE SHRINK CLASSES
   ==================== */
/* 90% shrink */
.shrink-90 {
    width: 90% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
}

/* 80% shrink */
.shrink-80 {
    width: 80% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
}

/* 70% shrink */
.shrink-70 {
    width: 70% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
}

/* Center the image when shrunk */
.wp-block-image {
    text-align: center;
}