/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header styles */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
}

header .container {
    display: block;
    text-align: center;
    position: relative;
}

header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    text-align: center;
}

header nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

header nav ul li {
    margin: 0;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    min-height: 2.5rem;
}

header nav ul li a:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

/* Mobile menu - hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    top: 1.5rem;
    right: 1rem;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Navigation */
header nav {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Mobile menu - hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    top: 1.5rem;
    right: 1rem;
    z-index: 1002;
}

@media (max-width: 1023px) {
    .menu-toggle {
        display: flex;
        position: absolute;
        top: 1.5rem;
        right: 1rem;
        z-index: 1002;
    }

    header nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1001;
        justify-content: center;
    }

    header nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    header nav ul {
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
        width: 100%;
    }

    header nav ul li {
        margin: 0;
        text-align: center;
        width: 100%;
    }

    header nav ul li a {
        display: block;
        width: 100%;
        white-space: normal;
    }

    header .container {
        position: relative;
        text-align: center;
    }

    header h1 {
        text-align: center;
        padding-right: 3rem; /* space for hamburger */
    }
}

/* Tablet and small desktop adjustments */
@media (max-width: 1200px) {
    header nav ul li {
        margin: 0 0.4rem;
    }

    header nav ul li a {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
        letter-spacing: 0.3px;
    }
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-align: center;
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.1);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: #fff;
    padding: 0.875rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255,107,107,0.4);
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255,107,107,0.6);
}

/* Services section */
.services {
    padding: 5rem 0;
    background: #fff;
}

.services h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #2c3e50;
    font-weight: 700;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e1e8ed;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.card h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 600;
}

.card p {
    color: #666;
    line-height: 1.6;
}

/* About section */
.about {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 5rem 0;
}

.about h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    color: #2c3e50;
    font-weight: 700;
}

.about p {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Contact section */
.contact {
    padding: 5rem 0;
    background: #fff;
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #2c3e50;
    font-weight: 700;
}

.contact form {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border: 1px solid #e1e8ed;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

.service-content form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin-top: 1.5rem;
}

.service-content form textarea {
    min-height: 150px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    padding: 1rem;
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: inherit;
    line-height: 1.6;
}

.service-content form textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

.service-content form .btn {
    align-self: flex-start;
    margin-top: 0.5rem;
}

/* Service detail pages */
.service-detail {
    padding: 4rem 0;
    background: #fff;
}

.service-detail h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    color: #2c3e50;
    font-weight: 700;
}

.service-detail .container {
    max-width: 1000px;
}

.service-content {
    background: #f8f9fa;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.service-content h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-content ul {
    margin-left: 2rem;
    margin-bottom: 2rem;
}

.service-content li {
    margin-bottom: 0.5rem;
    color: #555;
}

/* Account page */
.account-container {
    background: #fff;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.account-balance {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    text-align: center;
}

.balance-amount {
    font-size: 3rem;
    font-weight: 700;
    margin: 1rem 0;
}

.payment-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid #e1e8ed;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e1e8ed;
}

th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-weight: 600;
}

tr:hover {
    background: #f8f9fa;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #fff;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
}

.close:hover {
    color: #333;
}

/* Responsive design */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 15px;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .service-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .card {
        padding: 2rem 1rem;
    }

    .contact form {
        padding: 2rem 1.5rem;
    }

    .service-content {
        padding: 2rem 1.5rem;
    }

    .account-container {
        padding: 2rem 1rem;
    }

    .modal-content {
        margin: 20% auto;
        padding: 1.5rem;
    }

    table {
        font-size: 0.9rem;
    }

    th, td {
        padding: 0.75rem 0.5rem;
    }
}


/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
}

.close:hover {
    color: #333;
}

.modal h2 {
    margin-top: 0;
    color: #2c3e50;
}

.modal p {
    margin-bottom: 1rem;
    color: #555;
}

.modal a {
    color: #667eea;
    text-decoration: none;
}

.modal a:hover {
    text-decoration: underline;
}

/* Responsive adjustments for desktop nav before hamburger */
@media (max-width: 1024px) {
    .menu-toggle {
        display: flex;
    }

    header nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1001;
        display: flex;
        justify-content: center;
    }

    header nav ul {
        justify-content: center;
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
    }

    header nav ul li {
        margin: 0;
        text-align: center;
        width: 100%;
    }

    header nav ul li a {
        display: block;
        width: 100%;
        white-space: normal;
    }

    header .container {
        position: relative;
        text-align: center;
    }

    header h1 {
        text-align: center;
    }
}

@media (max-width: 1200px) {
    header nav ul li {
        margin: 0 0.4rem;
    }

    header nav ul li a {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
        letter-spacing: 0.3px;
    }
}

    header nav ul li a {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
        letter-spacing: 0.3px;
    }


@media (max-width: 480px) {
    html {
        font-size: 12px;
    }

    .container {
        padding: 0 10px;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .services h2,
    .about h2,
    .contact h2,
    .service-detail h2 {
        font-size: 2rem;
    }

    .card h3 {
        font-size: 1.2rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .balance-amount {
        font-size: 2.5rem;
    }
}