
/* ===================================
   Bryan Campbell Portfolio Stylesheet
   Version: 2.0
   Description: Professional martial arts portfolio
   =================================== */

/* --- CSS Variables & Theme --- */
:root {
    --primary-red: #E30613;
    --dark-red: #9e040d;
    --bg-black: #050505;
    --bg-dark: #111111;
    --bg-card: #1a1a1a;
    --text-white: #ffffff;
    --text-silver: #cccccc;
    --section-spacing: 100px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-black);
    color: var(--text-silver);
    line-height: 1.7;
    overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3, h4, .logo {
    font-family: 'Russo One', sans-serif;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

h1 {
    font-size: 4.5rem;
    line-height: 1.1;
}

h2 {
    font-size: 3rem;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 80px;
    height: 5px;
    background: var(--primary-red);
    transform: skewX(-20deg);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.highlight-red {
    color: var(--primary-red);
}

a {
    text-decoration: none;
    color: var(--text-white);
    transition: 0.3s;
}

/* --- Reusable Components --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    padding: var(--section-spacing) 0;
}

.bg-dark {
    background-color: var(--bg-dark);
}

/* --- Button Styles --- */
.btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--primary-red);
    color: var(--text-white);
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s ease;
    cursor: pointer;
    font-family: 'Russo One', sans-serif;
    letter-spacing: 1px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -20%;
    width: 0%;
    height: 100%;
    background-color: var(--text-white);
    transform: skewX(-20deg);
    z-index: -1;
    transition: all 0.4s ease;
}

.btn:hover {
    color: var(--primary-red);
    box-shadow: 0 0 20px rgba(227, 6, 19, 0.6);
}

.btn:hover::before {
    width: 130%;
}

/* --- Scroll Animation Classes --- */
.hidden {
    opacity: 0;
    filter: blur(5px);
    transform: translateY(50px);
    transition: all 1s ease;
}

.show {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 200ms;
}

.delay-2 {
    transition-delay: 400ms;
}

.delay-3 {
    transition-delay: 600ms;
}

/* --- Navbar Styles --- */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s ease;
    background: transparent;
}

#navbar.scrolled {
    background: rgba(5, 5, 5, 0.95);
    padding: 15px 0;
    border-bottom: 2px solid var(--primary-red);
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-red);
    transition: width 0.3s ease-in-out;
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-white);
    background: none;
    border: none;
}

/* --- Hero Section --- */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9)),
        url('https://images.unsplash.com/photo-1555597673-b21d5c935865?w=1920&h=1080&fit=crop') no-repeat center center/cover;
    border-bottom: 3px solid var(--primary-red);
}

.hero-content {
    max-width: 800px;
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--text-silver);
    font-weight: 300;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary-red);
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-20px);
    }
    60% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* --- Stats Section --- */
#stats {
    padding: 60px 0;
    background: var(--primary-red);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

.stat-item h3 {
    font-size: 3.5rem;
    margin-bottom: 0;
    color: var(--text-white);
}

.stat-item p {
    font-weight: 600;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

/* --- Cards Grid --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-bottom: 4px solid transparent;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.card i {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 25px;
}

.card:hover {
    transform: translateY(-15px);
    border-bottom-color: var(--primary-red);
    box-shadow: 0 15px 30px rgba(227, 6, 19, 0.2);
}

.card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to top, rgba(227, 6, 19, 0.1), transparent);
    transition: all 0.4s ease;
    z-index: -1;
}

.card:hover::after {
    height: 100%;
}

/* --- Timeline --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--bg-card);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-container {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--primary-red);
    border: 4px solid var(--bg-black);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.left::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid white;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent var(--bg-card);
}

.right::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid white;
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--bg-card) transparent transparent;
}

.right::after {
    left: -10px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: var(--bg-card);
    position: relative;
    border-radius: 6px;
}

.timeline-date {
    color: var(--primary-red);
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}

/* --- Contact Section --- */
.contact-box {
    background: var(--bg-card);
    padding: 50px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    border: 2px solid var(--primary-red);
}

.contact-box i {
    font-size: 2rem;
    color: var(--primary-red);
    margin-bottom: 20px;
}

.contact-detail {
    font-size: 1.3rem;
    margin: 20px 0;
    color: var(--text-white);
}

/* --- Footer --- */
footer {
    background: #000;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #222;
    margin-top: auto;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        background: var(--bg-black);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.5s ease-in-out;
        border-left: 2px solid var(--primary-red);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 20px 0;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-container {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-container::before {
        left: 60px;
        border: medium solid white;
        border-width: 10px 10px 10px 0;
        border-color: transparent var(--bg-card) transparent transparent;
    }

    .left::after,
    .right::after {
        left: 21px;
    }

    .right {
        left: 0%;
    }

    .contact-box {
        padding: 30px 20px;
    }
}

/* --- Print Styles --- */
@media print {
    #navbar,
    .scroll-down,
    .btn {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    section {
        page-break-inside: avoid;
    }
}
