/* Base Reset & Variables */
:root {
    --bg-dark: #0a0f1c;
    --bg-card: rgba(22, 27, 46, 0.6);
    --border-card: rgba(255, 255, 255, 0.08);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-teal: #14b8a6;
    --gradient-primary: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

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

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Glowing Orbs */
.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.4;
    animation: drift 20s infinite alternate ease-in-out;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-purple);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-blue);
    bottom: -200px;
    right: -100px;
    animation-delay: -10s;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(100px, 50px) scale(1.2);
    }
}

/* Typography Utilities */
h1,
h2,
h3,
h4,
.logo {
    font-family: var(--font-heading);
    font-weight: 600;
}

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

/* Glassmorphism Card Utility */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-card);
    border-radius: 1.5rem;
    padding: 2.5rem;
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* Base Layout Constraints */
nav,
main,
footer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 4rem);
    max-width: 1200px;
    z-index: 100;

    background: rgba(10, 15, 28, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-card);
    border-radius: 4rem;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 1rem 2rem;
    background: rgba(10, 15, 28, 0.85);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.btn-nav {
    padding: 0.6rem 1.5rem;
    border-radius: 2rem;
    background: var(--text-primary);
    color: var(--bg-dark);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.btn-nav:hover {
    background: #e2e8f0;
    transform: scale(1.05);
}

/* General Section Setup */
section {
    padding: var(--spacing-section) 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Animations for scroll reveal */
.section-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Home / Hero Section */
.hero {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-top: 10rem;
    min-height: calc(100vh - 4rem);
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent-blue);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero .title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.hero .subtitle {
    font-size: 1.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.typewriter-container {
    height: 3rem;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    color: var(--accent-teal);
    font-weight: 500;
}

/* Typewriter cursor animation */
.cursor {
    display: inline-block;
    width: 2px;
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.profile-summary {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    font-weight: 500;
}

.contact-item.link {
    text-decoration: none;
    transition: var(--transition);
}

.contact-item.link:hover {
    color: var(--accent-blue);
}

.contact-item i {
    color: var(--accent-blue);
    width: 20px;
    height: 20px;
}

/* Hero Image Wrapper */
.hero-image-wrapper {
    position: relative;
    width: 400px;
    height: 400px;
    margin-left: 4rem;
}

.hero-image-border {
    position: absolute;
    inset: -15px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: var(--gradient-primary);
    opacity: 0.5;
    filter: blur(20px);
    animation: morph 8s ease-in-out infinite alternate;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    position: relative;
    z-index: 2;
    border: 3px solid rgba(255, 255, 255, 0.1);
    animation: morph 8s ease-in-out infinite alternate;
}

@keyframes morph {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    50% {
        border-radius: 50% 50% 30% 70% / 70% 30% 70% 30%;
    }

    100% {
        border-radius: 70% 30% 50% 50% / 30% 70% 30% 70%;
    }
}

/* Experience Section Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 3rem;
}

.timeline-dot {
    position: absolute;
    top: 0;
    left: 12px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 4px solid var(--accent-purple);
    z-index: 2;
}

.timeline-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.timeline-head h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.timeline-date {
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-purple);
    padding: 0.3rem 0.8rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.company {
    font-size: 1.1rem;
    color: var(--accent-teal);
    margin-bottom: 1.5rem;
    font-family: var(--font-body);
    font-weight: 500;
}

.timeline-details {
    list-style: none;
    color: var(--text-secondary);
}

.timeline-details li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
}

.timeline-details li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--accent-blue);
    border-radius: 50%;
}

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

.skill-category {
    text-align: center;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.category-icon {
    width: 60px;
    height: 60px;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.category-icon i {
    width: 32px;
    height: 32px;
}

.skill-category h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
}

.tag {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    transition: var(--transition);
}

.tag:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}

.ai-card {
    border-color: rgba(56, 189, 248, 0.3);
    background: linear-gradient(180deg, rgba(22, 27, 46, 0.6) 0%, rgba(56, 189, 248, 0.05) 100%);
}

.ai-card .category-icon {
    background: var(--gradient-primary);
}

.ai-tag {
    background: rgba(56, 189, 248, 0.15);
    color: var(--accent-blue);
}

.ai-tag:hover {
    background: rgba(56, 189, 248, 0.25);
    color: #fff;
}

.ai-desc {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Education Section */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.edu-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.edu-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-purple);
    display: flex;
    align-items: center;
    justify-content: center;
}

.edu-icon i {
    width: 24px;
    height: 24px;
}

.edu-years {
    font-size: 0.85rem;
    color: var(--accent-purple);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.edu-details h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.edu-school {
    color: var(--text-secondary);
    font-weight: 500;
}

.edu-university {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

/* Footer */
footer {
    padding: 6rem 2rem 3rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-content .logo {
    display: inline-block;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.footer-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--text-primary);
    color: var(--bg-dark);
    transform: translateY(-3px);
}

.copyright {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
}

/* Responsiveness */
@media (max-width: 968px) {
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 8rem;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-image-wrapper {
        margin-left: 0;
        margin-bottom: 3rem;
        width: 300px;
        height: 300px;
    }

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* simple mobile nav for now */
    }

    .navbar {
        width: calc(100% - 2rem);
    }

    .timeline::before {
        left: 0;
    }

    .timeline-dot {
        left: -8px;
    }

    .timeline-item {
        padding-left: 30px;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-btn svg {
    fill: none;
    stroke: currentColor;
    width: 32px;
    height: 32px;
}