:root {
    --bg-color: #1c212c;
    --surface-color: rgba(255, 255, 255, 0.05);
    --surface-border: rgba(255, 255, 255, 0.1);
    --text-primary: #fcfcfc;
    --text-secondary: #b1b8c4;
    --primary-color: #3f51b5; /* Standard fallback */
    --gradient-1: #4158D0;
    --gradient-2: #C850C0;
    --gradient-3: #FFCC70;
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    padding: 0 5%;
}

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

.w-100 {
    width: 100%;
}

/* Glassmorphism utility */
.glass-panel {
    background: var(--surface-color);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--surface-border);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Gradients */
.gradient-text {
    background: linear-gradient(43deg, var(--gradient-1) 0%, var(--gradient-2) 46%, var(--gradient-3) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(43deg, var(--gradient-1) 0%, var(--gradient-2) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(200, 80, 192, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 80, 192, 0.5);
    background: linear-gradient(43deg, var(--gradient-2) 0%, var(--gradient-1) 100%);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    z-index: 1000;
    transition: all 0.3s ease;
    background: rgba(28, 33, 44, 0.7); /* ensure pages have visible nav */
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    background: rgba(28, 33, 44, 0.95);
    padding: 1rem 5%;
    border-bottom: 1px solid var(--surface-border);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

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

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

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

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(90deg, var(--gradient-1), var(--gradient-2));
    transition: width 0.3s ease;
}

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

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease;
    background-color: var(--text-primary);
}

/* Page Layout */
.page-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-section {
    padding-top: 150px;
    padding-bottom: 6rem;
    flex-grow: 1;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0; 
    /* The opacity handles the fade-in initially being hidden */
}

/* Hero Carousel Section */
.hero-carousel {
    flex-grow: 1;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: linear-gradient(135deg, rgba(28, 33, 44, 0.98) 0%, rgba(28, 33, 44, 0.6) 50%, rgba(28, 33, 44, 0.98) 100%), 
                url('https://images.unsplash.com/photo-1550751827-4bd374c3f58b?q=80&w=2070&auto=format&fit=crop') center/cover no-repeat fixed;
}

.carousel-inner {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
}

.carousel-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
    padding: 0 1rem;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
}

.carousel-slide .hero-content {
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out 0.3s, transform 0.8s ease-out 0.3s;
}

.carousel-slide.active .hero-content {
    opacity: 1;
    transform: translateY(0);
}

.hero-carousel h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-carousel p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 5;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(65, 88, 208, 0.4);
}

.prev-btn { left: 2rem; }
.next-btn { right: 2rem; }

.carousel-dots {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 5;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--gradient-1); /* #4158D0 */
    box-shadow: 0 0 10px rgba(65, 88, 208, 0.6);
    transform: scale(1.3);
}

.hero-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(200,80,192,0.15) 0%, rgba(65,88,208,0) 70%);
    z-index: 1;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(60px);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.features {
    list-style: none;
    line-height: 2;
}

.features li {
    font-weight: 600;
    color: var(--text-primary);
}

.about-image-placeholder {
    height: 100%;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
    position: relative;
    overflow: hidden;
}

.about-image-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(200,80,192,0.1) 0%, rgba(0,0,0,0) 60%);
    animation: rotate 20s linear infinite;
}

/* Services */
.services h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 950px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    transition: transform 0.3s ease, background 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
}

.service-card .icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1;
}

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

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

.service-card {
    display: flex;
    flex-direction: column;
}

.read-more-link {
    display: inline-block;
    margin-top: auto;
    padding-top: 1.5rem;
    color: var(--gradient-1);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.read-more-link:hover {
    color: var(--gradient-2);
}

.no-style-link {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.no-style-link:hover {
    opacity: 0.8;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.info-item {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--surface-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--gradient-2);
}

/* Footer Styles */
.footer {
    background: rgba(28, 33, 44, 0.95);
    border-top: 1px solid var(--surface-border);
    padding: 5rem 0 2rem;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

/* Subtle glow behind footer */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gradient-2), transparent);
    opacity: 0.5;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid var(--surface-border);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--gradient-3);
    border-color: var(--gradient-2);
}

.footer-links h3, .footer-contact h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--gradient-2);
}

.footer-contact p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    display: flex;
    gap: 10px;
    align-items: center;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* Why Choose Us CSS */
.why-choose-bg {
    padding: 8rem 0;
    position: relative;
    background: linear-gradient(to bottom, rgba(28, 33, 44, 1) 0%, rgba(28, 33, 44, 0.65) 20%, rgba(28, 33, 44, 0.65) 80%, rgba(28, 33, 44, 1) 100%), 
                url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=2072&auto=format&fit=crop') center/cover no-repeat fixed;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(28, 33, 44, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.5);
        padding: 2rem 0;
    }

    .nav-links.active {
        left: 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

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

    .about-grid, .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .about-image-placeholder {
        padding: 3rem 1rem;
    }
}
