/* Experience page specific styles - uses variables from style.css */

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex-grow: 1;
    padding: 40px 20px;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-weight: 600;
}

a {
    text-decoration: none;
}

/* HEADER */
header {
    background: var(--bg-header);
    color: var(--text-white);
    padding: 40px 20px 60px 20px;
    text-align: center;
    position: relative;
    backdrop-filter: blur(15px);
    border-bottom: 2px solid var(--accent-color);
    overflow: hidden;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--bg-primary), transparent);
    pointer-events: none;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 20px;
}

/* Theme Switch Button - Right */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
}

.theme-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--accent-color);
    color: var(--text-white);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2em;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-btn:hover {
    background: var(--accent-color);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(146, 139, 255, 0.6);
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--accent-color);
    border-radius: 25px;
    color: var(--text-white);
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(146, 139, 255, 0.4);
}

.hero-content h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #fff, var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 5px;
}

.tagline {
    font-size: 0.95em;
    color: var(--accent-color);
    opacity: 0.9;
}

/* Light theme hero styles */
[data-theme="light"] .hero-content h1 {
    background: linear-gradient(90deg, #fff, #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .tagline {
    color: #fff;
}

/* TIMELINE & CARD */
.experience-timeline {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.experience-card {
    display: flex;
    gap: 30px;
    margin-bottom: 60px;
}

/* Marker Line */
.experience-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 20px;
}

.marker-dot {
    width: 16px;
    height: 16px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(146, 139, 255, 0.6);
}

.marker-line {
    width: 2px;
    flex-grow: 1;
    background: linear-gradient(to bottom, var(--accent-color), transparent);
    margin-top: 5px;
}

/* Main Box */
.experience-content-box {
    flex: 1;
    background: var(--bg-column);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.experience-content-box:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 20px 45px rgba(0, 210, 255, 0.2);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 10px;
}

.experience-title h2 {
    font-size: 1.8em;
    margin-bottom: 8px;
    color: var(--text-white);
}

.company-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #ff9800, #f57c00);
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 700;
    color: white;
}

.experience-duration {
    text-align: right;
}

.duration-badge {
    display: block;
    background: var(--accent-color);
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
    margin-bottom: 6px;
    color: white;
}

.date-range {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
}

.company-name {
    font-style: italic;
    color: var(--accent-color);
    margin-bottom: 25px;
}

/* TABS SYSTEM (FIXED JUMPING) */
.experience-tabs {
    display: flex;
    gap: 15px;
    border-bottom: 2px solid rgba(146, 139, 255, 0.2);
    margin-bottom: 25px;
    padding-bottom: 10px;
    flex-wrap: wrap;
}

.exp-tab-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1em;
    cursor: pointer;
    padding: 8px 12px;
    position: relative;
    transition: color 0.3s;
}

.exp-tab-btn:hover {
    color: rgba(255, 255, 255, 0.9);
}

.exp-tab-btn.active {
    color: var(--accent-color);
    font-weight: 600;
}

.exp-tab-btn::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.exp-tab-btn.active::after {
    width: 100%;
}

/* Grid Stacking for Smooth Transitions */
.exp-tab-content-wrapper {
    display: grid;
    grid-template-areas: "content";
}

.exp-tab-content {
    grid-area: content;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.4s ease-in-out;
    pointer-events: none;
}

.exp-tab-content.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    z-index: 1;
}

.exp-tab-content>p {
    margin-top: 0;
    color: rgba(255, 255, 255, 0.85);
}

.exp-tab-content h3 {
    color: var(--accent-color);
    margin-bottom: 15px;
}

/* LISTS & GRIDS inside Tabs */
.achievement-list {
    list-style: none;
    padding: 0;
}

.achievement-list li {
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 10px;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    gap: 10px;
    align-items: center;
    color: rgba(255, 255, 255, 0.85);
}

.achievement-list i {
    color: #00e676;
}

/* TASK GRID (Backend/Frontend) */
.task-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
    list-style: none;
    padding: 0;
}

.task-list li {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(146, 139, 255, 0.2);
    padding: 20px;
    border-radius: 12px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.task-title {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.task-list p {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* ARCHITECTURE GRID */
.architecture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.arch-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(146, 139, 255, 0.2);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s;
}

.arch-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.arch-item i {
    font-size: 2em;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.arch-item h4 {
    margin-bottom: 5px;
    font-size: 1em;
    color: var(--text-white);
}

.arch-item p {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* SKILLS & ACHIEVEMENTS SECTIONS */
.skills-applied,
.achievements {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
}

.skills-applied h2,
.achievements h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2em;
    color: var(--text-white);
}

.skills-categories {
    display: grid;
    gap: 40px;
}

.skill-category h3 {
    color: var(--accent-color);
    margin-bottom: 15px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    padding: 8px 16px;
    background: rgba(146, 139, 255, 0.15);
    border: 1px solid var(--accent-color);
    border-radius: 20px;
    font-size: 0.9em;
    color: var(--text-white);
}

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

.achievement-item {
    background: var(--bg-column);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(146, 139, 255, 0.3);
}

.achievement-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.achievement-item h3 {
    color: var(--text-white);
    margin-bottom: 10px;
}

.achievement-item p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
    border-top: 1px solid rgba(146, 139, 255, 0.2);
    margin-top: 60px;
    background: var(--footer-bg);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .experience-card {
        flex-direction: column;
        gap: 15px;
    }

    .experience-marker {
        display: none;
    }

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

    .experience-duration {
        text-align: left;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .hero-content h1 {
        font-size: 1.8em;
    }
}