/* === GLOBAL STYLES === */
body {
    font-family: 'Rubik', sans-serif;
    background-color: #d4e9f7;
    background-image: url('https://www.transparenttextures.com/patterns/diamond-upholstery.png');
    background-repeat: repeat;
    color: #1a1a1a;
    line-height: 1.6;
    margin: 0;
    padding: 0 20px;
}
h1, h2, h3 {
    color: #002244;
    font-weight: bold;
    margin-top: 40px;
    margin-bottom: 15px;
}

h1 {
    font-size: 2.4em;
    text-align: center;
}

h2 {
    font-size: 1.8em;
    border-bottom: 2px solid #004080;
    padding-bottom: 5px;
    margin-bottom: 20px;
}

h3 {
    color: #003366;
    font-size: 1.3em;
}

ul {
    padding-left: 20px;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* === NAVIGATION === */
nav {
    background-color: #003366;
    padding: 10px;
    text-align: center;
}

nav a, .dropbtn {
    color: #ffffff;
    margin: 0 15px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    background: none;
    border: none;
    cursor: pointer;
}

nav a:hover, .dropbtn:hover {
    color: #ffcc00;
}
/* === DROPDOWN CONTAINER === */
.dropdown {
    position: relative;
    display: inline-block;
}

/* === TRIGGER BUTTON === */
.dropbtn {
    color: #ffffff;
    margin: 0 15px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

/* === DROPDOWN MENU === */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%; /* right below the Projects button */
    left: 50%;
    transform: translateX(-50%);

    background-color: #ffffff;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border-radius: 8px;
    z-index: 1;

    display: flex;
    white-space: nowrap;
}

/* === DROPDOWN LINKS === */
.dropdown-content a {
    color: #003366;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-right: 1px solid #ddd;
}

.dropdown-content a:last-child {
    border-right: none;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

/* === SHOW ON HOVER === */
.dropdown:hover .dropdown-content {
    display: flex;
}


/* === FOOTER === */
footer {
    margin-top: 40px;
    text-align: center;
    font-size: 0.8em;
    color: #fff;
    padding: 20px;
    background-color: #003366;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.social-icon {
    width: 20px;
    height: 20px;
    color: #ffffff;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover .social-icon {
    color: #ffcc00;
    transform: scale(1.15);
}

.social-links a {
    display: inline-block;
    padding: 6px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* === HERO SECTION === */
.hero {
    margin-top: 60px;
    margin-bottom: 3rem;
}

.hero-banner {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 20px;
    background-image: url('/static/images/profile.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content {
    text-align: center;
    padding: 2rem;
    margin-top: 1rem;
}

.hero-content h1 {
    color: #111827;
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 1.25rem;
    color: #6b7280;
    margin-top: 0.5rem;
    font-weight: 500;
    letter-spacing: 0.025em;
}

/* === SUMMARY === */
.summary {
    max-width: 700px;
    margin: 30px auto;
    text-align: center;
    font-size: 1.1em;
}

/* === HIGHLIGHT CARDS === */
.highlights {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 40px auto;
    max-width: 1000px;
    padding: 0 20px;
}

.card {
    background-color: #eef6fb; /* very pale blue */
    border: 1px solid #aacde6;
    border-radius: 12px;
    padding: 24px;
    flex: 1 1 250px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.card h3 {
    font-size: 1.2em;
    margin-bottom: 12px;
    color: #003366;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.card h3::after {
    content: "";
    display: block;
    height: 4px;
    width: 40px;
    border-radius: 2px;
    background: linear-gradient(to right, #4ea1d3, #2a6f97);
    margin-top: 6px;
}

.card p {
    font-size: 1em;
    line-height: 1.5;
    color: #333;
}
.card .badge {
    display: inline-block;
    background-color: #2a6f97;
    color: #fff;
    padding: 4px 8px;
    font-size: 0.75em;
    border-radius: 8px;
    margin-left: 8px;
}
/* === ABOUT SECTION === */
.about-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    margin-top: 20px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.about-text {
    flex: 2;
    min-width: 250px;
}

.about-image {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    border: 2px solid #ccc;
}

/* === MILITARY SECTION === */
.military-section {
    max-width: 1000px;
    margin: 60px auto;
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
}

.military-section h2 {
    text-align: center;
    margin-bottom: 30px;
}

.military-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.military-text {
    flex: 2;
    text-align: left;
}

.military-text p {
    font-size: 1.1em;
    line-height: 1.6;
    margin: 0;
}

.military-image {
    flex: 1;
    text-align: center;
}

.military-section img {
    max-width: 300px;
    width: 100%;
    height: auto;
    border: 2px solid #003366;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .military-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .military-text {
        text-align: center;
    }
    
    .hero-banner {
        height: 300px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-banner {
        height: 250px;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .tagline {
        font-size: 0.9rem;
    }
}

/* === CONTACT FORM === */
.contact-form {
    max-width: 600px;
    margin: 30px auto;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.contact-form label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
    color: #002244;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1em;
}

.contact-form button {
    margin-top: 20px;
    padding: 12px 20px;
    background-color: #003366;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
}

.contact-form button:hover {
    background-color: #004c99;
}

.captcha {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid #003366;
}

.captcha label {
    margin-top: 0;
    color: #003366;
}

.captcha input {
    width: 100px;
    margin-top: 5px;
}

.captcha small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.9em;
}

.honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
}

.success-message {
    text-align: center;
    color: #28a745;
    font-weight: bold;
    margin-top: 20px;
    padding: 10px;
    background-color: #d4edda;
    border-radius: 5px;
    border: 1px solid #c3e6cb;
}

.error-message {
    text-align: center;
    color: #dc3545;
    font-weight: bold;
    margin-top: 20px;
    padding: 10px;
    background-color: #f8d7da;
    border-radius: 5px;
    border: 1px solid #f5c6cb;
}

.content-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px; /* adds spacing on mobile */
}

/* === PROJECT SECTIONS === */
.project {
    margin-bottom: 40px;
}

.project img {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
    border: 2px solid #003366;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 0 5px rgba(0,0,0,0.15);
}

/* === GAME SECTION === */
.game-section {
    max-width: 800px;
    margin: 20px auto;
    font-size: 1.1em;
    text-align: center;
}

.game-screenshots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
}

.game-screenshots img {
    max-width: 400px;
    width: 100%;
    border-radius: 10px;
    border: 2px solid #003366;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.feature-list {
    max-width: 800px;
    margin: auto;
    padding-left: 20px;
    list-style: square;
    background-color: #ffffffcc;
    padding: 20px;
    border-left: 5px solid #004080;
    border-radius: 10px;
    margin-bottom: 40px;
}

/* === INLINE IMAGES === */
.image-inline {
    text-align: center;
    margin: 40px auto;
}

.image-inline img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    border: 2px solid #003366;
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.image-inline.right {
    float: right;
    margin-left: 30px;
    width: 50%;
}

.image-inline.left {
    float: left;
    margin-right: 30px;
    width: 50%;
}

@media (max-width: 768px) {
    .image-inline.right,
    .image-inline.left {
        float: none;
        width: 100%;
        margin: 20px auto;
    }
}

/* === SIDE-BY-SIDE ELEMENTS === */
.side-by-side {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin: 50px 0;
}

.side-by-side img {
    max-width: 100%;
    border-radius: 10px;
    border: 2px solid #003366;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.image-left, .image-right {
    flex: 1;
}

.text-right, .text-left {
    flex: 1;
}

.reverse {
    flex-direction: row-reverse;
}

@media (max-width: 768px) {
    .side-by-side, .reverse {
        flex-direction: column;
        text-align: center;
    }

    .text-right, .text-left {
        margin-top: 20px;
    }
}

/* === CTA BUTTONS === */
.cta-button {
    display: inline-block;
    margin: 10px;
    padding: 12px 20px;
    background-color: #004080;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #0066cc;
}

.call-to-action {
    background-color: #ffffffdd;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    margin-top: 60px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}
.intro {
    max-width: 800px;
    margin: 30px auto;
    font-size: 1.1em;
    text-align: center;
}

.skills-callout {
    background-color: #ffffffcc;
    border-left: 5px solid #2a6f97;
    padding: 20px;
    border-radius: 10px;
    max-width: 800px;
    margin: 50px auto;
}

.skills-list {
    list-style: disc;
    padding-left: 20px;
    margin-top: 10px;
}


