/* --- ROOT VARIABLES (LIGHT THEME) --- */
:root {
    --bg-color: #f1f9fb;      /* Light Gray Background from image */
    --card-bg: #FFFFFF;       /* White for cards */
    --text-main: #1F2937;     /* Dark text */
    --text-muted: #4B5563;    /* Gray text */
    --primary: #1F2937;       /* Dark accent */
    --accent: #0077b5;        /* Blue accent for links/highlights */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Poppins', sans-serif;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

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

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

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.navbar-logo { font-weight: 700; font-size: 1.5rem; color: var(--text-main); text-decoration: none; }
.navbar-logo span { color: var(--accent); }

.navbar-links { list-style: none; display: flex; gap: 30px; }
.navbar-links a { text-decoration: none; color: var(--text-muted); font-weight: 500; transition: 0.3s; }
.navbar-links a:hover { color: var(--text-main); }
.navbar-toggle { display: none; cursor: pointer; font-size: 1.5rem; }

/* --- HERO SECTION --- */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    padding: 80px 10% 0; /* Top padding for navbar */
    background-color: var(--bg-color);
}

.hero-content { flex: 1; max-width: 600px; z-index: 2; }

.hero-name {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.1;
    margin-bottom: 5px;
}

.hero-handle {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 20px;
    font-family: monospace;
}

.hero-bio { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 30px; }

