/* ================= GLOBAL ================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Animated gradient background */
body {
    margin: 0;
    padding-top: 120px;
    font-family: Arial, sans-serif;
    background: linear-gradient(270deg, #0f2027, #203a43, #2c5364, #0f2027);
    background-size: 800% 800%;
    animation: gradientBG 20s ease infinite;
    color: white;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
body::before {
    content: "";
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 30%, rgba(56,189,248,0.2), transparent 30%),
                radial-gradient(circle at 80% 70%, rgba(236,72,153,0.2), transparent 50%);
    animation: floatLights 30s linear infinite;

    pointer-events: none;
    z-index: 0;
}

@keyframes floatLights {
    0% { transform: translate(0,0) rotate(0deg); }
    50% { transform: translate(20px, -30px) rotate(180deg); }
    100% { transform: translate(0,0) rotate(360deg); }
}


html, body {
    overflow-x: hidden;
    width: 100%;
}

  

/* ================= SECTION ================= */

.section {
    padding: 100px 20px;
}

.container {
    max-width: 1200px;
    margin: auto;
}

h1, h2, h3 {
    margin-bottom: 20px;
}

p {
    line-height: 1.6;
    opacity: 0.9;
}

/* ================= NAVBAR ================= */

nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 1200px;
    z-index: 2000;

    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);

    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.18);

    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 0 15px rgba(255,255,255,0.05);

    transition: all 0.4s ease;
}

/* Navbar Container */
.nav-container {
    padding: 15px 30px;
}

/* Logo */
.logo {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Links */
.nav-links li a {
    position: relative;
    font-size: 15px;
    transition: all 0.3s ease;
}

/* Smooth Hover Glow */
.nav-links li a:hover {
    color: #38bdf8;
    text-shadow: 0 0 10px #38bdf8;
}

/* Animated Underline */
.nav-links li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, #38bdf8, #0ea5e9);
    transition: 0.4s ease;
}

.nav-links li a:hover::after {
    width: 100%;
}

.nav-container {
    max-width: 1200px;
    margin: auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 20px;
    font-weight: 600;
    color: white;
}

.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
}

.nav-links li a {
    text-decoration: none;
    color: white;
    font-size: 15px;
    transition: 0.3s ease;
}

.nav-links li a:hover {
    color: #38bdf8;
}

/* ================= HERO ================= */

.hero {
    text-align: center;
}

/* ================= GRID ================= */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

/* ================= GLASS CARD ================= */

.glass {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 25px;
    transition: 0.3s ease;
}

.glass:hover {
    transform: translateY(-10px) scale(1.03);
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: black;
    box-shadow: 0 0 25px #38bdf8;
}


/* ================= CARD ================= */

.card {
    text-align: center;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {

    .nav-links {
        gap: 15px;
    }

    .nav-links li a {
        font-size: 13px;
    }

    .section {
        padding: 80px 15px;
    }

    .grid {
        grid-template-columns: 1fr;
    }
}
/* ================= HERO LAYOUT ================= */

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1;
}

.hero-buttons {
    margin-top: 25px;
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    animation: floatImage 4s ease-in-out infinite;
    width: 300px;
    border-radius: 20px;
    border: 3px solid rgba(255,255,255,0.2);
    transition: 0.4s ease;
    
}
@keyframes floatImage {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.hero-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(56,189,248,0.4);
}

/* ================= BUTTONS ================= */

.btn {
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    background: #38bdf8;
    color: black;
    font-weight: 500;
    transition: 0.3s ease;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(56,189,248,0.7); }
    70% { box-shadow: 0 0 0 15px rgba(56,189,248,0); }
    100% { box-shadow: 0 0 0 0 rgba(56,189,248,0); }
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(56,189,248,0.4);
}

.btn.outline {
    background: transparent;
    border: 1px solid #38bdf8;
    color: #38bdf8;
}

.btn.outline:hover {
    background: #38bdf8;
    color: black;
}

/* ================= ADVANCED CHATBOT ================= */

.chat-toggle {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(56,189,248,0.6);
    transition: 0.3s ease;
    z-index: 3000;
}

.chat-toggle:hover {
    transform: scale(1.1);
}

/* Glass Container */

