/* Root Variables & Colors */
:root {
    --bg-color: #0b0f19;
    --card-bg: rgba(15, 23, 42, 0.65);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --primary-glow: linear-gradient(135deg, #38bdf8 0%, #a855f7 100%);
    --accent-blue: #38bdf8;
    --accent-purple: #c084fc;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --transition-speed: 0.3s;
}

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

body {
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at 10% 20%, rgba(56, 189, 248, 0.05) 0%, transparent 40%),
                      radial-gradient(circle at 90% 80%, rgba(168, 85, 247, 0.05) 0%, transparent 40%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Main Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 100px 20px 40px 20px;
}

/* Dynamic Menu Bar (Sticky Glassmorphic Nav) */
.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(11, 15, 25, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    padding: 15px 0;
}

.nav-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.nav-logo-link {
    text-decoration: none;
    margin-right: auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo img {
    height: 35px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.4));
}

.nav-logo span {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
    background: var(--primary-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    color: var(--text-secondary);
    position: relative;
    padding: 5px 0;
    transition: color var(--transition-speed);
}

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

.nav-link.active {
    color: var(--accent-blue);
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-glow);
    border-radius: 2px;
}

/* Glassmorphic Section/Card base styling */
.section-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 25px;
    background: var(--primary-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* Hero Section */
.hero-section {
    margin-top: 20px;
    margin-bottom: 40px;
}

.hero-card {
    background: radial-gradient(circle at top right, rgba(168, 85, 247, 0.15), transparent 60%), var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-picture-container {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    padding: 4px;
    background: var(--primary-glow);
    margin-bottom: 25px;
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.4);
}

.profile-picture-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background: #0f172a;
}

.hero-name {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
    background: var(--primary-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-headline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 600px;
    margin-bottom: 25px;
}

.hero-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* About Yourself Section */
.about-text {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Timeline (Work Experience) */
.timeline {
    position: relative;
    border-left: 2px solid rgba(56, 189, 248, 0.2);
    margin-left: 20px;
    padding-left: 30px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.timeline-item {
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: -41px;
    top: 25px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 4px solid var(--accent-blue);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
}

.timeline-content {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 25px;
    transition: transform var(--transition-speed), border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.timeline-content:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 10px 25px -10px rgba(56, 189, 248, 0.15);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}

.role-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.company-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--accent-purple);
    margin-bottom: 15px;
}

.experience-bullets {
    margin-left: 20px;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.experience-bullets li::marker {
    color: var(--accent-blue);
}

/* Education Section */
.education-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.education-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform var(--transition-speed), border-color var(--transition-speed);
}

.education-card:hover {
    transform: translateY(-4px);
    border-color: rgba(168, 85, 247, 0.4);
}

.edu-icon {
    font-size: 2.5rem;
    background: rgba(168, 85, 247, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.edu-details h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.degree-title {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 2px;
}

.edu-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.gpa-text {
    color: var(--accent-blue);
}

/* Leaflet Map Custom Styling */
#map-container {
    border: 1px solid var(--card-border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.map-subtitle {
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.map-popup h3 {
    font-family: var(--font-heading);
    margin-bottom: 5px;
    color: #1e293b; /* Keep popup readable */
    font-size: 1rem;
}

.map-popup p {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: #475569;
    margin: 0;
}

/* Hobbies Page Styles */
.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.hobby-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-speed), border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.hobby-card:hover {
    transform: translateY(-6px);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 15px 30px -10px rgba(56, 189, 248, 0.2);
}

.hobby-image-container {
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-bottom: 1px solid var(--card-border);
}

.hobby-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.hobby-card:hover .hobby-image-container img {
    transform: scale(1.05);
}

.hobby-details {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.hobby-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.hobby-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Buttons */
.back-home-container {
    margin-top: 40px;
    text-align: center;
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    background: var(--primary-glow);
    color: white;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
    border: none;
    cursor: pointer;
}

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

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

/* Responsive Media Queries */
@media (max-width: 768px) {
    .container {
        padding-top: 90px;
    }
    
    .hero-card {
        padding: 40px 20px;
    }
    
    .hero-name {
        font-size: 2.25rem;
    }
    
    .section-card {
        padding: 25px;
    }
    
    .timeline {
        padding-left: 20px;
        margin-left: 10px;
    }
    
    .timeline-dot {
        left: -31px;
    }
    
    .timeline-header {
        flex-direction: column;
        gap: 2px;
    }
}

/* Form and Timeline Card Styles */
.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-input, .form-textarea {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.timeline-posts-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.post-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    gap: 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform var(--transition-speed), border-color var(--transition-speed);
}

.post-card:hover {
    transform: translateY(-2px);
    border-color: rgba(56, 189, 248, 0.3);
}

.avatar-container {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--primary-glow);
    padding: 2px;
}

.avatar-container img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #0f172a;
}

.post-content-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
}

.post-author {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.post-email {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.post-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.post-body {
    color: var(--text-secondary);
    font-size: 1rem;
    white-space: pre-wrap;
    word-break: break-word;
}