/* ==========================================================================
   PROJECT: SCP Digital Business Card & Portfolio
   VERSION: 1.0.1
   AUTHOR: Nate
   LOG: Refactored Phase 2 layout into Dark Dashboard wrapper
   ========================================================================== */

:root {
    /* --- Main Branding Palette --- */
    --seton-red:   #B71234; 
    --seton-gold:  #F0AB00; 

    /* --- Secondary Support Palette --- */
    --clay-dark:   #AAA38E; 
    --clay-medium: #BEB9A6; 
    --clay-light:  #CECABC; 
    
    /* --- Interface Neutrals --- */
    --bg-light:    #FFFFFF;
    --text-dark:   #1A1A1A;

    /* --- Typography Stack --- */
    --font-headline: 'Nexa Bold', 'Arial Black', sans-serif;
    --font-body:     'Open Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ==========================================================================
   Base Resets & Page Background
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.page-background {
    background-image: url('../assets/page_texture.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

body {
    font-family: var(--font-body);
    background-color: transparent; 
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

/* ==========================================================================
   Layout: Phase 1 The Business Card Container
   ========================================================================= */
.viewport-container {
    width: 100%;
    max-width: 400px;
}

/* Adds gold border and bigger float shadow */
.watermark-bg {
    position: relative;
    background-color: var(--bg-light);
    padding: 40px 30px;
    border-radius: 16px;
    
    /* NEW: Gold Border and heavier float shadow */
    border: 2px solid var(--seton-gold);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15); 
    
    text-align: center;
    overflow: hidden; 
}

.watermark-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/sentinel_watermark.png');
    background-size: 150% auto; 
    background-position: center 20%; 
    background-repeat: no-repeat;
    opacity: 0.25; 
    z-index: 1; 
}

.card-header, .card-actions {
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   Header & Badging
   ========================================================================== */
.profile-frame {
    margin-bottom: 20px;
}

/* Makes the profile image a rounded square and pushes it down */
.profile-img {
    width: 120px;
    height: 120px;
    
    /* NEW: Rounded square and lowered from the top edge */
    border-radius: 20px; 
    margin-top: 15px;
    
    object-fit: cover;
    border: 4px solid var(--seton-gold);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.profile-name {
    font-family: var(--font-headline);
    color: var(--seton-red);
    font-size: 24px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.profile-title {
    color: var(--text-dark); 
    font-size: 13px;
    font-weight: 700; 
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* ==========================================================================
   Action Buttons (UI/UX)
   ========================================================================== */
.card-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn {
    display: inline-block;
    width: 100%;
    padding: 14px 20px;
    border-radius: 8px;
    font-family: var(--font-headline);
    font-size: 14px;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--seton-red);
    color: #ffffff;
}

.btn-secondary {
    background-color: var(--seton-gold);
    color: var(--text-dark);
}

.btn-tertiary {
    background-color: var(--clay-dark);
    color: #ffffff;
}

.btn-share {
    background-color: var(--text-dark); /* This makes it that rich, dark black */
    color: #ffffff;
    margin-top: 5px; /* Tightened the spacing since it is inside the group now */
    cursor: pointer;
    border: none;
}

/* ==========================================================================
   QR Code Mini-Card & Unfold Animation
   ========================================================================== */

/* Gives the QR container a school-appropriate light background */
.qr-container {
    background-color: var(--clay-light); 
    
    /* NEW: Matches the gold border of the main card */
    border: 2px solid var(--seton-gold);
    
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); 
    text-align: center;
    width: 100%;
    max-height: 500px; 
    opacity: 1;
    padding: 30px;
    margin-top: 20px;
    transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease, margin 0.4s ease;
    overflow: hidden; 
}

.qr-container.collapsed {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    border: none;
    box-shadow: none;
}

.qr-image {
    width: 90%; 
    max-width: 250px; 
    height: auto; 
    display: block;
    margin: 0 auto 15px auto;
}

.qr-container p {
    font-size: 13px; 
    font-weight: bold;
    color: var(--clay-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ==========================================================================
   JavaScript UI Interactions (Flash & Toast)
   ========================================================================== */
.flash {
    animation: flashEffect 0.3s ease-out;
}

@keyframes flashEffect {
    0% { background-color: #ffffff; color: var(--seton-red); transform: scale(1.02); }
    100% { transform: scale(1); }
}

.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--text-dark);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: bold;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9999;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    pointer-events: none; 
}

.toast-notification.show {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   Phase 2: Portfolio & Expertise Layout (V3 - Dark Dashboard)
   ========================================================================== */

/* ==========================================================================
   Portfolio Page: Navigation Pill
   ========================================================================== */
.portfolio-nav {
    margin-bottom: 25px; /* Pushes the main red hero card down slightly */
    text-align: left;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px; /* Perfect spacing between the SVG arrow and the text */
    color: var(--clay-light); /* Soften the color so it's not blindingly white */
    text-decoration: none;
    font-family: var(--font-headline);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 8px 18px;
    
    /* Creates a sleek, semi-transparent button background */
    background-color: rgba(255, 255, 255, 0.08); 
    border-radius: 50px; /* Forces the perfect "pill" shape */
    transition: all 0.3s ease; /* Smooths out the hover animation */
}

/* The Micro-Interaction Hover Effect */
.back-link:hover {
    background-color: rgba(255, 255, 255, 0.15); /* Brightens the button */
    color: #ffffff; /* Pops the text to pure white */
    
    /* Physically slides the button 5 pixels to the left! */
    transform: translateX(-5px); 
}

/* ==========================================================================
   Portfolio Page: Dashboard Topbar
   ========================================================================== */
.dashboard-topbar {
    display: flex;
    justify-content: space-between; /* Forces the two items to opposite sides */
    align-items: center; /* Keeps them perfectly centered vertically */
    
    padding-bottom: 20px; /* Gives the items room to breathe above the line */
    margin-bottom: 30px; /* Pushes the rest of the page down below the line */
    
    border-bottom: 3px solid var(--seton-gold); /* The solid gold line! */
}

/* The Status Badge Styling */
.topbar-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-headline);
    font-size: 12px;
    color: var(--clay-light);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    
    background-color: rgba(0, 0, 0, 0.2); /* Dark, subtle pill background */
    padding: 8px 16px;
    border-radius: 50px;
}

#status-text {
    transition: opacity 0.3s ease; /* Makes the JS text swapping fade smoothly */
}

/* The Pulsing Green Dot */
.status-dot {
    width: 8px;
    height: 8px;
    background-color: #4CAF50; /* Tech UI Green */
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); /* Setup for the pulse animation */
    animation: pulse-green 2s infinite;
}

/* Keyframes for the dot's radar-ping effect */
@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(76, 175, 80, 0); /* Expands and fades out */
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

/* The Dark Dashboard Wrapper */
.portfolio-container {
    width: 100%;
    max-width: 800px; 
    margin: 40px auto;
    background-color: #5A5A5A; 
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* Update Header Text to contrast with the new dark background */
.portfolio-container .card-header {
    background-color: transparent !important; 
    box-shadow: none !important;
    padding: 0 0 20px 0 !important;
}

.portfolio-container .card-header .profile-name {
    color: var(--bg-light); 
}

.portfolio-container .card-header .profile-title {
    color: var(--clay-medium); 
}

/* ==========================================================================
   Portfolio Page: Redesigned Hero Header
   ========================================================================== */
.portfolio-hero {
    background-color: var(--seton-red) !important; /* Overrides the transparent background */
    padding: 30px !important; 
    border-radius: 12px; 
    margin-bottom: 30px; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.2) !important; 
    
    /* YOUR FIX: The solid gold line across the bottom of the card header */
    border-bottom: 4px solid var(--seton-gold) !important; 
    
    display: flex; 
    align-items: center; 
    justify-content: space-between;
}

/* Forces the text inside this specific header to be white/clay and spaced correctly */
.portfolio-hero .profile-name {
    font-size: 24px;
    color: #ffffff !important;
    letter-spacing: 3px;
    margin-bottom: 5px;
}

.portfolio-hero .profile-title {
    color: var(--clay-light) !important;
    margin-bottom: 0;
}

.portfolio-section {
    margin-bottom: 40px;
}

.section-title {
    font-family: var(--font-headline);
    color: var(--seton-gold); 
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    text-align: center;
    /* REMOVED: border-bottom: 2px solid rgba(255, 255, 255, 0.1); */
    /* REMOVED: padding-bottom: 10px; */
}

/* Responsive Grid System */
.skills-grid, .projects-grid {
    display: grid;
    grid-template-columns: 1fr; 
    gap: 30px;
}

@media (min-width: 768px) {
    .skills-grid, .projects-grid {
        grid-template-columns: 1fr 1fr; 
    }
}

/* Colorful Card Styling */
.skill-card, .project-card {
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15); 
    display: flex;
    flex-direction: column;
    height: 100%; 
    box-sizing: border-box;
    transition: transform 0.2s ease;
}

.skill-card:hover, .project-card:hover {
    transform: translateY(-5px); 
}

.skill-card {
    background-color: var(--clay-light);
    border-top: 6px solid var(--seton-red); 
}

.project-card {
    background-color: var(--bg-light);
    border-top: 6px solid var(--seton-gold);
}

.skill-card h3, .project-card h3 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 12px;
    font-family: var(--font-headline);
}

