/* ========================================
   Portfolio Page Styles
   ======================================== */

/* CSS Variables - Aligned with style.css */
:root {
    --primary: #005304;
    --secondary: #002A93;
    --accent: #FFD298;
    --dark: #000000;
    --light: #ffffff;
    --bg-light: #f7f7f7;
    --text-dark: #333333;
    --text-color: #333333;
    --bg-color: #f7f7f7;
    --border-color: #e0e0e0;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --gradient-hero: linear-gradient(135deg, #005304 0%, #003A25 50%, #002A93 100%);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    height: 100%;
}

/* Body Layout */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

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

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

.header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: var(--gradient-hero);
    color: var(--light);
    padding: 1rem 2rem;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 210, 152, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(0, 42, 147, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--light);
    transition: var(--transition);
}

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

.header-logo img {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.header-logo span {
    font-size: 1.2rem;
    font-weight: 700;
    margin-left: 0.75rem;
}

/* ========================================
   Main Container
   ======================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    flex: 1 0 auto;
}

/* ========================================
   Introduction Section
   ======================================== */

.intro {
    text-align: center;
    margin-bottom: 2rem;
    padding-top: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: slideIn 0.6s ease-out 0.2s forwards;
}

.intro h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.intro p {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* ========================================
   Slides Section
   ======================================== */

.slides-section {
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: slideIn 0.6s ease-out 0.4s forwards;
}

.slides-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    background: #f5f5f5;
}

.slides-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

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

.actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: slideIn 0.6s ease-out 0.6s forwards;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    will-change: transform, box-shadow;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #007a06 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(0, 83, 4, 0.3);
}

@media (hover: hover) and (pointer: fine) {
    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 83, 4, 0.4);
    }
    
    .btn-primary:hover::after {
        width: 200px;
        height: 200px;
        background: rgba(255, 255, 255, 0.2);
    }
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 83, 4, 0.2);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

@media (hover: hover) and (pointer: fine) {
    .btn-secondary:hover {
        background: var(--primary);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 83, 4, 0.3);
    }
    
    .btn-secondary:hover::after {
        width: 200px;
        height: 200px;
        background: rgba(255, 255, 255, 0.1);
    }
}

.btn-secondary:active {
    transform: translateY(0);
}

/* ========================================
   Info Section (Optional)
   ======================================== */

.info-section {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 2rem;
    margin-top: 3rem;
}

.info-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.info-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.info-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.info-card ul {
    list-style: none;
    padding-left: 0;
}

.info-card li {
    padding: 0.25rem 0;
    padding-left: 1.2rem;
    position: relative;
}

.info-card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

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

/* Footer styles - Explicitly override to match style.css */
footer {
    background-color: var(--primary) !important;
    color: var(--light) !important;
    text-align: center !important;
    padding: 1.5rem 2rem !important;
    font-size: 0.9rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
    font-family: 'Helvetica Neue', Arial, sans-serif !important;
    flex-shrink: 0;
    margin-top: auto;
}

footer p {
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Helvetica Neue', Arial, sans-serif !important;
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
}

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

/* Mobile */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem 1rem;
    }
    
    .intro {
        padding-top: 1rem;
        margin-bottom: 1.5rem;
    }
    
    footer {
        padding: 1.25rem 1rem !important;
    }
    
    .header {
        padding: 0.875rem 1.5rem;
    }
    
    .header-logo img {
        width: 40px;
        height: 40px;
    }
    
    .header-logo span {
        font-size: 1rem;
    }
    
    .intro h2 {
        font-size: 1.5rem;
    }
    
    .intro p {
        font-size: 1rem;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

/* Desktop */
@media (min-width: 769px) {
    .header {
        padding: 1.125rem 2.5rem;
    }
    
    .header-logo img {
        width: 60px;
        height: 60px;
    }
    
    .header-logo span {
        font-size: 1.4rem;
    }
    
    .container {
        padding: 2.5rem 2rem;
    }
    
    .intro {
        padding-top: 2rem;
        margin-bottom: 2.5rem;
    }
    
    .intro h2 {
        font-size: 2.5rem;
    }
    
    .intro p {
        font-size: 1.2rem;
    }
}
