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

:root {
    --primary-blue: #001f4d;
    --darker-blue: #001a40;
    --card-blue: #002b66;
    --neon-yellow: #ffff33;
    --white: #ffffff;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--primary-blue);
    color: var(--white);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header styles */
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem;
    text-align: center;
}

.logo-container {
    width: 150px;
    height: 150px;
    margin-bottom: 1.5rem;
    border-radius: 50%;
    background-color: transparent;
    padding: 0.5rem;
    box-shadow: 0 0 20px rgba(255, 255, 51, 0.3);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-name-container {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-name-img {
    max-width: 320px;
    width: 100%;
    height: auto;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    justify-content: center;
}

.social-icon {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.15);
}

/* Main content styles */
main {
    flex-grow: 1;
}

.card-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 90%;
    max-width: 500px;
    margin: 0 auto;
}

.card {
    background-color: var(--card-blue);
    border-radius: 15px;
    padding: 1.5rem;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.card:hover, .card:focus {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: var(--neon-yellow);
}

.card-icon {
    color: var(--neon-yellow);
    font-size: 2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--neon-yellow);
    position: relative;
    z-index: 1;
    text-align: center;
}

.card p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.image-container {
    width: 100%;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    margin-top: auto;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-image {
    transform: scale(1.05);
}

/* Icon-based image container */
.icon-image {
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: linear-gradient(135deg, rgba(255, 255, 51, 0.1), rgba(255, 255, 51, 0.05));
    border: 2px solid rgba(255, 255, 51, 0.3);
    padding: 2rem 1rem;
}

.icon-image i {
    font-size: 3rem;
    color: var(--neon-yellow);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.card:hover .icon-image i {
    opacity: 1;
    transform: scale(1.1);
}

/* Logo-based image container */
.logo-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 255, 51, 0.1), rgba(255, 255, 51, 0.05));
    border: 2px solid rgba(255, 255, 51, 0.3);
    padding: 0.5rem;
    height: 180px;
}

.service-logo {
    width: 90%;
    height: 90%;
    max-width: none;
    object-fit: contain;
    opacity: 0.95;
    transition: all 0.3s ease;
    filter: brightness(1.2) contrast(1.1);
}

.card:hover .service-logo {
    opacity: 1;
    transform: scale(1.08);
    filter: brightness(1.3) contrast(1.2);
}

/* Shield-like decorative element for cards */
.card::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 150px;
    background-color: rgba(255, 255, 51, 0.05);
    border-radius: 50% 50% 0 0;
    z-index: 0;
    transition: all 0.3s ease;
}

.card:hover::before {
    top: 90%;
    background-color: rgba(255, 255, 51, 0.1);
}

/* Terms and Privacy section styles */
.terms-privacy-section {
    margin-top: 2.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: rgba(0, 43, 102, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 51, 0.2);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.terms-title {
    color: var(--neon-yellow);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.terms-content {
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    text-align: justify;
    text-justify: inter-word;
}

/* Footer styles */
footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive styles */
@media (min-width: 768px) {
    .brand-name {
        font-size: 3rem;
    }
    
    .instagram-handle {
        font-size: 1.5rem;
    }
    
    .card-container {
        width: 100%;
        max-width: 100%;
        flex-direction: row;
        justify-content: center;
    }
    
    .card {
        flex: 1;
        max-width: 350px;
    }
}

@media (max-width: 767px) {
    .logo-container {
        width: 120px;
        height: 120px;
    }
    
    .brand-name {
        font-size: 2rem;
    }
    
    .card {
        padding: 1.2rem;
    }
    
    .card h3 {
        font-size: 1.2rem;
    }
    
    .terms-privacy-section {
        margin-top: 2rem;
        padding: 1.2rem;
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }
    
    .terms-title {
        font-size: 1rem;
    }
    
    .terms-content {
        font-size: 0.8rem;
        text-align: left;
    }
}

/* Animation keyframes for subtle hover effects */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 51, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 51, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 51, 0);
    }
}
