/* General body styles */
body {
    background: linear-gradient(-45deg, #0D1B2A, #1E3A8A, #0F172A, #1E40AF);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    margin: 0;
    padding: 0;
    font-family: 'PT Serif', Georgia, 'Times New Roman', serif;
    cursor: none;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}


/* Custom cursor and ripple */
.custom-cursor {
    position: fixed;
    width: 15px;
    height: 15px;
    background-color: white;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

.ripple {
    position: fixed;
    width: 20px;
    height: 20px;
    background-color: #00BFFF; 
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    opacity: 0.6;
    animation: ripple-animation 0.6s ease-out forwards;
}

@keyframes ripple-animation {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    100% {
        transform: translate(-50%, -50%) scale(4);
        opacity: 0;
    }
}

/* Text box and headings */
.text-box {
    background-color: rgba(0, 0, 50, 0);
    padding: 20px;
    max-width: 50%;
    margin: 0 auto;
    margin-top: 60px;
    text-align: center;
    color: #8f97b3;
    font-family: 'PT Serif', Georgia, 'Times New Roman', serif;
}

    .text-box h1 {
        color: #4FC3F7;
        margin-top: 50px;
        text-shadow: 2px 2px 4px rgba(0, 0, 50, 0.8);
        font-size: 64px;
    }

    /* Buttons */
    .styled-btn,
    .text-box a {
        display: inline-block;
        width: auto;
        margin: 0;
        background-color: #1E90FF; 
        color: #E0F0FF;
        padding: 10px 20px;
        font-size: 16px;
        font-family: 'PT Serif', Georgia, 'Times New Roman', serif;
        border: none;
        cursor: pointer;
        border-radius: 5px;
        text-shadow: 2px 2px 4px rgba(0, 0, 50, 0.8);
        text-align: center;
        cursor: none !important;
    }

        .styled-btn:hover,
        .text-box a:hover {
            background-color: #00BFFF;
        }

        .styled-btn:active,
        .text-box a:active {
            background-color: #1C86EE;
        }

        .large-btn,
        .text-box a.large-btn {
            width: 200px;
            padding: 14px 24px;
        }

/* Contact form */
.contact-form {
    max-width: 1200px;
    margin: 20px auto;
    background-color: rgba(0, 0, 50, 0.6);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px #00008B;
    display: none;
    flex-direction: column;
    gap: 10px;
    animation: fadeIn 0.3s ease-in-out forwards;
}

    .contact-form form {
        display: flex;
        flex-direction: column;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 10px;
        margin-bottom: 10px;
        font-family: 'PT Serif', Georgia, 'Times New Roman', serif;
        border: none;
        border-radius: 5px;
    }

    .contact-form textarea {
        resize: vertical;
        min-height: 80px;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Projects section */
.projects {
    padding: 60px 20px;
    text-align: center;
    color: #E0F0FF;
}

    .projects h2 {
        font-size: 2.5rem;
        margin-bottom: 40px;
        color: #00BFFF;
    }

.projects-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #82B1FF;
    font-weight: 600;
    letter-spacing: 1px;
}



.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1250px;
    margin: 0 auto;
}
/* Make the entire card clickable */
a.project-card {
    display: block;
    background-color: #2b4dbd;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 10px #00008B;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none !important;
    color: white !important;
    cursor: pointer;
}

    a.project-card:link,
    a.project-card:visited,
    a.project-card:active {
        color: white !important;
        text-decoration: none !important;
    }

    /* Hover effect */
    a.project-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 0 15px #1E90FF;
        text-decoration: none;
    }

/* Content inside card */
.project-card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

.project-card h3 {
    font-size: 1.2rem;
    margin: 10px 0;
    color: white !important; 
    text-decoration: none !important;
    pointer-events: none; 
}

.project-card p {
    font-size: 0.95rem;
    margin-bottom: 15px;
    color: #E0F0FF;
    pointer-events: none;
}

.gallery {
    text-align: center;
    margin-top: 4rem;
    color: #82B1FF;
}

    .gallery h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

.slider {
    position: relative;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 0 20px rgba(255,255,255,0.1);
    margin-bottom: 100px;
}


.slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    display: none;
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: opacity 0.5s ease-in-out;
}

    .slide.active {
        display: block;
        opacity: 1;
    }

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: white;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.3em 0.6em;
    border-radius: 50%;
    user-select: none;
}

    .prev:hover, .next:hover {
        background: rgba(255,255,255,0.2);
    }

.prev {
    left: 10px;
}

.next {
    right: 10px;
}