.chat-container {
    position: fixed;
    bottom: 110px;
    right: 25px;
    width: 360px;
    max-width: 92%;
    height: 520px;
    border-radius: 25px;
    backdrop-filter: blur(30px);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 25px 60px rgba(0,0,0,0.5);
    overflow: hidden;
    display: none;
    flex-direction: column;
    animation: popup 0.4s ease forwards;
    z-index: 3000;
}

/* Opening animation */

@keyframes popup {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.chat-container.active {
    display: flex;
}

/* Header */

.chat-header {
    padding: 15px;
    font-weight: 600;
    font-size: 16px;
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: black;
    display: flex;
    justify-content: space-between;
}

/* Messages */

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    scroll-behavior: smooth;
}

/* Bot Bubble */

.bot-message {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 18px 18px 18px 5px;
    font-size: 14px;
    animation: messageIn 0.3s ease;
}

/* User Bubble */

.user-message {
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: black;
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 18px 18px 5px 18px;
    text-align: right;
    font-size: 14px;
    animation: messageIn 0.3s ease;
}

@keyframes messageIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Input */

.chat-input {
    display: flex;
    padding: 10px;
    backdrop-filter: blur(10px);
    background: rgba(245, 235, 235, 0.05);
}

.chat-input input {
    flex: 1;
    padding: 12px;
    border-radius: 20px;
    border: none;
    outline: none;
    background: rgba(255,255,255,0.1);
    color: white;
}

.chat-input button {
    margin-left: 10px;
    padding: 12px 18px;
    border-radius: 20px;
    border: none;
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    cursor: pointer;
}

/* Typing dots */

.typing {
    display: flex;
    gap: 5px;
}

.typing span {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: blink 1.2s infinite ease-in-out;
}

.typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blink {
    0%, 80%, 100% { opacity: 0; }
    40% { opacity: 1; }
}

/* Mobile */

@media (max-width: 480px) {
    .chat-container {
        width: 95%;
        right: 2.5%;
        bottom: 90px;
        height: 80vh;
    }
}
/* ===== CRAZY GLASS QUICK BUTTONS ===== */

.quick-buttons {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-buttons button {
    padding: 8px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(15px);
    color: white;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Hover Glow Effect */

.quick-buttons button:hover {
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: black;
    box-shadow: 0 0 15px #38bdf8;
    transform: translateY(-3px) scale(1.05);
}

/* Touch / Click Press Effect */

.quick-buttons button:active {
    transform: scale(0.95);
    box-shadow: 0 0 8px #38bdf8;
}

/* Smooth Shine Effect */

.quick-buttons button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: rgba(255,255,255,0.4);
    transform: skewX(-25deg);
    transition: 0.5s;
}

.quick-buttons button:hover::before {
    left: 130%;
}


/* ================= CONTACT LINKS ================= */

.contact-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s ease;
}

.contact-link:hover {
    color: white;
}

/* ================= FOOTER ================= */

.footer {
    background: rgba(0,0,0,0.6);
    text-align: center;
    padding: 20px;
    margin-top: 50px;
    font-size: 14px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
/* Floating glass animation for resume thumbnail */
.bot-message img {
    animation: floatGlass 4s ease-in-out infinite alternate;
    box-shadow: 0 15px 30px rgba(56,189,248,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@keyframes floatGlass {
    0% { transform: translateY(0px) rotate(0deg) scale(1); }
    50% { transform: translateY(-10px) rotate(2deg) scale(1.02); }
    100% { transform: translateY(0px) rotate(-2deg) scale(1); }
}

.bot-message img:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(56,189,248,0.5);
}
/* Mic wrapper */
.mic-wrapper {
    position: relative;
    display: inline-block;
    align-items: center;
}

/* Wave container */
.chat-wave {
    display: none;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
}

.chat-wave span {
    width: 4px;
    height: 6px;
    background: #38bdf8;
    border-radius: 10px;
    animation: waveAnim 1s infinite ease-in-out;
}

.chat-wave span:nth-child(2) { animation-delay: 0.1s; }
.chat-wave span:nth-child(3) { animation-delay: 0.2s; }
.chat-wave span:nth-child(4) { animation-delay: 0.3s; }

@keyframes waveAnim {
    0%,100% { height: 6px; opacity: 0.5; }
    50% { height: 18px; opacity: 1; }
}
