:root {
    /* Colors */
    --primary: #6366f1;
    --primary-dark: #4338ca;
    --secondary: #ec4899;
    --accent: #8b5cf6;

    --bg-body: #0f172a;
    --bg-surface: #1e293b;
    --bg-surface-trans: rgba(30, 41, 59, 0.7);

    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-light: #e2e8f0;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    --gradient-text: linear-gradient(to right, #818cf8, #c084fc, #f472b6);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* Spacing */
    --spacer-sm: 0.5rem;
    --spacer-md: 1rem;
    --spacer-lg: 2rem;
    --spacer-xl: 4rem;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --glow: 0 0 20px rgba(99, 102, 241, 0.5);
}

[data-theme="light"] {
    --bg-body: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-trans: rgba(255, 255, 255, 0.8);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #334155;
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* Layout Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacer-lg);
}

.section {
    padding: var(--spacer-xl) 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: var(--spacer-xl);
    text-align: center;
    font-weight: 700;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: transparent;
    transition: var(--transition);
}

.header.scrolled {
    background: var(--bg-surface-trans);
    padding: 1rem 5%;
    box-shadow: var(--shadow-sm);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo .dot {
    color: var(--primary);
}

.navbar {
    display: flex;
    gap: 2.5rem;
}

.navbar a {
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-muted);
    position: relative;
}

.navbar a:hover,
.navbar a.active,
.resume-link {
    color: var(--text-main);
}

.resume-link {
    color: var(--primary) !important;
    font-weight: 700 !important;
}

.navbar a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.navbar a:hover::after,
.navbar a.active::after {
    width: 100%;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 10% 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
}

.greeting {
    display: block;
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero-title .highlight {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 480px;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.btn-outline {
    border: 2px solid var(--text-muted);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

/* Profile Image */
.profile-container {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-glow {
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: var(--gradient-primary);
    filter: blur(40px);
    opacity: 0.5;
    animation: pulse 4s infinite ease-in-out;
}

.profile-img {
    width: 350px;
    height: 350px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--bg-body);
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.profile-container:hover .profile-img {
    transform: scale(1.02);
    border-color: var(--primary);
}

.floating-badge {
    position: absolute;
    background: var(--bg-surface-trans);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 3;
    font-weight: 600;
    font-size: 0.9rem;
    animation: float 6s infinite ease-in-out;
}

.badge-1 {
    top: 10%;
    left: 0;
    animation-delay: -1s;
}

.badge-2 {
    bottom: 15%;
    right: 0;
    animation-delay: -3s;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Mobile Responsive */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-main);
    transition: var(--transition);
}

@media (max-width: 768px) {
    .header {
        padding: 1rem 5%;
    }

    .hero {
        flex-direction: column;
        padding-top: 100px;
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .blob-cont {
        width: 100%;
        top: 20%;
        opacity: 0.4;
        filter: blur(60px);
    }

    .hamburger {
        display: block;
    }

    .navbar {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-surface);
        width: 100%;
        text-align: center;
        padding: 2rem 0;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    }

    .navbar.active {
        left: 0;
    }
}

/* Theme Toggle */
#theme-toggle {
    color: var(--text-main);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sun-icon {
    display: none;
}

[data-theme="light"] .moon-icon {
    display: none;
}

[data-theme="light"] .sun-icon {
    display: block;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}

.section-subtitle {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: block;
}

.about-heading {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.skills-wrapper {
    background: var(--bg-surface);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-item {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: var(--transition);
}

.skill-item:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Experience Section */
.experience-card {
    background: var(--bg-surface);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.exp-role {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.exp-company {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 500;
}

.exp-date {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-light);
    white-space: nowrap;
}

.exp-list {
    list-style: none;
    padding-left: 0;
}

.exp-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.exp-list li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-surface);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    position: relative;
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.2);
}

.project-image {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1) rotate(2deg);
}

.project-content {
    padding: 2rem;
}

.project-tag {
    color: var(--secondary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.75rem;
}

.project-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.project-desc {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--primary);
}

.arrow {
    transition: transform 0.3s ease;
}

.btn-link:hover .arrow {
    transform: translateX(5px);
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    background: var(--bg-surface);
    padding: 4rem;
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-heading {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-item .icon {
    font-size: 1.5rem;
}

.social-links {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.social-link {
    color: var(--text-muted);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.social-link:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-muted);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-body);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    color: var(--text-main);
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Responsive for new sections */
@media (max-width: 900px) {

    .about-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact-wrapper {
        padding: 2rem;
    }
}