/* Modern Web Developer Portfolio
   Theme: Dark Futuristic, Neon, High Contrast
   Author: Antigravity AI */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;500;700&family=Space+Grotesk:wght@300;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;700&display=swap');

:root {
    --bg-dark: #050510;
    /* Deep Black Blue */
    --bg-panel: rgba(20, 25, 40, 0.85);
    /* Dark Glass */
    --primary: #00f3ff;
    /* Neon Cyan */
    --secondary: #bd00ff;
    /* Neon Purple */
    --accent: #00ff9d;
    /* Neon Green */
    --text-main: #ffffff;
    /* Pure White */
    --text-muted: #e2e8f0;
    /* Bright Grey for readability */
    --glass-border: 1px solid rgba(0, 243, 255, 0.3);
    --glass-shadow: 0 0 20px rgba(0, 243, 255, 0.15);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --font-code: 'Fira Code', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Animation */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(112, 0, 255, 0.1) 0%, transparent 60%);
    z-index: -1;
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
    box-shadow: 0 0 10px var(--primary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 0.5px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 5px rgba(0, 243, 255, 0.5));
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0.5rem 4%;
    /* Reduced padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 5, 16, 0.9);
    backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.logo {
    font-size: 1.5rem;
    /* Smaller logo */
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    /* Reduced gap */
    list-style: none;
    width: auto;
}

.menu-toggle {
    display: none;
    /* Hidden on Desktop */
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-family: var(--font-heading);
    /* Switch to heading font for better style */
    font-weight: 500;
    /* Lighter weight for cleaner look if font is bold by default, or adjust as needed */
    transition: 0.3s;
    font-size: 0.85rem;
    /* Slightly larger than 0.9rem for legibility */
    text-transform: uppercase;
    letter-spacing: 1px;
    /* Open up tracking for elegance */
    position: relative;
    opacity: 0.9;
}

.nav-links a:hover {
    opacity: 1;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: 0.3s;
    box-shadow: 0 0 10px var(--primary);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    text-shadow: 0 0 15px var(--primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.btn-admin {
    padding: 0.7rem 2rem;
    border: 2px solid var(--primary);
    border-radius: 5px;
    color: var(--primary);
    text-decoration: none;
    transition: 0.3s;
    background: transparent;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

.btn-admin:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 30px var(--primary);
    border-color: var(--primary);
}

/* Sections General */
section {
    min-height: 100vh;
    padding: 8rem 5% 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-title {
    font-size: 3.5rem;
    margin-bottom: 4rem;
    text-align: center;
    position: relative;
    display: inline-block;
    align-self: center;
    color: var(--text-main);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
    box-shadow: 0 0 15px var(--primary);
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 4rem auto 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--primary), transparent);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
    box-shadow: 0 0 15px var(--primary);
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

.timeline-dot {
    width: 24px;
    height: 24px;
    background: #000;
    border: 3px solid var(--primary);
    box-shadow: 0 0 15px var(--primary), inset 0 0 10px var(--primary);
    position: absolute;
    top: 15px;
    border-radius: 50%;
    right: -12px;
    z-index: 1;
}

.timeline-item.right .timeline-dot {
    left: -12px;
}

.timeline-content {
    padding: 30px;
    background: rgba(10, 15, 30, 0.8);
    position: relative;
    border-radius: 10px;
    border: 1px solid rgba(0, 243, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: 0.4s;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.timeline-content:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.2);
    border-color: var(--primary);
}

.timeline-date {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    display: block;
    font-family: var(--font-code);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.timeline-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.timeline-content p {
    color: var(--text-muted);
}

/* Mobile Timeline */
@media screen and (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item.right {
        left: 0;
    }

    .timeline-item.left .timeline-dot,
    .timeline-item.right .timeline-dot {
        left: 19px;
    }
}

/* Hero Section */
#inicio {
    text-align: center;
    padding-top: 0;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 6s linear;
    transform: scale(1);
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 16, 0.4);
    /* Reduced overlay opacity to show images */
}

.slide.active {
    opacity: 1;
    transform: scale(1.1);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
}

.console-text {
    color: var(--primary);
    display: inline-block;
}

.cursor {
    display: inline-block;
    background-color: var(--primary);
    width: 14px;
    height: 70px;
    vertical-align: middle;
    animation: blink 1s infinite;
    box-shadow: 0 0 10px var(--primary);
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
    font-weight: 300;
}

.hero-cta {
    display: inline-block;
    padding: 1.2rem 4rem;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    text-decoration: none;
    border-radius: 0;
    /* Square buttons for futuristic look */
    font-weight: 700;
    letter-spacing: 2px;
    transition: all 0.3s;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.1);
    text-transform: uppercase;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.hero-cta:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 40px rgba(0, 243, 255, 0.6);
    transform: translateY(-5px);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-img {
    width: 100%;
    height: 450px;
    background: #000;
    border: 2px solid var(--primary);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.2);
    border-radius: 10px;
}

