:root {
    --primary: #5b6eff;
    --primary-dark: #3b4bff;
    --accent: #c084fc;
    --background: #000000;
    --card-bg: rgba(26, 26, 46, 0.7); /* #1a1a2e with 70% transparency */
    --text-primary: #ffffff;
    --text-secondary: #b0b8d6;
    --border: #2d3748;
    --glow: 0 0 10px rgba(91, 110, 255, 0.6);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.6);
    --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: #000000;
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 16px;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#spaceCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #000000;
}

.container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(91, 110, 255, 0.15) 0%, transparent 70%);
    z-index: -1;
}

header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
    text-shadow: 0 0 12px var(--glow);
    transition: transform var(--transition), text-shadow var(--transition);
}

header h1:hover {
    transform: scale(1.03);
    text-shadow: 0 0 18px var(--glow);
}

header p {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 650px;
    margin: 0 auto;
}

nav.tab-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    background: rgba(0, 0, 0, 0.9);
    padding: 0.75rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    position: sticky;
    top: 1rem;
    z-index: 100;
    backdrop-filter: blur(8px);
}

.tab-button {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    border-radius: 0.5rem;
}

.tab-button:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
    background: rgba(91, 110, 255, 0.15);
    transform: translateY(-2px);
}

.tab-button.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: rgba(91, 110, 255, 0.25);
}

.tab-button:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.tab-content {
    display: none;
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    padding-top: 1rem;
    will-change: opacity, transform;
    width: 100%;
}

.tab-content.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* Add specific transitions for each tab content */
#experience.tab-content.active,
#skills.tab-content.active,
#projects.tab-content.active,
#certifications.tab-content.active {
    animation: slideIn 0.5s ease-out forwards;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
}

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

section {
    margin-bottom: 4rem;
    scroll-margin-top: 5rem;
    width: 100%;
}

section h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 4.5vw, 2.8rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 0.75rem;
    text-shadow: 0 0 6px var(--glow);
    transition: text-shadow var(--transition);
    position: relative;
    width: 100%;
}

section h2:hover {
    text-shadow: 0 0 12px var(--glow);
}

.card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    border: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    width: 100%;
}

@media (max-width: 1200px) {
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

.skill-item {
    background: rgba(91, 110, 255, 0.1);
    padding: 1.25rem;
    border-radius: 0.75rem;
    text-align: center;
    font-size: 1rem;
    color: var(--text-primary);
    transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
    animation: fadeIn 0.6s ease-in-out;
    animation-fill-mode: both;
}

.skill-item:nth-child(n) {
    animation-delay: calc(0.1s * var(--item-index, 0));
}

.skill-item:hover {
    background: rgba(91, 110, 255, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 0 10px var(--glow);
}

.timeline {
    position: relative;
    padding-left: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1rem;
    height: 100%;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    padding-left: 2.5rem;
    animation: fadeIn 0.6s ease-in-out;
}

.timeline-item-bullet {
    position: absolute;
    top: 0.75rem;
    left: 0;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--card-bg);
    box-shadow: 0 0 10px var(--glow);
    transition: transform var(--transition), background var(--transition);
}

.timeline-item-bullet:hover {
    background: var(--accent);
    transform: scale(1.3);
}

.timeline-item-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.timeline-item-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.timeline-item-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.timeline-item ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-top: 0.75rem;
}

.timeline-item li {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.project-item {
    animation: fadeIn 0.6s ease-in-out;
    animation-fill-mode: both;
}

.project-item:nth-child(n) {
    animation-delay: calc(0.1s * var(--item-index, 0));
}

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

.button-group {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 3.5rem 0;
}

.button {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: #ffffff;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

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

.button:hover::before {
    width: 300px;
    height: 300px;
}

.button:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 15px var(--glow);
}

.button:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

footer {
    text-align: center;
    padding: 2.5rem;
    background: var(--card-bg);
    color: var(--text-secondary);
    border-top: 1px solid var(--border);
    margin-top: auto;
    border-radius: 1rem 1rem 0 0;
    width: 100%;
}

@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
    }

    header h1 {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    header p {
        font-size: 1.1rem;
    }

    .tab-container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .tab-button {
        border-radius: 0.75rem;
    }

    .card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    section h2 {
        font-size: 1.8rem;
    }

    .timeline {
        padding-left: 2rem;
    }

    .timeline-item {
        padding-left: 2rem;
    }
}

/* Dark mode preferences */
@media (prefers-color-scheme: dark) {
    :root {
        --background: #000000;
        --card-bg: rgba(26, 26, 46, 0.7); /* #1a1a2e with 70% transparency */
        --text-primary: #ffffff;
        --text-secondary: #b0b8d6;
    }
}

/* Light mode preferences same as dark */
@media (prefers-color-scheme: light) {
    :root {
        --background: #000000;
        --card-bg: rgba(26, 26, 46, 0.7); /* #1a1a2e with 70% transparency */
        --text-primary: #ffffff;
        --text-secondary: #b0b8d6;
    }
}

/* Add animation for certification items */
.certification-item {
    animation: fadeIn 0.6s ease-in-out;
    animation-fill-mode: both;
    width: 100%;
}

.certification-item:nth-child(n) {
    animation-delay: calc(0.1s * var(--item-index, 0));
}

/* Add a container for certifications to match project layout */
#certifications .card {
    width: 100%;
}

.certifications-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.certifications-container .card {
    width: 100%;
    margin-bottom: 0;
} 
