@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&family=Roboto+Mono:wght@400;700&family=Roboto:wght@300;400;700&display=swap');

/* General Styles */
:root {
    --primary-accent: #6c63ff; /* A subtle, modern purple-blue for accents */
    --text-dark: #333;
    --text-light: #555;
    --background-light: #fdfdfd;
    --background-neutral: #f0f2f5;
    --card-background: #ffffff;
    --border-light: #e0e0e0;

    /* Console specific colors for glassy effect (lighter/more transparent) */
    --glass-console-bg: rgba(255, 255, 255, 0.1); /* Very light translucent background */
    --glass-console-border: rgba(255, 255, 255, 0.2); /* Light translucent border */
    --glass-console-text: #000000; /* Black text for clarity on light bg */
    
    --glass-key-bg: rgba(255, 255, 255, 0.15); /* Key translucent background */
    --glass-key-border: rgba(255, 255, 255, 0.3); /* Key translucent border */
    --glass-key-text: #333; /* Darker text for keys */
    --glass-key-hover-bg: rgba(255, 255, 255, 0.25); 
    --glass-key-active-bg: rgba(108, 99, 255, 0.4); /* Primary accent color for active key */
    --glass-key-active-text: #ffffff; /* White text on accent background */
    --glass-shadow: rgba(0, 0, 0, 0.05); /* Very light, subtle shadow */
    --glass-glow: rgba(108, 99, 255, 0.4); /* Accent color for glow */
}

* {
    box-sizing: border-box;
}

html {
    width: 100%;
    height: 100%;
}

body {
    font-family: 'Roboto', sans-serif;
    width: 100%;
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    background-color: var(--background-neutral);
    color: var(--text-light);
    line-height: 1.8;
    font-size: 17px;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    margin-top: 0;
    font-weight: 700;
}

h1 {
    font-size: 2.8em;
}

h2 {
    font-size: 2.2em;
    margin-bottom: 1em;
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 0.5em;
}
        .job-details-container {
            padding-left: 0;
            padding-top: 20px;
            min-height: unset !important;
            position: static !important;
        }

        .job-content {
            position: static !important;
            width: 100% !important;
            min-height: unset !important;
            visibility: visible !important;
            opacity: 1 !important;
            transform: none !important;
            transition: none !important;
            margin-bottom: 30px;
            display: none;
        }
        .job-content.active {
            display: block;
        }
h4 {
    font-size: 1.3em; /* Adjusted for sub-headings within combined experience */
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    color: var(--primary-accent);
}

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

a:hover {
    color: #4a42d9; /* A slightly darker accent on hover */
}

/* Global ul styling to reset default browser margins/paddings, allowing list-style to persist */
ul {
    padding: 0;
    margin: 0;
}

/* Nav ul specifically: removes default list style for navigation links */
nav ul {
    list-style: none; 
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
}

/* Header */
header {
    background-color: var(--card-background);
    padding: 1.5em 0;
    text-align: center;
    box-shadow: 0 1px 6px var(--glass-shadow);
    border-bottom: 1px solid var(--border-light);
    position: sticky; /* Make header sticky */
    top: 0;
    z-index: 1000; /* Ensure it stays on top */
}

nav ul li a {
    color: var(--text-dark);
    font-weight: 700;
    padding: 8px 0;
    position: relative;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

/* Active tab styling */
nav ul li a.active {
    color: var(--primary-accent);
}

nav ul li a.active::after {
    width: 100%;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 3px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-accent);
    transition: width 0.3s ease-in-out;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Sections */
section {
    background-color: var(--card-background);
    margin: 40px auto;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px var(--glass-shadow);
    max-width: 960px;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out; /* Keep transition for active-section */
    min-height: 50vh; 
    display: block; 
}

section.active-section {
    opacity: 1;
    transform: translateY(0);
}

/* Specific margin for Experience section */
#experience {
    margin-top: 80px; /* Increased from 40px (default for all sections) to 80px */
}

/* Hero Section - now contains the console */
#hero {
    text-align: center;
    background: var(--background-neutral); /* Simpler background to let glass show */
    color: var(--text-dark);
    padding: 50px 20px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Align content to the top */
    min-height: 100vh; /* Make hero full height of viewport */
    padding-top: 50px;
}