.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.2);
    transition: 0.5s;
    opacity: 0.7;
}

.about-img:hover img {
    filter: grayscale(0%) contrast(1.1);
    opacity: 1;
    transform: scale(1.1);
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* Services Premium Redesign */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.service-card {
    position: relative;
    background: #0a0f1e;
    /* Fallback */
    border-radius: 15px;
    overflow: hidden;
    height: 400px;
    /* Fixed height for uniformity */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.5s ease;
}

.service-card:hover .bg-img {
    transform: scale(1.1);
}

.service-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 243, 255, 0.3);
    border-color: var(--primary);
    z-index: 10;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(5, 5, 16, 0.95) 10%, rgba(5, 5, 16, 0.6) 100%);
    z-index: 1;
    transition: background 0.4s;
}

.service-card:hover .card-overlay {
    background: linear-gradient(to top, rgba(5, 5, 16, 0.95) 20%, rgba(5, 5, 16, 0.3) 100%);
}

.card-content {
    position: relative;
    z-index: 2;
    padding: 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s;
}

.service-card:hover .card-content {
    transform: translateY(-5px);
}

.card-header {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.service-icon {
    font-size: 2rem;
    color: var(--primary);
    background: rgba(0, 243, 255, 0.1);
    padding: 12px;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    transform: rotate(15deg) scale(1.1);
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 25px var(--primary);
}

.service-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.service-card p {
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1.5rem;
}

/* Elegant Tech List */
.tech-list {
    list-style: none;
    padding: 0;
    margin-top: auto;
    /* Push to bottom */
}

.tech-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--primary);
    font-family: var(--font-code);
    font-size: 0.95rem;
    cursor: pointer;
    transition: 0.3s;
    display: table;
    /* Fit content */
}

/* Bullet Style */
.tech-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: #fff;
    transition: 0.3s;
}

.tech-list li:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--primary);
    transform: translateX(5px);
}

.tech-list li:hover::before {
    color: var(--primary);
}

/* Tooltip Logic */
.tech-list li::after {
    content: attr(data-desc);
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 250px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.95);
    color: #000;
    font-family: var(--font-main);
    font-size: 0.85rem;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
    z-index: 10;
}

.tech-list li:hover::after,
.tech-list li.active::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(-10px);
}


/* Publications */
.pub-container {
    display: flex;
    overflow-x: auto;
    gap: 2rem;
    padding: 1rem 0 3rem;
    scrollbar-width: thin;
}

.pub-card {
    min-width: 350px;
    background: rgba(10, 15, 30, 0.8);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

.pub-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
}

.pub-img {
    height: 180px;
    background: #000;
    position: relative;
}

.pub-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.pub-content {
    padding: 2rem;
}

.pub-date {
    font-size: 0.85rem;
    color: var(--primary);
    font-family: var(--font-code);
    margin-bottom: 0.5rem;
    display: block;
}

.pub-title {
    margin: 0.5rem 0;
    font-size: 1.4rem;
    color: #fff;
    line-height: 1.3;
}

/* PDF Preview Styles */
.pdf-preview {
    width: 100%;
    height: 100%;
    display: block;
    /* Changed from flex to block for iframe */
    background: #fff;
    /* White background for document */
    overflow: hidden;
}

.pub-card:hover .pdf-preview {
    transform: scale(1.1);
}

.btn-read {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    text-decoration: none;
    font-family: var(--font-code);
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: 0.3s;
    border-radius: 2px;
}

.btn-read:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 15px var(--primary);
}

/* Gallery Advanced */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-muted);
    padding: 0.8rem 2rem;
    border-radius: 2px;
    cursor: pointer;
    font-family: var(--font-code);
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
    text-shadow: 0 0 10px var(--primary);
}

.gallery-grid-advanced {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    grid-auto-rows: 280px;
    grid-auto-flow: dense;
}

