/* === STICKY NAVIGATION === */
.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(33, 35, 40, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(0, 240, 255, 0.3);
    z-index: 9999;
    padding: 0.75rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    text-decoration: none;
    letter-spacing: 2px;
    white-space: nowrap;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--accent-color);
    transition: all 0.3s;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--font-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(26, 28, 32, 0.98);
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s;
    }

    .nav-links.active {
        max-height: 500px;
    }

    .nav-links li {
        border-bottom: 1px solid rgba(0, 240, 255, 0.1);
    }

    .nav-links a {
        display: block;
        padding: 1rem 2rem;
    }
}

/* === NEW CONTENT SECTIONS === */
.content-section {
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    /* Ensure content is above stars */
    z-index: 1;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 3rem;
    text-align: center;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.section-title:hover {
    color: #ffffff;
    text-shadow: 0 0 20px var(--accent-color);
    transform: scale(1.05);
    letter-spacing: 4px;
}

/* About Section */
.about-grid {
    display: grid;
    gap: 2rem;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
}

.lead-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #e1e1e1;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: rgba(33, 35, 40, 0.3);
    border: 2px solid rgba(0, 240, 255, 0.2);
    border-radius: var(--card-border-radius);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    backdrop-filter: blur(5px);
}

.service-card:hover {
    border-color: var(--accent-color);
    box-shadow: var(--accent-glow);
    transform: translateY(-5px);
}

.service-card.expanded {
    border-color: var(--accent-color);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.4);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.service-card>p {
    font-size: 1rem;
    line-height: 1.6;
    color: #c1c1c1;
    margin-bottom: 1rem;
}

.service-expand-btn {
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.service-card.expanded .service-expand-btn {
    transform: rotate(180deg);
}

.service-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.3s ease-out;
    opacity: 0;
    margin-top: 0;
}

.service-card.expanded .service-details {
    max-height: 500px;
    opacity: 1;
    margin-top: 1.5rem;
}

.service-details ul {
    list-style: none;
    padding: 0;
    text-align: left;
    margin: 0;
}

.service-details li {
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    background: rgba(0, 240, 255, 0.05);
    border-left: 3px solid var(--accent-color);
    border-radius: 4px;
    color: #e1e1e1;
    font-size: 0.95rem;
    line-height: 1.5;
    transition: all 0.2s;
}

.service-details li:hover {
    background: rgba(0, 240, 255, 0.1);
    transform: translateX(5px);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: transparent;
    border: 2px solid rgba(0, 240, 255, 0.2);
    border-radius: var(--card-border-radius);
    overflow: hidden;
    transition: all 0.3s;
}

.project-card:hover {
    border-color: var(--accent-color);
    box-shadow: var(--accent-glow);
    transform: translateY(-5px);
}

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: var(--card-border-radius) var(--card-border-radius) 0 0;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-card h3 {
    font-size: 1.3rem;
    color: var(--accent-color);
    margin: 1.5rem 1.5rem 1rem;
}

.project-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #c1c1c1;
    margin: 0 1.5rem 1.5rem;
}

/* Contact Section */
.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #e1e1e1;
}

.cta-button {
    background: linear-gradient(135deg, var(--accent-color), #7b2ff7);
    color: white;
    border: none;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.5);
}

/* Footer */
.site-footer {
    background: rgba(26, 28, 32, 0.95);
    border-top: 2px solid rgba(0, 240, 255, 0.3);
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.footer-section p {
    color: #c1c1c1;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul a {
    color: #c1c1c1;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul a:hover {
    color: var(--accent-color);
}

.footer-social {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-social a {
    color: #c1c1c1;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-social a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 240, 255, 0.2);
    color: #8c8c8c;
}

@media (max-width: 768px) {
    .site-footer {
        padding: 2rem 1rem;
    }

    .footer-container {
        grid-template-columns: 1fr !important;
        gap: 2rem;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }
}

/* === ANIMATED STARS BACKGROUND === */
#stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Behind everything */
    pointer-events: none;
    overflow: hidden;
}

#stars,
#stars2,
#stars3 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: block;
    background: transparent;
}

#stars {
    background-image:
        radial-gradient(1px 1px at 25px 5px, white, transparent),
        radial-gradient(1px 1px at 50px 25px, white, transparent),
        radial-gradient(1px 1px at 125px 20px, white, transparent),
        radial-gradient(1.5px 1.5px at 200px 50px, white, transparent),
        radial-gradient(2px 2px at 100px 80px, white, transparent),
        radial-gradient(1px 1px at 250px 10px, white, transparent);
    background-size: 550px 550px;
    animation: animStar 100s linear infinite;
    opacity: 0.6;
}

#stars2 {
    background-image:
        radial-gradient(1px 1px at 75px 15px, white, transparent),
        radial-gradient(1px 1px at 150px 55px, white, transparent),
        radial-gradient(1.5px 1.5px at 225px 40px, white, transparent);
    background-size: 350px 350px;
    animation: animStar 150s linear infinite;
    opacity: 0.4;
}

#stars3 {
    background-image:
        radial-gradient(2px 2px at 100px 100px, white, transparent),
        radial-gradient(2px 2px at 200px 200px, white, transparent);
    background-size: 250px 250px;
    animation: animStar 200s linear infinite;
    opacity: 0.3;
}

@keyframes animStar {
    from {
        transform: translateY(0px);
    }

    to {
        transform: translateY(-2000px);
    }
}