/* Fixed Text Contrast */
.skill-card p, .project-card p {
    font-size: 14px;
    color: #333333; 
    line-height: 1.6;
    flex-grow: 1; 
}

/* Fixed Image Scaling */
.project-img {
    width: 100%;
    aspect-ratio: 16 / 9; 
    height: auto;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 2px solid var(--clay-dark);
}

/* Bold Call-to-Action Resume Section */
.resume-section {
    text-align: center;
    background-color: var(--seton-red); 
    padding: 40px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(183, 18, 52, 0.3); 
    margin-top: 20px;
}

.resume-section .section-title {
    color: #ffffff;
    border-bottom: none;
}

.resume-section p {
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 25px;
    opacity: 0.9;
}

/* Dual button layout for the resume section */
.resume-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

/* Stack the buttons on top of each other on very small phone screens */
@media (max-width: 480px) {
    .resume-actions {
        flex-direction: column;
    }
}

/* ==========================================================================
   Footer Versioning & Institutional Link
   ========================================================================== */

   /* Makes the footer float heavier */
.production-footer {
    margin-top: 40px; 
    text-align: center;
    font-size: 12px;
    color: #ffffff; 
    background-color: #5A5A5A; 
    padding: 12px 20px;
    border-radius: 20px; 
    
    /* NEW: Heavier float shadow to match the card */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2); 
}

.footer-link {
    color: #ffffff; /* Flipped the main link to white */
    text-decoration: none; 
    font-weight: 700;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--seton-gold); /* A nice gold pop when hovering over the link */
}

.version-tag {
    font-family: monospace;
    margin-top: 5px;
    color: #cccccc; /* A light, soft gray so the version number doesn't overpower the main link */
}

/* flexes the icon properly */
.btn-share {
    background-color: var(--text-dark); 
    color: #ffffff;
    margin-top: 5px; 
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* Space between the icon and text */
}