/* style.css */
:root {
    --bg-color: #0a0a0a; /* Deep Black/Grey */
    --card-bg: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: #ffffff;
    --accent-color: #3b82f6; /* AI Blue */
    --accent-glow: rgba(59, 130, 246, 0.5);
    --font-main: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: rgba(10, 10, 10, 0.9);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #333;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-color);
}

/* Layouts */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Hero Section (Home) */
/* .hero {
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
} */
.hero {
    min-height: 80vh; /* Changed from height to allow expansion */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 0; /* Adds breathing room on top and bottom */
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.5rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    box-shadow: 0 0 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px var(--accent-glow);
}

.btn-secondary {
    border: 2px solid var(--text-secondary);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

/* Projects Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #333;
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.card-img {
    width: 100%;
    height: 200px;
    background-color: #333; /* Placeholder color */
    object-fit: cover;
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    margin-bottom: 10px;
    color: var(--accent-color);
}

.tech-stack {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-family: monospace;
}

.impact-list {
    list-style-type: none;
    margin-bottom: 20px;
}

.impact-list li {
    margin-bottom: 8px;
    font-size: 0.95rem;
    padding-left: 15px;
    position: relative;
}

.impact-list li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.card-links {
    display: flex;
    gap: 15px;
}

.link-text {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--accent-color);
}

/* Contact Section */
.contact-wrapper {
    text-align: center;
    margin-top: 50px;
}

.contact-info p {
    font-size: 1.2rem;
    margin: 10px 0;
}

.social-links {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}


.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
}


/* Mobile Responsive */
/* Update your existing Mobile Responsive section */
@media (max-width: 768px) {

    .hero h1 { 
        font-size: 2.2rem; 
    }
    
    .hero p { 
        font-size: 1.1rem; /* Scales down the paragraph text */
        margin-bottom: 30px;
    }

    .cta-buttons {
        flex-direction: column; /* Stacks the buttons vertically */
        width: 70%;
        padding: 0 20px;
    }

    .cta-buttons .btn {
        width: 100%; /* Makes buttons full width for easy tapping */
    }


    .btn {
        padding: 8px 16px;  /* Reduced from 12px 30px */
        font-size: 0.9rem;  /* Slightly smaller text */
    }
    
    /* Optional: If you want the icons inside the project buttons to scale down too */
    .btn i {
        font-size: 0.85rem;
    }

    nav { 
        padding: 20px; 
        position: sticky; /* Makes it stick to the screen */
        top: 0;           /* Pins it to the very top */
        z-index: 1000;    /* Ensures it stays above all other scrolling content */
    }
    
    /* 1. Show the hamburger icon */
    .menu-toggle {
        display: block;
    }

    /* 2. Restyle the nav-links to be a dropdown */
    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%; 
        right: 20px;         /* Aligns the box to the right side */
        left: auto;          /* Removes the full-width left stretch */
        width: 200px;        /* Sets a fixed, smaller width */
        background-color: var(--card-bg); /* Uses your card background color */
        backdrop-filter: blur(10px);
        text-align: center;
        padding: 20px 0;
        gap: 20px;
        border-radius: 12px; /* Rounds the corners */
        border: 1px solid #333; /* Wraps the border around all sides */
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8); /* Adds a drop shadow */
        
        /* Keep the animation logic */
        opacity: 0;
        transform: translateY(-20px);
        pointer-events: none;
        transition: all 0.3s ease-in-out;
    }

    /* 3. The class toggled by JS to reveal the menu */
    .nav-links.nav-active {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
}

/* Skills Section Styles */
.skills {
    padding: 60px 20px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    border-top: 1px solid #333;
    padding-top: 40px;
}

.skill-category h3 {
    color: #a78bfa; /* The Red/Pink color from your video */
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #a78bfa;
    display: inline-block;
    padding-bottom: 5px;
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.skill-pill {
    background-color: white; /* High contrast white pill */
    color: black;
    padding: 12px 20px;
    border-radius: 50px; /* Fully rounded pill shape */
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.skill-pill i {
    font-size: 1.2rem; /* Icon size */
}

/* Hover Effect */
.skill-pill:hover {
    transform: translateX(10px); /* Slides slightly to the right */
    background-color: var(--accent-color); /* Changes to Blue on hover */
    color: white;
}

/* Mobile Tweak */
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr 1fr; /* 2 columns on tablets */
    }
    .skill-pill {
        padding: 8px 15px;
        font-size: 0.85rem;
        gap: 8px; /* Reduces space between the icon and text */
    }

    .skill-pill i {
        font-size: 1rem; /* Shrinks the icon slightly */
    }

    /* Changes the list to a 2-column grid on mobile */
    .skill-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px; 
    }

    /* Centers the content so it looks balanced in the smaller boxes */
    .skill-pill {
        justify-content: center;
        padding: 8px 10px; 
        font-size: 0.85rem;
    }

    /* Scrollable Certifications Row for Mobile */
    .cert-grid {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding-bottom: 20px;
        scrollbar-width: none;
    }
    .cert-grid::-webkit-scrollbar { display: none; }

    .cert-grid .cert-card {
        flex: 0 0 85%; /* Leaves a little space so the next card peeks out */
        scroll-snap-align: start;
    }
}

