/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #fff;
    background: linear-gradient(45deg, #ff00ff, #00ffff, #ffff00, #ff0000);
    background-size: 400% 400%;
    animation: gradientShift 10s ease infinite;
    font-size: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 55px;
}

h1, h2, h3, h4, h5, h6 {
    font-size: 1.7em;
    line-height: 1.3;
}

p {
    margin: 15px 0;
    text-align: center;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    font-size: 1.1em;
    line-height: 1.6;
}

.intro-text {
    opacity: 0;
    transform: translateX(-100%);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.intro-text.animate {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.slide-in-right.animate {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-up {
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.slide-in-up.animate {
    opacity: 1;
    transform: translateY(0);
}

.ideology {
    text-align: center;
    margin: 40px auto;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ideology h2 {
    margin-bottom: 20px;
    color: #000;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.ideology ol {
    list-style: decimal;
    padding-left: 20px;
    text-align: left;
    display: inline-block;
}

.ideology li {
    margin: 10px 0;
    font-size: 1.2em;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.ideology.animate .fade-in-delay-1 {
    animation: fadeIn 0.5s ease-out 0.5s forwards;
}

.ideology.animate .scale-in-delay-2 {
    animation: scaleIn 0.5s ease-out 1s forwards;
}

.ideology.animate .rotate-in-delay-3 {
    animation: rotateIn 0.5s ease-out 1.5s forwards;
}

.ideology.animate .bounce-in-delay-4 {
    animation: bounceIn 0.5s ease-out 2s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes scaleIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: scale(0.8) rotate(-180deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Mobile-first responsive typography */
@media (max-width: 768px) {
    body {
        font-size: 18px;
        gap: 20px;
    }

    h1, h2, h3, h4, h5, h6 {
        font-size: 1.4em;
        line-height: 1.4;
    }

    p {
        font-size: 1em;
        line-height: 1.5;
        color: #fff !important;
    }

    .logo {
        max-width: 200px;
    }

    .oval-image {
        width: 150px;
        height: 150px;
    }

    .images-container .oval-image:nth-child(2) {
        display: none;
    }

    .features {
        padding: 20px;
    }

    .cta-button {
        padding: 12px 24px;
        max-width: 200px;
    }

    .ideology {
        margin: 20px auto;
        max-width: 90%;
        padding: 15px;
    }

    .ideology h2 {
        font-size: 1.4em;
    }

    .ideology li {
        font-size: 1em;
    }
}

/* Specific element styling */
h2 {
    font-weight: bold;
    margin: 20px 0 10px 0;
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

p {
    margin: 15px 0;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

li {
    margin: 10px 0;
    font-size: 0.9em;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

strong {
    font-weight: 600;
    color: #fff;
}

/* Testimonials section */
.testimonials {
    margin: 30px auto;
    max-width: 1400px;
    text-align: center;
}

.testimonials h2 {
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.testimonial {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.testimonial p {
    font-style: italic;
    margin-bottom: 10px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.testimonial cite {
    font-weight: bold;
    color: #ff00ff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Container for pages like tos.php */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

/* ToS page specific styles */
.container h1 {
    text-align: center;
    color: #ffff00;
    text-shadow: 0 0 20px #fff;
    margin-bottom: 30px;
}

.container h2 {
    color: #00ffff;
    border-bottom: 2px solid #ff00ff;
    padding-bottom: 10px;
    margin-top: 30px;
    text-align: center;
}

.container .intro {
    text-align: center;
}

.container .warning {
    background: rgba(255, 0, 0, 0.3);
    border: 2px solid #ff0000;
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 30px;
    color: #fff;
    text-decoration: none;
    font-size: 1.2em;
}

.back-link:hover {
    color: #ffff00;
}

/* Features section */
.features {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    margin: 20px auto;
    max-width: 1400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Palm trees section */
.palm-trees {
    margin: 20px auto;
    max-width: 1400px;
    text-align: center;
}

.palm-trees h2 {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

/* Button styling */
.cta-button {
    display: block;
    background-color: #007bff;
    color: white;
    padding: 14px 26px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin: 20px auto;
    transition: background-color 0.3s;
    text-align: center;
    max-width: 450px;
}

.cta-button:hover {
    background-color: #0056b3;
}

/* Mobile button adjustments */
@media (max-width: 480px) {
    .cta-button {
        max-width: 180px;
        padding: 10px 20px;
        font-size: 0.9em;
    }
}

/* Footer */
footer {
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-links {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin: 0 15px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.footer-links a:hover {
    text-decoration: underline;
    color: #ff00ff;
}

/* Logo and images */
.logo {
    display: block;
    margin: 20px auto;
    max-width: 400px;
    height: auto;
}

.logo:hover {
    transform: perspective(1000px) rotateY(10deg);
    transition: transform 0.3s ease;
}

.images-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px 0;
}

.oval-image {
    margin: 10px 20px;
    border-radius: 50%;
    overflow: hidden;
    width: 280px;
    height: 280px;
}

.oval-image:hover {
    transform: perspective(1000px) rotateX(10deg);
    transition: transform 0.3s ease;
}

.oval-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .oval-image {
        width: 120px;
        height: 120px;
    }

    .footer-links {
        flex-direction: row;
        align-items: center;
    }

    .footer-links li {
        margin: 0 10px;
    }

    /* Make paragraph text white on mobile for better readability */
    p {
        color: #fff !important;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    }

    /* Also make list items white on mobile */
    li {
        color: #fff !important;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    }

    /* Make headings white on mobile */
    h2 {
        color: #fff !important;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    }

    /* Mobile testimonials adjustments */
    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .testimonial {
        padding: 15px;
        border-radius: 10px;
    }

    .testimonials {
        margin: 20px 10px;
    }
    /* Mobile container adjustments */
    .container {
        margin: 10px;
        padding: 20px;
        border-radius: 10px;
    }
    /* Make footer links white on mobile */
    .footer-links a {
        color: #fff !important;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;
    }

    /* Fix features section alignment on mobile */
    .features {
        margin: 15px 10px;
        padding: 15px;
        border-radius: 10px;
    }

    .features h2 {
        margin-bottom: 15px;
        font-size: 1.3em;
    }

    .features ul {
        text-align: left;
        padding-left: 20px;
    }

    .features li {
        margin-bottom: 8px;
        line-height: 1.4;
    }

    /* Make logo a touch bigger on mobile */
    .logo {
        max-width: 220px;
    }
}