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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Variables for Dark Mode */
:root {
    --bg-gradient-start: #004b36;
    --bg-gradient-end: #1c57e0;
    --container-bg: white;
    --text-primary: #333;
    --text-secondary: #555;
    --text-tertiary: #666;
    --nav-bg: #05050e;
    --hero-gradient-start: #0a24bb;
    --hero-gradient-end: #037a3f;
    --card-bg: #f8f9fa;
    --card-border: #667eea;
    --shadow-light: rgba(0,0,0,0.1);
    --shadow-medium: rgba(0,0,0,0.3);
    --accent-yellow: #ffeb3b;

    /* Heading and emphasis colors */
    --section-title-color: #05050e;
    --company-name-color: #2269ac;
    --job-title-color: #217eaa;
    --summary-text-color: #444;
}

body.dark-mode {
    --bg-gradient-start: #0a0a0a;
    --bg-gradient-end: #1a1a2e;
    --container-bg: #16213e;
    --text-primary: #e4e4e4;
    --text-secondary: #c4c4c4;
    --text-tertiary: #a4a4a4;
    --nav-bg: #0f0f0f;
    --hero-gradient-start: #1a1a3e;
    --hero-gradient-end: #0d3d2f;
    --card-bg: #1e2d47;
    --card-border: #4a5f8f;
    --shadow-light: rgba(255,255,255,0.05);
    --shadow-medium: rgba(255,255,255,0.1);

    /* Bright, high-contrast colors for dark mode */
    --section-title-color: #ffeb3b;
    --company-name-color: #64b5f6;
    --job-title-color: #81c784;
    --summary-text-color: #d0d0d0;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 20px;
    transition: background 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--container-bg);
    border-radius: 20px;
    box-shadow: 0 20px 60px var(--shadow-medium);
    overflow: hidden;
    transition: background 0.3s ease;
}

/* Navigation - Placeholder for future blog section */
.main-nav {
    background: var(--nav-bg);
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    gap: 15px;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    transition: all 0.3s ease;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-yellow);
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    background: var(--accent-yellow);
    border: 3px solid #000;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
    font-size: 1.5em;
    box-shadow: 3px 3px 0px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1001;
}

.dark-mode-toggle:hover {
    transform: scale(1.1) rotate(15deg);
}

.dark-mode-toggle .sun-icon,
.dark-mode-toggle .moon-icon {
    position: absolute;
    transition: opacity 0.3s, transform 0.3s;
}

.dark-mode-toggle .moon-icon {
    opacity: 0;
    transform: rotate(-180deg);
}

body.dark-mode .dark-mode-toggle {
    background: #2c3e50;
}

body.dark-mode .dark-mode-toggle .sun-icon {
    opacity: 0;
    transform: rotate(180deg);
}

body.dark-mode .dark-mode-toggle .moon-icon {
    opacity: 1;
    transform: rotate(0deg);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger-line {
    width: 30px;
    height: 3px;
    background: white;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(9px, 9px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(9px, -9px);
}

/* Hero Header */
.hero-header {
    background: linear-gradient(135deg, var(--hero-gradient-start) 0%, var(--hero-gradient-end) 100%);
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255,255,255,0.1) 10px,
        rgba(255,255,255,0.1) 20px
    );
    animation: slide 20s linear infinite;
}

