/* =========================================
   1. CORE VARIABLES & BASE
   ========================================= */
:root {
    --rh-red: #ee0000;
    --dark: #151515;
    --gray: #f0f0f0;
    --white: #ffffff;
    --text: #333333;
    --border: #dddddd;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    margin: 0;
    background: var(--gray);
    -webkit-font-smoothing: antialiased;
}

/* =========================================
   2. LAYOUT & HEADER
   ========================================= */
header {
    background: var(--dark);
    color: white;
    padding: 60px 20px;
    text-align: center;
    border-bottom: 5px solid var(--rh-red);
}

header h1 {
    margin: 0;
    font-size: 2.5em;
}

header p {
    font-size: 1.1em;
    opacity: 0.9;
}

.container {
    max-width: 900px;
    margin: auto;
    padding: 20px;
}

/* =========================================
   3. PROJECT CARDS (Interactive Architecture)
   ========================================= */
.card {
    background: var(--white);
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-left: 5px solid var(--rh-red);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    -webkit-tap-highlight-color: transparent; /* Fix for mobile tap flash */
}

/* Desktop Hover */
@media (hover: hover) {
    .card:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    }
}

/* Mobile Active/Touch Feedback */
.card:active {
    transform: scale(0.98);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 25px;
}

/* The 'Invisible Hitbox' - makes entire card surface clickable */
.card-link::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
}

h3 { margin-top: 0; color: var(--dark); }

/* =========================================
   4. COMPONENTS & FORMS
   ========================================= */
.tag {
    background: #e0e0e0;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8em;
    margin-right: 5px;
    display: inline-block;
    margin-top: 10px;
    position: relative;
    z-index: 2; /* Keeps tags above the card hitbox */
}

.contact-btn {
    display: inline-block;
    background: var(--rh-red);
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 20px;
    border: none;
    cursor: pointer;
    z-index: 2;
    position: relative;
    transition: background 0.2s;
}

.contact-btn:hover {
    background: #cc0000;
}

/* Contact Form Styling */
.card.no-border {
    border-left: none !important;
    padding: 20px !important;
}

input, textarea {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 1rem;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

/* =========================================
   5. UTILITIES & FOOTER
   ========================================= */
h2 {
    color: var(--rh-red);
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
    margin-top: 40px;
}

.view-more {
    display: block;
    margin-top: 15px;
    color: var(--rh-red);
    font-weight: bold;
    font-size: 0.85em;
}

footer {
    text-align: center;
    padding: 40px;
    color: #888;
    font-size: 0.9em;
}

hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 20px 0;
}
