:root {
    --bg-dark:      #0f172a;
    --card-bg:      #1e293b;
    --text-main:    #f8fafc;
    --text-dim:     #94a3b8;
    --accent-blue:  #6366f1;   
    --accent-green: #10b981;
    --border-color: #334155;
    --shadow-sm:    0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-md:    0 10px 15px -3px rgb(0 0 0 / 0.2), 0 4px 6px -4px rgb(0 0 0 / 0.15);
    --radius-md:    12px;
    --radius-lg:    16px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
}

/* ====================
   Navigation
   ==================== */
header {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: center;
}

nav {
    display: flex;
    gap: 0.5rem;
    background: var(--card-bg);
    padding: 0.5rem;
    border-radius: 9999px; /* pill shape */
    border: 1px solid var(--border-color);
}

nav a {
    color: var(--text-dim);
    text-decoration: none;
    padding: 0.6rem 1.4rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 9999px;
    transition: all 0.25s ease;
}

nav a:hover,
nav a.active {
    color: white;
    background: #6366F1;
}

/* ====================
   Main Content
   ==================== */
main {
    min-height: 100vh;
    padding: 2rem 1rem;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

/* Hero / About */
.about-hero {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
    margin: 4rem 0 6rem;
}

.profile-square {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, #6366f1 0%, #10b981 100%);
    border-radius: var(--radius-lg);
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
    border: 6px solid var(--card-bg);
}

.about-text h1 {
    font-size: 2.8rem;
    margin: 0 0 1rem;
    line-height: 1.1;
}

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

.about-text p {
    font-size: 1.15rem;
    color: var(--text-dim);
    max-width: 65ch;
}

/* Section Titles */
.section-title {
    font-size: 2.2rem;
    text-align: center;
    margin: 5rem 0 3rem;
    color: white;
    position: relative;
}

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

/* Projects Grid */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.8rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-blue);
}

.img-placeholder {
    height: 200px;
    background: linear-gradient(145deg, #2d3748, #1e293b);
    position: relative;
    overflow: hidden;
}

.img-placeholder::after {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #64748b;
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.6;
}

.project-label {
    padding: 1.4rem 1.5rem;
    background: rgba(0,0,0,0.3);
}

.project-label h3 {
    margin: 0 0 0.4rem;
    font-size: 1.15rem;
}

.project-label p {
    margin: 0;
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* Contact specific */
.contact-form {
    max-width: 540px;
    margin: 3rem auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

input, textarea {
    background: #0f172a;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem 1.2rem;
    color: white;
    font-size: 1rem;
    transition: border-color 0.25s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.btn-send {
    background: var(--accent-green);
    border: none;
    padding: 1rem;
    border-radius: 9999px;
    color: white;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.25s;
}

.btn-send:hover {
    background: #059669;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .about-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .profile-square {
        margin: 0 auto;
    }
    
    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.4rem;
    }
}

.contact-hero {
    margin: 5rem 0 6rem;
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.contact-details p {
    margin: 0.6rem 0;
    font-size: 1.1rem;
    color: var(--text-dim);
}

.contact-details strong {
    color: var(--text-main);
}

.social-icons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin: 1.2rem 0;
}

@media (max-width: 768px) {
    .social-icons {
        justify-content: center;
        gap: 0.9rem;
        margin: 1.5rem 0;
    }
    
    .badge {
        font-size: 0.9rem;
        padding: 0.4rem 1rem;
        min-width: 60px;
    }
    
    .contact-details,
    .social-icons {
        text-align: center;
    }
}

.icon-circle {
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
    transition: all 0.25s;
}

.icon-circle:hover {
    border-color: var(--accent-blue);
    transform: translateY(-2px);
}

.qualifications h3,
.experiences h3 {
    margin: 0 0 1rem;
    font-size: 1.4rem;
    color: var(--accent-blue);
}

.qualifications ul,
.experiences ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.qualifications li,
.experiences li {
    margin: 0.6rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-dim);
}

.qualifications li::before,
.experiences li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-green);
}

/* Form tweaks */
.contact-form input[type="email"] {
    margin-top: 0.5rem;
}

/* Mobile stacking */
@media (max-width: 768px) {
    .about-hero,
    .contact-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .profile-square {
        margin: 0 auto 2rem;
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-content {
        text-align: center;
    }
    
    .qualifications,
    .experiences {
        text-align: left;
    }
}

.badge {
    background: #6366F1;          /* violet-600 – solid, vibrant purple */
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.35rem 0.9rem;
    border-radius: 9999px;        /* fully rounded pills */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;              /* prevents them from being too tiny */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.badge:hover {
    background: #6d28d9;          /* slightly darker on hover – violet-700 */
    transform: translateY(-1px);
}