/* === style.css === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --color-bg: #0B1120;
    --color-bg-darker: #080D19;
    --color-border: #1E293B;
    --color-card: rgba(15, 23, 42, 0.5);
    --color-text: #E2E8F0;
    --color-text-gray: #94A3B8;
    --color-text-muted: #64748B;
    --color-cyan: #22D3EE;
    --color-blue: #3B82F6;
    --color-purple: #A855F7;
    --font-family: 'Inter', sans-serif;
}

/* --- Base & Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: var(--font-family);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7; /* Better readability */
}
a {
    color: var(--color-cyan);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #fff;
}
img {
    max-width: 100%;
    height: auto;
}
ul {
    list-style: none;
}
h1, h2, h3 {
    line-height: 1.2;
    font-weight: 700;
}
h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.25rem; }
strong {
    color: var(--color-cyan);
    font-weight: 600;
}

/* --- Utility Classes --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.section {
    padding: 6rem 0;
}
.section-title {
    text-align: center;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--color-cyan), var(--color-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.section-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--color-text-gray);
    max-width: 70ch;
    margin: 0 auto 3.5rem auto;
}
.bg-darker {
    background-color: var(--color-bg-darker);
}
.text-center { text-align: center; }
.text-cyan { color: var(--color-cyan); }
.text-purple { color: var(--color-purple); }
.text-blue { color: var(--color-blue); }
.text-gray { color: var(--color-text-gray); }
.text-muted { color: var(--color-text-muted); }
.text-white { color: #fff; }

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}
.btn-primary {
    background: linear-gradient(to right, var(--color-cyan), var(--color-blue));
    color: #fff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}
.btn-primary:hover {
    color: #fff;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
}
.btn-secondary {
    background-color: #1E293B;
    color: var(--color-text);
    border: 1px solid #334155;
}
.btn-secondary:hover {
    background-color: #334155;
    color: #fff;
}
.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* --- Card --- */
.card {
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}
.card hr {
    border: none;
    height: 1px;
    background-color: var(--color-border);
    margin: 1rem 0;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background-color: rgba(11, 17, 32, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
}
.nav-logo:hover {
    color: var(--color-text);
}
.logo-box {
    width: 40px;
    height: 40px;
    background: linear-gradient(to br, var(--color-cyan), var(--color-blue));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
}
.nav-menu {
    display: flex;
    gap: 2.5rem;
}
.nav-link {
    color: var(--color-text-gray);
    font-weight: 500;
    text-transform: capitalize;
}
.nav-link:hover, .nav-link.active {
    color: var(--color-cyan);
}
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-text);
    cursor: pointer;
}
.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    z-index: 999;
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
}
.mobile-menu.open {
    display: block;
}
.mobile-link {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--color-text-gray);
    font-weight: 500;
    text-transform: capitalize;
    border-bottom: 1px solid var(--color-border);
}
.mobile-link:hover {
    background-color: var(--color-bg-darker);
    color: var(--color-cyan);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 70px;
}
.hero-content {
    max-width: 800px;
}
.hero-title {
    background: linear-gradient(to right, var(--color-cyan), var(--color-blue), var(--color-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1.5rem;
    font-size: 3.8rem;
}
.hero-subtitle {
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--color-cyan);
    margin-bottom: 1.5rem;
}
.hero-description {
    font-size: 1.2rem;
    color: var(--color-text-gray);
    margin-bottom: 2.5rem;
    max-width: 65ch; /* Improves readability */
    margin-left: auto;
    margin-right: auto;
}
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

/* --- About Section (IMPROVED) --- */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* 2/3 for text, 1/3 for card */
    gap: 3rem;
    align-items: flex-start;
}
.about-narrative p {
    font-size: 1.1rem;
    color: var(--color-text-gray);
    margin-bottom: 1.5rem;
}
.about-narrative p em { /* For the 'why' */
    color: var(--color-cyan);
    font-style: normal;
    font-weight: 600;
}
.education-card {
    padding: 2rem;
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
}
.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.card-header i {
    width: 2rem;
    height: 2rem;
}

/* --- Toolbox Section (IMPROVED) --- */
.toolbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}
.skills-category {
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 2rem 2.5rem;
    transition: all 0.3s ease;
}
.skills-category:hover {
    border-color: #334155;
    transform: translateY(-5px);
}
.skills-category h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-cyan);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 0.75rem;
}
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.skill-tag {
    background: #1E293B; /* Darker tag background */
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-gray);
    transition: all 0.3s ease;
}
.skill-tag:hover {
    background: var(--color-cyan);
    color: var(--color-bg);
    border-color: var(--color-cyan);
    transform: translateY(-2px);
    font-weight: 600;
}


/* --- Projects Section --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}
.project-card {
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.project-card:hover {
    border-color: #334155;
    transform: translateY(-5px);
}
.project-image {
    height: 200px;
    background-color: var(--color-bg-darker);
    overflow: hidden;
}
.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.project-card:hover .project-image img {
    transform: scale(1.1);
}
.project-content {
    padding: 1.5rem;
}
.project-domain {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-cyan);
    text-transform: uppercase;
}
.project-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin-top: 0.25rem;
    margin-bottom: 0.75rem;
}
.project-content p {
    color: var(--color-text-gray);
    margin-bottom: 1rem;
}
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}
.tag {
    background-color: #0F172A;
    color: var(--color-cyan);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
}
.project-links {
    display: flex;
    gap: 1.5rem;
}
.project-links a {
    color: var(--color-text-gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}
.project-links a:hover {
    color: var(--color-cyan);
}
.project-links a i {
    width: 16px;
    height: 16px;
}

/* --- Experience Section --- */
.experience-list .card {
    margin-bottom: 2rem;
}
.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}
.experience-points {
    padding-left: 1.5rem;
}
.experience-points li {
    position: relative;
    color: var(--color-text-gray);
    margin-bottom: 0.5rem;
}
.experience-points li::before {
    content: '•';
    position: absolute;
    left: -1.25rem;
    color: var(--color-cyan);
    font-weight: 700;
}

/* --- Contact Section --- */
#contact .btn i {
    display: inline-block;
    vertical-align: middle;
}
.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}
.social-links a {
    color: var(--color-text-gray);
    transition: all 0.3s ease;
}
.social-links a:hover {
    color: var(--color-cyan);
    transform: translateY(-2px);
}

/* --- Footer --- */
.footer {
    padding: 2.5rem 0;
    text-align: center;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}
.footer p {
    margin: 0.25rem;
    color: var(--color-text-muted);
}

/* --- Responsive Design --- */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    .nav-toggle {
        display: block;
    }
    .hero {
        padding: 6rem 0;
    }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .hero-subtitle { font-size: 1.25rem; }
    .hero-description { font-size: 1rem; }
    .experience-header {
        flex-direction: column;
        gap: 0.5rem;
    }
}