/*--------------------------------------------------------------
  GENERIC TEMPLATE STYLES
  Based on Navy Blue and Gold Color Scheme
--------------------------------------------------------------*/

/*--------------------------------------------------------------
  COLOR VARIABLES
--------------------------------------------------------------*/
:root {
    --primary-navy: #1B3B6F;        /* Navy blue from image */
    --primary-gold: #F4B942;        /* Gold/yellow from image */
    --heading-color: #EEEEEE;       /* Light gray for headings */
    --text-dark: #333333;           /* Dark text */
    --text-light: #FFFFFF;          /* White text */
    --background-light: #F8F9FA;    /* Light background */
    --background-dark: #2C3E50;     /* Dark background alternative */
    --accent-color: #E74C3C;        /* Accent red */
    --border-color: #DEE2E6;        /* Light border */
    --shadow: rgba(0, 0, 0, 0.1);   /* Subtle shadow */
}

/*--------------------------------------------------------------
  BASE & FONT
--------------------------------------------------------------*/
@font-face {
    font-family: 'Colossalis';
    src: url('../Resources/fonts/Colossalis Regular.otf') format('opentype');
    font-display: swap;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    margin: 0;
    padding: 0;
}

/*--------------------------------------------------------------
  TYPOGRAPHY
--------------------------------------------------------------*/
/* Reset all headings to use standard font */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    font-weight: bold;
    margin-bottom: 1rem;
}