.gallery-item-adv {
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid transparent;
    transition: 0.3s;
}

.gallery-item-adv:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
}

.gallery-item-adv.wide {
    grid-column: span 2;
}

.gallery-item-adv.large {
    grid-row: span 2;
    grid-column: span 2;
}

.gallery-item-adv img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
    filter: brightness(0.8);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 243, 255, 0.1));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
    opacity: 0;
    transition: 0.3s;
    transform: translateY(20px);
}

.gallery-item-adv:hover img {
    transform: scale(1.1);
    filter: brightness(1);
}

.gallery-item-adv:hover .overlay {
    opacity: 1;
    transform: translateY(0);
}

.overlay-content h4 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.4);
}

.overlay-content p {
    color: #e2e8f0;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.btn-view {
    display: inline-block;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.6rem 1.5rem;
    border-radius: 2px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.9rem;
    text-transform: uppercase;
    font-family: var(--font-code);
}

.btn-view:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 15px var(--primary);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 5, 10, 0.95);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background: transparent;
    /* Removed dark background */
    width: 90%;
    max-width: 1100px;
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    border: none;
    /* Removed cyan border */
    box-shadow: none;
    /* Removed glow */
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--text-muted);
    font-size: 40px;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
}

.close-modal:hover {
    color: var(--primary);
    text-shadow: 0 0 15px var(--primary);
}

.modal-body {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    /* Allow scrolling content */
}

.modal-header {
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
    text-align: center;
    flex-shrink: 0;
}

.modal-img-container {
    width: 100%;
    /* Flexible height */
    flex: 1;
    min-height: 300px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 1rem;
}

.modal-img-container img {
    /* Limit image size */
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.modal-footer {
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(10, 15, 30, 0.9));
    border-top: 1px solid rgba(0, 243, 255, 0.2);
    text-align: center;
    flex-shrink: 0;
}

/* Modal Navigation Buttons */
.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    z-index: 1010;
    transition: 0.3s;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-nav:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 15px var(--primary);
}

.modal-nav.prev {
    left: 20px;
}

.modal-nav.next {
    right: 20px;
}

@media screen and (max-width: 768px) {
    .modal-nav {
        padding: 0.5rem;
        font-size: 1.5rem;
        width: 40px;
        height: 40px;
    }

    .modal-nav.prev {
        left: 10px;
    }

    .modal-nav.next {
        right: 10px;
    }
}

#modalTitle {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

#modalDesc {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.modal-tags span {
    display: inline-block;
    background: rgba(0, 243, 255, 0.1);
    padding: 6px 14px;
    border-radius: 2px;
    margin-right: 8px;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: var(--primary);
    border: 1px solid rgba(0, 243, 255, 0.3);
    font-family: var(--font-code);
}

.modal-link {
    display: inline-block;
    margin-top: 3rem;
    color: var(--primary);
    text-decoration: none;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    transition: 0.3s;
}

.modal-link:hover {
    text-shadow: 0 0 15px var(--primary);
    letter-spacing: 2px;
}

/* Contact */
.contact-wrapper {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    background: rgba(10, 15, 30, 0.7);
    padding: 4rem;
    border-radius: 5px;
    border: 1px solid var(--primary);
    box-shadow: 0 0 40px rgba(0, 243, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.contact-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(0, 243, 255, 0.05) 0%, transparent 60%);
    animation: rotate 10s linear infinite;
    z-index: -1;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--primary);
    font-weight: 500;
    font-family: var(--font-code);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    font-size: 1rem;
    color: #fff;
    transition: 0.3s;
    font-family: var(--font-body);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

/* Toggle Switch */
.toggle-group {
    margin-bottom: 2rem;
}

.toggle-container {
    position: relative;
    display: flex;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 30px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 400px;
}

.toggle-container input {
    display: none;
}

.toggle-btn {
    flex: 1;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    z-index: 2;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.3s;
    text-transform: uppercase;
}

.toggle-slider {
    position: absolute;
    top: 5px;
    left: 5px;
    height: calc(100% - 10px);
    width: calc(50% - 5px);
    background: var(--primary);
    border-radius: 25px;
    transition: 0.3s;
    box-shadow: 0 0 10px var(--primary);
    z-index: 1;
}

#type-budget:checked~.toggle-slider {
    left: 50%;
}

#type-normal:checked+label,
#type-budget:checked+label {
    color: #000;
}

/* Captcha */
.captcha-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

