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

:root {
    --primary: #4f46e5;
    --primary-light: #6366f1;
    --background: #fafafa;
    --foreground: #0f0f0f;
    --muted: #f5f5f5;
    --muted-foreground: #737373;
    --border: #e5e5e5;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(250, 250, 250, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 50;
    padding: 16px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--foreground);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--muted-foreground);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(79, 70, 229, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--foreground);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background: var(--muted);
}

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

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

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

/* VARIABLES */
:root {
    --primary: #4f46e5;
    --primary-light: #6366f1;
    --foreground: #111;
    --muted: #777;
    --border: #e5e5e5;
}

/* HERO LAYOUT REPLACEMENT */
.hero {
    padding-top: 120px;
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
}

/* LARGE BACKGROUND TEXT */
.portfolio-bg {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: "Playfair Display", serif;
    font-size: 190px;
    opacity: 0.1;
    pointer-events: none;
}

/* 3 COLUMN HERO LAYOUT */
.hero-layout {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 80px 1fr 1fr;
    align-items: center;
    gap: 40px;
}

/* LEFT ICON COLUMN */
.hero-socials {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-icon {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--border);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.hero-icon img {
    width: 24px;
}

.hero-icon:hover {
    transform: translateY(-3px);
    background: var(--primary);
}

.hero-icon:hover img {
    filter: brightness(0) invert(1);
}

/* MIDDLE IMAGE */
.hero-image-wrapper {
    display: flex;
    justify-content: center;
}

.hero-image {
    width: 380px;
    height: 380px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #fff;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* RIGHT CARD */
.hero-card {
    max-width: 420px;
    background: white;
    padding: 25px;
    border: 1px solid var(--border);
}

.hero-subtitle {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 5px;
}

.hero-title {
    font-family: "Playfair Display", serif;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-description {
    font-size: 13px;
    line-height: 1.4;
    color: var(--muted);
    margin-bottom: 20px;
}

.hero-btn {
    margin-top: 10px;
}


/* LEFT SIDE — SOCIAL ICONS (vertical, centered beside the image) */
.social-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin-left: 40px;
}

.social-link {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: white;
    border: 1px solid #cfcfcf;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: .3s;
}

.social-link:hover {
    background: var(--primary);
    color: #fff;
}


/* CENTER — PROFILE IMAGE */
.profile-image-container {
    display: center;
    justify-content: center;
}

.profile-image {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid white;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}


/* RIGHT SIDE — HERO TEXT BOX */
.hero-content {
    display: flex;
    justify-content: flex-start;
}

.hero-card {
    border: 2px solid #bfbfbf;
    padding: 30px 40px;
    border-radius: 4px;
    background: white;
    width: fit-content;
}

.hero-subtitle {
    font-size: 11px;
    letter-spacing: 1px;
    color: #555;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    margin-top: 6px;
    margin-bottom: 6px;
}

.hero-description {
    font-size: 11px;
    line-height: 1.4;
    max-width: 260px;
}

.hero-card .btn-primary {
    margin-top: 12px;
    padding: 8px 20px;
    border-radius: 16px;
    font-size: 12px;
}
/* About Section */
.about {
    padding: 80px 0;
    background: white;
}

.about .container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 64px;
    align-items: start;
}

.about-left {
    text-align: center;
}

.about-image {
    width: 350px;
    height: 350px;
    border-radius: 30%;
    object-fit: cover;
    margin-bottom: 5px;
    border: 4px solid white;
}

.about-social {
    display: flex;
    flex-direction: column;
    align-items: center;   /* ← THIS centers all buttons */
    justify-content: center;
    gap: 12px;
    margin-top: 3px;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;   /* ← Centers icon + text */
    gap: 12px;
    padding: 10px 16px;
    border: 2px solid #4f46e5;
    border-radius: 14px;
    background: white;
    color: #4f46e5;
    font-size: 14px;
    font-weight: 500;
    width: 260px;   /* Optional: match sample size better */
    text-decoration: none;
    transition: 0.3s ease;
}

.contact-btn:hover {
    background: #4f46e5;
    color: white;
}

.contact-btn svg {
    width: 15px;
    height: 15px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 24px;
}

.about-text {
    color: var(--muted-foreground);
    margin-bottom: 32px;
}

.work-process {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.process-card {
    background: whitesmoke;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s;
}

.process-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgb(211, 209, 209);
}

.process-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: white;
}

.process-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.process-number {
    color: var(--muted-foreground);
    font-size: 14px;
}

/* Works Section */
.works {
    padding: 80px 0;
}

.works .section-title {
    text-align: center;
    margin-bottom: 48px;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.work-card {
    background: var(--primary);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.2);
}

.work-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(79, 70, 229, 0.3);
}

.work-card-header {
    padding: 24px;
    color: white;
}

.work-card-title {
    font-size: 18px;
    font-weight: 600;
}

