/* CSS Variables for Theming */
:root {
    --bg-color: #0f172a;
    --surface-color: rgba(30, 41, 59, 0.6);
    --surface-border: rgba(255, 255, 255, 0.08);

    --primary-color: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.5);

    --secondary-color: #8b5cf6;
    --secondary-glow: rgba(139, 92, 246, 0.5);

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;

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

    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s ease;
    --transition-slow: 0.8s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

/* Background Gradients */
body::before {
    content: '';
    position: fixed;
    top: -20%;
    left: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    filter: blur(120px);
    z-index: -1;
    opacity: 0.4;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    bottom: -20%;
    right: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, var(--secondary-glow) 0%, transparent 70%);
    filter: blur(120px);
    z-index: -1;
    opacity: 0.4;
    pointer-events: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

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

.section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    margin: 0.75rem auto 0;
}

/* Utilities */
.glass-card {
    background: var(--surface-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--surface-border);
    border-radius: 24px;
    padding: 2rem;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.glass-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.25);
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
    margin-top: 1rem;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: background var(--transition-normal), padding var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--surface-border);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width var(--transition-fast);
}

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

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    position: relative;
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
}

.profile-container {
    position: relative;
    width: 190px;
    height: 190px;
    margin: 0 auto 2.5rem;
}

.profile-glow {
    position: absolute;
    inset: -12px;
    background: conic-gradient(from 180deg, var(--primary-color), var(--secondary-color), #ec4899, var(--primary-color));
    border-radius: 50%;
    filter: blur(22px);
    opacity: 0.7;
    animation: pulse 4s infinite alternate;
}

/* Spinning gradient ring around profile */
.profile-container::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: conic-gradient(from 0deg, var(--primary-color), var(--secondary-color), #ec4899, var(--primary-color));
    border-radius: 50%;
    z-index: 0;
    animation: spin-ring 6s linear infinite;
}

.profile-pic {
    position: relative;
    width: calc(100% - 6px);
    height: calc(100% - 6px);
    margin: 3px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bg-color);
    z-index: 1;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #ffffff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero-tagline {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 560px;
    margin-inline: auto;
    line-height: 1.8;
    letter-spacing: 0.01em;
}

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

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    font-size: 1.1rem;
    transition: all var(--transition-fast);
    backdrop-filter: blur(10px);
}

.social-icon:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 12px 25px var(--primary-glow);
    border-color: transparent;
}

.scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    color: var(--text-secondary);
    animation: bounce 2s infinite;
}

/* About Section */
.about-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    border-top: 1px solid var(--surface-border);
    padding-top: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.contact-item i {
    color: var(--primary-color);
}

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

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color), transparent);
    opacity: 0.4;
}

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

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 11px;
    top: 6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15), 0 0 15px var(--primary-glow);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.3);
    box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.2), 0 0 20px var(--primary-glow);
}

.timeline-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.timeline-content .role {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.timeline-content .company {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.timeline-content .client {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-style: italic;
}

.location {
    font-size: 0.9rem;
    opacity: 0.8;
}

.experience-list {
    list-style-type: disc;
    padding-left: 1.2rem;
    color: var(--text-secondary);
}

.experience-list li {
    margin-bottom: 0.5rem;
}

.experience-list strong {
    color: var(--text-primary);
}

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

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

.skill-icon {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1.25rem;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
    transition: transform var(--transition-fast);
}

.skill-category:hover .skill-icon {
    transform: rotate(-6deg) scale(1.1);
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.chip {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.45rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    cursor: default;
    letter-spacing: 0.02em;
}

.chip:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
    border-color: rgba(99, 102, 241, 0.5);
    color: #a5b4fc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

/* Projects & Certifications */
.split-section {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.project-header h3 {
    font-size: 1.4rem;
}

.project-links a {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

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

.project-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    font-size: 0.78rem;
    font-weight: 600;
    color: #c4b5fd;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.25);
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    letter-spacing: 0.03em;
    transition: background var(--transition-fast);
}

.tech-tag:hover {
    background: rgba(139, 92, 246, 0.25);
}

.cert-card {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.cert-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    background: rgba(139, 92, 246, 0.1);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.cert-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.cert-issuer {
    color: var(--text-secondary);
    font-weight: 500;
}

.cert-date {
    display: block;
    font-size: 0.85rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

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

.edu-year {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(139, 92, 246, 0.12));
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: #93c5fd;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.education-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.edu-inst {
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.edu-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    border-top: 1px solid var(--surface-border);
    padding-top: 1rem;
}

.stat-badge {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.stat-badge i {
    color: #fbbf24;
}

/* Footer */
.footer {
    border-top: 1px solid var(--surface-border);
    padding: 3rem 0;
    text-align: center;
    background: rgba(15, 23, 42, 0.8);
}

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

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-social a {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.footer-social a:hover {
    color: var(--primary-color);
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.15);
        opacity: 0.85;
    }
}

@keyframes spin-ring {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-15px) translateX(-50%);
    }

    60% {
        transform: translateY(-7px) translateX(-50%);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Scroll Reveal Classes */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered reveal delay for grid children */
.skills-grid .reveal:nth-child(1),
.education-grid .reveal:nth-child(1) {
    transition-delay: 0.05s;
}

.skills-grid .reveal:nth-child(2),
.education-grid .reveal:nth-child(2) {
    transition-delay: 0.15s;
}

.skills-grid .reveal:nth-child(3),
.education-grid .reveal:nth-child(3) {
    transition-delay: 0.25s;
}

.skills-grid .reveal:nth-child(4) {
    transition-delay: 0.35s;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }

    .split-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        text-align: center;
        border-bottom: 1px solid var(--surface-border);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path var(--transition-normal);
    }

    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .hamburger {
        display: block;
    }

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

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .timeline::before {
        left: 15px;
    }

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

    .timeline-dot {
        left: 6px;
        width: 18px;
        height: 18px;
    }
}