/* 1. VARIABLE DEFINITIONS */
:root {
    /* DARK THEME (Default) */
    --bg-dark: #080808;
    --card-bg: #111111;
    --accent: #00f2ff;
    --text-main: #ffffff;
    --text-dim: #9ca3af;
    --border: #222222;
    --tag-bg: #1a1a1a;
    --glow-opacity: 0.1;
}

/* LIGHT THEME (Seneca Red Version) */
[data-theme="light"] {
    --bg-dark: #f5f5f5;
    --card-bg: #ffffff;
    --accent: #d91e18; /* Seneca Red */
    --text-main: #1a1a1a;
    --text-dim: #4b5563;
    --border: #e5e7eb;
    --tag-bg: #eeeeee;
    --glow-opacity: 0.05;
}

/* 2. BASE STYLES */
body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    margin: 0;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* --- THEME SWITCHER UI --- */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    font-size: 0.8rem;
    color: var(--text-dim);
    gap: 10px;
    background: var(--card-bg);
    padding: 8px 15px;
    border-radius: 50px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.theme-switch { display: inline-block; height: 20px; position: relative; width: 40px; }
.theme-switch input { display: none; }
.slider {
    background-color: #555;
    bottom: 0; cursor: pointer; left: 0;
    position: absolute; right: 0; top: 0;
    transition: .4s; border-radius: 34px;
}
.slider:before {
    background-color: #fff; bottom: 3px; content: "";
    height: 14px; left: 4px; position: absolute;
    transition: .4s; width: 14px; border-radius: 50%;
}
input:checked + .slider { background-color: var(--accent); }
input:checked + .slider:before { transform: translateX(18px); }

/* --- ANIMATED BACKGROUND --- */
.glow {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* --- HERO --- */
header {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
}

.profile-img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 3px solid var(--accent);
    margin-bottom: 30px;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 25px rgba(0, 242, 255, var(--glow-opacity));
}
.profile-img:hover {
    transform: scale(1.05) rotate(5deg);
}

h1 { font-size: clamp(2.5rem, 8vw, 4.5rem); margin: 0; letter-spacing: -2px; }
.hero-sub { color: var(--text-dim); font-size: 1.1rem; max-width: 600px; margin: 20px 0; }
.header-links a { color: var(--accent); text-decoration: none; font-size: 0.9rem; font-weight: bold; }

/* --- CARDS & SECTIONS --- */
section { padding: 40px 0; }
h2 { color: var(--accent); font-size: 1.5rem; margin-bottom: 25px; text-transform: uppercase; letter-spacing: 1px; }
h3 { margin-top: 0; font-size: 1.2rem; color: var(--text-main); }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: 0.3s ease;
}

.card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.date { color: var(--text-dim); font-size: 0.85rem; }
.company { color: var(--accent); font-weight: bold; margin: 5px 0 15px; }

.skill-list {
    padding-left: 18px;
    color: var(--text-dim);
    font-size: 0.9rem;
}
.skill-list li { margin-bottom: 8px; }

/* --- TAGS & BUTTONS --- */
.badge {
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
    background: var(--tag-bg);
    color: var(--text-main);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    border: 1px solid var(--border);
}

.contact-btn {
    display: inline-block;
    padding: 12px 30px;
    margin: 10px;
    border: 2px solid var(--accent);
    color: var(--accent);
    text-decoration: none;
    border-radius: 12px;
    font-weight: bold;
    transition: 0.3s;
}

.contact-btn:hover {
    background: var(--accent);
    color: #fff;
}

.contact-section { text-align: center; padding-bottom: 100px; }

/* Responsive adjustments */
@media (max-width: 600px) {
    .exp-header { flex-direction: column; }
    .date { margin-bottom: 10px; }
    .theme-switch-wrapper { top: 10px; right: 10px; padding: 5px 10px; }
}