/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #003366;
    background: #FFFFFF;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.914);
    backdrop-filter: blur(30px);
    border-bottom: 1px solid rgba(0, 51, 102, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 51, 102, 0.1);
}

.nav-container {
    max-width: 100%;
    margin: 0 auto;
    align-items: center;
    height: 80px;
    padding: 0 2rem;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-around;
    gap: 70rem;
}

.logo {
    width: 100%;
    height: 60px;
    object-fit: contain;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    scale: 2;
}

.logo img {
    height: 100%;
    width: 100%;
    scale: 1.5;
    object-fit: contain;
}



/* Login Button */
.login-btn {
    background: linear-gradient(45deg, #FF8C00, #FF6B35);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.4);
}

/* Dashboard Navigation */
.dashboard-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.welcome-text {
    color: #003366;
    font-weight: 500;
}

.logout-btn {
    background: #dc3545;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
}

/* Login Section */
.login-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #003366 0%, #004080 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 2rem 2rem;
}

.login-container {
    width: 100%;
    max-width: 400px;
}

.login-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 51, 102, 0.2);
    text-align: center;
}

.login-card h2 {
    color: #003366;
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.login-card p {
    color: #666;
    margin-bottom: 2rem;
}

.login-submit-btn {
    background: linear-gradient(45deg, #FF8C00, #FF6B35);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
}

.login-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.3);
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 0.75rem;
    border-radius: 5px;
    margin-top: 1rem;
    border: 1px solid #f5c6cb;
}

.login-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.login-footer a {
    color: #003366;
    text-decoration: none;
    transition: color 0.3s ease;
}

.login-footer a:hover {
    color: #FF8C00;
}

/* Dashboard Section */
.dashboard-section {
    padding: 120px 0 2rem;
    min-height: 100vh;
    background: #f8f9fa;
}

.dashboard-title {
    text-align: center;
    color: #003366;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 51, 102, 0.1);
    border-left: 4px solid #FF8C00;
}

.stat-card h3 {
    font-size: 2.5rem;
    color: #003366;
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: #666;
    font-weight: 500;
}

.dashboard-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: flex-end;
}

.export-btn, .clear-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.export-btn {
    background: #28a745;
    color: white;
}

.export-btn:hover {
    background: #218838;
    transform: translateY(-1px);
}

.clear-btn {
    background: #dc3545;
    color: white;
}

.clear-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.customer-table-container {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 51, 102, 0.1);
}

.customer-table-container h2 {
    color: #003366;
    margin-bottom: 1.5rem;
}

.table-wrapper {
    overflow-x: auto;
}

.customer-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.customer-table th,
.customer-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.customer-table th {
    background: #f8f9fa;
    color: #003366;
    font-weight: 600;
    position: sticky;
    top: 0;
}

.customer-table tr:hover {
    background: #f8f9fa;
}

.message-cell {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.delete-btn {
    background: #dc3545;
    color: white;
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.delete-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.no-data {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.no-data p {
    margin-bottom: 0.5rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #003366 0%, #004080 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.7s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, #FF8C00, #FF6B35);
    color: white;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
    opacity: 0;
    animation: fadeInUp 1s ease 0.9s forwards;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.4);
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #003366;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #FF8C00, #003366);
    animation: glowing 10s linear infinite;
    background-size: 400%;
    border-radius: 2px;
}

@keyframes glowing {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* About Section */
.about {
    background: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    letter-spacing: 2px;
    color: #003366;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.feature-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 51, 102, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid #FF8C00;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 51, 102, 0.15);
}

.feature-item h4 {
    color: #003366;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 51, 102, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #FF8C00, #003366, #8d4f05, #0a3f75, #f8ab4d, #04224096, #edb168, #3f91e2, #ae8450, #5a7b9d);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    animation: glowing 10s linear infinite;
    background-size: 400%;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 51, 102, 0.15);
}

.service-card h3 {
    color: #003366;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.service-card p {
    line-height: 1.6;
    color: #666;
}

/* Value Proposition Section */
.value-title {
    color: white;
}

.value-prop {
    background: linear-gradient(135deg, #003366, #004080);
    color: white;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.value-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.value-number {
    font-size: 3rem;
    font-weight: bold;
    color: #FF8C00;
    display: block;
    margin-bottom: 1rem;
}

/* Contact Section */
.contact {
    background: #f8f9fa;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 51, 102, 0.1);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    margin-top: 4rem;
}

.contact-item:hover {
    background: rgba(255, 140, 0, 0.1);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #FF8C00, #FF6B35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
    font-weight: bold;
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 51, 102, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #003366;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FF8C00;
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}

.submit-btn {
    background: linear-gradient(45deg, #FF8C00, #FF6B35);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.3);
}

/* Footer */
.footer {
    background: #003366;
    color: white;
    padding: 3rem 0 1rem;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #FF8C00;
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: #ccc;
    text-decoration: none;
    line-height: 1.8;
}

.footer-section a:hover {
    color: #FF8C00;
}

.footer-bottom {
    border-top: 1px solid #004080;
    padding-top: 1rem;
    color: #ccc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: row;
        padding: 1rem;
        gap: 5rem;
        height: 50px;
        scale: 1;
        justify-content: center;
    }

    .nav-container .logo {
        margin: 0;
        width: 100px;
    }

    .nav-container .login-btn {
        height: 30px;
        font-size: 0.9rem;
        padding: 0.5rem 1rem
    }

    .hero {
        padding: 140px 0 60px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .dashboard-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .customer-table {
        font-size: 0.9rem;
    }

    .customer-table th,
    .customer-table td {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 120px 0 40px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section {
        padding: 60px 0;
    }

    .service-card,
    .contact-info,
    .contact-form,
    .login-card {
        padding: 1.5rem;
    }

    .dashboard-section {
        padding: 100px 0 1rem;
    }
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}