:root {
    --primary: #4CAF50;
    --primary-dark: #3d8b40;
    --secondary: #8BC34A;
    --dark: #0f0f15;
    --darker: #0a0a0f;
    --light: #ffffff;
    --gray: #504c4c;
    --dark-gray: #333;
    --neon-glow: 0 0 10px rgba(76, 175, 80, 0.7);
    --nav-height-desktop: 80px;
    --nav-height-tablet: 70px;
    --nav-height-mobile: 60px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Rajdhani', 'Arial', sans-serif;
}

html {
    scroll-behavior: smooth;
    background-color: var(--darker);
}

body {
    color: var(--light);
    background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 100%);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: calc(100% - 60px);
    overflow: hidden;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
    overflow: hidden;
    max-width: 100%;
    transition: all 0.3s ease;
}

nav img {
    height: 40px;
    width: auto;
    min-width: 40px;
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
    cursor: pointer;
}

nav img:hover {
    transform: scale(1.1);
}

nav {
    background-color: rgba(15, 15, 21, 0.9);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(76, 175, 80, 0.2);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light);
    text-decoration: none;
    letter-spacing: 1px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: all 0.3s ease;
}

.logo:hover {
    text-shadow: var(--neon-glow);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
    position: relative;
}


nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a.active {
    color: var(--primary);
}

.nav-dropdown.profile-dropdown>a::after {
    display: none;
}

@media (max-width: 1000px) {
    .burger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .burger div {
        width: 25px;
        height: 2px;
        background-color: var(--light);
        margin: 3px 0;
        transition: all 0.3s ease;
    }

    .burger.toggle div:nth-child(1) {
        transform: translateY(5px) rotate(-45deg);
    }

    .burger.toggle div:nth-child(2) {
        opacity: 0;
    }

    .burger.toggle div:nth-child(3) {
        transform: translateY(-5px) rotate(45deg);
    }
}

/* Burger menu improvements */
.burger {
    display: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: 0.5rem;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--light);
    margin: 5px;
    transition: all 0.3s ease;
}

.slider-section {
    width: 100%;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    height: 90vh;
    max-height: 800px;
    min-height: 500px;
    overflow: hidden;
    border-radius: 0;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    background: linear-gradient(45deg, var(--darker), var(--dark));
}

.slider {
    display: flex;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide {
    min-width: 100%;
    position: relative;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 15, 21, 0.7) 0%, rgba(76, 175, 80, 0.2) 100%);
    z-index: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.slider-content {
    position: absolute;
    bottom: 20%;
    left: 10%;
    z-index: 2;
    max-width: 600px;
}

.slider-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--light), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 15px rgba(76, 175, 80, 0.5);
}

.slider-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.slider-btn {
    background: rgba(76, 175, 80, 0.2);
    color: var(--light);
    border: 2px solid var(--primary);
    width: 50px;
    height: 50px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.slider-btn:hover {
    background: rgba(76, 175, 80, 0.4);
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--neon-glow);
}

.prev-btn {
    left: 2rem;
}

.next-btn {
    right: 2rem;
}

.slider-dots {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
    padding: 12px 20px;
    background: rgba(15, 15, 21, 0.7);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0;
    transition: all 0.3s ease;
}

.dot.active {
    background: transparent;
    transform: scale(1.3);
}

.dot.active::before {
    opacity: 1;
    width: 10px;
    height: 10px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

.dot:hover {
    background: transparent;
    transform: scale(1.2);
}

.dot:hover::before {
    opacity: 1;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
}

.about-section {
    background-color: var(--dark);
    color: var(--light);
    padding: 8rem 2rem;
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(76, 175, 80, 0.1) 0%, transparent 70%);
    z-index: 1;
    animation: pulse 15s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.2);
    }
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;

}

.section-header h2 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.divider {
    width: 150px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin: 0 auto 2rem;
    border-radius: 2px;
}

.subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    letter-spacing: 1px;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    margin-bottom: 6rem;
    align-items: center;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h3 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary);
    letter-spacing: 1px;
}

.about-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.9);
}

.stats-container {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.stat-box {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    min-width: 150px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(76, 175, 80, 0.2);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.1) 0%, transparent 70%);
    z-index: -1;
    transition: all 0.5s ease;
}

.stat-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--primary);
}

.stat-box:hover::before {
    transform: scale(1.2);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-family: 'Rajdhani', sans-serif;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 1px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transform-style: preserve-3d;
    will-change: transform;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    will-change: transform;
    transition: transform 0.3s ease-out;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 60%,
            rgba(0, 0, 0, 0.02) 100%);
    pointer-events: none;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 5rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(76, 175, 80, 0.2);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.1) 0%, transparent 70%);
    z-index: -1;
    transition: all 0.5s ease;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--primary);
    background: rgba(76, 175, 80, 0.1);
}

