/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --bg-color: #0f172a;       /* Deep Navy Background */
    --card-bg: #1e293b;        /* Slate Blue Cards */
    --text-primary: #f8fafc;   /* White-ish Text */
    --text-secondary: #94a3b8; /* Grey Text */
    --accent: #38bdf8;         /* Cyan/Electric Blue */
    --accent-glow: rgba(56, 189, 248, 0.5);
    --gradient: linear-gradient(90deg, #38bdf8, #818cf8);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* =========================================
   2. NAVBAR
   ========================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
}

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

.btn-contact {
    border: 1px solid var(--accent);
    padding: 8px 20px;
    border-radius: 5px;
    color: var(--accent) !important;
}

.btn-contact:hover {
    background: var(--accent);
    color: #000 !important;
}

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 50px 20px;
    background: radial-gradient(circle at top right, #1e293b 0%, #0f172a 60%);
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    width: 100%;
    gap: 50px;
}

.hero-text {
    flex: 1;
}

.hero-img {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* Profile Image Animation & Glow */
.img-wrapper {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    padding: 6px;
    background: var(--gradient);
    box-shadow: 0 0 40px var(--accent-glow);
    animation: float 6s ease-in-out infinite;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--bg-color);
    background-color: var(--card-bg);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Hero Typography */
.greeting {
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

.gradient-text {
    font-size: 3.5rem;
    margin: 0 0 10px 0;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

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

/* Hero Buttons */
.hero-btns {
    margin-top: 30px;
    display: flex;
    gap: 20px;
}

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
}

.primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 0 20px var(--accent-glow);
    border: none;
}

.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--accent-glow);
}

.secondary {
    border: 2px solid var(--text-secondary);
    color: var(--text-primary);
}

.secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.counter-badge {
    margin-top: 40px;
    display: inline-block;
    background: rgba(255,255,255,0.05);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border: 1px solid rgba(255,255,255,0.1);
}

/* =========================================
   4. SECTIONS COMMON
   ========================================= */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 100px 20px;
}

.section {
    scroll-margin-top: 120px;
    margin-bottom: 100px;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    color: #fff;
}

.section-title::after {
    content: '';
    width: 60px;
    height: 4px;
    background: var(--accent);
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* =========================================
   5. ABOUT SECTION
   ========================================= */
.about-content {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.05);
}

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

.about-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

.about-stats {
    display: flex;
    gap: 50px;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   6. SKILLS SECTION (Chips)
   ========================================= */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.skill-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: 0.3s;
    border: 1px solid rgba(255,255,255,0.05);
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.skill-card i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--accent);
}

.skill-card h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.skill-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.skill-chips span {
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border: 1px solid transparent;
    transition: 0.3s;
}

.skill-card:hover .skill-chips span {
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent);
    border-color: var(--accent);
}

/* =========================================
   7. PROJECTS SECTION
   ========================================= */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: 0.3s;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.card-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

/* Fixed Text Spacing */
.project-summary {
    color: #cbd5e1;
    font-size: 0.95rem;
    margin-bottom: 20px;
    border-left: 3px solid var(--accent);
    padding-left: 15px;
    line-height: 1.6;
}

.project-details {
    margin-bottom: 25px;
}

/* Fixed List Items */
.project-details li {
    position: relative;
    padding-left: 25px; /* More space for bullet */
    margin-bottom: 12px; /* Space between items */
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6; /* Readable text */
}

.project-details li::before {
    content: '▹';
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--accent);
    font-size: 1.2rem;
    line-height: 1;
}

.project-details strong {
    color: #fff;
}

/* Fixed Buttons */
.card-links {
    margin-top: auto;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-small {
    padding: 8px 16px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid var(--accent);
    color: var(--accent);
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px; /* Space between icon and text */
}

.btn-small:hover {
    background: var(--accent);
    color: #000;
}

.secondary-btn {
    border-color: var(--text-secondary);
    color: var(--text-secondary);
    background: transparent;
}

.secondary-btn:hover {
    border-color: #fff;
    color: #fff;
    background: rgba(255,255,255,0.05);
}

/* =========================================
   8. EXPERIENCE SECTION (Timeline)
   ========================================= */
.timeline {
    border-left: 2px solid rgba(255,255,255,0.1);
    margin-left: 20px;
    padding: 20px 0;
}

.timeline-item {
    padding-left: 40px;
    position: relative;
    margin-bottom: 50px;
}

.timeline-item::before {
    content: '';
    width: 16px;
    height: 16px;
    background: var(--bg-color);
    border: 2px solid var(--accent);
    position: absolute;
    left: -9px;
    top: 5px;
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-glow);
}

.timeline-date {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-content h3 {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 5px;
}

.company {
    display: block;
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-style: italic;
}

.timeline-content p {
    color: #e2e8f0;
    margin-bottom: 10px;
}

.timeline-content ul {
    margin-top: 10px;
}

.timeline-content li {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.timeline-content li strong {
    color: #fff;
}

/* =========================================
   9. EDUCATION SECTION
   ========================================= */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.edu-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: 0.3s;
}

.edu-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    background: rgba(30, 41, 59, 0.8);
}

.edu-icon {
    background: rgba(56, 189, 248, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--accent);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.edu-card:hover .edu-icon {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 15px var(--accent-glow);
}

.edu-content h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #fff;
    line-height: 1.3;
}

.uni {
    display: block;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.edu-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.85rem;
    color: #cbd5e1;
}

.edu-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.edu-meta i {
    color: var(--accent);
    font-size: 0.8rem;
}

/* =========================================
   10. FOOTER
   ========================================= */
footer {
    text-align: center;
    margin-top: 80px;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 40px;
}

footer h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.socials {
    margin: 30px 0;
}

.socials a {
    font-size: 1.8rem;
    margin: 0 20px;
    color: var(--text-secondary);
    transition: 0.3s;
}

.socials a:hover {
    color: var(--accent);
    transform: scale(1.1);
}

.copyright {
    color: #555;
    font-size: 0.9rem;
}

/* =========================================
   11. MOBILE RESPONSIVE
   ========================================= */
@media (max-width: 850px) {
    .navbar {
        padding: 15px 20px;
    }

    .nav-links {
        display: none;
    }

    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 30px;
    }

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

    .img-wrapper {
        width: 250px;
        height: 250px;
    }

    .gradient-text {
        font-size: 2.5rem;
    }

    .about-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
    }

    .timeline {
        margin-left: 10px;
    }
    
    .timeline-item {
        padding-left: 30px;
    }

    .edu-card {
        flex-direction: column;
        text-align: center;
    }

    .edu-icon {
        margin: 0 auto;
    }

    .edu-meta {
        justify-content: center;
    }
}