
:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --primary-color: #0070f3;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

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

.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    background: rgba(5, 5, 5, 0.8);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--primary-color);
}

.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.hero {
    padding: 150px 0 100px;
    text-align: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    background: linear-gradient(180deg, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.2s, background 0.3s;
}

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

.btn-secondary {
    background: var(--glass-bg);
    color: #fff;
    border: 1px solid var(--glass-border);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 350px));
    justify-content: center;
    gap: 30px;
}

.card {
    padding: 30px;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

/* Animations */
.card, .hero {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.card.visible, .hero.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Additional Styles for About and Portfolio */
.page-section {
    padding: 120px 20px 80px;
}

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

.mt-30 {
    margin-top: 30px;
}

.mb-30 {
    margin-bottom: 30px;
}

.max-w-600 {
    max-width: 600px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
    color: #ccc;
}

/* Timeline */
.timeline {
    list-style: none;
    position: relative;
    padding-left: 20px;
    margin-top: 20px;
}

.timeline li {
    position: relative;
    padding-bottom: 20px;
    color: #ddd;
}

.timeline li::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

.timeline li::after {
    content: '';
    position: absolute;
    left: -16px;
    top: 20px;
    bottom: 0;
    width: 2px;
    background: var(--glass-border);
}

.timeline li:last-child::after {
    display: none;
}

/* Badges */
.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.badge {
    background: rgba(0, 112, 243, 0.15);
    border: 1px solid rgba(0, 112, 243, 0.3);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s, background 0.3s;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.05);
}

.contact-form button {
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

/* Background Overlays and Images */
.hero {
    position: relative;
    z-index: 1;
    overflow: hidden;
}
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: -2;
    object-fit: cover;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(5, 5, 5, 0.7);
    z-index: -1;
}
.about-photo {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 20px;
    object-fit: cover;
    max-height: 400px;
}

/* Navbar Image Logo */
.logo {
    display: flex;
    align-items: center;
}
.nav-logo-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.nav-logo-img:hover {
    transform: scale(1.1);
    border-color: #fff;
}
/* Timeline Detail Styles */
.exp-item {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.exp-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.exp-company {
    display: block;
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}
.exp-item .date {
    display: block;
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 10px;
    font-style: italic;
}
.exp-role {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #ccc;
}

/* Theme variables */
[data-theme="light"] {
    --bg-color: #f5f5f7;
    --text-color: #1d1d1f;
    --primary-color: #6a00ff;
    --secondary-color: #e5e5ea;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .card {
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
[data-theme="light"] .hero::before {
    background: rgba(255, 255, 255, 0.6);
}
[data-theme="light"] .hero h1 {
    color: #1d1d1f;
}
[data-theme="light"] .hero p {
    color: #333;
}
[data-theme="light"] .timeline::before {
    background-color: #ccc;
}
[data-theme="light"] .timeline li::before {
    background-color: var(--primary-color);
    border-color: #fff;
}
[data-theme="light"] .exp-item {
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}
.icon-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}
.icon-btn:hover {
    transform: scale(1.1);
}

/* Theme Toggle Icons */
[data-theme="light"] .sun-icon { display: none; }
[data-theme="light"] .moon-icon { display: block; }
[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }
:root:not([data-theme="light"]):not([data-theme="dark"]) .sun-icon { display: block; }
:root:not([data-theme="light"]):not([data-theme="dark"]) .moon-icon { display: none; }

/* Mobile Menu */
.mobile-only {
    display: none;
}
@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-color);
        /* removed blur for readability */
        flex-direction: column;
        text-align: center;
        padding: 20px 0;
        border-bottom: 1px solid var(--glass-border);
    }
    .nav.active {
        display: flex;
    }
    .nav ul {
        flex-direction: column;
        gap: 15px;
    }
}

/* Modal Lightbox */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}
.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    animation: zoom 0.3s;
}
.modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}
.modal-close:hover,
.modal-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}
@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

/* Theme overrides for light mode */
[data-theme="light"] .header {
    background: rgba(255, 255, 255, 0.85);
}

[data-theme="light"] .hero h1 {
    background: linear-gradient(180deg, #1d1d1f, #666);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="light"] .btn-secondary {
    color: var(--text-color);
}

#lang-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s;
}

#lang-btn:hover {
    background: var(--glass-bg);
}

[data-theme="light"] .nav {
    background: rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .nav a {
    color: var(--text-color);
}

/* Sticky Footer Fix */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
#main-content {
    flex: 1;
}

/* Card Illumination */
.card {
    position: relative;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        800px circle at var(--mouse-x) var(--mouse-y), 
        rgba(255, 255, 255, 0.06),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 1;
}
.card:hover::before {
    opacity: 1;
}

/* Base button transitions for magnet effect */
.btn {
    transition: transform 0.1s cubic-bezier(0.25, 1, 0.5, 1), background 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}


.cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}
@media (max-width: 768px) {
    .cta-group {
        gap: 15px;
    }
}


.hero-tagline {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
@media (max-width: 768px) {
    .hero-tagline {
        font-size: 1.4rem;
    }
}

/* External Links Styles */
.external-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid var(--text-color) !important;
    color: var(--text-color) !important;
    background: transparent !important;
}

.external-links a:hover {
    background: var(--text-color) !important;
    color: var(--bg-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .external-links a:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.external-links a::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: currentColor;
    -webkit-mask: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path><polyline points="15 3 21 3 21 9"></polyline><line x1="10" y1="14" x2="21" y2="3"></line></svg>') no-repeat center;
    mask: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path><polyline points="15 3 21 3 21 9"></polyline><line x1="10" y1="14" x2="21" y2="3"></line></svg>') no-repeat center;
}

/* Back link styled as button */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--glass-bg);
    color: var(--text-color);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.2s, background 0.3s, color 0.3s;
    margin-bottom: 20px;
}
.back-link:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}
