/* ==================== VARIABLES ==================== */
:root {
    --primary-color: #00ff00;
    --primary-dark: #00cc00;
    --secondary-color: #0a0a0a;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-light: #999999;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f8f8;
    --bg-alt: #f0f0f0;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);

    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --transition: all 0.3s ease;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --primary-color: #00ff00;
    --primary-dark: #00cc00;
    --secondary-color: #0a0a0a;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --text-light: #808080;
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-alt: #2a2a2a;
    --border-color: #333333;
    --shadow: 0 2px 8px rgba(0, 255, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 255, 0, 0.15);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    line-height: 1.7;
    background: var(--bg-primary);
}

::selection {
    background: rgba(0, 255, 0, 0.2);
    color: var(--text-primary);
}

/* ==================== NAVIGATION ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

[data-theme="dark"] .navbar {
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid var(--border-color);
}

.navbar.scrolled {
    box-shadow: var(--shadow);
}

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

.nav-brand {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    text-decoration: none;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.25rem;
    transition: var(--transition);
}

.brand-text {
    color: var(--text-primary);
}

.brand-accent {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.nav-brand:hover .brand-accent {
    text-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
}

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

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.terminal-mode-btn {
    background: var(--secondary-color);
    color: var(--primary-color) !important;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.terminal-mode-btn::after {
    display: none;
}

.terminal-mode-btn:hover {
    background: var(--text-primary);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: var(--transition);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-action-btn {
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-primary);
}

.nav-action-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    transform: rotate(20deg);
}

.terminal-btn:hover {
    transform: rotate(-20deg);
}

.theme-toggle {
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.theme-toggle:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    transform: rotate(20deg);
}

/* ==================== HERO SECTION ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(90deg, transparent 79px, rgba(0, 255, 0, 0.03) 79px, rgba(0, 255, 0, 0.03) 81px, transparent 81px),
        linear-gradient(rgba(0, 255, 0, 0.03) 79px, transparent 79px, transparent 81px, rgba(0, 255, 0, 0.03) 81px);
    background-size: 80px 80px;
    opacity: 0.5;
    z-index: 0;
}

.hero-container {
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

.hero-content {
    text-align: left;
}

.hero-photo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.photo-wrapper {
    position: relative;
    width: 350px;
    height: 350px;
    animation: fadeInRight 1s ease-out;
}

.photo-wrapper::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    z-index: -1;
    animation: pulse 3s ease-in-out infinite;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    border: 6px solid var(--bg-primary);
    background: var(--bg-primary);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(0, 255, 0, 0.1);
    transition: var(--transition);
    transform: scale(1.2);
}

.profile-photo:hover {
    transform: scale(1.25);
    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(0, 255, 0, 0.3);
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-family: var(--font-mono);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary-color);
    color: #000;
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--text-primary);
}

.btn-secondary:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.btn-terminal {
    background: var(--secondary-color);
    color: var(--primary-color);
    font-family: var(--font-mono);
}

.btn-terminal:hover {
    background: var(--text-primary);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    transform: translateY(-2px);
}

.hero-decoration {
    display: none;
}

/* ==================== SECTIONS ==================== */
.section {
    padding: 6rem 2rem;
}

.section-alt {
    background: var(--bg-primary);
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
}

.section-content {
    animation: fadeIn 1s ease-out;
}

/* ==================== CONTENT STYLING ==================== */
.section-content h2,
.section-content h3 {
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.section-content h2 {
    font-size: 2rem;
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
}

.section-content h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
}

.section-content p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.section-content ul {
    margin: 1rem 0 1rem 2rem;
}

.section-content li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.section-content a {
    color: var(--primary-dark);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.section-content a:hover {
    border-bottom-color: var(--primary-dark);
}

.section-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.section-content hr {
    border: none;
    border-top: 2px solid var(--border-color);
    margin: 2rem 0;
}

/* ==================== TIMELINE COMPONENT ==================== */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.timeline-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-lg);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.75rem;
    top: 2rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid var(--bg-secondary);
    box-shadow: 0 0 0 3px var(--primary-color);
}

.timeline-header {
    margin-bottom: 1rem;
}

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

.timeline-company {
    font-size: 1.1rem;
    color: var(--primary-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-company a {
    color: var(--primary-dark);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.timeline-company a:hover {
    border-bottom-color: var(--primary-color);
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--text-light);
    font-family: var(--font-mono);
    display: inline-block;
    background: var(--bg-alt);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
}

.timeline-content {
    margin-top: 1rem;
}

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

.timeline-content ul {
    margin-left: 1.5rem;
    list-style: none;
}

.timeline-content li {
    position: relative;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

.timeline-content li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Timeline Section Divider */
.timeline h2 {
    font-size: 1.75rem;
    margin: 3rem 0 2rem;
    color: var(--text-primary);
    border-left: none;
    padding-left: 0;
}

.timeline h2:first-child {
    margin-top: 0;
}

.timeline hr {
    border: none;
    border-top: 2px dashed var(--border-color);
    margin: 3rem 0;
    opacity: 0.5;
}

/* ==================== EDUCATION CARDS ==================== */
.education-grid {
    display: grid;
    gap: 2rem;
}

.education-card {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(0, 255, 0, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.education-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.education-header {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.education-degree {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.education-school {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.education-date {
    font-size: 0.95rem;
    color: var(--text-light);
    font-family: var(--font-mono);
    display: inline-block;
    background: var(--bg-alt);
    padding: 0.4rem 1rem;
    border-radius: 20px;
}

.education-thesis {
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--bg-secondary);
    border-left: 3px solid var(--primary-color);
    border-radius: 4px;
}

.education-thesis strong {
    color: var(--primary-dark);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.education-achievements {
    margin-top: 1.5rem;
}

.education-achievements h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.education-achievements ul {
    list-style: none;
    margin-left: 0;
}

.education-achievements li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.education-achievements li::before {
    content: '🎓';
    position: absolute;
    left: 0;
    font-size: 1.1rem;
}

/* ==================== ACHIEVEMENT BADGES ==================== */
.achievement-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
    margin-bottom: 1rem;
}

.achievement-badge::before {
    content: '🏆';
    font-size: 1.2rem;
}

/* ==================== META INFO TAGS ==================== */
.meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.meta-tag {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.meta-tag:hover {
    background: var(--primary-color);
    color: #000;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* ==================== CONTACT SECTION ==================== */
.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-primary);
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 50%;
}

.contact-label {
    font-size: 0.875rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.contact-details a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
}

.contact-details a:hover {
    color: var(--primary-dark);
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 2rem;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow);
        gap: 1rem;
    }

    [data-theme="dark"] .nav-links {
        background: var(--bg-primary);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-content {
        text-align: center;
        order: 2;
    }

    .hero-photo {
        order: 1;
    }

    .photo-wrapper {
        width: 250px;
        height: 250px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-tagline {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section {
        padding: 4rem 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        justify-content: center;
    }
}

@media (min-width: 1024px) {
    .hero-decoration {
        display: block;
        position: absolute;
        right: 10%;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1;
    }

    .code-block {
        background: var(--secondary-color);
        color: var(--primary-color);
        padding: 2rem;
        border-radius: 8px;
        font-family: var(--font-mono);
        font-size: 0.9rem;
        line-height: 1.6;
        box-shadow: var(--shadow-lg);
    }

    .code-line {
        margin-bottom: 0.5rem;
    }

    .keyword {
        color: #ff6b6b;
    }

    .class {
        color: #4ecdc4;
    }

    .function {
        color: #ffe66d;
    }

    .param {
        color: #a8dadc;
    }

    .string {
        color: var(--primary-color);
    }
}