.service-card:hover::before {
    transform: scale(1.2);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.2);
    text-shadow: var(--neon-glow);
}

.service-card h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--light);
    letter-spacing: 1px;
}

.service-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    font-size: 1.1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: calc(100% - 100px);
    overflow: hidden;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
    transition: all 0.3s ease;
}

@media screen and (max-width: 1200px) {
    .slider-container {
        height: 80vh;
        max-height: 700px;
    }

    .slider-content h2 {
        font-size: 3rem;
    }
}

@media screen and (max-width: 1000px) {
    .about-content {
        flex-direction: column;
    }

    .about-image {
        order: -1;
        max-width: 600px;
        margin: 0 auto;
    }

    .about-text {
        text-align: center;
    }

    .stats-container {
        justify-content: center;
    }

    .section-header h2 {
        font-size: 3rem;
    }
}

@media screen and (max-width: 1000px) {

    .nav-links.open {
        transform: translateX(0);
    }

    .nav-links li {
        width: 100%;
        margin: 0;
        padding: 10px 0;
    }

    .nav-dropdown.profile-dropdown {
        order: -1;
    }

    .profile-link {
        display: flex;
        align-items: center;
        width: 100%;
    }

    .nav-dropdown {
        position: relative;
        height: 100%;
        display: flex;
        align-items: center;
    }

    .profile-link {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        cursor: pointer;
    }

    .profile-pic {
        width: 36px;
        height: 36px;
        border-radius: 500px;
        object-fit: cover;
        transition: all 0.3s ease;
        display: inline-block;
        vertical-align: middle;
    }

    .profile-link:hover .profile-pic {
        border-color: var(--primary);
        transform: scale(1.08);
    }


    .dropdown-menu {
        position: absolute;
        top: 100%;
        right: 0;
        background-color: rgba(15, 15, 21, 0.95);
        border-radius: 4px;
        min-width: 180px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        display: none;
        z-index: 101;
        border: 1px solid rgba(76, 175, 80, 0.2);
    }

    .nav-dropdown:hover .dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        color: white;
        text-decoration: none;
        display: block;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        transition: all 0.3s;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .dropdown-menu a:last-child {
        border-bottom: none;
    }

    .dropdown-menu a:hover {
        background-color: rgba(76, 175, 80, 0.2);
        color: var(--primary);
        padding-left: 1.2rem;
    }

    .dropdown-menu a i {
        margin-right: 8px;
        width: 18px;
        text-align: center;
    }

    .dropdown-menu {
        position: static;
        display: none;
        width: 100%;
        background: transparent;
        box-shadow: none;
    }

    .nav-dropdown.profile-dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        padding: 10px 0;
        color: white;
    }

    .burger {
        display: block;
        transition: transform 0.3s ease;
    }

    .burger.toggle {
        transform: rotate(90deg);
    }

    .burger.toggle div:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .burger.toggle div:nth-child(2) {
        opacity: 0;
    }

    .burger.toggle div:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

@media screen and (max-width: 768px) {

    .logo {
        font-size: 1.5rem;
        max-width: 180px;
    }

    nav {
        padding: 1rem;
    }

    .slider-content {
        bottom: 25% !important;
        padding: 0 1rem;
    }

    .slider-content h2 {
        font-size: 1.8rem !important;
        margin-bottom: 0.5rem !important;
    }

    .slider-content p {
        font-size: 1rem !important;
        margin-bottom: 1rem !important;
    }

    .slider-controls {
        top: auto !important;
        bottom: 15% !important;
        transform: none !important;
        justify-content: center !important;
        gap: 2rem;
    }

    .slider-btn {
        position: static !important;
        transform: none !important;
        background: rgba(76, 175, 80, 0.3) !important;
    }

    .slider-dots {
        bottom: 8% !important;
    }
}