#captcha-question {
    margin: 0;
    font-size: 1.1rem;
    color: #fff;
    white-space: nowrap;
}

#captcha-input {
    max-width: 150px;
    font-size: 1.2rem;
    text-align: center;
    letter-spacing: 2px;
}

/* Enhanced Submit Button */
.btn-submit {
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: var(--font-heading);
    box-shadow: 0 5px 20px rgba(0, 243, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-submit:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(189, 0, 255, 0.5);
    letter-spacing: 3px;
}

/* Footer */
footer {
    padding: 4rem 5%;
    text-align: center;
    background: #020205;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 4rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.social-links a {
    color: var(--text-muted);
    font-size: 1.8rem;
    transition: 0.3s;
}

.social-links a:hover {
    color: var(--primary);
    transform: translateY(-5px);
    text-shadow: 0 0 15px var(--primary);
}

footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =========================================
   MOBILE RESPONSIVENESS (PRIORITY)
   ========================================= */

@media screen and (max-width: 992px) {
    .section-title {
        font-size: 2.8rem;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .about-grid {
        gap: 3rem;
    }
}


/* Navigation - Mobile Menu Trigger at 1200px to prevent overflow */
@media screen and (max-width: 1200px) {
    nav {
        padding: 1rem 5%;
        flex-wrap: wrap;
        background: rgba(5, 5, 10, 0.95);
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        gap: 5px;
    }

    .menu-toggle .bar {
        width: 30px;
        height: 3px;
        background-color: var(--primary);
        transition: 0.3s;
    }

    .menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(5, 5, 16, 0.98);
        backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 2rem;
        gap: 2rem;
        border-bottom: 1px solid var(--primary);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        transform: translateY(-150%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        height: auto;
        padding-bottom: 2rem;
        margin-top: 0;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links a {
        display: block;
        font-size: 1.1rem;
        padding: 0.5rem 0;
    }

    .btn-admin {
        margin-top: 1rem;
        display: inline-block;
    }
}

@media screen and (max-width: 1024px) {
    /* (Navigation styles moved to max-width: 1200px block above) */


    /* General Sections */
    section {
        padding: 6rem 5% 3rem;
    }

    .section-title {
        font-size: 2.5rem;
        margin-bottom: 3rem;
    }

    /* Hero Section */
    .hero-content h1 {
        font-size: 2.8rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-cta {
        width: 100%;
        padding: 1rem 2rem;
        text-align: center;
    }

    /* About Section */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-img {
        height: 300px;
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Gallery Advanced */
    .gallery-grid-advanced {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
    }

    .gallery-item-adv.wide,
    .gallery-item-adv.large {
        grid-column: span 1;
        grid-row: span 1;
    }

    .gallery-filters {
        gap: 1rem;
    }

    .filter-btn {
        width: 100%;
        text-align: center;
        padding: 0.6rem;
    }

    /* Modal Mobile */
    .modal-body {
        display: flex;
        flex-direction: column;
        height: 100%;
        overflow-y: auto;
    }

    .modal-img-container {
        flex: 1;
        min-height: 200px;
        background: #000;
        padding: 0.5rem;
        height: auto;
        max-height: none;
    }

    .modal-img-container img {
        object-fit: contain;
        width: 100%;
        height: 100%;
        max-height: 60vh;
    }

    .modal-header,
    .modal-footer {
        padding: 1rem;
        flex-shrink: 0;
    }

    .modal-header h3 {
        font-size: 1.2rem;
        margin: 0;
    }

    .modal-footer p {
        font-size: 0.95rem;
        margin: 0;
    }

    #modalTitle {
        font-size: 1.5rem;
        /* Smaller font */
        margin-bottom: 0.5rem;
    }

    #modalDesc {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        /* Standard property */
        /* Limit lines if description is long */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .modal-tags {
        display: none;
        /* Hide tags on mobile to save space */
    }

    .modal-link {
        margin-top: 1rem;
        font-size: 0.9rem;
    }

    .close-modal {
        top: 10px;
        right: 15px;
        font-size: 30px;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
    }
}

/* Contact Form */
/* 3D Form Flip */
/* NEON GLASS CONTACT DESIGN */
.contact-card-glass {
    background: rgba(10, 15, 30, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 243, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    max-width: 900px;
    margin: 0 auto;
    transition: all 0.3s ease;
    width: 100%;
}

.contact-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.neon-title {
    font-family: var(--font-code);
    color: #fff;
    font-size: 2.5rem;
    text-shadow: 0 0 15px var(--primary);
    margin-bottom: 1rem;
}

/* Neon Tabs */
.neon-tabs {
    display: inline-flex;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.neon-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 12px 30px;
    border-radius: 40px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 500;
    transition: 0.3s;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.neon-tab i {
    font-size: 1.1rem;
}

.neon-tab:hover {
    color: #fff;
}

.neon-tab.active {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 20px var(--primary);
    font-weight: 700;
}

/* Tab Content Animation */
.contact-tab-content {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Specific Field Adjustments */
textarea.form-control {
    resize: none;
}

/* Animations Keyframes */
@keyframes floatCard {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes neonPulse {

    0%,
    100% {
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.5), inset 0 0 0 transparent;
        border-color: rgba(0, 243, 255, 0.1);
    }

    50% {
        box-shadow: 0 0 60px rgba(0, 243, 255, 0.2), inset 0 0 20px rgba(0, 243, 255, 0.05);
        border-color: rgba(0, 243, 255, 0.5);
    }
}

@keyframes inputGlow {
    from {
        box-shadow: 0 0 5px rgba(0, 243, 255, 0.2);
    }

    to {
        box-shadow: 0 0 15px rgba(0, 243, 255, 0.6);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-card-glass {
    /* Existing Base Styles Apply */
    animation: neonPulse 4s infinite ease-in-out;
    /* Continuous breathing effect */
    /* Float animation is optional, maybe too much movement. Sticking to Glow Pulse. */
}

/* Enhanced Input Focus */
.form-control:focus {
    animation: inputGlow 1.5s infinite alternate;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
}

/* Scroll Entrance Class (Added via JS) */
.animate-entrance {
    animation: fadeInUp 1s ease-out forwards;
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .contact-card-glass {
        padding: 1.5rem;
        border-radius: 15px;
    }

    .neon-title {
        font-size: 2rem;
    }

    .neon-tabs {
        width: 100%;
        display: flex;
    }

    .neon-tab {
        flex: 1;
        justify-content: center;
        padding: 10px;
        font-size: 0.9rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* Elegant Neon Submit Button */
.btn-neon-submit {
    width: 100%;
    padding: 15px;
    margin-top: 1.5rem;
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.1), rgba(189, 0, 255, 0.1));
    border: 1px solid var(--primary);
    border-radius: 50px;
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-neon-submit i {
    font-size: 1.3rem;
    transition: transform 0.4s ease;
}

.btn-neon-submit:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-neon-submit:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 40px var(--primary);
    transform: translateY(-3px);
    border-color: transparent;
}

.btn-neon-submit:hover i {
    transform: scale(1.2) rotate(15deg);
}

.btn-neon-submit:hover:before {
    left: 100%;
}

.btn-neon-submit:active {
    transform: translateY(-1px);
    box-shadow: 0 0 20px var(--primary);
}

/* Responsive Adjustments End */

@media screen and (max-width: 400px) {
    .face-title {
        font-size: 1.15rem !important;
        /* Even smaller for very narrow screens */
    }

    .form-face {
        padding: 1rem !important;
    }
}

@media screen and (max-width: 480px) {
    .section-title {
        font-size: 2rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .logo {
        font-size: 1.5rem;
    }
}

/* =========================================
   ADVANCED FEATURES (TECH)
   ========================================= */

/* 1. Particle Canvas */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: var(--bg-dark);
}

/* 2. 3D Carousel (Coverflow) */
.carousel-3d-container {
    perspective: 1000px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 50px 0;
}

.carousel-3d {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 450px;
    position: relative;
    transform-style: preserve-3d;
}

.carousel-item {
    position: absolute;
    width: 350px;
    height: 100%;
    transition: all 0.5s ease;
    opacity: 0.5;
    z-index: 0;
    transform: scale(0.8) translateY(0);
    /* Override grid styles if any */
    background: rgba(10, 15, 30, 0.9);
    backdrop-filter: blur(10px);
}

.carousel-item.active {
    opacity: 1;
    z-index: 10;
    transform: translateX(0) scale(1.1) translateZ(50px);
    box-shadow: 0 0 50px rgba(0, 243, 255, 0.4);
    border: 2px solid var(--primary);
}

.carousel-item.prev {
    transform: translateX(-350px) scale(0.9) rotateY(15deg);
    opacity: 0.7;
    z-index: 5;
}

.carousel-item.next {
    transform: translateX(350px) scale(0.9) rotateY(-15deg);
    opacity: 0.7;
    z-index: 5;
}

.carousel-item.left {
    transform: translateX(-700px) scale(0.7) rotateY(25deg);
    opacity: 0;
}

.carousel-item.right {
    transform: translateX(700px) scale(0.7) rotateY(-25deg);
    opacity: 0;
}

.carousel-controls {
    text-align: center;
    margin-top: 2rem;
}

.carousel-controls button {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s;
    margin: 0 10px;
}

.carousel-controls button:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 20px var(--primary);
}

/* 3. WhatsApp Float Button (As Badge) */
/* Moved inside Chatbot Widget */

/* 4. Matrix Mode (Easter Egg) */
body.matrix-mode {
    /* ... (keep as is) ... */
    --primary: #0f0;
    /* ... */
}

/* ... */

/* 5. Chatbot Widget */
.chatbot-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    /* Primary Position */
    z-index: 2000;
    font-family: var(--font-body);
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 243, 255, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    /* Context for badge */
}

.whatsapp-float.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 25px;
    height: 25px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 2002;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 2px solid var(--bg-dark);
    /* Contrast border */
    animation: none;
    /* No pulse for badge */
}

.whatsapp-float.badge:hover {
    transform: scale(1.2);
}

.chat-window {
    right: 0;
    bottom: 80px;
}

/* 4. Matrix Mode (Easter Egg) */
body.matrix-mode {
    --primary: #0f0;
    --secondary: #003300;
    --bg-dark: #000;
    --text-main: #0f0;
    --text-muted: #0a0;
    font-family: 'Fira Code', monospace !important;
}

body.matrix-mode * {
    font-family: 'Fira Code', monospace !important;
    border-radius: 0 !important;
    text-shadow: 0 0 5px #0f0;
}

body.matrix-mode nav,
body.matrix-mode .service-card,
body.matrix-mode .modal-content,
body.matrix-mode .pub-card {
    background: #000;
    border: 1px solid #0f0;
}

body.matrix-mode .overlay {
    background: rgba(0, 20, 0, 0.9);
}

/* Mobile Adjustments for Carousel */
@media screen and (max-width: 768px) {
    .carousel-item {
        width: 280px;
        height: 400px;
    }

    .carousel-item.prev {
        transform: translateX(-150px) scale(0.8) rotateY(15deg);
        opacity: 0.5;
    }

    .carousel-item.next {
        transform: translateX(150px) scale(0.8) rotateY(-15deg);
        opacity: 0.5;
    }
}

/* 5. Chatbot Widget */
.chatbot-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    /* Main FAB Position */
    z-index: 2000;
    font-family: var(--font-body);
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 243, 255, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    /* Anchor for badge */
}

/* WhatsApp Badge Style */
.whatsapp-badge-icon {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 24px;
    height: 24px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--bg-dark);
    /* Contrast ring */
    text-decoration: none;
    z-index: 2002;
    transition: transform 0.2s;
}

.whatsapp-badge-icon:hover {
    transform: scale(1.1);
    background-color: #128c7e;
}

.chatbot-toggle:hover {
    transform: scale(1.05);
    /* Slight grow */
    box-shadow: 0 0 30px rgba(189, 0, 255, 0.6);
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 450px;
    background: rgba(10, 15, 30, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(0, 243, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    transform: scale(0);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    z-index: 2001;
}

.chat-window.active {
    transform: scale(1);
    opacity: 1;
    pointer-events: all;
}

/* Chat Header */
.chat-header {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.1), rgba(189, 0, 255, 0.1));
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bot-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bot-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 20px;
    box-shadow: 0 0 10px var(--primary);
}

.bot-text h4 {
    font-size: 1rem;
    margin: 0;
    color: #fff;
    font-weight: 600;
}

.bot-text p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #00ff9d;
    border-radius: 50%;
    margin-right: 4px;
    box-shadow: 0 0 5px #00ff9d;
}

#close-chat {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s;
}

#close-chat:hover {
    color: #fff;
    transform: rotate(90deg);
}

/* Chat Body */
.chat-body {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: rgba(5, 10, 20, 0.6);
}

.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 0.9rem;
    line-height: 1.4;
    animation: messageAppear 0.3s ease forwards;
}

