/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* 
     * Modern Theme: Indigo & Slate 
     * Trustworthy, Professional, Clean
     */
    --primary-color: #4f46e5;
    /* Indigo 600 */
    --primary-hover: #4338ca;
    /* Indigo 700 */
    --primary-light: #e0e7ff;
    /* Indigo 100 */

    --accent-color: #0f172a;
    /* Slate 900 - Headings */
    --text-main: #334155;
    /* Slate 700 - Body */
    --text-muted: #64748b;
    /* Slate 500 - Subtitles */

    --bg-body: #f8fafc;
    /* Slate 50 */
    --bg-surface: #ffffff;
    --bg-alt: #f1f5f9;
    /* Slate 100 */

    --border-color: #e2e8f0;
    /* Slate 200 */

    /* Layout */
    --container-width: 1100px;
    --header-height: 80px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    /* Shadows (Soft & Modern) */
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--accent-color);
    line-height: 1.2;
    letter-spacing: -0.025em;
    /* Tight tracking for modern feel */
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 1rem auto 0;
    border-radius: var(--radius-full);
    opacity: 0.8;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    /* Pill shape */
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Header */
header {
    height: var(--header-height);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    /* Glass effect */
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.03em;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-main);
    position: relative;
    padding: 4px 0;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    /* Modern Mesh Gradient Background */
    background-color: var(--bg-body);
    background-image:
        radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 1) 0, transparent 50%);
    background:
        radial-gradient(800px circle at 10% 20%, rgba(79, 70, 229, 0.05), transparent 100%),
        radial-gradient(800px circle at 90% 80%, rgba(79, 70, 229, 0.05), transparent 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    background: linear-gradient(to right, var(--accent-color), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.hero-subtitle {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-color);
    background: var(--primary-light);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.hero-summary {
    font-size: 1.15rem;
    color: var(--text-main);
    margin-bottom: 40px;
    max-width: 550px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-icon {
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: var(--transition);
    padding: 10px;
    border-radius: 50%;
    background: var(--bg-surface);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
}

.social-icon:hover {
    color: white;
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.hero-image-container {
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-image {
    width: 380px;
    height: 380px;
    object-fit: cover;
    border-radius: 50%;
    /* Circle */
    /* Modern border/shadow combo */
    border: 8px solid var(--bg-surface);
    box-shadow: var(--shadow-xl);
    z-index: 1;
}

/* Decorative background circle for hero image */
.hero-image-container::before {
    content: '';
    position: absolute;
    width: 360px;
    height: 360px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.1;
    top: 20px;
    right: 20px;
    z-index: 0;
}

/* Skills Section */
.skills {
    padding: 100px 0;
    background: var(--bg-surface);
}

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

.skill-card {
    background: var(--bg-body);
    padding: 32px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    border: 1px solid var(--bg-body);
    /* Invisible border initially */
}

.skill-card:hover {
    background: var(--bg-surface);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-color);
    transform: translateY(-5px);
}

.skill-category {
    font-size: 1.2rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.skill-category i {
    color: var(--primary-color);
    background: var(--primary-light);
    padding: 10px;
    border-radius: 8px;
    font-size: 1rem;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    font-size: 0.9rem;
    padding: 6px 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-main);
    font-weight: 500;
}

.skill-card:hover .skill-tag {
    border-color: var(--primary-light);
    background: var(--primary-light);
    color: var(--primary-color);
}

/* Projects Section */
.projects {
    padding: 100px 0;
    background: var(--bg-alt);
}

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

.project-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.tech-badge {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-color);
    background: var(--primary-light);
    /* Subtle aesthetic */
    padding: 4px 10px;
    border-radius: 6px;
}

.project-description {
    flex-grow: 1;
    /* Pushes link to bottom */
}

.project-description h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 20px;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.project-description p {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 0;
}

.project-link-area {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.project-link:hover {
    gap: 12px;
}

/* Education & Certs */
.edu-certs {
    padding: 100px 0;
    background: var(--bg-surface);
}

.edu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.edu-item,
.cert-item {
    padding: 24px;
    border-radius: var(--radius-md);
    background: var(--bg-body);
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.edu-item:hover,
.cert-item:hover {
    background: white;
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.item-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--accent-color);
}

.item-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Contact */
.contact {
    padding: 100px 0;
    background: var(--bg-alt);
    text-align: center;
}

.contact-box {
    background: var(--bg-surface);
    padding: 50px;
    border-radius: 24px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
    text-align: left;
}

.contact-form {
    display: grid;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--border-color);
    /* Thicker modern border */
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--bg-body);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px var(--primary-light);
}

.contact-alternatives {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.contact-alternatives .hero-buttons {
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 0;
}

/* Footer */
footer {
    padding: 40px 0;
    text-align: center;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Mobile Responsiveness */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-image-container {
        order: -1;
    }

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

    .social-links {
        justify-content: center;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .edu-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--bg-surface);
        flex-direction: column;
        padding: 30px;
        box-shadow: var(--shadow-lg);
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .card,
    .skill-card,
    .project-card,
    .contact-box {
        padding: 24px;
    }

    .hero-image {
        width: 280px;
        height: 280px;
    }

    .hero-image-container::before {
        width: 270px;
        height: 270px;
    }
}