/* Console Container */
.console-container {
    background-color: var(--glass-console-bg);
    border: 1px solid var(--glass-console-border);
    border-radius: 15px;
    padding: 20px;
    width: 100%;
    max-width: 900px; /* Wider for full keyboard */
    box-shadow: 0 0 30px var(--glass-glow); /* Accent color glow */
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 2em;
    backdrop-filter: blur(10px); /* Glass effect */
    -webkit-backdrop-filter: blur(10px); /* Safari support */
}

/* Console Display */
.console-display {
    background-color: rgba(255, 255, 255, 0.1); /* Very light subtle background */
    border: 1px inset rgba(200, 200, 200, 0.4); /* Light subtle border */
    padding: 15px;
    min-height: 80px;
    font-family: 'Roboto Mono', monospace;
    color: var(--glass-console-text);
    font-size: 2.5em;
    text-align: left;
    white-space: pre-wrap;
    overflow: hidden;
    display: flex;
    align-items: center;
    border-radius: 8px;
}

#console-cursor {
    opacity: 1;
    animation: blink-console-cursor 0.7s step-end infinite;
    font-weight: bold;
    margin-left: 2px;
    color: var(--primary-accent); /* Cursor matches accent color */
}

@keyframes blink-console-cursor {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

/* Virtual Keyboard */
.virtual-keyboard {
    display: flex;
    flex-direction: column;
    gap: 8px; 
    padding: 10px;
    background-color: rgba(255,255,255,0.05); /* Very light transparent background */
    border-radius: 10px;
    /* align-items removed for mobile override */
}

.keyboard-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(40px, 1fr)); 
    gap: 8px; 
    width: 100%; 
    justify-content: center; 
}

.key {
    background-color: var(--glass-key-bg);
    color: var(--glass-key-text);
    border: 1px solid var(--glass-key-border);
    border-radius: 6px;
    padding: 15px 5px;
    font-size: 1em;
    font-weight: normal;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 2px 4px var(--glass-shadow); /* Lighter shadow */
    outline: none;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.key:hover {
    background-color: var(--glass-key-hover-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--glass-shadow);
}

.key:active, .key.pressed {
    background-color: var(--glass-key-active-bg); 
    color: var(--glass-key-active-text);
    transform: translateY(1px);
    box-shadow: 0 1px 2px var(--glass-shadow);
    border-color: var(--primary-accent); /* Border matches accent */
}

/* Specific key widths/spans */
.backspace-key {
    grid-column: span 2; 
    background-color: rgba(255, 99, 71, 0.2); /* Tomato red, but translucent */
    color: #cc0000; /* Darker red text for contrast */
    box-shadow: 0 2px 4px var(--glass-shadow);
    border-color: rgba(255, 99, 71, 0.4);
}

.backspace-key:hover {
    background-color: rgba(255, 99, 71, 0.3);
    box-shadow: 0 4px 8px var(--glass-shadow);
}

.backspace-key:active, .backspace-key.pressed {
    background-color: rgba(255, 99, 71, 0.5);
    color: #fff;
    box-shadow: 0 1px 2px var(--glass-shadow);
}

.tab-key, .caps-key, .enter-key, .shift-key {
    font-size: 0.8em;
    padding: 5px;
}

.tab-key { grid-column: span 1.5; }
.caps-key { grid-column: span 1.8; }
.enter-key { grid-column: span 2.2; }
.shift-key { grid-column: span 2.5; }
.large-space { grid-column: span 6; }

/* Override default styling for modifier keys for specific appearance */
.modifier-key {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly more transparent */
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-dark);
}

.modifier-key:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.modifier-key:active, .modifier-key.pressed {
    background-color: var(--glass-key-active-bg);
    color: var(--glass-key-active-text);
}


/* Job and Education Entries */
.job-entry, .education-entry {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

.job-entry:last-child, .education-entry:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.job-entry h3, .education-entry h3 {
    margin-bottom: 8px;
    color: var(--primary-accent);
}

.job-entry .dates, .education-entry .dates {
    font-size: 0.95em;
    color: var(--text-light);
    margin-bottom: 12px;
    display: block;
}

/* Ensure ul within job-content has disc bullets and proper indentation */
#experience .job-content ul {
    list-style-type: disc; /* Explicitly set disc bullets */
    list-style-position: outside; /* Position bullets outside content box */
    margin-left: 20px; /* Indent the entire list from the left */
    padding-left: 0; /* Ensures no extra padding on the UL itself */
}

