:root {
    --text-primary: rgba(255, 255, 255, 0.95);
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-tertiary: rgba(255, 255, 255, 0.7);
    --bg-dark: #111;
    --bg-darker: #0a0a0a;
    --accent-primary: #6f42c1;
    --accent-secondary: #0dcaf0;
    --transition: all 0.4s ease;
    --bg-card: rgba(30, 30, 30, 0.5);
}

body {
    background-color: var(--bg-darker);
    color: var(--text-primary);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.025em;
}

p {
    color: var(--text-secondary);
}

.section {
    padding: 6rem 0;
}

.section-title {
    position: relative;
    margin-bottom: 4rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 2px;
}

.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Navigation - Updated with white links */
.navbar {
    padding: 1.5rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.8rem;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    position: relative;
    margin: 0 0.75rem;
    font-weight: 500;
    transition: var(--transition);
    color: white !important; /* Ensure all nav links are white */
}

.nav-link:hover,
.nav-link:focus {
    color: white !important;
    opacity: 0.9;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transition: var(--transition);
}

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

.navbar-toggler {
    border: none;
    color: white !important;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-image: url('https://images.unsplash.com/photo-1555066931-4365d14bab8c?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff; /* White text for contrast */
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    text-align: left;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* Subtle shadow for readability */
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    max-width: 600px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    justify-content: flex-end; /* Button aligned to the right */
}

.btn-primary {
    background-color: #6f42c1;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #5a32a3;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator svg {
    color: #fff;
    width: 1.5rem;
    height: 1.5rem;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(10px); opacity: 0.5; }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-content {
        text-align: center;
        padding: 1rem;
    }
    .hero-buttons {
        justify-content: center; /* Center button on mobile */
    }
    .hero-title {
        font-size: clamp(2rem, 4vw, 3rem);
    }
    .hero-subtitle {
        font-size: clamp(1rem, 2vw, 1.1rem);
    }
}
/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(111, 66, 193, 0.3);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Features */
.feature-img {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.feature-img:hover {
    transform: scale(1.02);
}

/* Gallery */
.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    height: 300px;
}

.gallery-item img {
    transition: var(--transition);
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Team */
.team-member {
    text-align: center;
}

.team-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 4px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.team-member:hover .team-img {
    border-color: var(--accent-primary);
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 4px;
    background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary));
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-content {
    width: 45%;
    padding: 20px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.timeline-item:nth-child(odd) .timeline-content {
    float: left;
}

.timeline-item:nth-child(even) .timeline-content {
    float: right;
}

.timeline-badge {
    position: absolute;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 50%;
    left: 50%;
    margin-left: -20px;
    top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(111, 66, 193, 0.4);
}

/* Contact */
.contact-form .form-control {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    transition: var(--transition);
}

.contact-form .form-control:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 0.25rem rgba(111, 66, 193, 0.2);
}

/* Footer */
footer {
    background: rgba(10, 10, 10, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4rem 0 2rem;
}

.footer-logo {
    font-weight: 800;
    font-size: 1.8rem;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    margin-right: 0.75rem;
    transition: var(--transition);
}

.social-link:hover {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    transform: translateY(-3px);
}

.footer-link {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--text-primary);
    transform: translateX(5px);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}


/* Responsive */
@media (max-width: 992px) {
    .section {
        padding: 4rem 0;
    }

    .timeline::before {
        left: 40px;
    }

    .timeline-content {
        width: calc(100% - 90px);
        float: right !important;
    }

    .timeline-badge {
        left: 40px;
    }

    /* Mobile menu adjustments */
    .navbar-collapse {
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(10px);
        padding: 1rem;
        border-radius: 8px;
        margin-top: 0.5rem;
    }

    .nav-link {
        margin: 0.5rem 0;
        padding: 0.5rem 0;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 6rem 0;
    }

    .navbar {
        padding: 1rem 0;
    }

    .section-title::after {
        width: 40px;
    }

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