/* Social Icons */
.social-row { display: flex; gap: 15px; margin-bottom: 30px; }
.social-icon {
    width: 45px; height: 45px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.2rem; text-decoration: none;
    transition: transform 0.3s ease;
}
.social-icon:hover { transform: translateY(-5px); }
.bg-github { background-color: #333; }
.bg-linkedin { background-color: #0077b5; }
.bg-google { background-color: #db4437; }
.bg-instagram { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); }

/* Buttons */
.star-btn {
    display: inline-flex; align-items: center; gap: 10px;
    background-color: var(--primary); color: white;
    padding: 12px 25px; border-radius: 8px;
    font-weight: 600; text-decoration: none;
    transition: 0.3s; box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.star-btn:hover { transform: translateY(-2px); background-color: #000; }
.star-icon { color: #FFD700; }

.hero-image-container { flex: 1; display: flex; justify-content: flex-end; }
.hero-illustration { width: 100%; max-width: 550px; height: auto; }

/* --- TECH STACK MARQUEE --- */
.tech-stack { padding: 40px 0; background: #fff; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; overflow: hidden; }
.marquee-content { display: flex; gap: 50px; animation: scroll 25s linear infinite; width: max-content; }
.tech-item { font-size: 1.2rem; color: var(--text-muted); display: flex; align-items: center; gap: 10px; font-weight: 600; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- PROJECTS SECTION --- */
.section { padding: 80px 10%; max-width: 1400px; margin: 0 auto; }
.section-title { font-size: 2.5rem; margin-bottom: 50px; text-align: left; color: var(--text-main); }
.section-title span { color: var(--accent); }

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

.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: 0.3s;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.05);
}

.project-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.project-img { width: 100%; height: 200px; object-fit: cover; }
.project-content { padding: 25px; }
.project-title { font-size: 1.25rem; margin-bottom: 10px; color: var(--text-main); }
.project-desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tag { font-size: 0.75rem; padding: 4px 10px; background: #f3f4f6; color: var(--text-main); border-radius: 20px; font-weight: 500; }

.project-link { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.project-link:hover { text-decoration: underline; }

/* --- CONTACT --- */
.contact-container {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 0 auto;
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: var(--text-muted); }
.form-group input, .form-group textarea {
    width: 100%; padding: 12px;
    border: 1px solid #ddd; border-radius: 8px;
    background: #f9f9f9; font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); background: #fff; }

.submit-btn {
    width: 100%; padding: 12px;
    background: var(--primary); color: white;
    border: none; border-radius: 8px;
    font-weight: 600; cursor: pointer; transition: 0.3s;
}
.submit-btn:hover { background: #000; }

/* --- FOOTER --- */
footer { text-align: center; padding: 40px; color: var(--text-muted); border-top: 1px solid #ddd; background: #fff; }

/* --- CHATBOT TOGGLE --- */
.chatbot-toggle {
    position: fixed; bottom: 30px; right: 30px;
    width: 60px; height: 60px;
    background: var(--primary); color: white;
    border-radius: 50%; display: flex; justify-content: center; align-items: center;
    font-size: 24px; cursor: pointer; box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: 0.3s; z-index: 1000;
}
.chatbot-toggle:hover { transform: scale(1.1); }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero-section { flex-direction: column-reverse; justify-content: center; text-align: center; padding-top: 100px; }
    .hero-image-container { justify-content: center; margin-bottom: 40px; }
    .social-row { justify-content: center; }
    .navbar-links { display: none; } /* Add JS toggle for mobile menu if needed */
    .navbar-toggle { display: block; }
}

/* --- WHAT I DO SECTION --- */
.what-i-do-section {
    padding: 80px 10%;
    background-color: var(--bg-color); /* Matches your light theme */
}

.skill-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 80px;
    gap: 50px;
}

/* Reverse class for alternating layout (Image Left, Text Right) */
.skill-row.reverse {
    flex-direction: row-reverse;
}

.skill-content {
    flex: 1;
}

.skill-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.skill-image img {
    width: 100%;
    max-width: 400px; /* Adjust size of illustration */
    height: auto;
}

.skill-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-main);
}

/* Icons Row */
.skill-icons-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    font-size: 2.5rem; /* Icon size */
}

.skill-icons-row img {
    width: 40px; /* SVG Icon size */
    height: 40px;
}

/* List with Lightning Bolts */
.skill-list {
    list-style: none;
}

.skill-list li {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    position: relative;
    padding-left: 25px;
}

.skill-list li::before {
    content: '⚡'; /* The lightning bolt */
    position: absolute;
    left: 0;
    color: #F7DF1E; /* Yellow bolt color */
}

/* Responsive Design for Mobile */
@media (max-width: 900px) {
    .skill-row, .skill-row.reverse {
        flex-direction: column-reverse; /* Stack text below image on mobile */
        text-align: center;
        gap: 30px;
    }

    .skill-list {
        text-align: left; /* Keep list aligned left even on mobile */
    }
    
    .skill-icons-row {
        justify-content: center;
    }
}

/* --- EDUCATION PAGE STYLES --- */

/* 1. Hero Section */
.edu-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    padding: 120px 10% 50px;
    background-color: var(--bg-color);
}
.edu-hero-image img { width: 100%; max-width: 400px; }
.edu-hero-content { max-width: 600px; text-align: center; }
.edu-hero-content h1 { font-size: 3rem; color: var(--text-main); margin-bottom: 10px; }
.edu-hero-content h3 { font-size: 1.5rem; color: var(--text-muted); margin-bottom: 20px; font-weight: 400; }
.edu-icons { font-size: 2rem; margin-bottom: 20px; display: flex; gap: 15px; justify-content: center; }

/* 2. Degree Cards (The distinct styling from your image) */
.degrees-section { padding-bottom: 50px; }

.degree-card {
    display: flex;
    align-items: flex-start; /* Align top */
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 40px;
    transition: 0.3s;
    position: relative;
    padding: 0;
    overflow: visible; /* Allows logo to hang out if needed */
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.degree-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

.degree-logo {
    width: 120px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.degree-logo img { width: 100%; height: auto; border-radius: 50%; }

.degree-content { flex: 1; border-left: 1px solid #e5e7eb; }

.degree-header {
    background-color: #FFD580; /* The Light Orange bar from image */
    padding: 15px 25px;
    border-top-right-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.degree-header h3 { font-size: 1.1rem; color: #000; margin: 0; }
.degree-year { font-weight: 700; color: #000; background: rgba(255,255,255,0.4); padding: 2px 8px; border-radius: 5px; font-size: 0.9rem; }

.degree-content h4 { padding: 15px 25px 5px; font-size: 1.2rem; color: var(--text-main); }
.degree-content p { padding: 5px 25px; color: var(--text-muted); font-size: 0.95rem; margin: 0; }

.visit-btn {
    display: inline-block;
    margin: 15px 25px 25px;
    padding: 8px 20px;
    background-color: #FFD580;
    color: #000;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
}
.visit-btn:hover { background-color: #ffa500; }

/* 3. Certifications Grid */
.cert-section { padding-top: 20px; }
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.cert-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: 0.3s;
    border: 1px solid #e5e7eb;
}
.cert-card:hover { transform: scale(1.03); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

.cert-top { padding: 40px; display: flex; justify-content: center; align-items: center; }
.cert-body { padding: 20px; }
.cert-body h3 { font-size: 1.1rem; margin-bottom: 5px; }
.cert-body p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 15px; }
.cert-link { font-size: 0.9rem; color: var(--accent); font-weight: 600; text-decoration: none; }
.cert-link:hover { text-decoration: underline; }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .edu-hero { flex-direction: column-reverse; padding-top: 100px; }
    .degree-card { flex-direction: column; }
    .degree-logo { width: 100%; border-bottom: 1px solid #e5e7eb; padding: 10px; }
    .degree-logo img { width: 80px; }
    .degree-content { border-left: none; width: 100%; }
    .degree-header { flex-direction: column; text-align: center; gap: 5px; }
}
.cert-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 40px;
            max-width: 1200px;
            margin: 0 auto;
        }
        .cert-row {
            display: flex;
            justify-content: center;
            gap: 40px;
            flex-wrap: wrap;
            width: 100%;
        }
        /* Make icons bigger as requested */
        .cert-top i {
            font-size: 5rem !important; /* Increased from 3rem */
            transition: transform 0.3s;
        }
        .cert-card:hover .cert-top i {
            transform: scale(1.1);
        }

/* --- EXPERIENCE TIMELINE STYLES --- */

.timeline-section {
    padding-top: 20px;
    background-color: var(--bg-color);
}

.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

/* The Vertical Line */
.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 120px; /* Adjust based on logo width */
    width: 4px;
    background: #FFD580; /* The orange line color from reference */
    border-radius: 2px;
}

.timeline-block {
    position: relative;
    margin-bottom: 60px;
    display: flex;
    align-items: center;
}

/* 1. Left Logo Area */
.timeline-logo-area {
    width: 120px;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.timeline-logo {
    width: 80px;
    height: 80px;
    background: #fff;
    border: 3px solid #FFD580;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.timeline-logo img {
    width: 60%;
    height: auto;
}

/* 2. The Connector Dot on the Line */
.timeline-marker {
    position: absolute;
    left: 114px; /* Centered on the 4px line at left:120px */
    width: 16px;
    height: 16px;
    background: #FFD580;
    border-radius: 50%;
    border: 3px solid #fff;
    z-index: 3;
    box-shadow: 0 0 0 3px rgba(255, 213, 128, 0.3);
}

/* 3. Right Content Card */
.timeline-content {
    flex: 1;
    margin-left: 40px;
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: relative;
    border-left: 5px solid #FFD580; /* Accent border on card */
}

/* Little triangle pointing to the line */
.timeline-content::before {
    content: '';
    position: absolute;
    top: 30px;
    left: -10px;
    width: 0; 
    height: 0; 
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent; 
    border-right: 10px solid #FFD580; 
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.timeline-header h2 {
    font-size: 1.4rem;
    color: var(--text-main);
    margin: 0;
}

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

.company-name {
    font-size: 1.1rem;
    color: #4B5563;
    margin-bottom: 15px;
    font-weight: 500;
}

.timeline-content p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 15px;
}

.location-tag {
    display: inline-block;
    font-size: 0.85rem;
    color: #888;
}

/* Responsive: Collapse timeline on mobile */
@media (max-width: 768px) {
    .timeline-container::before { left: 40px; }
    
    .timeline-block { flex-direction: column; align-items: flex-start; }
    
    .timeline-logo-area { width: 80px; margin-bottom: 15px; }
    .timeline-logo { width: 60px; height: 60px; }
    
    .timeline-marker { left: 34px; top: 75px; } /* Adjust marker position */
    
    .timeline-content { 
        margin-left: 60px; /* Push card right of the line */
        width: calc(100% - 60px); 
    }
    
    .timeline-content::before { top: 20px; } /* Adjust triangle arrow */
}

/* --- PROJECTS PAGE SPECIFIC --- */

/* Center container for the button */
.see-more-container {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 40px;
}

/* See More Button Style */
.see-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 40px;
    background-color: var(--primary); /* Dark color */
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px; /* Pill shape */
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.see-more-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    background-color: #000;
}

/* Ensure Hero Text Alignment on Projects Page */
@media (max-width: 768px) {
    .edu-hero-content {
        text-align: center !important;
    }
}