@keyframes slide {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero-title {
    font-family: 'Bangers', cursive;
    font-size: 4em;
    color: white;
    text-shadow: 4px 4px 0px #000,
                 8px 8px 0px rgba(0,0,0,0.2);
    letter-spacing: 3px;
    position: relative;
    z-index: 1;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 1.5em;
    color: #fff;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.visitor-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #ffeb3b;
    color: #333;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 700;
    border: 3px solid #000;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.3);
    z-index: 2;
    font-family: 'Bangers', cursive;
    font-size: 1.2em;
}

/* Main Content */
.content {
    padding: 40px;
}

.section {
    margin-bottom: 40px;
    animation: fadeIn 0.6s ease-in;
}

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

.section-title {
    font-family: 'Bangers', cursive;
    font-size: 2.5em;
    color: var(--section-title-color);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

/* Professional Summary */
.professional-summary {
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--summary-text-color);
    transition: color 0.3s ease;
}

/* Quirk/Skills Section */
.quirk-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.quirk-card {
    background: linear-gradient(135deg, #0a036e 0%, #1c57e0 100%);
    padding: 20px;
    border-radius: 15px;
    color: white;
    border: 3px solid #000;
    box-shadow: 5px 5px 0px rgba(0,0,0,0.3);
    transition: transform 0.3s;
}

.quirk-card:hover {
    transform: translateY(-5px) rotate(1deg);
}

.quirk-name {
    font-family: 'Bangers', cursive;
    font-size: 1.5em;
    margin-bottom: 10px;
}

.quirk-level {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.power-bar {
    width: 20px;
    height: 20px;
    background: #ffeb3b;
    border: 2px solid #000;
    border-radius: 3px;
}

.power-bar.empty {
    background: rgba(255,255,255,0.3);
}

/* Experience Section */
.experience-item {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
    border-left: 5px solid var(--card-border);
    box-shadow: 0 4px 6px var(--shadow-light);
    transition: transform 0.3s, background 0.3s;
}

.experience-item:hover {
    transform: translateX(10px);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.experience-details {
    flex: 1;
}

.company-logo {
    flex-shrink: 0;
}

.company-logo img {
    width: 120px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.company-name {
    font-family: 'Bangers', cursive;
    font-size: 1.8em;
    color: var(--company-name-color);
    margin-bottom: 5px;
}

.job-title {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--job-title-color);
    margin-bottom: 5px;
}

.job-date {
    color: var(--text-tertiary);
    font-size: 0.9em;
    margin-bottom: 15px;
}

.job-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Certifications Section */
.cert-image-container {
    text-align: center;
    margin-bottom: 15px;
}

.cert-image-container img {
    width: auto;
    height: auto;
    max-width: 140px;
}

/* Contact Info */
.contact-info {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #001aaf 0%, #151991 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 25px;
    border: 3px solid #000;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.3);
    font-weight: 700;
    transition: transform 0.3s;
    text-decoration: none;
}

.contact-item:hover {
    transform: scale(1.05);
}

/* Action Lines Effect */
.action-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.1;
}

/* Footer and Performance Metrics */
.site-footer {
    background: var(--nav-bg);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    border-top: 3px solid var(--accent-yellow);
}

.footer-text {
    color: #aaa;
    font-size: 0.9em;
    text-align: center;
    flex: 1;
}

.performance-metrics {
    position: relative;
}

.perf-toggle {
    background: var(--accent-yellow);
    border: 3px solid #000;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 700;
    font-family: 'Bangers', cursive;
    font-size: 1em;
    transition: transform 0.3s, background 0.3s;
    box-shadow: 3px 3px 0px rgba(0,0,0,0.3);
}

.perf-toggle:hover {
    transform: scale(1.05);
}

body.dark-mode .perf-toggle {
    background: #2c3e50;
    color: white;
}

.perf-details {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: var(--container-bg);
    border: 3px solid #000;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.3);
    min-width: 250px;
    z-index: 1000;
}

.perf-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 5px;
}

.perf-item:last-child {
    margin-bottom: 0;
}

.perf-label {
    font-weight: 700;
    color: var(--text-primary);
}

.perf-value {
    color: #4caf50;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

/* Responsive Design */

/* Tablet Landscape and Small Desktops (iPad Pro, etc.) */
@media (max-width: 1024px) {
    .container {
        border-radius: 15px;
    }

    .content {
        padding: 30px;
    }

    .section-title {
        font-size: 2.2em;
    }

    .quirk-container {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

/* Tablet Portrait (iPad, etc.) */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        border-radius: 10px;
    }

    .hero-header {
        padding: 30px 20px;
    }

    .hero-title {
        font-size: 2.5em;
        text-shadow: 3px 3px 0px #000, 6px 6px 0px rgba(0,0,0,0.2);
    }

    .hero-subtitle {
        font-size: 1.2em;
    }

    .visitor-badge {
        position: static;
        display: inline-block;
        margin-top: 20px;
        font-size: 1em;
        padding: 8px 16px;
    }

    /* Navigation improvements */
    .main-nav {
        padding: 15px 20px;
    }

    /* Show hamburger menu on tablet and mobile */
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--nav-bg);
        padding: 20px;
        gap: 15px;
        border-top: 2px solid var(--accent-yellow);
        box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 1em;
        padding: 12px;
        display: block;
        text-align: center;
        border-radius: 8px;
        transition: background 0.3s;
    }

    .nav-links a:hover {
        background: rgba(255,235,59,0.1);
    }

    .dark-mode-toggle {
        order: 2;
    }

    .hamburger {
        order: 3;
    }

    /* Footer responsive */
    .site-footer {
        flex-direction: column;
        text-align: center;
        padding: 15px 20px;
    }

    .perf-details {
        right: 50%;
        transform: translateX(50%);
    }

    /* Content spacing */
    .content {
        padding: 25px 20px;
    }

    .section {
        margin-bottom: 30px;
    }

    .section-title {
        font-size: 2em;
        margin-bottom: 15px;
    }

    /* Skills/Certifications grid */
    .quirk-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .quirk-card {
        padding: 18px;
    }

    .quirk-name {
        font-size: 1.3em;
    }

    /* Experience section */
    .experience-item {
        padding: 20px;
    }

    .experience-header {
        flex-direction: column;
        gap: 15px;
    }

    .company-logo {
        align-self: center;
    }

    .company-logo img {
        width: 100px;
    }

    .company-name {
        font-size: 1.6em;
    }

    .job-title {
        font-size: 1.1em;
    }

    /* Contact section */
    .contact-info {
        gap: 15px;
        justify-content: center;
    }

    .contact-item {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        /* Larger touch targets for mobile */
        min-height: 44px;
    }
}

/* Mobile Landscape and Small Tablets */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2em;
        letter-spacing: 2px;
    }

    .hero-subtitle {
        font-size: 1em;
    }

    .section-title {
        font-size: 1.8em;
    }

    .content {
        padding: 20px 15px;
    }

    /* Better text readability on mobile */
    .job-description {
        font-size: 0.95em;
        line-height: 1.7;
    }

    /* Certification images */
    .cert-image-container img {
        max-width: 100px;
    }
}

