﻿/* PAGE INTRO SECTION */
section:first-of-type {
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    margin: auto;
    animation: fadeIn 1s ease-in-out;
}

/* TITLE */
section:first-of-type h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #38bdf8;
}

/* INTRO PARAGRAPH */
section:first-of-type p {
    font-size: 1.1rem;
    color: #cbd5e1;
    line-height: 1.8;
}

/* GRID SECTION */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    padding: 20px;
    max-width: 1100px;
    margin: auto;
}

/* CARDS */
.box {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 18px;
    padding: 25px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* CARD HOVER EFFECT */
.box:hover {
    transform: translateY(-10px);
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.08);
}

/* CARD HEADINGS */
.box h2 {
    color: #38bdf8;
    margin-bottom: 10px;
}

/* CARD TEXT */
.box p {
    color: #cbd5e1;
    line-height: 1.6;
}

/* IMAGE SECTION */
section img {
    width: 260px;
    max-width: 90%;
    margin: 20px;
    border-radius: 16px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* IMAGE HOVER */
.hover-img:hover {
    transform: scale(1.07) rotate(-1deg);
    box-shadow: 0 20px 40px rgba(56, 189, 248, 0.3);
}

/* CENTER IMAGE AREA */
section:last-of-type {
    text-align: center;
    padding: 40px 20px;
}

/* FADE ANIMATION */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* MOBILE */
@media (max-width: 600px) {
    section:first-of-type h1 {
        font-size: 2rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    section img {
        width: 90%;
    }
}