.work-card-body {
    background: white;
    height: 150px;
    position: relative;
}

.work-card-body svg {
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
}
/* FULL MY WORKS DESIGN */
.work-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    height: 300px;
    box-shadow: 0 10px 40px rgba(79, 70, 229, 0.12);
    position: relative;
    transition: 0.3s ease;
}

.work-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 45px rgba(79, 70, 229, 0.18);
}

.work-top {
    background: var(--primary);
    height: 120px;
    padding: 25px;
    border-radius: 20px 20px 0 0;
    color: white;
    display: flex;
    align-items: center;
}

.work-top h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.work-curve svg {
    width: 100%;
    height: 80px;
    display: block;
    margin-top: -10px;
}

.work-bottom {
    background: white;
    height: 100%;
    position: relative;
}

.corner {
    width: 24px;
    height: 24px;
    border: 2px solid #ccc;
    position: absolute;
}

.corner.left {
    left: 18px;
    bottom: 18px;
    border-top: none;
    border-right: none;
}

.corner.right {
    right: 18px;
    bottom: 18px;
    border-top: none;
    border-left: none;
}

/* Skills Section */
.skills {
    padding: 80px 0;
    background: white;
}

.skills .section-title {
    text-align: center;
    margin-bottom: 48px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.skill-card {
    background: whitesmoke;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s;
}

.skill-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgb(220, 217, 217);
}

.skill-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;   /* Centered + spacing */
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-name {
    font-weight: 600;
    margin-top: 12px;      /* Ensures spacing under icon */
    font-size: 16px;
}

/* Footer */
.footer {
    padding: 32px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer p {
    color: var(--muted-foreground);
    font-size: 14px;
}
/* CONTACT FORM STYLING */
.input-field:focus,
.textarea-field:focus {
    border-color: #4f46e5;
}

.send-btn {
    background: #1d4ed8;
    color: white;
    padding: 12px 30px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    align-self: flex-end;
    font-size: 16px;
    transition: 0.3s;
}

.send-btn:hover {
    background: #2563eb;
}

/* SUCCESS MESSAGE */
.success-message {
    margin-top: 15px;
    color: green;
    font-size: 18px;
    text-align: center;
}

/* CONTACT FOOTER */
.contact-footer {
    margin-top: 28px;
    text-align: center;
}

.email-icon {
    font-size: 22px;
    color: #4f46e5;
}

.contact-footer p {
    font-size: 16px;
    margin-top: 6px;
}
.contact-box {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #fff;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.contact-inside {
    margin-top: 10px;
    text-align: center;
    color: #444;
    font-size: 15px;
}

.contact-inside p {
    margin-top: 4px;
}

.email-icon {
    font-size: 22px;
    display: block;
    margin-bottom: 6px;
}
.contact-footer-inside {
    font-size: 14px;
}

.contact-footer-inside p {
    margin: 4px 0;
}

.email-icon {
    display: block;
    margin-bottom: 5px;
}
/* CONTACT — CENTERED TITLE & SMALL BOX */
.contact-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.contact-title {
    text-align: center;
    font-size: 40px;
    margin-bottom: 40px;
}

/* SMALL CONTACT BOX */
.contact-box-small {
    width: 60%;
    background: #ffffff;
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0px 15px 40px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.input-field,
.textarea-field {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #ddd;
    font-size: 15px;
}

.textarea-field {
    height: 140px;
    resize: none;
}

.send-btn {
    background: #1d4ed8;
    color: white;
    padding: 10px 24px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    align-self: flex-end;
    font-size: 15px;
}

.send-btn:hover {
    background: #2563eb;
}

/* NEW EMAIL ICON */
.email-img-icon {
    width: 35px;
    margin-top: 10px;
    margin-bottom: 5px;
    opacity: 0.9;
}

/* CONTACT FOOTER TEXT */
.contact-footer-inside {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #444;
}

.contact-footer-inside p {
    margin: 4px 0;
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    .contact-box-small {
        width: 90%;
    }

    .contact-title {
        font-size: 32px;
    }
}

/* ===== CHATBOT MODERN DESIGN ===== */
/* ===== CHATBOT MODERN DESIGN WITH TYPING INDICATOR ===== */

/* Floating Chat Button */
#chatbot-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 65px;
    height: 65px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    transition: transform 0.3s, background 0.3s;
    z-index: 9999;
}

#chatbot-btn:hover {
    transform: scale(1.1);
    background: var(--primary-light);
}

/* Chat Panel */
#chatbot-box {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 350px;
    max-height: 500px;
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
    display: none;
    flex-direction: column;
    z-index: 9999;
    font-family: 'Poppins', sans-serif;
    animation: fadeIn 0.3s ease;
}

/* Chat Header */
#chatbot-header {
    background: var(--primary);
    color: white;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 16px;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
}

#chatbot-close {
    cursor: pointer;
    font-size: 20px;
}