@keyframes messageAppear {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.bot {
    background: rgba(0, 243, 255, 0.1);
    color: #e2e8f0;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
    border: 1px solid rgba(0, 243, 255, 0.2);
}

.message.user {
    background: linear-gradient(135deg, rgba(189, 0, 255, 0.2), rgba(0, 243, 255, 0.2));
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
    border: 1px solid rgba(189, 0, 255, 0.3);
}

/* Chat Footer */
.chat-footer {
    padding: 1rem;
    background: rgba(10, 15, 30, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 10px;
}

#chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 10px 15px;
    color: #fff;
    font-family: var(--font-body);
    outline: none;
    transition: 0.3s;
}

#chat-input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
}

#send-btn {
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s;
    padding: 0 5px;
}

#send-btn:hover {
    color: var(--secondary);
    transform: scale(1.1);
}

/* Media Queries for Chatbot */
@media screen and (max-width: 480px) {
    .chatbot-widget {
        right: 20px;
        bottom: 90px;
    }

    .whatsapp-float {
        right: 20px;
        bottom: 20px;
    }

    .chat-window {
        width: 300px;
        right: -10px;
    }
}

/* Hide social icons smoothly when chat is open to prevent overlap */
.chat-window.active ~ /* Floating Social Media Icons */
.social-float-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    position: absolute;
    bottom: 70px;
    right: 17px;
    z-index: 1900;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.social-float-icon {
    width: 40px;
    height: 40px;
    background: rgba(10, 15, 30, 0.9);
    border: 1px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.social-float-icon:hover {
    transform: scale(1.15);
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 15px var(--primary);
}

/* Dynamic Hover Color (Database Driven) */
.social-float-icon.dynamic:hover {
    background: var(--social-color);
    border-color: var(--social-color);
    box-shadow: 0 0 15px var(--social-color);
    color: #fff;
}

/* Chatbot Fixes */
.message {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

.message a {
    color: var(--primary);
    text-decoration: underline;
    word-break: break-all;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: var(--primary);
    cursor: pointer;
    transition: 0.3s;
    z-index: 2001;
}

.lightbox-close:hover {
    color: #fff;
    transform: rotate(90deg);
    text-shadow: 0 0 20px var(--primary);
}

/* Cursor pointer for about image */
.about-img img {
    cursor: pointer;
}

/* Map Responsiveness */
.map-iframe-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .map-container {
        padding: 0 !important;
    }

    .map-iframe-container {
        padding-bottom: 130%;
        border-radius: 0;
    }
}

/* Fix for Intl-Tel-Input in Dark/Modal Context */
.iti {
    width: 100%;
    color: var(--text-main);
}

.iti__country-list {
    z-index: 99999 !important;
    background-color: var(--bg-dark) !important;
    /* Dark Background */
    border: 1px solid var(--primary);
    /* Neon Border */
    color: var(--text-main);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
}

.iti__country {
    padding: 10px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.iti__country:hover,
.iti__country.iti__highlight {
    background-color: rgba(0, 243, 255, 0.2) !important;
    /* Hover Neon */
}

/* Ensure the input itself has correct text color */
#budget-phone {
    padding-left: 50px !important;
    color: var(--text-main) !important;
    /* White text */
    background: rgba(0, 0, 0, 0.5) !important;
    /* Dark background like other inputs */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

/* Intl-Tel-Input Overrides for Dark Theme Visibility */
.iti {
    width: 100%;
    display: block !important;
    margin-bottom: 0px;
}

/* Ensure input text is visible (Dark Theme adaptation) */
.iti__tel-input {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #fff !important;
    border: 1px solid rgba(0, 243, 255, 0.3) !important;
    width: 100% !important;
}

/* Fix Dropdown Visibility against Dark Background */
.iti__dropdown-content {
    background-color: #0a0f1e !important;
    border: 1px solid var(--primary) !important;
    color: #fff !important;
    z-index: 9999 !important;
    /* Extremely high z-index */
}

/* Country List Item Hover */
.iti__country:hover,
.iti__country.iti__highlight {
    background-color: rgba(0, 243, 255, 0.1) !important;
}

/* Search input in dropdown */
.iti__search-input {
    background-color: #050510 !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Text Colors in Dropdown */
.iti__country-name,
.iti__dial-code {
    color: #e2e8f0 !important;
}

/* Ensure flag container is on top */
.iti__flag-container {
    z-index: 20 !important;
}


/* Fix for Select Inputs in Dark Theme */
select.form-control {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #fff !important;
    border: 1px solid rgba(0, 243, 255, 0.3) !important;
}

select.form-control:focus {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
}

/* Style Options for better visibility */
select.form-control option {
    background-color: #050510;
    /* Dark background for dropdown */
    color: #fff;
    padding: 10px;
}


/* Fix for Contact Wrapper Padding on Mobile */
@media screen and (max-width: 768px) {
    .contact-wrapper {
        padding: 1rem !important;
    }
}

/* Floating Social Media Icons */
.social-float-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    /* Space between icons and chatbot toggle */
    position: absolute;
    bottom: 70px;
    /* Start above the chatbot button */
    right: 17px;
    /* Center with the chatbot button (60px width -> center approx) */
    z-index: 1900;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.social-float-icon {
    width: 40px;
    height: 40px;
    background: rgba(10, 15, 30, 0.9);
    border: 1px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.social-float-icon:hover {
    transform: scale(1.15);
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 15px var(--primary);
}

/* Brand Specific Hover Colors (Optional override) */
.social-float-icon.facebook:hover {
    background: #1877F2;
    border-color: #1877F2;
    box-shadow: 0 0 15px #1877F2;
    color: #fff;
}

.social-float-icon.tiktok:hover {
    background: #000000;
    border-color: #ff0050;
    box-shadow: 0 0 15px #ff0050;
    color: #fff;
}

.social-float-icon.youtube:hover {
    background: #FF0000;
    border-color: #FF0000;
    box-shadow: 0 0 15px #FF0000;
    color: #fff;
}

/* Dynamic Hover Color (Database Driven) */
.social-float-icon.dynamic:hover {
    background: var(--social-color);
    border-color: var(--social-color);
    box-shadow: 0 0 15px var(--social-color);
    color: #fff;
}

/* Hide on very small screens if needed, or adjust */
/* Chatbot Fixes */
.message {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

.message a {
    color: var(--primary);
    text-decoration: underline;
    word-break: break-all;
}

/* =========================================
   WHATSAPP CONTACT FORM WINDOW
   ========================================= */
.wa-form-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 340px;
    background: rgba(10, 15, 30, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(37, 211, 102, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    transform: scale(0);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    z-index: 2001;
}

.wa-form-window.active {
    transform: scale(1);
    opacity: 1;
    pointer-events: all;
}

/* Hide social icons when WA form is open */
.wa-form-window.active ~ .social-float-container {
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
}

/* WhatsApp Form Header */
.wa-form-header {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.2), rgba(18, 140, 126, 0.2));
    border-bottom: 1px solid rgba(37, 211, 102, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wa-form-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wa-form-avatar {
    width: 40px;
    height: 40px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    box-shadow: 0 0 10px rgba(37, 211, 102, 0.5);
}

.wa-form-header h4 {
    font-size: 1rem;
    margin: 0;
    color: #fff;
    font-weight: 600;
}

.wa-form-header p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

#close-wa-form {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s;
    padding: 5px;
}

#close-wa-form:hover {
    color: #fff;
    transform: rotate(90deg);
}

/* WhatsApp Form Body */
.wa-form-body {
    padding: 1.2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.wa-form-intro {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin: 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.wa-form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wa-form-group label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.wa-form-group label i {
    color: #25d366;
    margin-right: 4px;
    font-size: 0.75rem;
}

.wa-form-group input,
.wa-form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px 14px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s, background 0.3s;
    resize: none;
}

.wa-form-group input:focus,
.wa-form-group textarea:focus {
    border-color: #25d366;
    background: rgba(37, 211, 102, 0.05);
}

.wa-form-group input::placeholder,
.wa-form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.wa-form-group input.wa-error,
.wa-form-group textarea.wa-error {
    border-color: #ff4444;
    animation: waShake 0.4s ease;
}

@keyframes waShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Submit Button */
.wa-submit-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    margin-top: 0.3rem;
}

.wa-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    background: linear-gradient(135deg, #2be672, #25d366);
}

.wa-submit-btn:active {
    transform: translateY(0);
}

.wa-submit-btn i {
    font-size: 1.2rem;
}

/* WhatsApp badge as button reset */
button.whatsapp-badge-icon {
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}

/* Mobile Responsive for WA Form */
@media screen and (max-width: 480px) {
    .wa-form-window {
        width: calc(100vw - 40px);
        max-width: 340px;
        right: 20px;
        bottom: 80px;
    }
}
