.explore {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.488);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.explore-img {
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 8px;
    transform: perspective(1000px) rotateY(0deg);
    transition: all 0.5s ease;
}
.explore:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.explore:hover .explore-img {
    transform: perspective(1000px) rotateY(10deg);
}

.explore-content {
    flex: 1; 
}

body {
     font-family:Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    background-color: #f5f5f5;
    padding: 40px 20px;
}

h1{
    color: #005f74;
    margin-bottom: 20px;
    transition: color 0.3s ease;
    position: relative;
    font-size: 30px;
}

p {
    color: #00235f;
    text-align: left;
    font-size: 18px;
}

img {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.line {
    border: none;
    height: 4px;
    width: 250px; 
    background-color: #005f74;
    margin: 0;
    margin-bottom: 30px;
    border-radius: 5px;
}

.quote {
    font-family: 'Courier New', Courier, monospace;
    font-style: italic;
    font-size: 18px;
    color: #444;
    margin-top: 40px;
    text-align: right;
    padding-right: 40px;
    max-width: 400px;
    float: right;
}

.quote .typing {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    animation: typing 4s steps(45, end), blink 0.75s step-end infinite;
    border-right: 4px solid #005f74;
    box-sizing: border-box;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink {
    50% { border-color: transparent; }
}

.button {
    background-color: #002769;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease;
    bottom: 8px;

    position: absolute;   
    left: 50%;              
    transform: translateX(50%);
    width: fit-content;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.496);
}

.button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: skewX(-20deg);
    transition: left 0.5s ease;
}

.button:hover::before {
    left: 125%;
}

.button:hover {
    background: linear-gradient(135deg, #0040a0, #007bff);
    box-shadow: 0 6px 25px rgba(0, 91, 255, 0.5);
   
}

@media only screen and (max-width: 900px) {
    .explore {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
        text-align: center;
    }

    .explore-img {
        width: 100%;
        transform: none !important;
    }

    .explore-content {
        width: 100%;
    }

    h1 {
        font-size: 26px;
    }

    p {
        font-size: 16px;
        text-align: center;
    }

    .line {
        width: 180px;
        margin-left: auto;
        margin-right: auto;
    }

    .quote {
        float: none;
        text-align: center;
        padding-right: 0;
        max-width: 100%;
        margin-top: 20px;
        font-size: 10px;
    }

    .button {
        position: static;
        transform: none;
        margin: 20px auto 0;
        display: block;
    }
}
