/* =========================================
   1. RESET & VARIABLES
   ========================================= */
:root {
    --bg-dark: #231F20;      /* Main Background */
    --card-bg: #1e1e1e;      /* Card Background */
    --accent-red: #EF4136;   /* The Red color from the image */
    --text-main: #C2B59B;    /* Light Parchment text */
    --text-header: #EF4136;  /* Headers match accent */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    padding: 80px 20px; /* Increased top padding to accommodate floating head */
}

/* =========================================
   2. TYPOGRAPHY (Google Fonts)
   ========================================= */
.pirata-one-regular {
  font-family: "Pirata One", system-ui;
  font-weight: 400;
  font-style: normal;
}

.source-sans-3-light {
  font-family: "Source Sans 3", sans-serif;
  font-weight: 300;
}

.source-sans-3-regular {
  font-family: "Source Sans 3", sans-serif;
  font-weight: 400;
  line-height: 1.6;
}

.source-sans-3-bold {
  font-family: "Source Sans 3", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
}

/* =========================================
   3. GENERAL LAYOUT COMPONENTS
   ========================================= */
.container {
    max-width: 900px;
    width: 100%;
}

/* Header */
.main-header {
    text-align: center;
    margin-bottom: 50px;
}

.main-header h1 {
    color: #C2B59B; /* Slightly darker/neutral for the Name Title */
    font-size: 3rem;
    margin-bottom: 5px;
}

.main-header p {
    color: #C2B59B;
    font-size: 1.15rem;
    letter-spacing: 1px;
}

/* General Card Styles */
.card {
    border: 2px solid var(--accent-red);
    border-radius: 20px;
    padding: 40px;
    background-color: var(--card-bg);
    margin-bottom: 30px;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

/* Headings */
.heading-lg {
    color: var(--text-header);
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1;
}

.heading-md {
    color: var(--text-header);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

/* Drop Cap (The Big "W") */
.drop-cap {
    font-size: 4rem;
    line-height: 0.8;
    float: left;
    margin-right: 4px;
    margin-top: -2px;
}

/* =========================================
   4. PROFILE SECTION (Structure & Floating Logic)
   ========================================= */
.profile-card {
    margin-top: 40px; /* Extra margin on top relative to header */
    overflow: visible; /* Allows the image to float outside the border */
    display: flex;
    flex-direction: column;
}

/* Wrapper for the Top Row (Frog + Bio) */
.profile-top-row {
    position: relative; /* Anchor for the absolute image */
    min-height: 250px; 
}

/* The Floating Image Container - Desktop */
.profile-image-container {
    position: absolute;
    top: 30px;   /* Pull Up */
    left: -110px;  /* Pull Left */
    width: 400px; /* Fixed width */
    z-index: 10;
    filter: drop-shadow(5px 5px 15px rgba(0,0,0,0.5));
}

.character-img {
    width: 100%;
    height: auto;
    display: block;
}

/* The Bio Text Block */
.profile-text {
    /* Pushed to the right to clear the image */
    margin-left: 310px; 
}

.bio-text p {
    margin-bottom: 15px;
    font-size: 1.15rem;
}

.bio-text .dimmed {
    opacity: 0.7; /* Using opacity for dimming works well with the new beige color */
}

/* =========================================
   5. CONTACT & TOOLS (Bottom Row)
   ========================================= */
.info-grid {
    display: flex;
    margin-top: 40px;
    gap: 40px;
    width: 100%; /* Spans full width of the card */
    padding-top: 20px;
}

.contact-col {
    flex: 0 0 35%; /* Fixed width for contact column */
}

.contact-list {
    list-style: none;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-main);
}

.contact-list i {
    color: var(--text-main);
    width: 20px; 
    opacity: 0.8;
}

.tools-col {
    flex: 1; /* Takes remaining space */
}

.tools-list {
    display: flex;
    justify-content: space-between;
}

.tools-list ul {
    list-style: none;
}

.tools-list li {
    margin-bottom: 5px;
    color: var(--text-main);
}
/* Styling for the Email Link */
.contact-link {
    color: inherit;          /* Inherits the parchment color defined in parent */
    text-decoration: none;   /* Removes the default underline */
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: var(--accent-red); /* Turns red when you hover over it */
    cursor: pointer;
}

/* =========================================
   6. DIVIDERS (Diamonds)
   ========================================= */
.divider {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
}

.divider span {
    display: block;
    width: 12px;
    height: 12px;
    background-color: var(--accent-red);
    transform: rotate(45deg);
    border: 2px solid var(--bg-dark);
}

.small-divider {
    margin: 20px 0;
    opacity: 0.8;
}

.small-divider span {
    width: 8px;
    height: 8px;
}

/* =========================================
   7. WORK SECTION
   ========================================= */
.work-intro {
    margin-bottom: 30px;
    font-size: 1.15rem;
    max-width: 100%;
}

.project-showcase {
    width: 100%;
    border: 1px solid var(--accent-red);
    padding: 5px;
    background: var(--bg-dark); /* Inner border framing */
}

.project-showcase img {
    width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   8. RESPONSIVE / MOBILE STYLES
   ========================================= */
@media (max-width: 768px) {
    
    /* Reset Layout for Mobile */
    .container {
        padding-top: 0;
    }

    /* 1. Reset Floating Image */
    .profile-image-container {
        position: static;
        width: 100%;
        max-width: 280px;
        margin: 0 auto 30px auto;
        top: auto;
        left: auto;
        filter: none;
    }

    /* 2. Reset Text Margins */
    .profile-text {
        margin-left: 0;
        text-align: center;
    }

    /* 3. Stack Columns */
    .info-grid {
        flex-direction: column;
        gap: 30px;
        margin-top: 30px;
    }

    /* Center Align Contact & Tools on Mobile */
    .contact-col, .tools-col {
        text-align: center;
    }

    .contact-list li {
        justify-content: center;
    }

    .tools-list {
        /* Keep tools side-by-side or stack depending on preference. 
           This keeps them side-by-side but centered. */
        justify-content: space-around;
        font-size: 0.9rem;
    }

    /* Adjust Main Headings */
    .main-header h1 {
        font-size: 2.2rem;
    }
    
    .card {
        padding: 30px 20px;
    }
	
	@media (max-width: 768px) {
    
    /* ... (Keep your existing rules for .profile-image-container, etc.) ... */

    /* NEW: FIX THE SPLIT "W" */
    .drop-cap {
        float: none;         /* Stop the letter from floating to the left */
        font-size: inherit;  /* Make it the same size as the rest of the header */
        line-height: normal; /* Reset line height */
        margin: 0;           /* Remove the margins */
        display: inline;     /* Ensure it sits inline with the rest of the word */
    }

    /* ... (Keep the rest of your existing mobile rules) ... */
}
}

/* =========================================
   9. GALLERY & BOX CONSTRAINT STYLES
   ========================================= */

/* Forces pixel art images to remain crisp with zero anti-aliasing */
.pixel-art {
    image-rendering: -moz-crisp-edges;
    image-rendering: -o-crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

.gallery-section {
    margin-bottom: 40px;
}

/* =========================================
   GALLERY SINGLE-LINE LAYOUT (No Individual Red Boxes)
   ========================================= */

.gallery-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

/* Removes the individual red box/border, centers content, and stacks 1 per line */
.gallery-item {
    background: transparent;
    border: none;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    overflow: hidden;
}

.gallery-item img, 
.gallery-item video {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 4px;
}

.folder-title {
    color: var(--text-main);
    border-bottom: 1px dashed var(--accent-red);
    padding-bottom: 8px;
    margin-bottom: 15px;
}