@media (max-width: 480px) {
    .skills-grid {
        grid-template-columns: 1fr; /* 1 column on phones */
    }

    .skill-pill {
        padding: 8px 15px;
        font-size: 0.85rem;
        gap: 8px; /* Reduces space between the icon and text */
    }

    .skill-pill i {
        font-size: 1rem; /* Shrinks the icon slightly */
    }

}

/* Certifications Section */
.certifications {
    padding: 80px 20px;
    border-top: 1px solid #333; /* Separator line */
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    background: linear-gradient(90deg, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.cert-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #333;
    transition: all 0.3s ease;
    position: relative;
}

/* Hover Effect: Lifts up and glows slightly */
.cert-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.cert-img-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-bottom: 1px solid #333;
}

.cert-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image fills the box without stretching */
    transition: transform 0.5s ease;
}

/* Zoom effect on image hover */
.cert-card:hover .cert-img-wrapper img {
    transform: scale(1.05);
}

.cert-content {
    padding: 25px;
}

.cert-content h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.issuer {
    color: var(--accent-color); /* Blue Text for Company Name */
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.date {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 15px;
    font-style: italic;
}

.cert-link {
    display: inline-block;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    border-bottom: 1px solid var(--accent-color);
    padding-bottom: 2px;
    transition: color 0.3s;
}

.cert-link:hover {
    color: var(--accent-color);
}

/* Add/Replace this section in style.css for Projects Page */

.projects-wrapper {
    display: flex;
    flex-direction: column;
    gap: 80px; /* Space between the two big projects */
    margin-top: 40px;
}

.project-showcase {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Video takes slightly more space */
    gap: 40px;
    background-color: var(--card-bg);
    border: 1px solid #333;
    border-radius: 16px;
    overflow: hidden;
    padding: 30px;
}

/* Left Side: Media */
.project-media {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.media-content {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #444;
    aspect-ratio: 16/9;
    object-fit: cover;
    background-color: #000;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tags span {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-family: monospace;
    border: 1px solid #444;
}

/* Right Side: Details */
.project-details h3 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.project-tagline {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 25px;
    font-weight: 500;
}

.detail-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.detail-columns h4 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1rem;
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
}

.detail-columns ul {
    list-style: none;
    padding: 0;
}

.detail-columns li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.5;
    position: relative;
    padding-left: 15px;
}