/* Mobile Portrait (Phones) */
@media (max-width: 480px) {
    body {
        padding: 5px;
    }

    .container {
        border-radius: 8px;
    }

    .hero-header {
        padding: 25px 15px;
    }

    .hero-title {
        font-size: 1.8em;
        letter-spacing: 1px;
    }

    .hero-subtitle {
        font-size: 0.95em;
    }

    .visitor-badge {
        font-size: 0.9em;
        padding: 6px 12px;
        border: 2px solid #000;
    }

    /* Navigation */
    .main-nav {
        padding: 12px 15px;
    }

    .nav-brand span {
        font-size: 1.2em !important;
    }

    .nav-links {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .nav-links a {
        font-size: 0.95em;
    }

    /* Content */
    .content {
        padding: 15px 12px;
    }

    .section {
        margin-bottom: 25px;
    }

    .section-title {
        font-size: 1.5em;
        letter-spacing: 1px;
    }

    /* Professional summary */
    .section p {
        font-size: 0.95em !important;
        line-height: 1.7 !important;
    }

    /* Skills cards */
    .quirk-card {
        padding: 15px;
    }

    .quirk-name {
        font-size: 1.2em;
    }

    .quirk-card p {
        font-size: 0.9em;
    }

    .power-bar {
        width: 16px;
        height: 16px;
    }

    /* Experience section */
    .experience-item {
        padding: 15px;
        margin-bottom: 15px;
    }

    .company-name {
        font-size: 1.4em;
    }

    .job-title {
        font-size: 1em;
    }

    .job-date {
        font-size: 0.85em;
    }

    .job-description {
        font-size: 0.9em;
    }

    .company-logo img {
        width: 80px;
    }

    /* Contact items */
    .contact-item {
        font-size: 0.9em;
        padding: 10px 15px;
        gap: 8px;
    }

    /* Certification images */
    .cert-image-container img {
        max-width: 80px;
    }

    /* Reduce shadow effects on mobile for performance */
    .quirk-card,
    .contact-item {
        box-shadow: 3px 3px 0px rgba(0,0,0,0.3);
    }

    .experience-item {
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.5em;
    }

    .section-title {
        font-size: 1.3em;
    }

    .contact-item {
        font-size: 0.85em;
        padding: 8px 12px;
    }
}