/* Apply special font only to hero text */
.hero-text h1 {
    font-family: 'Colossalis', Arial, sans-serif !important;
    color: var(--heading-color) !important;
    font-size: 3rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Apply special font only to branding text */
.brand-text,
.brandNaveBarText,
.brandFooterText {
    font-family: 'Colossalis', Arial, sans-serif !important;
}

h1 {
    font-size: 2.5rem;
    text-transform: uppercase;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.1rem;
}

h6 {
    font-size: 1rem;
}

.section-title {
    color: var(--text-dark) !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    text-align: center;
    margin-bottom: 2rem;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: var(--primary-gold);
    border: none;
    margin: 1rem auto 2rem;
}

.subhead {
    color: var(--primary-navy);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.lead {
    font-size: 1.125rem;
    font-weight: 300;
    color: var(--text-dark);
}

/*--------------------------------------------------------------
  UTILITIES
--------------------------------------------------------------*/
.navy-color {
    color: var(--primary-navy) !important;
}

.gold-color {
    color: var(--primary-gold) !important;
}

.heading-color {
    color: var(--heading-color) !important;
}

.bg-navy {
    background-color: var(--primary-navy) !important;
}

.bg-gold {
    background-color: var(--primary-gold) !important;
}

.border-navy {
    border-color: var(--primary-navy) !important;
}

.border-gold {
    border-color: var(--primary-gold) !important;
}

.btn-navy {
    background-color: var(--primary-navy);
    border-color: var(--primary-navy);
    color: var(--text-light);
}

.btn-navy:hover {
    background-color: #144063;
    border-color: #144063;
    color: var(--text-light);
}

.btn-gold {
    background-color: var(--primary-gold);
    border-color: var(--primary-gold);
    color: var(--text-dark);
}

.btn-gold:hover {
    background-color: #E6A637;
    border-color: #E6A637;
    color: var(--text-dark);
}

/*--------------------------------------------------------------
  NAVBAR
--------------------------------------------------------------*/
.main-nav {
    background: rgba(0, 0, 0, 0.95); /* Black with transparency */
    backdrop-filter: blur(10px);
    padding: 0.75rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050; /* Highest z-index to stay above all content */
    transition: all 0.3s ease;
    overflow: visible; /* Allow logo to overhang */
}

.main-nav.scrolled {
    background: rgba(0, 0, 0, 0.98); /* Black with higher opacity when scrolled */
    padding: 0.75rem 0; /* Keep same padding as non-scrolled state */
}

.main-nav .nav-link {
    color: var(--text-light);
    margin-left: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav .nav-link:hover,
.main-nav .nav-link:focus {
    color: var(--primary-gold);
}

.navbar-brand {
    height: 80px;
    padding: 10px 0 10px 25px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1055; /* Higher than navbar to allow overhang */
    overflow: visible; /* Allow content to extend beyond container */
}

.navbar-brand > img {
    height: 120px !important; /* Much larger to create clear overhang */
    width: auto;
    position: relative;
    z-index: 1055;
    /* Create shadow for better visibility when overhanging */
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    margin-top: 0px; /* No top overhang - keep within navbar top */
    margin-bottom: -40px; /* Larger bottom overhang */
}

.navbar-toggler {
    border-color: var(--primary-gold);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(244, 185, 66, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.brand-text {
    margin-left: 1rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-light);
    font-family: 'Colossalis', Arial, sans-serif !important;
    line-height: 1.2;
    align-self: center; /* Ensure it's vertically centered */
    margin-top: 10px; /* Push down slightly to align with center of logo */
}

/*--------------------------------------------------------------
  HERO SECTION
--------------------------------------------------------------*/
.hero-wrapper {
    position: relative;
    overflow: hidden;
    margin-top: 80px; /* Account for fixed navbar */
    height: 400px; /* Set fixed height for the hero section */
}

.hero-background,
.hero-bg {
    background: linear-gradient(135deg, var(--primary-navy) 0%, #2C5282 100%);
    min-height: 400px; /* Reduced height by 200px */
    width: 100%;
    position: fixed; /* Fixed position to prevent scrolling */
    top: 80px; /* Position below the navbar */
    left: 0;
    right: 0;
    z-index: -1; /* Move behind all content including footer */
}

.hero-background::before,
.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../Resources/images/USFlagBackground.jpg') center/cover no-repeat;
    opacity: 0.1;
    z-index: 1;
}

/* Page-specific hero backgrounds */
.portfolio-page .hero-bg::before {
    background: url('../Resources/images/DevSecOps-Wallpaper-reduced.jpg') center/cover no-repeat;
}

.resume-page .hero-bg::before {
    background: url('../Resources/images/InfrastructureAsCode-reduced.jpg') center/cover no-repeat;
}

.contact-page .hero-bg::before {
    background: url('../Resources/images/PlatformEngineering-reduced.jpg') center/cover no-repeat;
}

.hero-section {
    position: relative;
    z-index: 2;
    min-height: 400px; /* Reduced height by 200px */
    display: flex;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 4rem 0; /* Increased padding for better spacing */
    color: var(--text-light);
    width: 100%;
}

/* Ensure main content scrolls over the fixed hero background */
main {
    position: relative;
    z-index: 10; /* Higher than hero background */
    background: var(--background-light); /* Ensure content has background */
    color: var(--text-dark); /* Use dark text for light backgrounds */
}

/* Make sure all sections after hero have proper background */
section {
    position: relative;
    z-index: 10;
}

/* Ensure footer appears above fixed hero background */
.footer {
    position: relative;
    z-index: 10;
    background: var(--primary-navy); /* Ensure footer has solid background */
    border-top: 4px solid var(--primary-gold); /* Add yellow/gold border on top */
}

/* Ensure white/light sections use dark text */
.bg-white,
.section-light,
section.py-5.bg-white {
    color: var(--text-dark) !important;
}

/* Ensure any text elements in light sections use dark color */
.bg-white p,
.bg-white .text-muted,
.section-light p,
.section-light .text-muted {
    color: var(--text-dark) !important;
}

.hero-badge-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 8px 32px var(--shadow);
    backdrop-filter: blur(10px);
}

.hero-text h1 {
    color: var(--heading-color) !important;
    font-size: 3rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-title-line {
    width: 80px;
    height: 4px;
    background: var(--primary-gold);
    margin-bottom: 1rem;
}

.hero-subtitle {
    color: var(--primary-gold);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin-bottom: 0;
}

/*--------------------------------------------------------------
  CARDS
--------------------------------------------------------------*/
.card-modern {
    background: var(--text-light);
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 4px 20px var(--shadow);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.card-modern .card-header {
    background: var(--primary-navy);
    color: var(--text-light);
    border: none;
    padding: 1.5rem;
}

.card-modern .card-header h3 {
    color: var(--heading-color) !important;
    margin-bottom: 0;
}

.card-modern .card-body {
    padding: 2rem;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--text-dark);
}

/*--------------------------------------------------------------
  SECTIONS
--------------------------------------------------------------*/
.section-light {
    background-color: var(--background-light);
    padding: 4rem 0;
}

.section-dark {
    background-color: var(--primary-navy);
    color: var(--text-light);
    padding: 4rem 0;
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark h6 {
    color: var(--heading-color) !important;
}

.section-gold {
    background-color: var(--primary-gold);
    color: var(--text-dark);
    padding: 4rem 0;
}

.section-gold h1,
.section-gold h2,
.section-gold h3,
.section-gold h4,
.section-gold h5,
.section-gold h6 {
    color: var(--text-dark) !important;
}

/*--------------------------------------------------------------
  BUTTONS
--------------------------------------------------------------*/
.btn-template {
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-template:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow);
}

/*--------------------------------------------------------------
  FOOTER
--------------------------------------------------------------*/
.footer {
    background-color: var(--primary-navy);
    color: var(--text-light);
    padding: 3rem 0 1rem;
}

.footer h5 {
    color: var(--heading-color) !important;
    margin-bottom: 1rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--primary-gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    margin-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/*--------------------------------------------------------------
  RESPONSIVE
--------------------------------------------------------------*/
@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-content {
        padding: 2rem 0;
    }
    
    .section-light,
    .section-dark,
    .section-gold {
        padding: 2rem 0;
    }
    
    .brand-text {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-text h1 {
        font-size: 1.75rem;
    }
    
    .card-modern .card-header,
    .card-modern .card-body {
        padding: 1rem;
    }
}

/*--------------------------------------------------------------
  ANIMATIONS
--------------------------------------------------------------*/
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.fade-in-up.delay-1 {
    animation-delay: 0.2s;
}

.fade-in-up.delay-2 {
    animation-delay: 0.4s;
}

.fade-in-up.delay-3 {
    animation-delay: 0.6s;
}

/*--------------------------------------------------------------
  PORTFOLIO SPECIFIC STYLES
--------------------------------------------------------------*/

/* Hero Contact Info */
.hero-contact-info {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 2rem;
}

.hero-contact-info p {
    color: var(--heading-color);
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.hero-contact-info i {
    color: var(--primary-gold);
    margin-right: 0.5rem;
    width: 20px;
}

/* Experience Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background: var(--primary-gold);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}

.timeline-item {
    padding: 1rem 2rem;
    position: relative;
    background: inherit;
    width: 50%;
    margin-bottom: 2rem;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -9px;
    background: var(--primary-gold);
    border: 3px solid var(--primary-navy);
    top: 1.5rem;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(27, 59, 111, 0.15);
}

.timeline-content h4 {
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}

.timeline-content h5 {
    color: var(--primary-gold);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-date {
    color: #666;
    font-style: italic;
    font-size: 0.9rem;
}

/* Certification styles */
.cert-item {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.cert-item:last-child {
    border-bottom: none;
}

.cert-item i {
    color: var(--primary-navy);
    font-size: 1.2rem;
    margin-right: 0.8rem;
}

/* Skill tags */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.skill-tag {
    background: var(--primary-gold);
    color: var(--text-dark);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Project cards */
.project-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(27, 59, 111, 0.15);
}

.project-image {
    background: linear-gradient(135deg, var(--primary-navy), var(--background-dark));
    padding: 3rem;
    text-align: center;
}

.project-image i {
    color: var(--primary-gold);
}

.project-content {
    padding: 2rem;
}

.project-content h4 {
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

.project-tech {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: var(--background-light);
    color: var(--primary-navy);
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

/* Responsive timeline */
@media screen and (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 4rem;
        padding-right: 1rem;
    }
    
    .timeline-item::after {
        left: 21px;
    }
    
    .timeline-item:nth-child(even) {
        left: 0%;
    }
    
    .hero-contact-info {
        margin-top: 2rem;
    }
}
