* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #0f172a; 
    color: #f1f5f9;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.bg-video {
    position: fixed;
    top: 0; left: 0;
    width: 100%;  
    height: 100%; 
    object-fit: cover;
    z-index: -1; 
    opacity: 0.3; 
}

.progress-container {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: transparent;
    z-index: 9999; 
}

.progress-bar {
    height: 100%; width: 0%;
    background: linear-gradient(to right, #3498db, #2ecc71);
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.7);
    transition: width 0.1s ease-out;
}

.top-nav {
    position: fixed; 
    top: 0; left: 0; right: 0;
    padding: 1rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 20;
    background: rgba(15, 23, 42, 0.4); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(to right, #ffffff, #3498db); 
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.logo:hover {
    transform: scale(1.05);
}

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

.nav-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none !important; 
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 1.3rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover { 
    color: #fff;
    text-decoration: none !important;
    background: linear-gradient(135deg, #3498db 0%, #1f618d 100%);
    border-color: rgba(52, 152, 219, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 21;
}

.hamburger span {
    width: 25px; height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: 0.3s;
}

header {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
}

.hero-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1100px;
    gap: 4rem;
    z-index: 5;
    position: relative;
    color: #fff;
    margin-top: 4rem; 
}

.hero-text-section {
    flex: 1.2;
    text-align: left;
}

.hero-title {
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #ffffff, #3498db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.subtitle {
    font-size: 1.2rem; 
    margin-bottom: 1.5rem; 
    opacity: 0.9;
    font-weight: 400;
}

.desktop-divider {
    display: inline;
    margin: 0 5px;
}
.mobile-newline {
    display: inline;
}

.search-container {
    width: 100%;
    max-width: 100%;
    display: flex;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(52, 152, 219, 0.5);
    padding: 5px;
    border-radius: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    margin-bottom: 0.5rem;
}

.search-container input {
    flex: 1; background: transparent; border: none; outline: none;
    color: white; padding: 0.8rem 1.5rem; font-size: 1.05rem;
}

.search-container input::placeholder { color: rgba(255, 255, 255, 0.5); }

.search-container button {
    background: #3498db; border: none; color: white;
    padding: 0 1.8rem; border-radius: 25px; cursor: pointer;
    font-size: 1rem; font-weight: 600; transition: background 0.2s ease;
}

.search-container button:hover { background: #2980b9; }

#ai-response-box {
    width: 100%;
    margin-top: 10px;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(52, 152, 219, 0.3);
    backdrop-filter: blur(10px);
    color: #e2e8f0;
    font-size: 0.95rem;
    line-height: 1.5;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.4s ease;
}

.ai-response-hidden {
    opacity: 0; transform: translateY(-10px); pointer-events: none;
    height: 0; padding: 0 !important; margin: 0 !important;
    border: none !important; overflow: hidden;
}

.ai-response-visible {
    opacity: 1; transform: translateY(0); height: auto;
}

#console-status {
    font-size: 0.9rem; color: #ef4444; min-height: 20px; font-weight: 500;
}

.suggestion-chips {
    display: flex; flex-direction: row; flex-wrap: wrap; gap: 12px;
    margin-top: 10px; opacity: 0;
    animation: fadeUp 1s ease-out 0.5s forwards;
}

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

.chip {
    background: rgba(30, 41, 59, 0.8); backdrop-filter: blur(5px);
    border: 1px solid #3498db; color: #fff; padding: 0.6rem 1.2rem;
    border-radius: 20px; cursor: pointer; font-size: 0.9rem;
    transition: all 0.2s ease; box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.chip:hover {
    background: #3498db; transform: translateY(-2px);
}

.hero-bot-section {
    flex: 0.8; display: flex; flex-direction: column;
    align-items: center; position: relative;
}

.pure-robot {
    width: 250px; height: 250px; cursor: pointer;
    filter: drop-shadow(0 0 20px rgba(52, 152, 219, 0.4));
}

.container {
    max-width: 1100px; margin: 2rem auto; padding: 0 1rem; 
    position: relative; z-index: 10;
}

section {
    background: rgba(30, 41, 59, 0.65);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3.5rem; margin-bottom: 2rem; border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    scroll-margin-top: 100px; 
}

.dynamic-section {
    display: block !important; 
    opacity: 1 !important; 
    transform: translateY(0) !important;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

section h2 {
    margin-bottom: 1.5rem; display: inline-block; padding-bottom: 0.3rem;
    background: linear-gradient(to right, #ffffff, #3498db);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

section p { color: #cbd5e1; line-height: 1.7; }

/* Contact Section Specific Alignment */
#contact {
    text-align: center;
}

.about-content { display: flex; align-items: center; gap: 2rem; }

.profile-pic {
    width: 150px; height: 150px; border-radius: 50%;
    object-fit: cover; border: 3px solid #3498db;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    flex-shrink: 0; background-color: #0f172a; 
}

.about-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: flex-start; 
}

#contact .about-buttons {
    justify-content: center;
}

/* --- Dynamic Projects Slider --- */
.slider-wrapper {
    overflow: hidden;
    width: 100%;
    padding: 1rem 0;
}

.project-slider {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-card-wrapper {
    flex: 0 0 33.3333%;
    padding: 0 10px;
    box-sizing: border-box;
}

.project-card {
    height: 100%; 
    display: flex;
    flex-direction: column; 
    border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 1)); 
    overflow: hidden; transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02) perspective(1000px) rotateX(2deg) rotateY(-2deg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 20px rgba(52, 152, 219, 0.4);
    border-color: rgba(52, 152, 219, 0.6);
}

.project-img {
    width: 100%; height: 200px; object-fit: contain; padding: 1.8rem; 
    background: rgba(0, 0, 0, 0.25); border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.project-info { 
    padding: 1.5rem; 
    display: flex; 
    flex-direction: column; 
    flex-grow: 1; 
}

.project-info h3 { color: #3498db; margin-bottom: 0.5rem; }
.project-info p { margin-bottom: 1rem; }

.action-btn {
    margin-top: auto; 
    align-self: flex-start;
    display: inline-block; padding: 0.5rem 1.2rem;
    background: #3498db; color: white; text-decoration: none;
    border-radius: 20px; font-size: 0.9rem; font-weight: 600;
    transition: all 0.3s ease; box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.action-btn:hover {
    background: #2980b9; transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(52, 152, 219, 0.4);
}

/* Slider Arrow Buttons */
.slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.9);
    color: #3498db;
    border: 1px solid #3498db;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.slide-arrow:hover {
    background: #3498db;
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.left-arrow { left: -22px; }
.right-arrow { right: -22px; }


footer {
    text-align: center; padding: 3rem; color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem; position: relative; z-index: 10;
}

.floating-whatsapp {
    position: fixed; bottom: 30px; right: 30px;
    z-index: 1000; display: flex; align-items: center; gap: 15px;
}

.whatsapp-tooltip {
    background-color: #1e293b; color: #f8fafc;
    padding: 0.6rem 1.2rem; border-radius: 8px;
    font-size: 0.95rem; font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    opacity: 0; transform: translateX(15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none; 
}

.floating-whatsapp:hover .whatsapp-tooltip { opacity: 1; transform: translateX(0); }

.whatsapp-icon {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%; display: flex; justify-content: center; align-items: center;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4); transition: transform 0.3s ease;
    text-decoration: none;
}
.whatsapp-icon:hover { transform: scale(1.1); }
.whatsapp-icon svg { width: 35px; height: 35px; fill: #ffffff; }

/* =========================================
   MOBILE RESPONSIVE TWEAKS 
   ========================================= */
@media (max-width: 900px) {
    .hero-content { 
        flex-direction: column-reverse; 
        text-align: center; 
        gap: 2rem; 
        margin-top: 2rem; 
    }
    
    .desktop-divider { display: none; }
    .mobile-newline { display: block; margin-top: 5px; }
    
    .hero-text-section { text-align: center; }
    .hero-title { font-size: 2.5rem; }
    .subtitle { font-size: 1.1rem; margin-bottom: 1.5rem; }
    .pure-robot { width: 180px; height: 180px; }

    section { padding: 2.5rem 1rem; }
    
    /* FIX: Maximizes card width and pushes arrows slightly outwards */
    .slider-container { padding: 0 25px; } 
    .project-card-wrapper { flex: 0 0 100%; padding: 0 5px; }
    
    /* Resize arrows to fit better alongside the wider cards */
    .left-arrow { left: -5px; width: 38px; height: 38px; font-size: 1rem; }
    .right-arrow { right: -5px; width: 38px; height: 38px; font-size: 1rem; }

    .top-nav { padding: 1.5rem 1.5rem; }
    .hamburger { display: flex; }
    
    .nav-links {
        position: fixed; top: 0; right: -100%;
        height: 100vh; width: 65%; 
        background: linear-gradient(145deg, #0f172a 0%, #1e3a5f 100%); 
        box-shadow: -5px 0 25px rgba(0,0,0,0.6); backdrop-filter: blur(15px);
        flex-direction: column; align-items: stretch; justify-content: flex-start; 
        padding-top: 5rem; transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1); z-index: 19;
    }
    
    .nav-links.active { right: 0; }

    .nav-links a {
        display: block; width: 100%;
        font-size: 1.1rem; padding: 1.2rem 2rem; color: #f1f5f9;
        text-decoration: none !important;
        background: transparent; border: none; border-radius: 0; 
        border-bottom: 1px solid rgba(255, 255, 255, 0.08); 
        transition: all 0.3s ease; text-align: left;
    }
    .nav-links a:last-child { border-bottom: none; }

    .nav-links a:hover, .nav-links a:active {
        background: rgba(52, 152, 219, 0.15); padding-left: 2.5rem; 
        border-left: 4px solid #3498db; color: #3498db;
    }
    
    /* FIX: Reduce search input and placeholder text size */
    .search-container { max-width: 95%; margin: 0 auto 0.5rem auto; }
    .search-container input { padding: 0.7rem 1rem; font-size: 0.85rem; }
    .search-container input::placeholder { font-size: 0.75rem; } 
    .search-container button { padding: 0 1.2rem; font-size: 0.9rem; }
    
    .suggestion-chips { justify-content: center; margin-top: 5px; }
    .chip { font-size: 0.8rem; padding: 0.5rem 1rem; }
    
    .about-content { flex-direction: column; text-align: center; }
    section h2 { display: table; margin: 0 auto 1.5rem auto; }
    
    .about-buttons { justify-content: center; }
    
    .floating-whatsapp { bottom: 20px; right: 20px; }
    .whatsapp-tooltip { display: none; }
}