:root {
    --bg-dark: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
    --primary: #38bdf8;
    --primary-glow: rgba(56, 189, 248, 0.5);
    --secondary: #818cf8;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'JetBrains Mono', monospace;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Background Animated Shapes */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    animation: float 20s infinite ease-in-out alternate;
}

.shape1 {
    width: 400px;
    height: 400px;
    background: rgba(56, 189, 248, 0.15);
    top: -100px;
    left: -100px;
}

.shape2 {
    width: 500px;
    height: 500px;
    background: rgba(129, 140, 248, 0.15);
    bottom: -200px;
    right: -100px;
    animation-delay: -5s;
}

.shape3 {
    width: 300px;
    height: 300px;
    background: rgba(16, 185, 129, 0.1);
    top: 40%;
    left: 40%;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

/* Typography */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Layout */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -1px;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
}

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

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

.btn-primary {
    background: var(--primary);
    color: var(--bg-dark) !important;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    box-shadow: 0 4px 15px var(--primary-glow);
    transition: transform 0.2s, box-shadow 0.2s !important;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.7);
}

/* Glassmorphism Classes */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero {
    padding: 60px 0 40px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 25px;
}

.profile-hero-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
}

.profile-titles h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 5px;
}

.profile-titles h1 span {
    color: var(--primary);
}

.profile-titles h2 {
    font-size: 1.1rem;
    color: var(--secondary);
    font-weight: 500;
    font-family: var(--font-body);
}

.hero-bio {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.8;
}

.highlight {
    color: var(--text-main);
    font-weight: 700;
}

.hero-social {
    display: flex;
    gap: 15px;
    align-items: center;
}

.hero-social a {
    color: var(--text-main);
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    transition: all 0.3s;
    text-decoration: none;
    border: 1px solid var(--border-color);
}

.hero-social a:hover {
    background: var(--primary);
    color: var(--bg-dark);
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--primary-glow);
}

.location {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-left: 10px;
}

/* Sections */
.section {
    padding: 40px 0;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
}

.section-title i {
    color: var(--primary);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

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

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding: 25px;
}

.timeline-dot {
    position: absolute;
    left: -36px;
    top: 30px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.timeline-role {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.timeline-company {
    font-size: 0.95rem;
    color: var(--secondary);
    font-family: var(--font-body);
    font-weight: 400;
    margin-bottom: 15px;
}

.timeline-item ul {
    padding-left: 18px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.timeline-item li {
    margin-bottom: 8px;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.skill-category h4 {
    color: var(--secondary);
    margin-bottom: 15px;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

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

.tag {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.tag:hover {
    background: rgba(56, 189, 248, 0.2);
    transform: scale(1.05);
}

.edu-info {
    margin-bottom: 15px;
}
.edu-info strong {
    display: block;
    color: var(--text-main);
}
.edu-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
}

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

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .hero-social {
        justify-content: center;
    }

    .nav-links {
        display: none; /* simple mobile nav */
    }
}

.print-only {
    display: none;
}

/* Print Layout */
@media print {
    body {
        background-color: white !important;
        color: black !important;
        font-size: 11px;
    }
    
    .bg-shape, .navbar, .no-print, .btn-primary {
        display: none !important;
    }

    .fade-in {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    
    .hero-social {
        display: flex !important;
        flex-wrap: wrap;
        gap: 15px !important;
        margin-top: 5px !important;
        justify-content: center !important;
    }

    .hero-social a {
        background: none !important;
        border: none !important;
        width: auto !important;
        height: auto !important;
        color: black !important;
        font-size: 10px !important;
        display: flex !important;
        align-items: center;
        gap: 5px;
    }

    .print-only {
        display: inline !important;
    }

    .hero-social a i {
        font-size: 10px !important;
    }

    .container {
        max-width: 100% !important;
        padding: 0 10px !important;
    }

    .hero {
        padding: 0 !important;
    }

    .glass-card {
        background: none !important;
        backdrop-filter: none !important;
        border: none !important;
        padding: 0 !important;
        box-shadow: none !important;
        margin-bottom: 15px !important;
    }

    .glass-card:hover {
        transform: none !important;
        box-shadow: none !important;
        border-color: transparent !important;
    }

    .profile-header {
        margin-bottom: 20px !important;
        flex-direction: column !important;
        text-align: center !important;
        align-items: center !important;
        gap: 15px !important;
    }

    .profile-hero-img {
        width: 100px !important;
        height: 100px !important;
        border: none !important;
        box-shadow: none !important;
        margin: 0 auto !important;
    }

    .profile-titles {
        text-align: center !important;
    }

    .profile-titles h1 {
        font-size: 2.2rem !important;
        color: black !important;
        margin-bottom: 5px !important;
    }

    .profile-titles h1 span {
        color: black !important;
    }

    .profile-titles h2 {
        font-size: 1.1rem !important;
        color: #333 !important;
    }

    .hero-bio {
        color: black !important;
        font-size: 12px !important;
        margin-bottom: 15px !important;
        text-align: justify !important;
    }

    .highlight {
        color: black !important;
    }
    
    .section {
        padding: 10px 0 !important;
    }

    .section-title {
        color: black !important;
        font-size: 1.2rem !important;
        margin-bottom: 15px !important;
        border-bottom: 1px solid #ccc;
        padding-bottom: 5px;
    }

    .section-title i {
        color: black !important;
    }

    .timeline {
        padding-left: 20px !important;
    }

    .timeline::before {
        background: #ccc !important;
    }

    .timeline-dot {
        background: black !important;
        box-shadow: none !important;
        left: -26px !important;
    }

    .timeline-item {
        padding: 0 0 15px 0 !important;
        margin-bottom: 0 !important;
        border: none !important;
    }

    .timeline-date {
        color: #555 !important;
    }

    .timeline-company {
        color: #333 !important;
        font-weight: bold !important;
    }

    .timeline-item ul {
        color: black !important;
        font-size: 11px !important;
    }
    
    .tags {
        gap: 4px !important;
    }

    .tag {
        color: black !important;
        border: 1px solid #ccc !important;
        background: transparent !important;
    }
    
    /* Avoid breaking inside cards */
    .timeline-item, .glass-card {
        page-break-inside: avoid;
    }
}