/* Messages Area */
#chatbot-messages {
    padding: 5px;
    flex: 1;
    overflow-y: auto;
    background: #f8f8f8;
}

.bot-msg, .user-msg {
    padding: 10px 14px;
    border-radius: 12px;
    margin: 6px 0;
    max-width: 75%;
    word-wrap: break-word;
    font-size: 14px;
    position: relative;
    animation: slideIn 0.3s ease;
}

.bot-msg {
    background: #eef0ff;
    color: #333;
}

.user-msg {
    background: var(--primary);
    color: white;
    margin-left: auto;
}

/* Typing indicator */
.bot-typing {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 14px;
    border-radius: 12px;
    background: #eef0ff;
    width: 60px;
}

.bot-typing span {
    display: block;
    width: 6px;
    height: 6px;
    background: #6366f1;
    border-radius: 50%;
    animation: bounce 0.6s infinite alternate;
}

.bot-typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.bot-typing span:nth-child(3) {
    animation-delay: 0.4s;
}

/* Input Area */
#chatbot-input-box {
    display: flex;
    border-top: 1px solid #ddd;
    padding: 12px;
    background: #fff;
}

#chatbot-input {
    flex: 1;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #ddd;
    outline: none;
    font-size: 14px;
}

#chatbot-send {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 18px;
    margin-left: 8px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s, transform 0.3s;
}

#chatbot-send:hover {
    background: var(--primary-light);
    transform: scale(1.05);
}

/* Scrollbar for messages */
#chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

#chatbot-messages::-webkit-scrollbar-track {
    background: transparent;
}

#chatbot-messages::-webkit-scrollbar-thumb {
    background-color: rgba(79, 70, 229, 0.5);
    border-radius: 3px;
}

/* Animations */
@keyframes fadeIn {
    from {opacity: 0; transform: translateY(20px);}
    to {opacity: 1; transform: translateY(0);}
}

@keyframes slideIn {
    from {opacity: 0; transform: translateY(10px);}
    to {opacity: 1; transform: translateY(0);}
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-4px); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #chatbot-box {
        width: 90%;
        right: 5%;
        bottom: 80px;
    }

    #chatbot-btn {
        width: 55px;
        height: 55px;
        font-size: 24px;
    }
}

/* FIXED PORTFOLIO GRID */
.portfolio-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

/* FIXED PORTFOLIO CARD */
.portfolio-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: #ffffff;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #e5e5e5;
    box-shadow: 0px 8px 24px rgba(0,0,0,0.08);
    text-decoration: none;
    color: inherit;
    transition: 0.25s ease;
    height: auto; /* Allow full expansion */
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0px 14px 32px rgba(0,0,0,0.12);
}

/* LOGO */
.portfolio-logo {
    width: 70px;
    height: 70px;
    margin-bottom: 12px;
}

/* FIX LIST STYLING */
.portfolio-card ul {
    padding-left: 20px;
    margin-top: 10px;
    margin-bottom: 10px;
    line-height: 1.4;
}
/* Fix inside spacing */
.inside-box li {
    margin-bottom: 6px;
}
/*popup*/
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.popup-box {
    background: #fff;
    padding: 25px 30px;
    border-radius: 12px;
    text-align: center;
    width: 300px;
    animation: popup 0.3s ease;
}
.toast {
    position: fixed;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    padding: 18px 28px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    text-align: center;
    z-index: 9999;
    width: 280px;
    opacity: 0;
    transition: all 0.4s ease;
    font-family: 'Arial', sans-serif;
}

.toast.show {
    top: 30px;
    opacity: 1;
}

.toast-title {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
    color: #0c8cff;
}
.work-top {
    height: 160px;      /* give space for the image */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.work-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
}
.visit-link {
    color: #4a4aff;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 8px;
}
.click-note {
    font-size: 14px;
    color: #555;
    margin-top: 8px;
    font-style: italic;
}

.achievement-link h3 {
    color: #2a4dfc;
    text-decoration: underline;
    cursor: pointer;
}

.achievement-link h3:hover {
    color: #1a34c9;
}

@keyframes popup {
    from { transform: scale(0.6); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes popup {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        flex-direction: row;
        justify-content: center;
    }

    .about .container {
        grid-template-columns: 1fr;
    }

    .work-process {
        grid-template-columns: repeat(2, 1fr);
    }

    .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 32px;
    }

    .profile-image {
        width: 250px;
        height: 250px;
    }

    .work-process,
    .works-grid,
    .skills-grid {
        grid-template-columns: 1fr;
    }
    /* BIG PORTFOLIO TEXT (Sample Style) */
.portfolio-title {
    font-family: 'Playfair Display', serif;
    font-size: 220px;
    font-weight: 700;
    text-align: center;
    color: black;
    margin-top: 20px;   /* overlaps slightly like the sample */
    opacity: 0.15;       /* light faded style */
    letter-spacing: 8px; 
}

}