#experience .job-content ul li {
    padding-left: 1.25em; /* This is key: provides space *inside* the LI for the text, pushing it from the outside bullet */
    margin-bottom: 8px;
}

/* Basic ul style (less aggressive than before, allowing natural browser list-style) */
ul {
    padding: 0;
    margin: 0;
}

/* Skills Section */
#skills ul {
    list-style: none; /* No bullets for skills section */
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

#skills ul li {
    background-color: transparent;
    border: 2px solid var(--primary-accent);
    color: var(--primary-accent);
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 1em;
    font-weight: 400;
    transition: all 0.3s ease;
}

#skills ul li:hover {
    background-color: var(--primary-accent);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px var(--glass-shadow);
}

#skills ul li strong {

/* Photography Gallery Styles */
.gallery-item {
    background-color: var(--card-background);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* Ensures image corners are rounded with item */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 150px; /* Fixed height for consistency */
    object-fit: cover; /* Covers the area, cropping if necessary */
    display: block; /* Removes extra space below image */
    border-radius: 10px;
    max-width: 100vw;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr; /* Stack images on small screens */
    }
    .gallery-item img {
        height: 120px;
    }
    nav ul {
        gap: 18px;
    }
    nav ul li a {
        font-size: 1.2em;
        padding: 14px 0;
        min-height: 48px;
    }
    footer {
        padding: 40px 10px;
        font-size: 1em;
    }
    body {
        font-size: 19px;
    }

    /* Console and Keyboard Mobile Tweaks */
    #hero {
        padding: 20px 2px 0 2px;
        min-height: unset;
    }
    .console-container {
        padding: 10px 2px;
        max-width: 100vw;
        gap: 10px;
    }
    .console-display {
        font-size: 1.3em;
        padding: 8px;
        min-height: 48px;
    }
    .virtual-keyboard {
        padding: 4px;
        gap: 4px;
        overflow-x: auto;
        max-width: 100vw;
        align-items: flex-start !important;
        height: auto !important;
    }
        .keyboard-row {
            display: flex !important;
            flex-wrap: wrap;
            justify-content: center;
            width: 100%;
            gap: 4px;
        align-items: flex-start !important;
        height: auto !important;
        }
    .key {
        font-size: 0.85em;
        padding: 7px 2px;
        min-width: 32px;
        min-height: 32px;
        height: 38px;
        border-radius: 4px;
            flex: 0 0 auto;
            width: auto;
            margin: 0 1px;
    }
    .backspace-key, .enter-key, .shift-key, .caps-key, .tab-key, .space-key {
        font-size: 0.75em;
        padding: 7px 2px;
    }
        .large-space {
            min-width: 60px;
        }
}
    color: inherit;
}

/* Qualifications Section Layout - This applies to the top-level #qualifications section */
#qualifications {
    margin-top: 100px; /* Increased margin to explicitly separate it as its own box */
}

#qualifications .qualifications-container {
    display: flex;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
    gap: 40px; /* Space between Education and Skills columns */
    justify-content: space-between;
    margin-top: 20px;
}

#qualifications .education-content,
#qualifications .skills-content {
    flex: 1; /* Allows columns to grow and shrink */
    min-width: 300px; /* Ensures minimum width before wrapping */
}

#qualifications .education-content h3,
#qualifications .skills-content h3 {
    color: var(--text-dark); /* Ensure sub-headings are clearly visible */
    border-bottom: 1px solid var(--border-light); /* Subtle separator */
    padding-bottom: 10px;
    margin-bottom: 20px;
}

#qualifications .education-entry h4 {
    margin-bottom: 5px; /* Adjust spacing for university names */
}

/* Adjustments for skills list within the new layout */
#qualifications .skills-content ul {
    list-style: none; /* Keep no bullets for skills */
    padding: 0;
}

#qualifications .skills-content ul li {
    margin-bottom: 10px; /* Add some space between skill items */
}

