* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    /* Carbon-inspired dark background with high-contrast red accents */
    background: #0f0f11;
    color: #f5f5f5;
    line-height: 1.6;
    padding: 20px;
}

header {
    text-align: center;
    padding: 40px 20px;
    /* Aggressive racing stripe/speed gradient (Red to Carbon Black) */
    background: linear-gradient(135deg, #e60000, #1c1c21);
    color: white;
    border-radius: 12px;
    margin-bottom: 30px;
    /* Performance glow shadow */
    box-shadow: 0 4px 20px rgba(230, 0, 0, 0.3);
}

header img {
    border-radius: 50%;
    margin: 20px 0;
    /* Changed border to match the new racing red theme */
    border: 4px solid #e60000;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h2 {
    /* Bold Crimson Red header accent */
    color: #e60000;
    margin-bottom: 10px;
    /* Tachometer-needle inspired red/black border split */
    border-left: 5px solid #ff3333;
    padding-left: 10px;
    text-transform: uppercase;
    font-weight: 700;
}

section {
    /* Matte dark grey/black look reminiscent of car interiors */
    background: #18181c;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid #26262b;
}

ul {
    margin-top: 10px;
    list-style: square inside;
}

#contact a {
    /* High-octane glowing red text */
    color: #ff3333;
    font-weight: bold;
    text-decoration: none;
}

#contact a:hover {
    text-decoration: underline;
}

footer {
    text-align: center;
    margin-top: 30px;
    padding: 15px;
    background: #111115;
    color: #888;
    border-radius: 10px;
    border-top: 2px solid #e60000;
}

/* Smooth fade-in animation for sections */
section {
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Header slide-down animation */
header {
    animation: slideDown 1.2s ease-in-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hover animation for links */
#contact a {
    transition: 0.3s ease;
}
#contact a:hover {
    transform: scale(1.05);
}


/* ----------------------------------------------- */
/* Theme Support (Hyper-Dark vs Carbon Metallic)   */
/* ----------------------------------------------- */

/* Smooth theme transition */
body {
    transition: background 0.5s ease, color 0.5s ease;
}

/* Altered dark-mode colors to act as a "Hyper-Dark/Stealth Mode" switch */
body.dark-mode {
    background: #050505;
    color: #b3b3b3;
}
body.dark-mode header {
    background: linear-gradient(135deg, #111, #000);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    border: 1px solid #333;
}
body.dark-mode section {
    background: #0d0d11;
    box-shadow: none;
    border-color: #1a1a22;
}
body.dark-mode h2 {
    color: #cc0000;
    border-left-color: #333;
}
body.dark-mode footer {
    background: #000;
}
body.dark-mode #contact a {
    color: #ff4d4d;
}

/* Toggle button styling (Now a Red Launch/Nitro Trigger) */
#theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    background: #e60000;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(230, 0, 0, 0.4);
    transition: background 0.3s ease, transform 0.3s ease;
}

#theme-toggle:hover {
    transform: scale(1.08);
    background: #ff1a1a;
    box-shadow: 0 4px 20px rgba(255, 26, 26, 0.6);
}

/* Button pop animation when clicked */
#theme-toggle:active {
    transform: scale(0.9);
}


/* ----------------------------------------------- */
/* Scrolling Image Showcase Styles                */
/* ----------------------------------------------- */
.showcase-title {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #f5f5f5;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 0;
    scroll-behavior: smooth;
    /* Clean custom scrollbar for tech aesthetics */
    scrollbar-width: thin;
    scrollbar-color: #e60000 #18181c;
}

.scroll-container::-webkit-scrollbar {
    height: 8px;
}

.scroll-container::-webkit-scrollbar-track {
    background: #18181c;
    border-radius: 4px;
}

.scroll-container::-webkit-scrollbar-thumb {
    background-color: #e60000;
    border-radius: 4px;
}

.scroll-container img {
    flex: 0 0 auto;
    width: 280px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #26262b;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.scroll-container img:hover {
    transform: scale(1.03);
    border-color: #e60000;
}

/* ----------------------------------------------- */
/* Interactive Contact Form Styles                 */
/* ----------------------------------------------- */
#portfolio-form {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ccc;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: #111115;
    border: 1px solid #26262b;
    border-radius: 6px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e60000;
    box-shadow: 0 0 8px rgba(230, 0, 0, 0.4);
}

.submit-btn {
    align-self: flex-start;
    padding: 12px 25px;
    background: linear-gradient(135deg, #e60000, #990000);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(230, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(230, 0, 0, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Form input adaptations for Stealth Mode */
body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
    background: #050505;
    border-color: #1a1a22;
}

body.dark-mode .showcase-title {
    color: #b3b3b3;
}