@media screen and (max-width: 576px) {
    .slider-container {
        height: 60vh;
        max-height: 500px;
        min-height: 300px;
    }

    .slider-content h2 {
        font-size: 2rem;
    }

    .slider-content p {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .about-text h3 {
        font-size: 1.8rem;
    }

    .about-text p {
        font-size: 1rem;
    }

    .stat-box {
        min-width: calc(50% - 1rem);
        padding: 1.5rem 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    .stat-box {
        min-width: 100%;
    }

    .slider-dots {
        gap: 0.5rem;
        padding: 8px 12px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    .logo {
        font-size: 1.3rem;
        max-width: 150px;
    }

    nav img {
        margin-right: 0.3rem;
    }
}

@media screen and (max-width: 360px) {
    .logo {
        font-size: 1.1rem;
        max-width: 120px;
    }
}

.projects-section {
    background-color: var(--dark);
    color: var(--light);
    padding: 8rem 2rem;
    position: relative;
    overflow: hidden;
}

.modal-body {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-start;
}

.modal-gallery {
    flex: 1;
    min-width: 250px;
}

.modal-details {
    flex: 1;
    min-width: 250px;
    padding-bottom: 1rem;
    /* Ensure space for View Trailer button */
}

.modal-gallery img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    max-height: 300px;
    /* Further reduced */
    object-fit: cover;
}

.gallery-thumbnails {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.gallery-thumbnails img {
    width: 60px;
    /* Smaller thumbnails */
    height: 45px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-details h3 {
    margin: 0.5rem 0;
}

.modal-details p {
    margin: 0.25rem 0;
}

.bullot {
    margin: 0.25rem 0;
    padding-left: 1.25rem;
}

.bullot li {
    margin-bottom: 0.25rem;
}

.project-meta {
    display: flex;
    gap: 1rem;
    margin: 0.5rem 0;
}

.cta-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    margin: 0.25rem 0;
}

.cta-button.secondary {
    background-color: var(--secondary);
    color: var(--text-light);
    border: 1px solid var(--secondary-dark);
}

.cta-button.secondary:hover {
    background-color: var(--secondary-dark);
}

@media (max-width: 768px) {
    .modal-body {
        flex-direction: column;
        gap: 0.75rem;
    }

    .modal-gallery,
    .modal-details {
        min-width: 100%;
    }

    .modal-gallery img {
        max-height: 200px;
    }

    .project-meta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .cta-button {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(76, 175, 80, 0.2);
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--primary);
}

.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(15, 15, 21, 0) 0%, rgba(15, 15, 21, 0.8) 100%);
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.project-content p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-tags span {
    background: rgba(76, 175, 80, 0.2);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.project-btn {
    background: rgba(76, 175, 80, 0.2);
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    display: inline-block;
}

.project-btn:hover {
    background: var(--primary);
    color: var(--dark);
    transform: translateY(-3px);
    box-shadow: var(--neon-glow);
}

.modal-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Use full height instead of 100vh for better browser compatibility */
    background-color: rgba(15, 15, 21, 0.95);
    z-index: 9999;
    overflow-y: scroll;
    /* Use scroll instead of auto for consistent behavior */
    backdrop-filter: blur(5px);
    padding: 0;
    /* Remove all padding */
    box-sizing: border-box;
    align-items: flex-start;
    justify-content: center;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    /* Prevent overscrolling on mobile */
}

.modal-content {
    background: var(--dark);
    margin: 0 auto;
    /* Remove vertical margin */
    padding: 1rem;
    max-width: 1200px;
    width: calc(100% - 1rem);
    border-radius: 10px;
    border: 1px solid rgba(76, 175, 80, 0.3);
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
    z-index: 19999;
    box-sizing: border-box;
    min-height: calc(100% - 2rem);
    /* Ensure content spans available height */
    overflow-y: visible;
    /* Allow content to flow naturally */
}

.modal-details {
    padding-bottom: 2rem !important;
    /* Force extra space */
}

.cta-button {
    margin-bottom: 2rem !important;
    /* Ensure button is not clipped */
}

.error-modal {
    background: var(--dark);
    width: 90%;
    max-width: 500px;
    margin: var(--modal-top-margin, 100px) auto 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 99, 71, 0.3);
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
}

.error-modal {
    width: 100%;
    max-width: 500px;
    margin: var(--modal-top-margin, 100px) auto 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 99, 71, 0.3);
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
    background: var(--dark);
}

.error-modal .modal-content {
    padding: 2rem;
    text-align: center;
}

.error-modal .modal-header {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 99, 71, 0.3);
    padding-bottom: 1rem;
}

.error-modal .modal-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #ff6347;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.error-actions button {
    min-width: 120px;
}

body.modal-open {
    overflow: hidden;
    padding-top: 80px;
}


@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--light);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--primary);
}

.modal-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(76, 175, 80, 0.3);
    padding-bottom: 1rem;
}

.modal-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.modal-tags span {
    background: rgba(76, 175, 80, 0.2);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
}