/* Professional Experience Section Styling for Tabs */
.experience-tabs-container {
    display: flex; /* Enables flexbox for side-by-side layout */
    gap: 20px; /* Adds space between the tabs and the content */
    align-items: flex-start; /* Align content to the top */
    min-height: 0 !important;
    /* flex-wrap: wrap; - Moved into media query for explicit control on small screens */
}

.job-titles-nav {
    flex: 0 0 250px; /* Fixed width for the navigation column */
    display: flex;
    flex-direction: column; /* Stacks job titles vertically */
    border-right: 1px solid var(--border-light);
    padding-right: 20px; /* Spacing */
}

.job-tab {
    background-color: var(--background-neutral); /* Subtle background for inactive tabs */
    color: var(--text-dark);
    border: none;
    padding: 15px 20px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1em;
    font-weight: 400;
    border-left: 3px solid transparent; /* For active indicator */
    margin-bottom: 5px; /* Spacing between tabs */
    border-radius: 5px; /* Slightly rounded corners */
}

.job-tab:hover {
    background-color: var(--background-light); /* Lighter on hover */
    color: var(--primary-accent);
}

.job-tab.active {
    background-color: var(--card-background); /* White background for active tab */
    color: var(--primary-accent);
    border-left: 3px solid var(--primary-accent);
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.job-details-container {
    flex: 1; /* Takes up remaining space */
    padding-left: 20px; /* Spacing from the tab navigation */
    position: relative; /* Crucial for positioning child .job-content elements */
    min-height: 0 !important;
    overflow: hidden;
    padding-top: 0 !important; /* Remove any top padding */
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
        /* Remove or reduce top margin to eliminate white space above job titles */
        .job-details-container {
            margin-top: 0px;
            /* ...other styles... */
        }

.job-content {
    display: none;
    position: absolute;
    top: 0;
    left: 20px;
    width: calc(100% - 20px);
    padding-top: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
/* Remove top margin from job titles in job-content to align with tab */
.job-content h4:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
}
        /* Remove or reduce top margin for job content as well */
        .job-content {
            margin-top: 0px;
            /* ...other styles... */
        }
.job-content.active {
    display: block;
}

/* Responsive adjustments for experience and qualifications sections */
@media (max-width: 768px) {
    .experience-tabs-container {
        flex-direction: column;
        flex-wrap: wrap;
    }

    .job-titles-nav {
        flex: none;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-light);
        padding-right: 0;
        padding-bottom: 20px;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .job-tab {
        margin-right: 10px;
        margin-bottom: 10px;
        border-left: none;
        border-bottom: 3px solid transparent;
        border-radius: 5px 5px 0 0;
    }
    
    .job-tab.active {
        border-left: none;
        border-bottom: 3px solid var(--primary-accent);
    }

    .job-details-container {
        padding-left: 0;
        padding-top: 20px;
    }

    .job-content {
        display: none;
        position: static !important;
        width: 100% !important;
        left: 0 !important;
        top: 0 !important;
    }
    .job-content.active {
        display: block;
    }

    #qualifications .qualifications-container {
        flex-direction: column;
    }
    #qualifications .education-content,
    #qualifications .skills-content {
        min-width: unset;
    }
}

/* LinkedIn Button Styling (top-level) */
.linkedin-button-container {
    text-align: center;
    margin-top: 1em;
    margin-bottom: 2em;
}

.linkedin-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #0077B5;
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.linkedin-button:hover {
    background-color: #005582;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.linkedin-button svg {
    fill: #ffffff;
}

/* Linktree Button Styling (Cute Version) */
.linktree-button-container {
    text-align: center;
    margin-top: 3em;
    margin-bottom: 1em;
}

.linktree-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #a2f2a2;
    color: #333333;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 10px rgba(162, 242, 162, 0.4);
}

.linktree-button:hover {
    background-color: #88d188;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(162, 242, 162, 0.5);
}

.linktree-button svg {
    fill: #333333;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    background-color: var(--card-background);
    color: var(--text-light);
    margin-top: 50px;
    font-size: 0.9em;
    border-top: 1px solid var(--border-light);
    box-shadow: 0 -1px 6px var(--glass-shadow);
}
