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

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #2c3e50;
    --text-secondary: #5a6c7d;
    --accent: #3498db;
    --accent-hover: #2980b9;
    --border: #e1e8ed;
    --shadow: rgba(0, 0, 0, 0.1);
    --success: #2ecc71;
    --warning: #f39c12;
}

body.dark-mode {
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --text-primary: #eef2f5;
    --text-secondary: #b8c5d0;
    --accent: #4a90e2;
    --accent-hover: #357abd;
    --border: #2d3748;
    --shadow: rgba(0, 0, 0, 0.3);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-secondary);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 217, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 0, 110, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    transition: background 0.3s ease, color 0.3s ease;
}

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

/* Header Styles */
header {
    background: var(--bg-primary);
    padding: 60px 20px;
    text-align: center;
    box-shadow: 0 4px 20px var(--shadow), var(--neon-glow);
    margin-bottom: 30px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--accent);
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-pink), var(--accent-purple), var(--accent-hover));
    box-shadow: 0 0 20px var(--accent);
    animation: neonPulse 2s ease-in-out infinite;
}

@keyframes neonPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.header-content {
    position: relative;
    z-index: 1;
}

h1 {
    font-size: 2.8em;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-weight: 700;
    text-shadow: var(--neon-glow);
}

.subtitle {
    font-size: 1.3em;
    color: var(--accent);
    margin-bottom: 20px;
    font-weight: 500;
    text-shadow: var(--neon-glow);
}

.contact-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95em;
}

.contact-item:hover {
    color: var(--accent);
}

/* Make emojis smaller */
.contact-item::first-letter {
    font-size: 0.9em;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--accent), var(--accent-purple));
    color: white;
    border: 2px solid var(--accent);
    padding: 12px 18px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    box-shadow: var(--neon-glow);
    transition: all 0.3s ease;
    z-index: 1000;
}

.theme-toggle:hover {
    background: linear-gradient(135deg, var(--accent-hover), var(--accent-pink));
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--accent), 0 0 40px var(--accent);
}

/* Section Styles */
.section {
    background: var(--bg-primary);
    padding: 40px;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow);
    animation: fadeIn 0.6s ease;
    border: 2px solid var(--border);
    position: relative;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0.5;
}

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

h2 {
    font-size: 2em;
    margin-bottom: 25px;
    color: var(--accent);
    border-bottom: 3px solid var(--accent);
    padding-bottom: 10px;
    display: inline-block;
    text-shadow: var(--neon-glow);
}

h3 {
    font-size: 1.4em;
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

h4 {
    font-size: 1.2em;
    color: var(--text-primary);
    margin-bottom: 12px;
}

h5 {
    font-size: 1.1em;
    color: var(--accent);
    margin-top: 20px;
    margin-bottom: 10px;
}

/* About Section */
.about-text {
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Skills Section */
.skill-category {
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.05), rgba(139, 92, 246, 0.05));
    border-radius: 12px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent), var(--accent-purple));
    box-shadow: 0 0 10px var(--accent);
}

.skill-category h4 {
    color: var(--accent);
    margin-bottom: 15px;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

.skill-category h4::before {
    content: '◆';
    color: var(--accent-pink);
    font-size: 1.2em;
    text-shadow: var(--neon-glow-pink);
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-tag {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), rgba(139, 92, 246, 0.1));
    color: var(--accent);
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 0.9em;
    border: 2px solid var(--accent);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-weight: 500;
}

.skill-tag::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 217, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.skill-tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px var(--accent), 0 0 40px rgba(0, 217, 255, 0.3);
    background: linear-gradient(135deg, var(--accent), var(--accent-purple));
    color: #fff;
    border-color: var(--accent-hover);
}

.skill-tag:hover::before {
    width: 300px;
    height: 300px;
}

/* Achievements Section */
.achievement {
    margin-bottom: 20px;
    padding: 20px;
    border-left: 4px solid var(--accent);
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.03), rgba(139, 92, 246, 0.03));
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    border-left-width: 4px;
}

.achievement:hover {
    transform: translateX(10px);
    box-shadow: -5px 0 20px rgba(0, 217, 255, 0.3);
    border-left-color: var(--accent-pink);
}

.achievement ul {
    margin-left: 20px;
    margin-top: 10px;
}

.achievement li {
    margin-bottom: 8px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Experience Section - Horizontal Tabs */
.experience-tabs-container {
    margin-top: 30px;
}

.tabs-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 0;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--bg-secondary);
}

.tabs-nav::-webkit-scrollbar {
    height: 6px;
}

.tabs-nav::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 10px;
}

.tabs-nav::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}

.tab-btn {
    flex: 1;
    min-width: 180px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.05), rgba(139, 92, 246, 0.05));
    border: 2px solid var(--border);
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: left;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-purple), var(--accent-pink));
    transform: scaleX(0);
    transition: transform 0.3s ease;
    box-shadow: 0 0 10px var(--accent);
}

.tab-btn:hover::before {
    transform: scaleX(1);
}