.modal-body {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.modal-gallery {
    flex: 1;
    width: 200px;
}

.modal-gallery img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.gallery-thumbnails {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.gallery-thumbnails img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-thumbnails img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.modal-details {
    flex: 1;
    min-width: 300px;
}

.modal-details h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.modal-details p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.modal-details ul {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.modal-details li {
    margin-bottom: 0.5rem;
    position: relative;
}

.modal-details li::before {
    content: "▹";
    color: var(--primary);
    position: absolute;
    left: -1.5rem;
}

.project-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.project-meta h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.cta-button {
    display: inline-block;
    background: var(--primary);
    color: var(--dark);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    margin-right: 1rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--neon-glow);
}

.cta-button.secondary {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.cta-button.secondary:hover {
    background: rgba(76, 175, 80, 0.1);
}

@media (max-width: 768px) {
    .projects-container {
        grid-template-columns: 1fr;
    }

    .modal-body {
        flex-direction: column;
    }

    .gallery-thumbnails {
        justify-content: center;
    }

    .modal-container {
        padding: 15px;
        align-items: flex-start;
    }

    .error-modal {
        margin-top: 60px;
        width: calc(100% - 30px);
    }

    .modal-container.mobile-modal {
        align-items: flex-start;
        padding: 10px;
    }

    .modal-container.mobile-modal .modal-content,
    .modal-container.mobile-modal .error-modal {
        width: calc(100% - 20px);
        margin: var(--nav-height, 60px) auto 20px;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

    .modal-body p {
        font-size: 0.9rem;
    }

    .error-actions {
        flex-direction: column;
    }

    .error-actions button {
        width: 100%;
    }

    .error-modal {
        width: calc(100% - 2rem);
        margin: var(--nav-height, 60px) auto 20px;
    }

    .error-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .error-actions button {
        width: 100%;
    }
}

@media (max-width: 480px) {

    .modal-container {
        padding: 10px;
        margin: 50px auto 20px;
        width: calc(100% - 1rem);
        padding: 1rem;
    }

    .error-modal {
        margin-top: 50px;
        width: calc(100% - 20px);
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

    .modal-body p {
        font-size: 0.9rem;
    }

}

.error-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-on-scroll {
    opacity: 0;
    animation-fill-mode: forwards;
}

.fade-in-up {
    animation-name: fadeInUp;
    animation-duration: 1s;
}

.fade-in {
    animation-name: fadeIn;
    animation-duration: 1.5s;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}

.services-section {
    background-color: var(--darker);
    color: var(--light);
    padding: 8rem 2rem;
    position: relative;
    overflow: hidden;
}

.contact-section {
    background: linear-gradient(135deg, var(--dark) 0%, var(--darker) 100%);
    color: var(--light);
    padding: 8rem 2rem;
    position: relative;
    overflow: hidden;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(76, 175, 80, 0.2);
    transition: all 0.3s ease;
}

.contact-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.contact-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background: var(--primary);
    color: var(--dark);
    border: none;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--neon-glow);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(76, 175, 80, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    color: var(--light);
    transition: all 0.3s ease;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.social-link:hover {
    background: var(--primary);
    color: var(--dark);
    transform: translateY(-5px);
    box-shadow: var(--neon-glow);
}

.bullot {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bullot li {
    position: relative;
    padding-left: 1.5em;
    margin-bottom: 0.6em;
    color: white;
    font-family: sans-serif;
}

.bullot li i {
    position: absolute;
    left: 0;
    top: 0.15em;
    color: #4CAF50;
    font-size: 0.75em;
}


.bullot li::before {
    content: "▸";
    color: #4CAF50;
    position: absolute;
    left: 0;
}

@keyframes shimmer {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.watch-button {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #9bff75 0%, #6bff3a 100%);
    color: #0f0f0f;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    border: none;
    box-shadow: 0 4px 20px rgba(155, 255, 117, 0.3);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1;
}

.watch-button:hover {
    animation: pulse 1.5s infinite;
    box-shadow: 0 6px 30px rgba(155, 255, 117, 0.5);
    transform: translateY(-2px);
}

.watch-button:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 2px 15px rgba(155, 255, 117, 0.4);
}

.watch-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.watch-button:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

.watch-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-radius: 50px;
    transition: all 0.3s;
    z-index: -1;
}

.watch-button:hover::before {
    border-color: rgba(155, 255, 117, 0.4);
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
}

.watch-button span {
    display: inline-block;
    position: relative;
    transition: transform 0.3s;
}

.watch-button:hover span {
    animation: textBounce 0.6s;
}

@keyframes textBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-5px);
    }

    60% {
        transform: translateY(2px);
    }
}

.watch-button:hover {
    background: radial-gradient(circle at var(--mouse-x) var(--mouse-y),
            #9bff75,
            #6bff3a);
}

.watch-button {
    background-attachment: fixed;
}

@keyframes textBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-5px);
    }

    60% {
        transform: translateY(2px);
    }
}