.detail-columns li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.media-carousel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Mobile Responsive for Projects */
@media (max-width: 900px) {
    /* Stack the main grid properly */

    /* Reorder items for mobile view */
    .project-details {
        display: contents; 
    }

    .project-details h3 {
        order: 1;
    }
    
    .project-details .project-tagline {
        order: 2;
        margin-bottom: 20px; /* Adds space before the media carousel */
    }

    .project-media {
        order: 3;
        width: 100%;
    }

    .detail-columns {
        order: 4;
    }

    .card-links {
        order: 5;
        margin-top: 10px;
    }


    .project-showcase {
        display: flex !important;
        flex-direction: column; 
        padding: 20px;
    }

    /* 1. Scrollable Media Row */
    .media-carousel {
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 10px;
        scrollbar-width: none;
    }
    .media-carousel::-webkit-scrollbar { display: none; }
    
    .media-carousel > .media-content,
    .media-carousel > .system-design-wrapper {
        flex: 0 0 90%; /* Leaves 10% space to hint at the next item */
        scroll-snap-align: start;
        margin-top: 0 !important; /* Removes inline margins so they align */
    }

    /* 2. Scrollable Details Row */
    .detail-columns {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 15px;
        padding-bottom: 15px;
        scrollbar-width: none;
    }
    .detail-columns::-webkit-scrollbar { display: none; }

    .detail-columns .col {
        flex: 0 0 90%;
        scroll-snap-align: start;
        background-color: rgba(255, 255, 255, 0.03); /* Slight background to separate text blocks */
        padding: 15px;
        border-radius: 12px;
        border: 1px solid #333;
    }

    .scroll-wrapper {
        position: relative;
        width: 100%;
    }

    .scroll-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        background: rgba(30, 30, 30, 0.9);
        color: var(--accent-color);
        border: 1px solid #444;
        border-radius: 50%;
        width: 35px;
        height: 35px;
        cursor: pointer;
        display: flex;
        justify-content: center;
        align-items: center;
        box-shadow: 0 4px 10px rgba(0,0,0,0.5);
        transition: opacity 0.3s ease, visibility 0.3s;
    }
    .hidden-btn {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .left-arrow { left: -10px; }
    .right-arrow { right: -10px; }

    /* Hide buttons on desktop by default if outside the media query */
    @media (min-width: 901px) {
        .scroll-btn { display: none; }
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* 2. Setup Initial States (Hidden) */
.hero h1, .hero p, .cta-buttons, 
.section-title, .project-showcase, 
.skill-category, .cert-card {
    opacity: 0; /* Hidden by default */
    transform: translateY(30px); /* Pushed down slightly */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* 3. The 'Visible' Class (JS will add this) */
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.8s ease-out forwards;
}

/* 4. Staggered Skills Animation (The "Pop" effect) */
.skill-pill {
    opacity: 0;
    animation: none;
}

.skill-category.is-visible .skill-pill {
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Stagger delays for skills so they pop one by one */
.skill-category.is-visible .skill-pill:nth-child(1) { animation-delay: 0.1s; }
.skill-category.is-visible .skill-pill:nth-child(2) { animation-delay: 0.2s; }
.skill-category.is-visible .skill-pill:nth-child(3) { animation-delay: 0.3s; }
.skill-category.is-visible .skill-pill:nth-child(4) { animation-delay: 0.4s; }

/* Hidden by default, covers the entire screen when active */

.image-modal {
    display: none; 
    position: fixed; 
    z-index: 9999; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.85); 
    backdrop-filter: blur(5px);
}

/* Updated image centering */
.modal-image-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    /* Reduced from 90 to 80 to "zoom out" and show all edges */
    max-width: 70vw; 
    max-height: 70vh; 
    
    /* Enforces proper scaling within the new boundaries */
    width: auto;
    height: auto;
    object-fit: contain;
    
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

/* Close button remains the same */
.close-modal {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10000;
}

.close-modal:hover {
    color: #bbb;
}

@media (min-width: 901px) {
    .scroll-btn {
        display: none !important;
    }
}

/* AI Chat Widget Styles */
#ai-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: var(--font-main);
}



/* =========================================
   AI Chat Widget & Floating Animations
   ========================================= */

/* The continuous up-and-down float animation */

/* AI Theme Variables */
:root {
  --ai-primary: linear-gradient(135deg, #7C3AED, #EC4899);
  --ai-hover: linear-gradient(135deg, #9B59F5, #F472B6);
  --ai-glow: rgba(139, 92, 246, 0.5);
}

.ai-bubble {
  background: var(--ai-primary);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--ai-glow);
}

@keyframes floatAnimation {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Slide in the greeting bubble after page loads */
@keyframes slideInGreeting {
    0% { opacity: 0; transform: translateX(20px); }
    100% { opacity: 1; transform: translateX(0); }
}

/* Apply floating effect to the main button */
#chat-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--ai-primary);
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--ai-glow);
    transition: opacity 0.3s;
    animation: floatAnimation 3s ease-in-out infinite;
}

/* Hover effect for the button */
#chat-toggle-btn:hover {
    background: var(--ai-hover);
    opacity: 0.9;
}

/* Glow effect for the icon inside the button */
#chat-toggle-btn i {
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
    transition: filter 0.3s ease;
}

#chat-toggle-btn:hover i {
    filter: drop-shadow(0 0 8px rgba(236, 72, 153, 0.8));
}

/* New Greeting Bubble Styling */
#chat-greeting {
    position: absolute;
    right: 75px; 
    bottom: 10px; 
    background-color: var(--card-bg);
    color: var(--text-primary);
    padding: 10px 16px;
    border-radius: 20px 20px 0 20px; 
    border: 1px solid #333;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    font-size: 0.9rem;
    white-space: nowrap; 
    cursor: pointer;
    opacity: 0;
    animation: slideInGreeting 0.5s ease 1s forwards, floatAnimation 3s ease-in-out infinite;
}

/* Allows JavaScript to hide the greeting permanently once clicked */
#chat-greeting.hide-greeting {
    display: none;
}

/* Blinking cursor for the typewriter effect */
.cursor {
    display: inline-block;
    width: 2px;
    animation: blink 0.8s step-end infinite;
    font-weight: bold;
    margin-left: 2px;
}

@keyframes blink {
    from, to { color: transparent; }
    50% { color: var(--text-primary); }
}