.tab-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 217, 255, 0.3);
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), rgba(139, 92, 246, 0.1));
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-purple));
    border-color: var(--accent);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 217, 255, 0.5), var(--neon-glow);
}

.tab-btn.active::before {
    transform: scaleX(1);
    background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.5));
}

.tab-company {
    display: block;
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 5px;
}

.tab-btn.active .tab-company,
.tab-btn.active .tab-duration {
    color: white;
}

.tab-duration {
    display: block;
    font-size: 0.85em;
    color: var(--text-secondary);
    font-style: italic;
}

.tabs-content {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.02), rgba(139, 92, 246, 0.02));
    border: 2px solid var(--border);
    border-radius: 0 0 12px 12px;
    padding: 35px;
    min-height: 400px;
    position: relative;
    overflow: hidden;
}

.tabs-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-purple), var(--accent-pink));
    box-shadow: 0 0 15px var(--accent);
}

.tab-pane {
    display: none;
    animation: fadeInUp 0.5s ease;
}

.tab-pane.active {
    display: block;
}

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

.job-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border);
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.05), rgba(139, 92, 246, 0.05));
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.job-title {
    font-size: 1.5em;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}

.company-name {
    color: var(--accent-pink);
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(255, 0, 110, 0.3);
}

.job-duration {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 0.95em;
}

.project-content h4 {
    color: var(--accent);
    margin-bottom: 15px;
    font-size: 1.3em;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

/* Company icons */
.project-content h4.company-charles::before {
    content: '🏦';
    font-size: 1.1em;
}

.project-content h4.company-mg::before {
    content: '🏦';
    font-size: 1.1em;
}

.project-content h4.company-franklin::before {
    content: '🏦';
    font-size: 1.1em;
}

.project-content h4.company-scotts::before {
    content: '🚜';
    font-size: 1.1em;
}

.project-content h4.company-sempra::before {
    content: '⚡';
    font-size: 1.1em;
}

.project-content h4.company-default::before {
    content: '💼';
    font-size: 1.1em;
}

.project-content > p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--bg-secondary);
    border-left: 4px solid var(--accent);
    border-radius: 4px;
}

.project-content ul {
    margin-left: 20px;
    margin-top: 15px;
}

.project-content li {
    margin-bottom: 12px;
    color: var(--text-secondary);
    line-height: 1.7;
    position: relative;
    padding-left: 10px;
}

.project-content li::before {
    content: '▹';
    position: absolute;
    left: -15px;
    color: var(--accent);
    font-weight: bold;
}

.sub-project {
    margin-top: 25px;
    padding: 25px;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
    border-radius: 12px;
    border: 2px solid var(--border);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.sub-project::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #3498db, #2ecc71);
}

.sub-project:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px var(--shadow);
    border-color: var(--accent);
}

.sub-project:first-of-type {
    margin-top: 20px;
}

.sub-project h5 {
    margin-top: 0;
    color: var(--accent);
    font-size: 1.15em;
}

.sub-project p {
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.7;
}

.sub-project ul {
    margin-left: 20px;
}

.sub-project li {
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Certifications Section */
.certification-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.cert-card {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.05), rgba(139, 92, 246, 0.05));
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid var(--border);
    position: relative;
    overflow: hidden;
}

.cert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), rgba(139, 92, 246, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cert-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 217, 255, 0.4), var(--neon-glow);
    border-color: var(--accent);
}

.cert-card:hover::before {
    opacity: 1;
}

.cert-card h4 {
    color: var(--accent);
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}

.cert-card p {
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

/* Education Section */
.education-item {
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 8px;
    margin-bottom: 15px;
}

.education-item p {
    color: var(--text-secondary);
    margin-bottom: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }

    .subtitle {
        font-size: 1.1em;
    }

    .contact-info {
        flex-direction: column;
        gap: 10px;
    }

    .section {
        padding: 25px;
    }

    h2 {
        font-size: 1.6em;
    }

    .theme-toggle {
        top: 10px;
        right: 10px;
        padding: 10px 15px;
    }

    .certification-grid {
        grid-template-columns: 1fr;
    }

    .tabs-nav {
        flex-direction: column;
    }

    .tab-btn {
        min-width: 100%;
        border-radius: 8px;
        border: 2px solid var(--border);
    }

    .tabs-content {
        border-radius: 8px;
        padding: 20px;
    }

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

/* Print Styles */
@media print {
    .theme-toggle {
        display: none;
    }

    .tab-btn {
        display: none;
    }

    .tab-pane {
        display: block !important;
        page-break-inside: avoid;
    }

    .tabs-content {
        border: 1px solid #ddd;
    }

    .section {
        page-break-inside: avoid;
        box-shadow: none;
    }

    body {
        background: white !important;
        color: black !important;
    }
    
    /* Make text readable when printed */
    h1, h2, h3, h4, h5, .job-title, .company-name, .subtitle {
        color: #000 !important;
        text-shadow: none !important;
    }
    
    .text-primary, .text-secondary, p, li {
        color: #333 !important;
    }
}