/* ===== CSS VARIABLES ===== */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --accent: #f59e0b;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray: #64748b;
    --gray-light: #cbd5e1;
    --white: #ffffff;
    --success: #10b981;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* ===== UTILITY CLASSES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.section-subtitle {
    color: var(--gray-light);
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(15, 23, 42, 0.95);
    box-shadow: var(--shadow-sm);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

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

.nav-menu {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-link {
    color: var(--gray-light);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--white);
}

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

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--white);
    z-index: 1001;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.2) 0%, transparent 50%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero-greeting {
    padding-top: 100px;
    font-size: 2.2rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-title .gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.3rem;
    color: var(--gray-light);
    margin-bottom: 2.5rem;
    max-width: 700px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.6);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* ===== ABOUT SECTION ===== */
.about {
    background: var(--dark-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-image::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient);
    border-radius: 20px;
    z-index: -1;
}

.about-img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    /* Make sure you have an image at this path or change it */
    background: url('./Mee-removebg-preview.png') center/cover no-repeat;
}

.about-content h2 {
    margin-bottom: 2rem;
}

.about-text {
    color: var(--gray-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: rgba(99, 102, 241, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid var(--primary-dark);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.feature-card .feature-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.feature-card .feature-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.feature-card .feature-text {
    color: var(--gray-light);
    font-size: 0.9rem;
}

/* ===== TIMELINE (Education & Experience) ===== */
.timeline-section {
    position: relative;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background: var(--gradient);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}

.timeline-item {
    padding: 2rem 3rem;
    position: relative;
    width: 50%;
    background: var(--dark-light);
    border-radius: 10px;
    margin-bottom: 2rem;
    border: 1px solid var(--gray);
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 50px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 50px;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--dark-light);
    border: 4px solid var(--primary);
    top: 40px;
    z-index: 1;
}

.timeline-item:nth-child(odd)::after {
    right: -10px;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-item .timeline-year {
    font-size: 1rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-item .timeline-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.timeline-item .timeline-place {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 1rem;
    font-style: italic;
}

.timeline-item .timeline-desc {
    color: var(--gray-light);
}

/* ===== SKILLS SECTION ===== */
.skills {
    background: var(--dark-light);
}

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

.skill-card {
    background: var(--dark);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--dark-light);
    transition: all 0.3s ease;
}

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

.skill-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--primary);
}

.skill-icons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    text-align: center;
}

.skill-item i {
    font-size: 2.5rem;
    color: var(--gray-light);
    transition: all 0.3s ease;
}

.skill-item p {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    color: var(--gray);
}

.skill-item:hover i {
    color: var(--accent);
    transform: scale(1.1);
}

.skill-item:hover p {
    color: var(--white);
}

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

.project-card {
    background: var(--dark-light);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.project-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.project-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-title {
    font-size: 1.5rem;
    color: var(--primary);
}

.project-role {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1rem;
}

.project-desc {
    color: var(--gray-light);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-tag {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    color: var(--white);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

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

.project-link.secondary {
    color: var(--gray);
}

.project-link.secondary:hover {
    color: var(--white);
}

/* ===== CONTACT SECTION ===== */
.contact {
    background: var(--dark-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    background: var(--dark);
    padding: 3rem;
    border-radius: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-icon {
    font-size: 1.5rem;
    background: var(--gradient);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: grid;
    place-items: center;
}

.contact-details h3 {
    font-size: 1.25rem;
    color: var(--white);
}

.contact-details p {
    color: var(--gray-light);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-link {
    font-size: 2rem;
    color: var(--gray);
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--gray-light);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid var(--gray);
    background: var(--dark-light);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-message {
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark);
    padding: 5rem 0 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.footer-section p,
.footer-section a {
    color: var(--gray-light);
    margin-bottom: 0.75rem;
    display: block;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--gray);
    padding-top: 2rem;
    color: var(--gray);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
    .section-title {
        font-size: 2.5rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

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

    .about-img {
        height: 400px;
    }

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

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--dark-light);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transition: right 0.4s ease-in-out;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    /* Toggles between hamburger and close icon */
    .menu-toggle.active i::before {
        content: '\f00d';
    }

    /* Responsive Timeline */
    .timeline::after {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 50px;
        padding-right: 1rem;
        text-align: left !important;
    }

    .timeline-item:nth-child(even) {
        left: 0 !important;
    }

    .timeline-item::after {
        left: 10px !important;
    }

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

    .skill-icons {
        grid-template-columns: repeat(2, 1fr);
    }
}