/* Chat Window Styling */
#chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    height: 450px;
    /* background-color: var(--card-bg); */
    /* border: 1px solid #333; */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* box-shadow: 0 10px 30px rgba(0,0,0,0.8); */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    transition: opacity 0.3s, transform 0.3s;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    background: rgba(15, 15, 15, 0.55);
}

#chat-window.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

.chat-header {
    /* background-color: #111; */
    background: rgba(255, 255, 255, 0.04);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* border-bottom: 1px solid #333; */
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-header h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-primary);
}

.chat-header button {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.2rem;
}

#chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.ai-message {
    /* background-color: #2a2a2a; */
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-primary);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.user-message {
    background: var(--ai-primary);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-input-area {
    display: flex;
    padding: 15px;
    background-color: #111;
    border-top: 1px solid #333;
    gap: 10px;
    position: relative;
}





@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes spin {
  to { --angle: 360deg; }
}

.input-wrapper {
  position: relative;
  flex: 1;
  border-radius: 10px;
}

/* .input-wrapper::before,
.input-wrapper::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 12px;
  background: conic-gradient(from var(--angle), #7C3AED, #EC4899, #06B6D4, #7C3AED);
  animation: spin 3s linear infinite;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.input-wrapper::after {
  filter: blur(8px);
}

.input-wrapper.active::before { opacity: 1; }
.input-wrapper.active::after  { opacity: 0.5; } */

.input-wrapper::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 32px;
    background: conic-gradient(from var(--angle), #7C3AED, #EC4899, #06B6D4, #7C3AED);
    animation: spin 3s linear infinite;
    z-index: 0;
}

.input-wrapper::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 32px;
    background: conic-gradient(from var(--angle), #7C3AED, #EC4899, #06B6D4, #7C3AED);
    animation: spin 3s linear infinite;
    filter: blur(8px);
    opacity: 0.5;
    z-index: 0;
}


#chat-input {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 14px 50px 14px 20px; /* Increased right padding for the button */
    border-radius: 30px;
    border: none;
    background-color: #1a1a1a;
    /* background: rgba(255, 255, 255, 0.06); */
    color: white;
    outline: none;
    box-sizing: border-box;
    font-size: 0.95rem;
}


/* #chat-input:focus {
    border-color: transparent;
    box-shadow: 0 0 0 2px #7C3AED, 0 0 8px rgba(236, 72, 153, 0.4);
} */


.chat-input-area button {
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7C3AED, #EC4899);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.chat-input-area button:hover {
    opacity: 0.85;
}


/* Footer */
footer {
    border-top: 1px solid #333;
    margin-top: 80px;
    background-color: var(--bg-color);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-brand .logo {
    font-size: 1.3rem;
    display: inline-block;
    margin-bottom: 14px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 260px;
}

.footer-col h4 {
    color: var(--text-primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 18px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col ul a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-col ul a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid #222;
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}



/* ============================
   Contact Page
   ============================ */

.contact-hero {
    text-align: center;
    padding-top: 80px;
    padding-bottom: 20px;
}

.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 28px;
    letter-spacing: 0.5px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.7);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}

.contact-hero h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Three contact cards */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding-top: 60px;
    padding-bottom: 20px;
}

.contact-card {
    background-color: var(--card-bg);
    border: 1px solid #333;
    border-radius: 16px;
    padding: 36px 28px;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.contact-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--accent-color);
    margin-bottom: 8px;
}

.contact-card h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
}

.contact-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
}

.contact-card .btn {
    margin-top: 8px;
    font-size: 0.85rem;
    padding: 10px 20px;
}

/* Resume strip */
.contact-resume {
    padding-top: 20px;
    padding-bottom: 20px;
}

.resume-inner {
    background-color: var(--card-bg);
    border: 1px solid #333;
    border-radius: 16px;
    padding: 36px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.resume-inner h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.resume-inner p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.resume-inner .btn {
    white-space: nowrap;
    flex-shrink: 0;
}

/* Meta info row */
.contact-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding-top: 16px;
    padding-bottom: 80px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.meta-item i {
    color: var(--accent-color);
    font-size: 0.85rem;
}

.meta-divider {
    width: 1px;
    height: 18px;
    background-color: #333;
}

/* Mobile */
@media (max-width: 768px) {
    .contact-hero h2 {
        font-size: 2.4rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .resume-inner {
        flex-direction: column;
        text-align: center;
        padding: 28px 24px;
    }

    .contact-meta {
        flex-direction: column;
        gap: 16px;
    }

    .meta-divider {
        width: 40px;
        height: 1px;
    }
}

/* Responsive YouTube Embeds */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* This creates the perfect 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    width: 100%;
    border-radius: 8px; /* Keeps the corners soft like the rest of your UI */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}