/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Poppins:wght@400;500;600;700;800;900&display=swap');

:root {
    --color-bg: #020617;
    --color-surface: #0f172a;
    --color-surface-hover: #1e293b;
    --color-text: #f8fafc;
    --color-text-muted: #94a3b8;
    --color-primary: #0ea5e9;
    --color-primary-dark: #0284c7;
    --color-secondary: #6366f1;
    --color-accent: #a855f7;

    --font-main: 'Manrope', sans-serif;
    --font-display: 'Poppins', sans-serif;

    --container-width: 1200px;
    --border-radius: 1rem;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-main);
    line-height: 1.7;
    overflow-x: hidden;
    scroll-behavior: smooth;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-gradient {
    background: linear-gradient(to right, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: var(--font-main);
}

.btn-primary {
    background: linear-gradient(to right, var(--color-primary), var(--color-primary-dark));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(14, 165, 233, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-surface-hover);
    color: var(--color-text);
}

.btn-outline:hover {
    border-color: var(--color-primary);
    background: rgba(14, 165, 233, 0.1);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

@keyframes gradient-slow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animate-gradient-slow {
    animation: gradient-slow 8s linear infinite;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--color-text-muted);
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-primary);
}

/* Payment Style Button */
.nav-payment-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #10b981, #059669); /* Emerald Gradient */
    color: #FFFFFF !important;
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    text-decoration: none;
}

.nav-payment-btn:hover {
    transform: scale(1.05) translateY(-1px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
    filter: brightness(1.1);
}

.nav-payment-btn i {
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.2);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    backdrop-filter: blur(4px);
}

.mobile-menu-btn {
    display: none;
    color: var(--color-text);
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

/* Hero Section Redesign */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    /* Offset for fixed nav */
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top right, rgba(14, 165, 233, 0.1), transparent 40%),
        radial-gradient(circle at bottom left, rgba(168, 85, 247, 0.1), transparent 40%);
}

.hero .container {
    width: 100%;
    /* Ensure container takes full width available */
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

/* User Friendly "Welcome" Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 2rem;
    font-size: 0.9rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-badge i {
    animation: wave 2s infinite;
}

@keyframes wave {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(20deg);
    }

    75% {
        transform: rotate(-10deg);
    }
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.hero-role {
    font-size: 1.5rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.typing-text {
    color: var(--color-text);
    position: relative;
}

.typing-text::after {
    content: '|';
    animation: blink 1s infinite;
    color: var(--color-primary);
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

/* Glassmorphic Stats Row */
.hero-stats-row {
    display: flex;
    gap: 2rem;
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    width: fit-content;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-item h3 {
    font-size: 1.5rem;
    color: var(--color-text);
    margin-bottom: 0px;
}

.stat-item p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Hero Visual & Image */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
    width: 400px;
    height: 500px;
    z-index: 2;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2rem;
    /* Fancy shape mask if desired, keeping it clean for now */
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
    filter: brightness(1.1) contrast(1.1);
    /* Enhance photo */
}

/* Floating Elements for "World Class" Feel */
.hero-floater {
    position: absolute;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 3;
    animation: float-slow 4s ease-in-out infinite;
}

.floater-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.f-top-right {
    top: 40px;
    right: -20px;
    animation-delay: 0s;
}

.f-bottom-left {
    bottom: 60px;
    left: -40px;
    animation-delay: 2s;
}

@keyframes float-slow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Background Abstract Elements */
.hero-bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
    opacity: 0.15;
    filter: blur(80px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-text-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image-wrapper {
        width: 300px;
        height: 380px;
        margin: 0 auto;
    }

    .f-top-right {
        right: -10px;
    }

    .f-bottom-left {
        left: -10px;
    }

    .hero h1 {
        font-size: 3rem;
    }
}


/* Cards (Experience, Projects) */
.card {
    background: var(--color-surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
}

.experience-item {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid var(--color-surface-hover);
    padding-bottom: 3rem;
}

.experience-item::before {
    content: '';
    position: absolute;
    left: -9px;
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--color-bg);
    border: 2px solid var(--color-primary);
    border-radius: 50%;
}

.experience-item:last-child {
    border-left: none;
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(14, 165, 233, 0.1);
    color: var(--color-primary);
    border-radius: 1rem;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Skills */
.skill-bar {
    height: 8px;
    background: var(--color-surface-hover);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(to right, var(--color-primary), var(--color-accent));
    border-radius: 4px;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--color-surface);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 1.25rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: var(--color-surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    color: var(--color-text);
    font-family: var(--font-main);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(14, 165, 233, 0.05);
}

/* Footer */
footer {
    background: var(--color-surface);
    padding: 3rem 0;
    margin-top: 5rem;
    text-align: center;
    color: var(--color-text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(10px);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    /* hidden by default */
    transition: var(--transition);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.menu-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.menu-content a {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
}


/* Modern Profile Image */
.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.image-card {
    position: relative;
    width: 350px;
    height: 450px;
    border-radius: 2rem;
    overflow: hidden;
    transform-style: preserve-3d;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.image-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(-5deg);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2rem;
    position: relative;
    z-index: 2;
    /* Basic "Editing" via CSS filters */
    filter: brightness(1.05) contrast(1.1) saturate(1.1);
    transition: filter 0.3s ease;
}

.image-card:hover .profile-img {
    filter: brightness(1.1) contrast(1.15) saturate(1.2);
}

.image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
    opacity: 0.3;
    transform: translate(-50%, -50%);
    z-index: 1;
    animation: glow-pulse 4s infinite ease-in-out;
}

.image-border {
    position: absolute;
    inset: 0;
    border-radius: 2rem;
    padding: 3px;
    background: linear-gradient(45deg, var(--color-primary), var(--color-accent), var(--color-secondary));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 3;
    opacity: 0.8;
}

/* Animations */
@keyframes glow-pulse {

    0%,
    100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@media (max-width: 768px) {
    .image-card {
        width: 300px;
        height: 380px;
        margin: 0 auto;
    }
}


/* Chatbot Widget */
.chatbot-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    font-family: var(--font-main);
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    justify-content: center;
    align-items: center;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform-origin: bottom right;
}

.chatbot-window.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.chatbot-header {
    padding: 1rem;
    background: rgba(2, 6, 23, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--color-text);
}

.chatbot-close {
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.chatbot-close:hover {
    color: var(--color-text);
}

.chatbot-body {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bot-message,
.user-message {
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    max-width: 80%;
    font-size: 0.95rem;
    line-height: 1.5;
}

.bot-message {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text);
    border-top-left-radius: 0;
    align-self: flex-start;
}

.user-message {
    background: var(--color-primary);
    color: white;
    border-bottom-right-radius: 0;
    align-self: flex-end;
}

.chat-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.chat-option-btn {
    padding: 0.5rem 1rem;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.2);
    color: var(--color-primary);
    border-radius: 2rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-option-btn:hover {
    background: var(--color-primary);
    color: white;
}

/* Scrollbar for chat */
.chatbot-body::-webkit-scrollbar {
    width: 6px;
}

.chatbot-body::-webkit-scrollbar-track {
    background: transparent;
}

.chatbot-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

@media (max-width: 480px) {
    .chatbot-window {
        width: 300px;
        right: -1rem;
        /* Adjust for container padding if needed */
        height: 400px;
    }
}