/* ------------------------------
   UKADEMY - MAIN STYLES
--------------------------------- */

/* Basic page settings */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #222;
    line-height: 1.6;
    background-color: #ffffff;
}


/* Keeps content centred */
.container {
    width: 90%;
    max-width: 1150px;
    margin: 0 auto;
}


/* ------------------------------
   HEADER
--------------------------------- */

header {
    background-color: #d71920;
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    display: block;
    width: 320px;
    height: auto;
}

nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 38px;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
}

nav a:hover {
    opacity: 0.75;
}


/* ------------------------------
   HERO
--------------------------------- */

.hero {
    min-height: 560px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 20%, rgba(215, 25, 32, 0.10) 0, rgba(215, 25, 32, 0) 30%),
        linear-gradient(135deg, #ffffff 0%, #fafafa 55%, #f3f3f3 100%);
}

.hero::after {
    display: none;
}

.hero-visual {
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(500px, 38vw, 650px);
    height: clamp(500px, 38vw, 650px);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.hero-visual img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.18;
    filter: brightness(0) saturate(100%)
            invert(17%) sepia(93%) saturate(3912%)
            hue-rotate(350deg) brightness(93%) contrast(90%);
}

.hero .container {
    max-width: 1150px;
    text-align: left;
    position: relative;
    z-index: 1;
}

.hero h1 {
    max-width: 720px;
    font-size: 62px;
    line-height: 1.08;
    letter-spacing: -2px;
    margin: 0 0 22px;
    color: #1f1f1f;
}

.hero p {
    max-width: 620px;
    font-size: 20px;
    line-height: 1.7;
    margin: 0 0 32px;
    color: #555555;
}


/* ------------------------------
   BUTTONS
--------------------------------- */

.hero-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
}

.button,
button {
    display: inline-block;
    background-color: #d71920;
    color: white;
    padding: 13px 26px;
    border: 2px solid #d71920;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.button:hover,
button:hover {
    background-color: #b51419;
    border-color: #b51419;
}

.button-secondary {
    background-color: white;
    color: #d71920;
}

.button-secondary:hover {
    background-color: #d71920;
    color: white;
}


/* ------------------------------
   GENERAL SECTIONS
--------------------------------- */

section {
    padding: 80px 0;
}

section h2 {
    text-align: center;
    font-size: 36px;
    margin-top: 0;
    margin-bottom: 35px;
}


#feedback p {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
    font-size: 18px;
}


/* ------------------------------
   ABOUT
--------------------------------- */

#about {
    background-color: #ffffff;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 90px;
    align-items: center;
}

.about-heading h2 {
    text-align: left;
    font-size: 38px;
    line-height: 1.25;
    margin: 10px 0 0;
    max-width: 500px;
}

.section-label {
    color: #d71920;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 2px;
}

.about-text p {
    font-size: 17px;
    line-height: 1.8;
    color: #555555;
    margin: 0 0 18px;
}


/* ------------------------------
   SERVICES
--------------------------------- */

#services {
    background-color: #f7f7f7;
}

#services h2 {
    margin-bottom: 50px;
}

.services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.service {
    background-color: #ffffff;
    padding: 40px 35px;
    border-radius: 10px;
    border-top: 4px solid #d71920;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.service-image-placeholder {
    height: 160px;
    background-color: #e8e8e8;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888888;
    margin-bottom: 25px;
}

.service-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    margin-bottom: 25px;
}

.service h3 {
    margin: 0 0 16px;
    font-size: 21px;
    color: #222222;
}

.service p {
    margin: 0;
    color: #555555;
    line-height: 1.7;
}


/* ------------------------------
   PHOTO PLACEHOLDERS
--------------------------------- */

.study-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.study-photo {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    opacity: 1;
    transition: opacity 0.7s ease;
}

/* ------------------------------
   FEEDBACK
--------------------------------- */

#feedback {
    background-color: #f7f7f7;
    text-align: center;
}

#feedback h2 {
    margin-top: 8px;
    margin-bottom: 45px;
}

.testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    text-align: left;
}

.testimonial {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    opacity: 1;
    transition: opacity 0.7s ease;
}

.quote-mark {
    color: #d71920;
    font-size: 48px;
    font-weight: bold;
    line-height: 0.8;
    margin-bottom: 15px;
}

.testimonial p {
    margin: 0 0 25px;
    color: #555555;
    line-height: 1.7;
    text-align: left;
}

.testimonial-name {
    font-weight: bold;
    font-size: 14px;
}

/* ------------------------------
   INSTAGRAM
--------------------------------- */

#instagram {
    background-color: #ffffff;
}

.instagram-content {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 70px;
    align-items: start;
}

.instagram-visual {
    position: relative;
    padding-bottom: 70px;
}

.instagram-grid-image {
    display: block;
    width: 100%;
    border-radius: 10px;
}

.instagram-profile-card {
    position: absolute;
    width: 52%;
    left: 30px;
    bottom: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.instagram-profile-image {
    display: block;
    width: 100%;
    height: auto;
}

.instagram-stats-blur {
    position: absolute;
    left: 27%;
    top: 41%;
    width: 56%;
    height: 12%;
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.instagram-text h2 {
    text-align: left;
    font-size: 38px;
    line-height: 1.25;
    margin: 10px 0 20px;
}

.instagram-text p {
    color: #555555;
    font-size: 17px;
    line-height: 1.8;
    margin: 0 0 28px;
}

/* ------------------------------
   CONTACT
--------------------------------- */

#contact {
    text-align: center;
}

#contact h2 {
    margin-top: 8px;
    margin-bottom: 45px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: start;
    text-align: left;
}

.contact-info h3 {
    font-size: 28px;
    line-height: 1.3;
    margin: 0 0 20px;
}

.contact-info > p {
    color: #555555;
    line-height: 1.8;
    margin-bottom: 30px;
}

.contact-detail {
    margin-bottom: 16px;
}

.contact-detail strong {
    display: inline;
    color: #222222;
    margin-right: 6px;
}

.contact-flag {
    width: 20px;
    height: auto;
    vertical-align: middle;
    margin-right: 5px;
}

.contact-detail a {
    color: #555555;
    text-decoration: none;
}

.contact-detail a:hover {
    color: #d71920;
}

form {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input,
textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #cccccc;
    border-radius: 5px;
    font-family: inherit;
    font-size: 16px;
}

textarea {
    min-height: 140px;
    resize: vertical;
}


/* ------------------------------
   FOOTER
--------------------------------- */

footer {
    background-color: #d71920;
    color: #ffffff;
    padding: 28px 0;
    text-align: center;
}

.footer-copyright {
    margin: 0;
    font-size: 16px;
}

/* ------------------------------
   MOBILE
--------------------------------- */

@media (max-width: 768px) {

    .about-content {
    grid-template-columns: 1fr;
    gap: 30px;
    }

    .about-heading h2 {
    font-size: 30px;
    }

    .testimonials {
    grid-template-columns: 1fr;
    }

    header .container {
        flex-direction: column;
        gap: 12px;
    }

    .logo img { 
        width: 180px;
        height: auto;
    }

    nav {
        gap: 14px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        min-height: 450px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero p {
        font-size: 18px;
    }

    .services,
    .study-gallery {
        grid-template-columns: 1fr;
    }

    section {
        padding: 60px 0;
    }

    nav a {
        font-size: 14px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-info h3 {
        font-size: 24px;
    }
 
}