/* ===== VARIABLES & RESETS ===== */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #8b5cf6;
    --dark: #1e293b;
    --darker: #0f172a;
    --light: #f8fafc;
    --gray: #64748b;
    --accent: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: #f9fafb;
    position: relative;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--darker);
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: color 0.3s ease;
}

a:hover, a:focus {
    color: var(--primary-dark);
    text-decoration: underline;
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ===== UTILITY CLASSES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn:hover, .btn:focus {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.primary-btn {
    background-color: var(--primary);
    color: white;
}

.primary-btn:hover, .primary-btn:focus {
    background-color: var(--primary-dark);
    border-color: var(--accent);
}

.secondary-btn {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.secondary-btn:hover, .secondary-btn:focus {
    background-color: rgba(37, 99, 235, 0.1);
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--darker);
    color: white;
    padding: 0.8rem;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* ===== HEADER & NAVIGATION ===== */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    padding: 0.5rem;
    border: 2px solid var(--primary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-list a {
    color: var(--darker);
    font-weight: 500;
    padding: 0.5rem;
    border-radius: 4px;
}

.nav-list a:hover, 
.nav-list a:focus,
.nav-list a[aria-current="page"] {
    color: var(--primary);
    background-color: rgba(37, 99, 235, 0.1);
}

/* ===== ABOUT SECTION ===== */
.about {
    padding-top: 7rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.about-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

@media (min-width: 768px) {
    .about-container {
        flex-direction: row;
        align-items: center;
        gap: 5rem;
    }
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.profile-image {
    max-width: 280px;
    height: auto;
    border-radius: 50%;
    border: 5px solid white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 2;
    text-align: center;
}

@media (min-width: 768px) {
    .about-text {
        text-align: left;
    }
}

.intro {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.about-text h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--darker);
}

@media (min-width: 768px) {
    .about-text h1 {
        font-size: 3rem;
    }
}

.about-text h1 span {
    color: var(--primary);
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--gray);
    max-width: 600px;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .cta-buttons {
        justify-content: flex-start;
    }
}

/* ===== SKILLS SECTION ===== */
.skills {
    background-color: white;
}

.skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.skill-card {
    background: white;
    padding: 2rem 1.5rem;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.skill-card h3 {
    font-size: 1.2rem;
    color: var(--darker);
}

/* ===== EDUCATION SECTION ===== */
.education {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.education-container {
    max-width: 800px;
    margin: 0 auto;
}

.education-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.institution {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.year {
    background: var(--primary);
    color: white;
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.description {
    margin-bottom: 1.5rem;
    color: var(--gray);
}

.course-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    list-style: none;
}

.course-list li {
    background: rgba(37, 99, 235, 0.1);
    padding: 0.8rem;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
}

.resume-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

/* ===== INTERESTS SECTION ===== */
.interests {
    background-color: white;
}

.interests-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.interest-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.interest-card:hover {
    transform: translateY(-5px);
}

.interest-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.interest-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.interest-card p {
    color: var(--gray);
}

/* ===== PROJECTS SECTION ===== */
.projects {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.project-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.project-item:hover {
    transform: translateY(-5px);
}

.project-item h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--darker);
}

.project-item p {
    color: var(--gray);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.tech-stack {
    display: inline-block;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.project-links {
    display: flex;
    gap: 1rem;
}

/* ===== CONTACT SECTION ===== */
.contact {
    background-color: white;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-info {
    padding: 2rem;
    background: rgba(37, 99, 235, 0.05);
    border-radius: 12px;
}

.contact-info p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: var(--gray);
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-method span {
    font-size: 1.5rem;
}

.contact-method a {
    font-size: 1.1rem;
    font-weight: 500;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-links a {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    background: rgba(37, 99, 235, 0.1);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    color: white;
}

.contact-form {
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--darker);
}

input, textarea {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--darker);
    color: white;
}

footer p {
    margin-bottom: 0.5rem;
}