/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #e2e8f0;
    background-color: #0f172a;
    overflow-x: hidden;
    position: relative;
    /* Needed for canvas layering */
}

/* --- PARTICLE CANVAS --- */
#canvas1 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Behind everything */
    background: radial-gradient(circle at center, #1e293b, #0f172a);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Reusable Classes */
.container {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

/* Adjusting the top section since About is now first */
.first-section {
    padding-top: 140px;
    /* Account for navbar height + spacing */
    padding-bottom: 60px;
    background: transparent;
    /* Show particles behind */
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #f8fafc;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    color: #94a3b8;
    margin-bottom: 60px;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-primary {
    display: inline-block;
    padding: 14px 35px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: 600;
    margin-top: 20px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    flex-direction: column;
    /* Stacks name and reg number */
    justify-content: center;
    z-index: 1001;
    cursor: default;
}

.logo-main {
    font-size: 1.4rem;
    /* Slightly smaller to accommodate long name */
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    line-height: 1.1;
    text-transform: uppercase;
}

.logo-reg {
    font-size: 0.75rem;
    /* Small and subtle */
    color: #94a3b8;
    /* Muted slate color */
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 35px;
}

.nav-links a {
    color: #cbd5e1;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #3b82f6;
}

.btn-contact {
    border: 1px solid #3b82f6;
    padding: 10px 25px;
    border-radius: 50px;
    color: #3b82f6 !important;
    transition: all 0.3s ease;
}

.btn-contact:hover {
    background: #3b82f6;
    color: #fff !important;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

/* Burger */
.burger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.burger div {
    width: 25px;
    height: 2px;
    background-color: #fff;
    margin: 6px;
    transition: all 0.3s ease;
}

/* --- MODIFIED HERO SLIDER --- */
header {
    /* Reduced height to make it not take full screen immediately */
    height: 65vh;
    min-height: 400px;
    position: relative;
    overflow: hidden;
    margin-bottom: 50px;
    /* Space after slider */
}

.slider-container {
    height: 100%;
    position: relative;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    z-index: -1;
}

.hero-content {
    text-align: center;
    color: #fff;
    z-index: 2;
    padding: 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px auto;
    color: #cbd5e1;
}

.dots-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: #3b82f6;
    box-shadow: 0 0 10px #3b82f6;
    transform: scale(1.2);
}

/* About Text */
.about-text p {
    color: #cbd5e1;
    margin-bottom: 20px;
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.about-text strong {
    color: #3b82f6;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: rgba(30, 41, 59, 0.6);
    /* Transparent for particles */
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: #3b82f6;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.icon-wrapper {
    font-size: 2.5rem;
    color: #3b82f6;
    margin-bottom: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    transition: all 0.4s ease;
}

.service-card:hover .icon-wrapper {
    background: #3b82f6;
    color: #fff;
    box-shadow: 0 0 20px #3b82f6;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #fff;
}

.service-card p {
    color: #94a3b8;
    font-size: 0.95rem;
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.portfolio-item {
    background: rgba(30, 41, 59, 0.8);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    border-color: #3b82f6;
}

.portfolio-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: -webkit-linear-gradient(#3b82f6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.portfolio-item h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #fff;
}

.portfolio-item p {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Contact */
.footer-section {
    background: rgba(2, 6, 23, 0.95);
    border-top: 1px solid #1e293b;
}

.contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
}

.contact-info,
.contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #fff;
}

.contact-info ul li {
    margin-bottom: 15px;
    color: #cbd5e1;
}

.contact-form {
    background: #1e293b;
    padding: 40px;
    border-radius: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #334155;
    background: #0f172a;
    color: #fff;
    font-family: inherit;
}

.copyright {
    text-align: center;
    border-top: 1px solid #1e293b;
    padding-top: 30px;
    margin-top: 50px;
    font-size: 0.9rem;
    color: #64748b;
}

/* --- FLOATING WIDGET (WhatsApp + ScrollUp) --- */
.floating-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 2000;
}

/* WhatsApp Button */
.whatsapp-btn {
    display: flex;
    align-items: center;
    background-color: #25D366;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-btn i {
    font-size: 1.5rem;
    margin-right: 10px;
}

.whatsapp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Scroll Top Button */
.scroll-top-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #3b82f6;
    color: white;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;

    /* Hidden by default, shown via JS */
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

.scroll-top-btn.show {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: #2563eb;
    transform: translateY(-3px);
}

/* --- CONTACT LINKS & MAP --- */

/* Clickable Phone & Email Styling */
.contact-link {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.contact-link:hover {
    color: #3b82f6;
    /* Brand Blue */
    transform: translateX(5px);
    /* Subtle slide effect */
}

/* Map Container Styling */
.map-container {
    margin-top: 30px;
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    /* Rounds the corners of the map */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-container iframe {
    display: block;
    /* Removes bottom spacing bug */
    filter: invert(90%) hue-rotate(180deg);
    /* Optional: Makes map look "Dark Mode" */
}

/* Mobile */
@media (max-width: 480px) {
    .logo-main {
        font-size: 1.1rem;
    }

    .logo-reg {
        font-size: 0.65rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: 0px;
        height: 100vh;
        top: 0;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(15px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 75%;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    }

    .nav-active {
        transform: translateX(0%);
    }

    .nav-links li {
        margin: 25px 0;
        margin-left: 0;
    }

    .burger {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    /* Adjust Widget for mobile */
    .floating-widget {
        bottom: 20px;
        right: 20px;
        flex-direction: column-reverse;
        /* Stack arrow on top of whatsapp if needed, or keep row */
        align-items: flex-end;
    }

    .whatsapp-btn span {
        display: none;
        /* Hide text on very small screens if needed, or keep it */
    }

    /* Show text on mobile but maybe smaller font */
    .whatsapp-btn span {
        display: inline-block;
        font-size: 0.9rem;
    }
}