/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Light Theme (Cyberpunk) */
    --bg-primary: #0a0e17;
    --bg-secondary: #111827;
    --bg-card: rgba(16, 23, 41, 0.7);
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --accent-primary: #00f7ff;
    --accent-secondary: #0066ff;
    --accent-glow: rgba(0, 247, 255, 0.3);
    --border-color: rgba(0, 247, 255, 0.1);
    --shadow-color: rgba(0, 247, 255, 0.1);
    --glass-bg: rgba(16, 23, 41, 0.3);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
    /* Light Cyber Theme */
    --bg-primary: #f0f4f8;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.8);
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --accent-primary: #0066ff;
    --accent-secondary: #00b4d8;
    --accent-glow: rgba(0, 102, 255, 0.2);
    --border-color: rgba(0, 102, 255, 0.1);
    --shadow-color: rgba(0, 102, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(0, 102, 255, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    transition: var(--transition);
}

/* ===== ANIMATED BACKGROUND ===== */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    overflow: hidden;
}

.star {
    position: absolute;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

.star:nth-child(1) {
    width: 2px;
    height: 2px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.star:nth-child(2) {
    width: 3px;
    height: 3px;
    top: 40%;
    left: 80%;
    animation-delay: 1s;
}

.star:nth-child(3) {
    width: 1px;
    height: 1px;
    top: 60%;
    left: 30%;
    animation-delay: 2s;
}

.star:nth-child(4) {
    width: 2px;
    height: 2px;
    top: 80%;
    left: 70%;
    animation-delay: 0.5s;
}

.star:nth-child(5) {
    width: 3px;
    height: 3px;
    top: 10%;
    left: 50%;
    animation-delay: 1.5s;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); box-shadow: 0 0 10px var(--accent-primary); }
}

/* ===== NAVBAR ===== */
.navbar {
    backdrop-filter: blur(10px);
    background: var(--glass-bg);
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 1px;
    position: relative;
}

.logo-dot {
    color: var(--accent-primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transition: width 0.3s ease;
}

.nav-link:hover::before {
    width: 100%;
}

.nav-link:hover {
    color: var(--accent-primary);
    background: rgba(0, 247, 255, 0.1);
}

.nav-link.active {
    color: var(--accent-primary);
    background: rgba(0, 247, 255, 0.1);
}

.nav-link.active::before {
    width: 100%;
}

.theme-toggle {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.theme-toggle:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    transform: rotate(30deg);
    box-shadow: 0 0 20px var(--accent-glow);
}

/* ===== MAIN CONTENT ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem 2rem;
}

.about-hero {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.about-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-highlight {
    color: var(--accent-primary);
    -webkit-text-fill-color: var(--accent-primary);
}

.title-underline {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    margin: 0 auto;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.title-underline::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: slide 2s infinite;
}

@keyframes slide {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ===== ABOUT CARD ===== */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.about-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
}

/* Image Section */
.about-image {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.image-container {
    position: relative;
    width: 200px;
    height: 200px;
}

.image-frame {
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-radius: 50%;
    background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
                linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)) border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: var(--accent-primary);
    position: relative;
    z-index: 2;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.image-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

/* Text Section */
.about-text h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: var(--accent-primary);
    position: relative;
    display: inline-block;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), transparent);
}

.lorem-section {
    margin-bottom: 2rem;
}

.lorem-text {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    position: relative;
    padding-left: 1.5rem;
}

.lorem-text::before {
    content: '▸';
    color: var(--accent-primary);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* Skills */
.skills h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-tag {
    background: linear-gradient(135deg, rgba(0, 247, 255, 0.1), rgba(0, 102, 255, 0.1));
    color: var(--accent-primary);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(0, 247, 255, 0.2);
    transition: var(--transition);
    cursor: default;
    position: relative;
    overflow: hidden;
}

.skill-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.skill-tag:hover::before {
    left: 100%;
}

.skill-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 247, 255, 0.2);
    border-color: var(--accent-primary);
}

/* ===== TIMELINE ===== */
.timeline {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

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

.timeline h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: var(--accent-primary);
    position: relative;
    display: inline-block;
}

.timeline h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), transparent);
}

.timeline-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 2rem;
    padding: 2rem 0;
    position: relative;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 60px;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent-primary), transparent);
}

.timeline-date {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-primary);
    background: rgba(0, 247, 255, 0.1);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-align: center;
    border: 1px solid rgba(0, 247, 255, 0.2);
    align-self: center;
    position: relative;
    overflow: hidden;
}

.timeline-date::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary), var(--accent-primary));
    border-radius: 52px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.timeline-date:hover::before {
    opacity: 1;
}

.timeline-content {
    background: rgba(16, 23, 41, 0.5);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateX(10px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 20px rgba(0, 247, 255, 0.1);
}

.timeline-content h3 {
    color: var(--accent-primary);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    padding: 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
}

.footer p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-secondary);
    font-size: 1.2rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    color: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 247, 255, 0.2);
    background: rgba(0, 247, 255, 0.1);
    border-color: var(--accent-primary);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .about-card {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .about-text h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .lorem-text {
        padding-left: 0;
    }
    
    .lorem-text::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 5rem 1rem 1rem;
    }
    
    .about-title {
        font-size: 2.5rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .timeline-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .timeline-item:not(:last-child)::after {
        left: 30px;
        height: calc(100% - 2rem);
    }
    
    .timeline-date {
        justify-self: start;
        padding: 0.6rem 1.2rem;
    }
}

@media (max-width: 480px) {
    .about-card {
        padding: 2rem;
    }
    
    .timeline {
        padding: 2rem;
    }
    
    .image-container {
        width: 150px;
        height: 150px;
    }
    
    .image-frame {
        font-size: 4rem;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--accent-primary), var(--accent-secondary));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(var(--accent-secondary), var(--accent-primary));
}

/* Selection Styling */
::selection {
    background: var(--accent-primary);
    color: var(--bg-primary);
}
