/* Variables & Theme */
:root {
    --bg-dark: #0a0a0b;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.05);

    --text-main: #ffffff;
    --text-muted: #8b8b93;

    --primary: #01acec;
    /* Deep violet */
    --primary-glow: rgba(1, 172, 236, 0.4);
    --secondary: #00d2ff;
    /* Cyan accent */

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition: all 0.3s ease;

    /* Used for elements that should change logic on light theme */
    --border-color: rgba(255, 255, 255, 0.05);
    --input-bg: rgba(0, 0, 0, 0.5);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --nav-bg: rgba(10, 10, 11, 0.8);
    --nav-bg-scrolled: rgba(10, 10, 11, 0.98);
    --nav-shadow-scrolled: rgba(0, 0, 0, 0.5);
    --img-placeholder-bg: #111;
    --img-placeholder-color: #333;
    --text-gradient-fallback: #fff;
    --alternate-bg: rgba(255, 255, 255, 0.02);
}

:root.light-theme {
    --bg-dark: #f8f9fa;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f4f8;

    --text-main: #1a1a1a;
    --text-muted: #5a5a64;

    --primary: #01acec;
    --primary-glow: rgba(1, 172, 236, 0.3);
    --secondary: #007bb5;

    --border-color: rgba(0, 0, 0, 0.1);
    --input-bg: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --nav-bg: rgba(255, 255, 255, 0.9);
    --nav-bg-scrolled: rgba(255, 255, 255, 0.98);
    --nav-shadow-scrolled: rgba(0, 0, 0, 0.1);
    --img-placeholder-bg: #e9ecef;
    --img-placeholder-color: #adb5bd;
    --text-gradient-fallback: #333;
    --alternate-bg: rgba(0, 0, 0, 0.03);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

section,
footer {
    position: relative;
    z-index: 2;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.text-gradient {
    color: var(--text-gradient-fallback);
    display: inline-block;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.navbar.scrolled {
    background: var(--nav-bg-scrolled);
    box-shadow: 0 4px 30px var(--nav-shadow-scrolled);
    padding: 1rem 0;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--secondary);
}

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

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    /* Increased from 500 for better readability */
    opacity: 0.85;
    /* Soften slightly without losing contrast */
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
    opacity: 1;
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition);
}

@media (max-width: 900px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--nav-bg-scrolled);
        backdrop-filter: blur(12px);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1.5rem;
        box-shadow: 0 4px 30px var(--nav-shadow-scrolled);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        /* Hidden by default */
        transition: clip-path 0.3s ease-in-out;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        /* expanded */
    }

    .nav-links a {
        font-size: 1.2rem;
    }
}


/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-family: var(--font-heading);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border: 1px solid transparent;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    background: #4a12ba;
    box-shadow: 0 6px 20px var(--primary-glow);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: var(--border-color);
    color: var(--primary);
}

/* Hero Section */
.hero {
    padding: 12rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(1, 172, 236, 0.15);
    color: var(--secondary);
    border: 1px solid rgba(1, 172, 236, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    /* Extra bold for main title */
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Abstract AI Tech Graphics */
.hero-graphics {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-graphics img {
    animation: float 6s ease-in-out infinite;
}

.glow-orb {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    filter: blur(60px);
    opacity: 0.5;
    animation: pulse 4s infinite alternate;
}

.glass-card {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    z-index: 10;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(20px);
    animation: float 6s ease-in-out infinite;
}

.glass-card i {
    font-size: 3rem;
    color: var(--secondary);
}

.glass-card p {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }

    100% {
        transform: scale(1.1);
        opacity: 0.7;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero p {
        margin: 0 auto 2.5rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero h1 {
        font-size: 3rem;
    }
}

/* --- ADDED SECTIONS CSS --- */

.section-pad {
    padding: 100px 0;
}

.bg-alternate {
    background: var(--alternate-bg);
}

.text-center {
    text-align: center;
}

.section-title {
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

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

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    border-radius: 12px;
    transition: var(--transition);
}

.service-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
    border-color: rgba(1, 172, 236, 0.3);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

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

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

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

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.project-card:hover {
    transform: scale(1.05);
    /* Make it bigger instead of just moving up */
    border-color: var(--border-color);
    /* Maintain default border color */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    /* Add shadow for depth instead */
    z-index: 2;
    /* Ensure it overlaps siblings while hovered */
}

.project-img {
    aspect-ratio: 4 / 3;
    width: 100%;
    background: var(--img-placeholder-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-img .img-placeholder i {
    font-size: 3rem;
    color: var(--img-placeholder-color);
}

.project-info {
    padding: 30px;
}

.project-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.project-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.btn-link {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-link:hover {
    color: #fff;
    gap: 12px;
}

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

.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
}

.team-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
}

.team-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    background: var(--img-placeholder-bg);
    border: 3px solid var(--border-color);
}

.team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-info h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.team-info .role {
    color: var(--secondary);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.team-info a {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: var(--transition);
}

.team-info a:hover {
    color: #0077b5;
    /* LinkedIn Color */
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact-text h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.contact-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.contact-info i {
    color: var(--secondary);
    font-size: 1.3rem;
}

.glass-form {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 16px;
}

.w-full {
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-glow);
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    padding: 40px;
    border: 1px dashed var(--border-color);
    border-radius: 8px;
}

.footer {
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}

/* Particles Background */
#particles-js {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: 0;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: #fff;
}