:root {
    --primary: #00f2ff;
    --secondary: #7000ff;
    --accent: #ff00d4;
    --bg-dark: #050505;
    --bg-card: rgba(255, 255, 255, 0.03);
    --text-main: #ffffff;
    --text-dim: #b0b0b0;
    --glass-border: rgba(255, 255, 255, 0.08);
    --gradient-main: linear-gradient(135deg, var(--primary), var(--secondary));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.7;
}

/* Background Glow Orbs */
body::before, body::after {
    content: '';
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -2;
    opacity: 0.15;
    pointer-events: none;
}

body::before {
    top: -100px;
    left: -100px;
    background: var(--primary);
    animation: moveOrb 20s infinite alternate;
}

body::after {
    bottom: -100px;
    right: -100px;
    background: var(--secondary);
    animation: moveOrb 25s infinite alternate-reverse;
}

@keyframes moveOrb {
    from { transform: translate(0, 0); }
    to { transform: translate(100px, 100px); }
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

.glass {
    background: var(--bg-card);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass:hover {
    border-color: rgba(0, 242, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transform: translateY(-5px);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 25px 0;
    z-index: 1000;
    transition: 0.4s;
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--primary);
    box-shadow: 0 4px 20px rgba(0, 242, 255, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 45px;
    width: 45px;
    object-fit: cover;
    border-radius: 50%; /* Circular Logo */
    border: 2px solid var(--primary);
    filter: drop-shadow(0 0 10px rgba(0, 242, 255, 0.3));
    transition: 0.4s;
}

.logo:hover .logo-img {
    transform: rotate(360deg);
    border-color: var(--secondary);
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: var(--gradient-main);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 500;
    font-size: 0.95rem;
    transition: 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: 0.3s;
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: radial-gradient(circle at center, rgba(112, 0, 255, 0.1) 0%, transparent 70%);
}

.hero-logo-img {
    height: 140px;
    width: 140px;
    object-fit: cover;
    border-radius: 50%; /* Circular Hero Logo */
    margin-bottom: 30px;
    border: 3px solid var(--primary);
    filter: drop-shadow(0 0 30px rgba(0, 242, 255, 0.5));
    animation: float 6s ease-in-out infinite;
}

.glitch-text {
    font-size: 6rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 20px;
    background: linear-gradient(to bottom, #fff, #888);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -2px;
}

.typing-text {
    font-size: 1.4rem;
    color: var(--text-dim);
    margin-bottom: 40px;
    font-weight: 300;
    letter-spacing: 1px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    padding: 16px 35px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    cursor: pointer;
    border: none;
}

.btn-glow {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 10px 30px rgba(112, 0, 255, 0.3);
}

.btn-glow:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(112, 0, 255, 0.5);
}

.btn-outline {
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: var(--text-main);
    color: var(--bg-dark);
}

/* Sections */
.section {
    padding: 140px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.subtitle {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.8rem;
    font-weight: 800;
    display: block;
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.about-text {
    padding: 60px;
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--text-dim);
}

.about-text strong {
    color: var(--text-main);
}

.tech-graphic {
    height: 400px;
    background: url('assets/tech_graphic.png') center/cover no-repeat;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.2);
    animation: float 8s ease-in-out infinite;
}

.tech-graphic::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--bg-dark), transparent);
    opacity: 0.4;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    padding: 50px 40px;
    text-align: left;
}

.service-card .icon {
    font-size: 2.5rem;
    margin-bottom: 25px;
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: var(--primary);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-dim);
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.team-card {
    padding: 40px;
    text-align: center;
}

.member-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin: 0 auto 25px;
    padding: 10px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
}

.member-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.team-card h3 {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.role {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.portfolio-item {
    height: 350px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(5, 5, 5, 0.9) 0%, transparent 100%);
}

.item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    transform: translateY(20px);
    transition: 0.4s;
    opacity: 0.8;
}

.portfolio-item:hover .item-info {
    transform: translateY(0);
    opacity: 1;
}

/* Why Choose Us */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 24px;
}

.feature-item .dot {
    width: 12px;
    height: 12px;
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary);
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
    padding: 80px;
}

.btn-whatsapp {
    background: #25d366;
    color: white;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
}

.contact-form input, .contact-form textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    font-size: 1rem;
    transition: 0.3s;
}

.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.06);
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.02); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 1024px) {
    .glitch-text { font-size: 4rem; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .nav-links { display: none; }
    .features-grid { grid-template-columns: 1fr; }
}

/* Chat Widget Styles */
.chat-trigger {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--gradient-main);
    padding: 12px 25px;
    border-radius: 50px;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 10px 30px rgba(112, 0, 255, 0.4);
    transition: 0.3s;
}

.chat-trigger:hover {
    transform: scale(1.05) translateY(-5px);
}

.chat-widget {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 500px;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    display: none;
    flex-direction: column;
    z-index: 1001;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.chat-header {
    background: var(--gradient-main);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

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

.bot-avatar {
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.bot-info h4 { margin: 0; font-size: 1rem; }
.bot-info span { font-size: 0.75rem; opacity: 0.8; }

.close-chat {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    padding: 12px 18px;
    border-radius: 18px;
    max-width: 80%;
    font-size: 0.9rem;
}

.chat-widget {
    direction: rtl; /* RTL Support */
}

.chat-header {
    flex-direction: row-reverse;
}

.quick-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.quick-buttons button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.3s;
}

.quick-buttons button:hover {
    background: var(--primary);
    color: var(--bg-dark);
    border-color: var(--primary);
}

.message.bot {
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 2px;
    background: rgba(255, 255, 255, 0.08);
}

.message.user {
    border-bottom-right-radius: 18px;
    border-bottom-left-radius: 2px;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 10px;
    opacity: 0.7;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

/* Stats Section */
.stats-section {
    padding: 60px 0;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    gap: 20px;
}

.stat-item h3 {
    font-size: 3rem;
    background: var(--gradient-main);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.stat-item p {
    color: var(--text-dim);
    font-size: 1.1rem;
    font-weight: 500;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.testimonial-card {
    padding: 40px;
    position: relative;
}

.testimonial-card p {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: var(--text-dim);
}

.client-info {
    display: flex;
    flex-direction: column;
}

.client-info strong {
    color: var(--primary);
    font-size: 1.1rem;
}

.client-info span {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Portfolio Adjustments */
.portfolio-item {
    background-size: cover;
    background-position: center;
    transition: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item:hover {
    transform: scale(1.02) rotate(1deg);
}

.portfolio-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    opacity: 0.7;
    transition: 0.4s;
}

.portfolio-item:hover::after {
    opacity: 0.9;
}

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.chat-footer {
    padding: 15px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 10px;
}

.chat-footer input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 10px 15px;
    border-radius: 50px;
    color: white;
    outline: none;
}

.chat-footer button {
    background: var(--gradient-main);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
}