.watch-button:hover {
    background: radial-gradient(circle at var(--mouse-x) var(--mouse-y),
            #9bff75,
            #6bff3a);
}

.watch-button {
    background-attachment: fixed;
}

.slider-description {
    margin-bottom: 15px;
    font-size: 16px;
    color: #ccc;
}

.watch-button i {
    margin-right: 8px;
    font-size: 18px;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .watch-button {
        padding: 10px 20px;
        font-size: 0.9rem;
        border-radius: 40px;
    }

    .watch-button::before {
        border-radius: 40px;
    }
}

.offline-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #121212;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
}

.offline-fullscreen.show {
    opacity: 1;
    pointer-events: all;
}

.offline-fullscreen i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: #f44336;
}

.offline-fullscreen h2 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.offline-fullscreen p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.8;
    line-height: 1.5;
}

.retry-button {
    padding: 12px 24px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
    min-width: 140px;
}

.retry-button:hover {
    background: #45a049;
}

.offline-content {
    animation: fadeIn 0.5s ease-out;
    transform: translateY(-50px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(0);
    }

    to {
        opacity: 1;
        transform: translateY(-50px);
    }
}

.offline-hint {
    font-size: 14px;
    margin-top: -10px;
    margin-bottom: 25px;
    color: #888;
}

.retry-button i {
    margin-right: 8px;
}

@media (max-width: 780px) {
    .offline-fullscreen i {
        font-size: 3.5rem;
        margin-bottom: 1.2rem;
    }

    .offline-fullscreen h2 {
        font-size: 1.3rem;
    }

    .offline-fullscreen p {
        font-size: 0.9rem;
        width: 100%;

    }

    .retry-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

.loading-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: transparent;
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.loading-indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: #4CAF50;
    animation: loading 1.5s infinite;
}

.loading-indicator.active {
    opacity: 1;
}

@keyframes loading {
    0% {
        width: 0%;
        left: 0;
    }

    50% {
        width: 100%;
        left: 0;
    }

    100% {
        width: 0%;
        left: 100%;
    }
}

section {
    scroll-margin-top: 80px;
}

.form-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
    display: flex;
    align-items: center;
    max-width: 90%;
}

.form-popup.success {
    background: #4CAF50;
    color: white;
}

.form-popup.error {
    background: #f44336;
    color: white;
}

.form-popup i {
    margin-right: 10px;
    font-size: 1.5em;
}

