/* Variables & Theme */
:root {
    /* Primary Gradient */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);

    /* Colors */
    --primary-color: #764ba2;
    /* Deep Purple */
    --accent-color: #20c997;
    /* Teal Accent */
    --text-dark: #1a1a2e;
    --text-light: #4a4a6a;
    --bg-body: #fdfbfd;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);

    /* Shadows & Effects */
    --shadow-sm: 0 4px 6px rgba(118, 75, 162, 0.1);
    --shadow-md: 0 10px 30px rgba(118, 75, 162, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    --backdrop-blur: blur(12px);
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-body);
    line-height: 1.6;
    overflow-x: hidden;
    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-size: 200% 200%;
    animation: gradientBG 15s ease infinite;
}

/* Base Body Background Override for Light Theme consistency */
body {
    background: #fdfbfd;
    /* Fallback */
    background-image: radial-gradient(circle at 10% 20%, rgb(242, 235, 243) 0%, rgb(234, 241, 249) 90%);
}


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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.section {
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
    letter-spacing: -0.02em;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 5px;
    background: var(--accent-color);
    margin: 0.5rem auto 0;
    border-radius: 10px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 15px rgba(118, 75, 162, 0.3);
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(118, 75, 162, 0.5);
}

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

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

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
}

/* Header */
.header {
    height: 90px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

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

.nav-list {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--text-light);
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

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

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

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

/* Mobile Nav */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-nav-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 6px 0;
    border-radius: 3px;
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    padding-top: 160px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 10% 20%, rgb(242, 235, 243) 0%, rgb(234, 241, 249) 90%);
    position: relative;
    overflow: hidden;
}

/* Animated Orbs */
.hero-orbs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: floatOrb 20s infinite ease-in-out alternate;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #a18cd1, #fbc2eb);
    top: -100px;
    right: -100px;
    animation-duration: 25s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #84fab0, #8fd3f4);
    bottom: 50px;
    left: -50px;
    animation-duration: 30s;
}

.orb-3 {
    width: 200px;
    height: 200px;
    background: #ff9a9e;
    top: 40%;
    left: 40%;
    animation-duration: 20s;
    opacity: 0.4;
}

@keyframes floatOrb {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(30px, 50px) rotate(10deg);
    }
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-greeting {
    font-size: 1.5rem;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-name {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title {
    font-size: 1.8rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-weight: 500;
    display: inline-block;
    background: rgba(118, 75, 162, 0.1);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 2.5rem;
    max-width: 550px;
    opacity: 0.9;
}

/* Hero Image */
.hero-image-wrapper {
    max-width: 450px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    border: 10px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 10;
    transition: transform 0.5s ease;
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    background: var(--secondary-gradient);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.6;
}

.hero-image:hover {
    transform: scale(1.02) rotate(2deg);
}

/* About Section */
.about-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.3rem;
    line-height: 1.8;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.skill-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-gradient);
}

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

.skill-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

/* Timeline/Experience */
.timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding-left: 3rem;
    border-left: 3px solid #e0e0e0;
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    padding-left: 2.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -3.9rem;
    top: 0.2rem;
    width: 1.5rem;
    height: 1.5rem;
    background: var(--secondary-gradient);
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 4px rgba(118, 75, 162, 0.1);
}

.timeline-date {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.timeline-content:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.timeline-content h3 {
    font-size: 1.6rem;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.location {
    font-style: normal;
    font-weight: 500;
    color: #888;
    margin-bottom: 1rem;
    display: inline-block;
    background: #f8f9fa;
    padding: 0.2rem 0.8rem;
    border-radius: 50px;
    font-size: 0.85rem;
}

/* Departments */
.departments-flex {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.dept-tag {
    background: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    color: var(--primary-color);
    border: 2px solid transparent;
    /* Prepare for gradient border */
    background-image: linear-gradient(white, white), var(--primary-gradient);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.dept-tag:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Certifications */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.cert-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.cert-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

/* Accent Variants */
.accent-blue::before {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.accent-pink::before {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.accent-orange::before {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
}

.accent-teal::before {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
}

.accent-purple::before {
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
}

.accent-red::before {
    background: linear-gradient(135deg, #ff5858 0%, #f09819 100%);
}

.accent-blue .cert-icon {
    background: rgba(79, 172, 254, 0.1);
    color: #00f2fe;
}

.accent-pink .cert-icon {
    background: rgba(255, 154, 158, 0.1);
    color: #ff9a9e;
}

.accent-orange .cert-icon {
    background: rgba(246, 211, 101, 0.1);
    color: #fda085;
}

.accent-teal .cert-icon {
    background: rgba(132, 250, 176, 0.1);
    color: #84fab0;
}

.accent-purple .cert-icon {
    background: rgba(161, 140, 209, 0.1);
    color: #a18cd1;
}

.skill-card h3.text-blue {
    color: #00c6fb;
}

.skill-card h3.text-pink {
    color: #ff758c;
}

.skill-card h3.text-orange {
    color: #ff7eb3;
}

.skill-card h3.text-teal {
    color: #0ba360;
}

/* Contact */
.contact-wrapper {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.contact-info {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    background: white;
    padding: 3rem 5rem;
    border-radius: 30px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.contact-item p,
.contact-item a {
    font-size: 1.2rem;
    font-weight: 500;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0;
    text-align: center;
    margin-top: 4rem;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

/* Responsive */
@media (max-width: 900px) {
    .hero {
        padding-top: 120px;
        min-height: auto;
        padding-bottom: 4rem;
        text-align: center;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-content {
        order: 2;
    }

    .hero-image-wrapper {
        order: 1;
        max-width: 300px;
    }

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

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

    .contact-info {
        padding: 2rem;
        flex-direction: column;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-list {
        position: fixed;
        top: 90px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease-in-out;
        z-index: 999;
    }

    .nav-list.active {
        transform: translateY(0);
    }

    .mobile-nav-toggle {
        display: block !important;
    }
}