* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #f5f7fa;
    color: #2d3436;
    line-height: 1.6;
    margin-top: 60px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

nav {
    width: 100%;
    background-color: #ffffff;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 0;
    margin: 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.brand-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2d3436;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: 'Poppins', sans-serif;
}

.header-logo {
    height: 26px;
    width: auto;
    transition: transform 0.3s ease;
}

.brand-name:hover {
    color: #0984e3;
    transform: translateY(-1px);
}

.brand-name:hover .header-logo {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}
.login-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin: 2rem auto;
    max-width: 500px;
}

/* Special styling for index page */
body.index-page .nav-links {
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: #2d3436;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    padding: 0.5rem 0;
    position: relative;
    display: inline-block;
    font-family: 'Poppins', sans-serif;
}

.nav-links a:hover {
    color: #0984e3;
    transform: translateY(-1px);
}

.nav-links a::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background: #0984e3;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
    opacity: 0.8;
}

.nav-links a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-links a i {
    margin-right: 5px;
    transition: transform 0.3s ease;
    font-size: 1rem;
    opacity: 0.9;
}

.nav-links a:hover i {
    transform: translateY(-1px);
    opacity: 1;
}

.btn-logout {
    padding: 0.45rem 1.1rem;
    background: #dc3545;
    color: white !important;
    border-radius: 5px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.3px;
}

.btn-logout:hover {
    transform: translateY(-1px);
    background: #c82333;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.25);
}

.btn-logout::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.btn-logout:hover::after {
    width: 250px;
    height: 250px;
}


.hero {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, #0984e3 0%, #6c5ce7 100%);
    color: white;
    margin-bottom: 3rem;
}

.logo {
    width: 180px;
    height: auto;
    margin: 2rem 0;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.welcome-text {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

.contact-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin: 2rem auto;
    max-width: 800px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: #f8f9fa;
    transform: translateX(10px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: #0984e3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
    font-size: 1.2rem;
}

.contact-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: #2d3436;
}

.contact-info p {
    margin: 0;
    color: #636e72;
}

.contact-info a {
    color: #0984e3;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #6c5ce7;
}

.advertisement {
    background: white;
    padding: 4rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 3rem auto;
}

.ad-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.ad-content h2 {
    color: #2d3436;
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    color: #0984e3;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: #636e72;
    font-size: 1rem;
}

.cta-section {
    margin-top: 2rem;
}

.cta-text {
    font-size: 1.2rem;
    color: #2d3436;
    margin-bottom: 1.5rem;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #0984e3 0%, #6c5ce7 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}

.web-dev-ad {
    background: linear-gradient(135deg, #2d3436 0%, #1e272e 100%);
    padding: 4rem 2rem;
    border-radius: 12px;
    margin: 3rem auto;
    color: white;
}

.web-dev-content {
    max-width: 1200px;
    margin: 0 auto;
}

.web-dev-text h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    text-align: center;
    color: #ffffff;
}

.subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #dfe6e9;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.service-item h3 {
    color: #0984e3;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-item p {
    color: #dfe6e9;
    font-size: 1rem;
    line-height: 1.5;
}

.web-dev-cta {
    text-align: center;
    margin-top: 2rem;
}

.web-dev-cta p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #dfe6e9;
}

.web-dev-button {
    display: inline-block;
    background: linear-gradient(135deg, #0984e3 0%, #6c5ce7 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.web-dev-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}

.footer {
    background: #2d3436;
    color: #ffffff;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer p {
    margin: 0;
    font-size: 0.95rem;
}

.footer a {
    color: #0984e3;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #6c5ce7;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #2d3436;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #0984e3;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: #0873c4;
    transform: translateY(-2px);
}

/* Hide nav-links on mobile by default */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background: #fff;
        position: absolute;
        top: 60px;
        right: 0;
        width: 200px;
        box-shadow: 0 2px 15px rgba(0,0,0,0.08);
        z-index: 1001;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    .nav-links.active {
        display: flex;
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .mobile-menu-btn {
        display: block;
    }
}

/* Show nav-links and hide mobile menu button on desktop */
@media (min-width: 769px) {
    .nav-links {
        display: flex !important;
        position: static;
        flex-direction: row;
        background: none;
        box-shadow: none;
        width: auto;
        transform: none;
        opacity: 1;
        visibility: visible;
    }
    .mobile-menu-btn {
        display: none;
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .nav-container {
        padding: 0.8rem 1.5rem;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 1rem 0;
        gap: 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-links.show {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        width: 100%;
        padding: 1rem 2rem;
        text-align: center;
    }

    .nav-links a::after {
        display: none;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .nav-links {
        gap: 1.2rem;
    }

    .brand-name {
        font-size: 1.2rem;
    }

    .header-logo {
        height: 22px;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .btn-logout {
        font-size: 0.9rem;
        padding: 0.35rem 0.9rem;
    }

    .hero {
        padding: 2rem 0;
    }

    h1 {
        font-size: 1.8rem;
    }

    .welcome-text {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .contact-card {
        margin: 1rem;
        padding: 1rem;
    }

    .contact-item {
        padding: 0.8rem;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .service-item {
        padding: 1.5rem;
    }

    .advertisement {
        padding: 2rem 1rem;
        margin: 2rem 1rem;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .ad-content h2 {
        font-size: 1.8rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav-container a {
        width: 100%;
        text-align: center;
    }

    .logo {
        width: 140px;
    }

    .contact-info h3 {
        font-size: 1rem;
    }

    .contact-info p {
        font-size: 0.9rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer {
        padding: 1.5rem 0;
        margin-top: 2rem;
    }
}
.form-control {
            border-radius: 8px;
            padding: 0.75rem 1rem;
            border: 1px solid #e2e8f0;
            transition: all 0.3s ease;
        }
        .form-control:focus {
            border-color: #0984e3;
            box-shadow: 0 0 0 0.2rem rgba(9, 132, 227, 0.25);
        }
        .btn-primary {
            background: linear-gradient(135deg, #0984e3 0%, #6c5ce7 100%);
            border: none;
            padding: 0.75rem 1.5rem;
            font-weight: 500;
            transition: all 0.3s ease;
        }
        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
        }
        .form-label {
            font-weight: 500;
            color: #2d3436;
            margin-bottom: 0.5rem;
        }
        .alert {
            border-radius: 8px;
            padding: 1rem;
            margin-bottom: 1.5rem;
        }