.form-popup .popup-content {
    display: flex;
    align-items: center;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.fade-out {
    animation: fadeOut 0.3s ease-in forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

html {
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 80px;
}

.form-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
    display: flex;
    align-items: center;
    max-width: 90%;
}

.form-popup.success {
    background: #4CAF50;
    color: white;
}

.form-popup.error {
    background: #f44336;
    color: white;
}

.form-popup i {
    margin-right: 10px;
    font-size: 1.5em;
}

.form-popup .popup-content {
    display: flex;
    align-items: center;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.fade-out {
    animation: fadeOut 0.3s ease-in forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.form-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    animation: slideIn 0.3s ease-out;
    display: flex;
    align-items: center;
    max-width: 400px;
    color: white;
}

.form-popup.success {
    background: #4CAF50;
}

.form-popup.error {
    background: #f44336;
}

.form-popup i {
    margin-right: 10px;
    font-size: 1.5em;
}

.form-popup .popup-content {
    display: flex;
    align-items: center;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.fade-out {
    animation: fadeOut 0.3s ease-in forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* Add this to your home.css file */
.offline-error {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #f44336;
    color: white;
    padding: 15px;
    text-align: center;
    z-index: 10000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.offline-error.show {
    transform: translateY(0);
}

.offline-error button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 5px 15px;
    margin-left: 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.offline-error button:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Add this for the loading indicator */
.loading-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    z-index: 10000;
    transform: translateX(-100%);
}

.loading-indicator.active {
    animation: loading 2s infinite;
}

@keyframes loading {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.nav-dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.profile-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}


.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: rgba(15, 15, 21, 0.95);
    border-radius: 4px;
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 101;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    transition: all 0.3s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background-color: rgba(76, 175, 80, 0.2);
    color: var(--primary);
    padding-left: 1.2rem;
}

.dropdown-menu a i {
    margin-right: 8px;
    width: 18px;
    text-align: center;
}

/* Navigation Bar Styles */
nav {
    background-color: rgba(15, 15, 21, 0.9);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(76, 175, 80, 0.2);
    width: 100%;
    box-sizing: border-box;
    height: 70px;
    /* Fixed height */
}

/* Brand/logo section */
.brand {
    display: flex;
    align-items: center;
    height: 100%;
}

nav img {
    height: 40px;
    width: auto;
    min-width: 40px;
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
    cursor: pointer;
}

nav img:hover {
    transform: scale(1.1);
}

/* Navigation links container */
.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
    align-items: center;
}

.nav-links li {
    margin-left: 2rem;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 0.5rem 0;
    font-size: 20px;
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    position: relative;
    padding-bottom: 1px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}



.nav-links a:hover {
    color: var(--primary);
}

.nav-links a.active {
    color: var(--primary);
}

/* Profile dropdown specific styles */
.nav-dropdown.profile-dropdown {
    margin-left: 1.5rem;
    position: relative;
    display: flex;
    align-items: center;
}

.profile-link {
    display: flex;
    align-items: center;
    padding: 0 0.5rem;
    height: 100%;
}


.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: rgba(15, 15, 21, 0.95);
    border-radius: 4px;
    padding: 0.5rem 0;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 101;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    color: white;
    padding: 0.75rem 1rem;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    transition: background-color 0.3s;
    max-height: fit-content;
}

.dropdown-menu a:hover {
    background-color: rgba(76, 175, 80, 0.2);
    color: var(--primary);
}

.burger {
    display: none;
    cursor: pointer;
}

@media (max-width: 1000px) {

    .nav-links {
        position: fixed;
        top: var(--nav-height-mobile);
        right: 0;
        background-color: rgba(15, 15, 21, 0.98);
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 2rem;
        height: calc(100vh - var(--nav-height-mobile));
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
        z-index: 99;
        overflow-y: auto;
        width: 55%;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
    }


    .nav-links li {
        margin: 0.5rem 0;
        width: 100%;
        height: auto;
    }

    .nav-links a {
        padding: 0.75rem 0;
        font-size: 1.1rem;
        width: 100%;
        position: relative;
    }

    /* Profile dropdown specific mobile styles */
    .nav-dropdown.profile-dropdown {
        margin-left: 0;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-link {
        padding: 0.75rem 0;
        width: 100%;
        display: flex;
        align-items: center;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        background-color: transparent;
        border: none;
        display: none;
        padding-left: 1rem;
        margin-top: 0;
    }

    .nav-dropdown.profile-dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        padding: 0.5rem 0;
        color: rgba(255, 255, 255, 0.8);
        border-bottom: none;
    }

    .dropdown-menu a:hover {
        color: var(--primary);
        background-color: transparent;
    }

    /* Remove active state from profile parent link */
    .nav-dropdown.profile-dropdown>a.active,
    .nav-dropdown.profile-dropdown>a.active::after,
    .nav-dropdown.profile-dropdown>a:hover::after {
        color: inherit !important;
        width: 0 !important;
        background: transparent !important;
    }

    /* Burger menu styles */
    .burger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0.5rem;
    }

    .burger div {
        width: 25px;
        height: 2px;
        background-color: var(--light);
        margin: 3px 0;
        transition: all 0.3s ease;
    }

    .burger.toggle div:nth-child(1) {
        transform: translateY(5px) rotate(-45deg);
    }

    .burger.toggle div:nth-child(2) {
        opacity: 0;
    }

    .burger.toggle div:nth-child(3) {
        transform: translateY(-5px) rotate(45deg);
    }
}

@media (max-width: 1000px) {

    .nav-link.active,
    .nav-link.active::after {
        color: inherit !important;
        width: 0 !important;
        background: transparent !important;
    }
}

/* Remove active state from profile link on mobile */
@media (max-width: 1000px) {

    .nav-dropdown.profile-dropdown .nav-link.active,
    .nav-dropdown.profile-dropdown .nav-link.active::after {
        color: inherit !important;
        width: 0 !important;
        background: transparent !important;
    }

    /* Ensure profile link looks normal when not active */
    .nav-dropdown.profile-dropdown .nav-link {
        color: var(--light) !important;
    }

    /* Remove hover effects for profile link on mobile */
    .nav-dropdown.profile-dropdown .nav-link:hover {
        color: var(--light) !important;
    }

    .nav-dropdown.profile-dropdown .nav-link:hover::after {
        width: 0 !important;
    }
}

