:root {
    /* Modern Slate Palette */
    --bg-color: #0f172a;       /* Deep Slate Blue (Background) */
    --card-bg: #1e293b;        /* Lighter Slate (Cards) */
    --primary-color: #38bdf8;  /* Sky Blue (Highlights/Icons) */
    --accent-color: #6366f1;   /* Indigo (Buttons/Hover) */
    --text-color: #f1f5f9;     /* Off-white (Main Text) */
    --text-secondary: #94a3b8; /* Muted Slate (Subtitles) */
    --border-color: #334155;   /* Subtle Border */
    --font-main: 'Poppins', sans-serif;
}

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

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

/* --- NAVIGATION --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.highlight {
    color: var(--primary-color);
    text-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin: 0 15px;
}

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

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

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-color);
}

/* --- HERO SECTION --- */
.hero {
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: radial-gradient(circle at 50% 50%, #1e293b 0%, var(--bg-color) 80%);
}

.profile-img-container img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 3px solid var(--bg-color);
    outline: 3px solid var(--accent-color);
    margin-bottom: 25px;
    object-fit: cover;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.hero h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 400;
}

/* --- HERO SCROLL ANIMATION --- */
.hero-scroll-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--text-secondary);
}

.scroll-box {
    height: 50px;
    overflow: hidden;
    position: relative;
}

.scroll-list {
    list-style: none;
    animation: scrollUp 6s cubic-bezier(0.23, 1, 0.32, 1) infinite;
}

.scroll-item {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Badge Styling */
.badge {
    padding: 5px 15px;
    border-radius: 8px;
    color: #0f172a;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    white-space: nowrap;
}

.badge.blue { background-color: var(--primary-color); }
.badge.indigo { background-color: var(--accent-color); color: white; }
.badge.white { background-color: #f1f5f9; }

/* Animation Keyframes */
@keyframes scrollUp {
    0% { margin-top: 0; }
    20% { margin-top: 0; }
    33% { margin-top: -50px; }
    53% { margin-top: -50px; }
    66% { margin-top: -100px; }
    86% { margin-top: -100px; }
    100% { margin-top: -150px; }
}

/* --- BUTTONS & SOCIALS --- */
.social-icons a {
    color: var(--text-secondary);
    font-size: 1.8rem;
    margin: 0 15px;
    transition: all 0.3s;
}

.social-icons a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.btn {
    display: inline-block;
    margin-top: 35px;
    padding: 12px 35px;
    background: linear-gradient(135deg, var(--accent-color), #4f46e5);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

/* --- SECTIONS GENERAL --- */
.section {
    padding: 100px 10%;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 60px;
    color: var(--text-color);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-secondary);
    margin-top: -40px;
}

.bg-darker {
    background-color: #0b1120;
}

/* --- ABOUT SECTION --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 30px;
}

.edu-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    transition: border-color 0.3s;
}

.edu-card:hover {
    border-color: var(--primary-color);
}

.edu-card h4 {
    color: var(--text-color);
    margin-bottom: 5px;
}

.edu-card .institution {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 600;
}

.edu-card .details {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 5px;
}

/* --- SKILLS & LANGUAGES --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.skill-item {
    background: var(--card-bg);
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s;
}

.skill-item:hover {
    background: #253147;
    color: var(--text-color);
    transform: translateX(5px);
    border-color: var(--primary-color);
}

.skill-item i {
    color: var(--primary-color);
    font-size: 1.4rem;
}

/* Language Proficiency Bars */
.languages-container {
    margin-top: 40px;
}

.languages-container h3 {
    margin-bottom: 20px;
    color: var(--text-color);
}

.language-item {
    margin-bottom: 15px;
}

.lang-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.lang-level {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.85rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: var(--card-bg);
    border-radius: 4px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: var(--accent-color);
    border-radius: 4px;
    transition: width 1s ease-in-out;
}

/* --- PORTFOLIO PROJECTS --- */
.projects-grid {
    display: grid;
    /* Force 3 columns on screens wider than 1024px */
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
}

.project-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
    position: relative;
    display: flex;
    flex-direction: column; 
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.card-header {
    background: linear-gradient(to right, #1e293b, #26334d);
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid var(--border-color);
}

.card-header i {
    font-size: 1.4rem;
    color: var(--primary-color);
    background: rgba(56, 189, 248, 0.1);
    padding: 10px;
    border-radius: 8px;
}

.card-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-body p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.reflection-box {
    background: rgba(99, 102, 241, 0.08);
    padding: 15px;
    margin: 10px 0 20px 0;
    border-radius: 8px;
    border-left: 3px solid var(--accent-color);
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.reflection-box strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
}

/* Full Width Read More Button */
.btn-read-more {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 0;
    background-color: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: auto; 
}

.btn-read-more:hover {
    background-color: var(--accent-color);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

/* --- EXPERIENCE TABLE --- */
.table-responsive {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
}

.custom-table th, .custom-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.custom-table th {
    background-color: #1a2333;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.custom-table td {
    color: var(--text-secondary);
}

.custom-table tr:last-child td {
    border-bottom: none;
}

.custom-table tr:hover td {
    background-color: #253147;
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 50px;
    background: #020617;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* --- BLOG PAGE STYLES --- */
.blog-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.5);
}

.blog-header {
    text-align: center;
    margin-bottom: 40px;
}

.blog-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

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

.media-container {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.blog-img {
    width: 100%;
    height: auto;
    display: block;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.blog-text h2 {
    color: var(--text-color);
    border-left: 4px solid var(--accent-color);
    padding-left: 15px;
    margin: 40px 0 20px 0;
}

.blog-text p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 20px;
    line-height: 1.8;
}

.divider {
    border: 0;
    height: 1px;
    background: var(--border-color);
    margin: 50px 0;
}

.reflection-deep-dive {
    background: rgba(15, 23, 42, 0.6); 
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.reflection-deep-dive h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
    margin-top: 20px;
}

.reflection-deep-dive h3:first-child {
    margin-top: 0;
}

.blog-footer {
    text-align: center;
    margin-top: 60px;
}

/* Blog Image Gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.image-gallery img {
    width: 100%;
    height: 250px;       
    object-fit: cover;   
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.image-gallery img:hover {
    transform: scale(1.02); 
    border-color: var(--primary-color);
}

.single-media {
    width: 100%;
    height: auto;        
    border-radius: 12px; 
    margin: 20px 0;      
    box-shadow: 0 5px 20px rgba(0,0,0,0.3); 
    display: block;
}

/* LinkedIn Embed */
.linkedin-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    width: 100%;
    background-color: white; 
    padding: 15px;
    border-radius: 12px;
}

.linkedin-wrapper iframe {
    width: 100%;
    max-width: 504px; 
    border-radius: 8px;
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar .nav-links {
        display: none; 
    }
    
    .hamburger {
        display: block;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-scroll-container {
        flex-direction: column;
        gap: 5px;
    }
    
    .section {
        padding: 80px 5%;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .blog-container {
        padding: 20px;
    }
    
    .blog-header h1 {
        font-size: 1.8rem;
    }
}