@media (max-width: 768px) {
    .nav-links a::after {
        width: 0 !important;
    }

    .nav-links a:hover::after,
    .nav-links a.active::after {
        width: 0 !important;
    }

    .nav-links a {
        padding: 0.75rem 0;
    }

    .dropdown-menu {
        animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

.news-section {
    background-color: var(--dark);
    color: var(--light);
}

.news-container {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.news-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(76, 175, 80, 0.2);
    /* Add min-height to prevent cards from being too short */
    min-height: 200px;
}

.news-image {
    flex: 0 0 300px;
    height: 100%;
    /* Make height match card height */
    overflow: hidden;
    /* Hide any image overflow */
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}


.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: var(--primary);
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    flex: 1;
    padding: 2rem;
}

.news-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.news-meta {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.news-meta i {
    margin-right: 0.5rem;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.news-attachment {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.news-attachment a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-attachment a:hover {
    color: var(--secondary);
}

.news-attachment i {
    margin-right: 0.5rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.page-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--light);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.page-link:hover,
.page-link.active {
    background: var(--primary);
    color: var(--dark);
}

/* News Detail Page */
.news-detail-section {
    background-color: var(--dark);
    color: var(--light);
}

.news-article {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.news-article h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.news-article .news-image {
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
    max-height: 500px;
}

.news-article .news-content {
    line-height: 1.8;
    margin-bottom: 2rem;
}

.news-article .news-content p {
    margin-bottom: 1.5rem;
}

.attachment-link {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: rgba(76, 175, 80, 0.2);
    color: var(--primary);
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--primary);
}

.attachment-link:hover {
    background: var(--primary);
    color: var(--dark);
}

.back-link {
    display: inline-block;
    margin-top: 2rem;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: var(--secondary);
}

.back-link i {
    margin-right: 0.5rem;
}

/* Submit News Form */
.news-form .form-group {
    margin-bottom: 1.5rem;
}

.news-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.news-form .form-control {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.news-form .form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.news-form textarea.form-control {
    min-height: 300px;
}

.form-message {
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius: 8px;
}

.form-message.success {
    background: rgba(76, 175, 80, 0.2);
    color: var(--primary);
    border: 1px solid var(--primary);
}

.form-message.error {
    background: rgba(255, 99, 71, 0.2);
    color: #ff6347;
    border: 1px solid #ff6347;
}

.form-message i {
    margin-right: 0.5rem;
}

@media (max-width: 768px) {
    .news-card {
        flex-direction: column;
    }

    .news-image {
        flex: 0 0 auto;
        height: 200px;
    }

    .news-article h1 {
        font-size: 2rem;
    }
}

.admin-actions {
    margin-top: 15px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.edit-toggle,
.edit-link.full-edit,
.delete-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.85em;
    transition: all 0.2s ease;
    text-decoration: none;
}

.edit-toggle {
    background-color: #f0f7ff;
    color: #0066cc;
    border: 1px solid #cce0ff;
    cursor: pointer;
}

.edit-toggle:hover {
    background-color: #e0f0ff;
    text-decoration: none;
}

.edit-link.full-edit {
    background-color: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.edit-link.full-edit:hover {
    background-color: #e9ecef;
}

.delete-link {
    background-color: #fff5f5;
    color: #dc3545;
    border: 1px solid #ffd6d6;
    cursor: pointer;
    font-family: inherit;
}

.delete-link:hover {
    background-color: #ffecec;
}

/* Edit Form Styling */
.edit-form {
    display: none;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.edit-form .form-group {
    margin-bottom: 15px;
}

.edit-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #495057;
    font-size: 0.9em;
}

.edit-form input[type="text"],
.edit-form textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95em;
}

.edit-form textarea {
    min-height: 120px;
    resize: vertical;
}

.edit-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.edit-actions .submit-btn,
.edit-actions .cancel-btn {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.edit-actions .submit-btn {
    background-color: #0066cc;
    color: white;
    border: 1px solid #005bb7;
}

.edit-actions .submit-btn:hover {
    background-color: #005bb7;
}

.edit-actions .cancel-btn {
    background-color: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.edit-actions .cancel-btn:hover {
    background-color: #e9ecef;
}

/* Form Messages */
.form-message {
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 0.95em;
}

.form-message.success {
    background-color: #e6ffed;
    color: #22863a;
    border: 1px solid #b3e6c1;
}

.form-message.error {
    background-color: #ffebee;
    color: #b71c1c;
    border: 1px solid #ffcdd2;
}

/* Admin Actions Styling - Dark Theme */
.admin-actions {
    margin-top: 15px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.edit-toggle,
.edit-link.full-edit,
.delete-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border-radius: 30px;
    font-size: 0.85em;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    border: 1px solid;
}

.edit-toggle {
    background-color: rgba(76, 175, 80, 0.2);
    color: var(--primary);
    border-color: var(--primary);
    cursor: pointer;
}

.edit-toggle:hover {
    background-color: rgba(76, 175, 80, 0.3);
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.edit-link.full-edit {
    background-color: rgba(139, 195, 74, 0.2);
    color: var(--secondary);
    border-color: var(--secondary);
}

.edit-link.full-edit:hover {
    background-color: rgba(139, 195, 74, 0.3);
    box-shadow: 0 0 10px rgba(139, 195, 74, 0.3);
}

.delete-link {
    background-color: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border-color: #f44336;
    cursor: pointer;
    font-family: inherit;
}

.delete-link:hover {
    background-color: rgba(244, 67, 54, 0.3);
    box-shadow: 0 0 10px rgba(244, 67, 54, 0.3);
}

/* Edit Form Styling - Dark Theme */
.edit-form {
    display: none;
    background: rgba(15, 15, 21, 0.8);
    padding: 20px;
    border-radius: 8px;
    margin-top: 15px;
    border: 1px solid rgba(76, 175, 80, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
}

.edit-form .form-group {
    margin-bottom: 15px;
}

.edit-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary);
    font-size: 0.9em;
    letter-spacing: 0.5px;
}

.edit-form input[type="text"],
.edit-form textarea {
    width: 100%;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--light);
    font-family: inherit;
    font-size: 0.95em;
    transition: all 0.3s ease;
}

.edit-form input[type="text"]:focus,
.edit-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.edit-form textarea {
    min-height: 150px;
    resize: vertical;
}

.edit-actions {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.edit-actions .submit-btn,
.edit-actions .cancel-btn {
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    letter-spacing: 0.5px;
    border: none;
}

.edit-actions .submit-btn {
    background-color: var(--primary);
    color: var(--dark);
}

.edit-actions .submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--neon-glow);
}

.edit-actions .cancel-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.edit-actions .cancel-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Form Messages */
.form-message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid;
}

.form-message.success {
    background-color: rgba(76, 175, 80, 0.2);
    color: var(--primary);
    border-color: var(--primary);
}

.form-message.error {
    background-color: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border-color: #f44336;
}

/* Admin Options Button */
.admin-options-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(76, 175, 80, 0.2);
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

@media (max-width: 998px) {

    .admin-options-btn {
        margin-top: 170px;

    }
}

.admin-options-btn:hover {
    background: rgba(76, 175, 80, 0.3);
    box-shadow: var(--neon-glow);
}


.admin-options-btn.clicked {
    background: rgba(76, 175, 80, 0.3);
    box-shadow: var(--neon-glow);
    transform: rotate(90deg);
}


.admin-options-btn i {
    font-size: 1.2em;
}

/* Admin Options Dropdown */
.admin-options-dropdown {
    position: absolute;
    top: 70px;
    right: 20px;
    background: rgba(15, 15, 21, 0.95);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 10;
    border: 1px solid rgba(76, 175, 80, 0.3);
    backdrop-filter: blur(5px);
}

.admin-options-dropdown.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.admin-options-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: var(--light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.admin-options-dropdown a:hover {
    background: rgba(76, 175, 80, 0.2);
    color: var(--primary);
    padding-left: 20px;
}

.admin-options-dropdown a i {
    width: 20px;
    text-align: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 960px) {
    .admin-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .edit-form {
        padding: 15px;
    }

    .edit-actions {
        flex-direction: column;
    }

    .edit-actions .submit-btn,
    .edit-actions .cancel-btn {
        width: 100%;
    }

    .admin-options-btn {
        top: 15px;
        right: 15px;
    }

    .admin-options-dropdown {
        top: 60px;
        right: 15px;
    }
}

.news-card {
    position: relative;
}

.news-admin-menu {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
}

.news-admin-trigger {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 15, 21, 0.7);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: var(--light);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.news-admin-trigger:hover {
    background: rgba(76, 175, 80, 0.3);
    color: var(--primary);
    box-shadow: var(--neon-glow);
}

.news-admin-trigger.clicked {
    transform: rotate(90deg);

}

.news-admin-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(15, 15, 21, 0.95);
    border-radius: 8px;
    min-width: 180px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: none;
    overflow: hidden;
    border: 1px solid rgba(76, 175, 80, 0.3);
    backdrop-filter: blur(5px);
    z-index: 10;
}

.news-admin-dropdown.show {
    display: block;
    animation: fadeIn 0.2s ease;
}

.news-admin-dropdown a,
.news-admin-dropdown button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: var(--light);
    text-decoration: none;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.news-admin-dropdown a:hover,
.news-admin-dropdown button:hover {
    background: rgba(76, 175, 80, 0.2);
    color: var(--primary);
    padding-left: 20px;
}

.news-admin-dropdown a i,
.news-admin-dropdown button i {
    width: 18px;
    text-align: center;
}

.news-admin-dropdown .delete-action {
    color: #f44336;
}

.news-admin-dropdown .delete-action:hover {
    background: rgba(244, 67, 54, 0.2);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quick-edit-all-btn.save-mode {
    color: var(--primary);
    background: rgba(76, 175, 80, 0.2);
}

.quick-edit-all-btn.save-mode:hover {
    background: rgba(76, 175, 80, 0.3);
}

.quick-edit-all-btn.save-mode i {
    color: var(--primary);
}