* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: white;
}
body {
    font-family: 'Inter', sans-serif;
    background-color: white;
}

.main-header {
    width: 100%;
    padding: 20px 40px;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-left {
    display: flex;
    gap: 25px;
}

.nav-left a {
    text-decoration: none;
    font-weight: 600;
    color: black;
    font-size: 16px;
    position: relative;
}

.nav-left a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0%;
    height: 2px;
    background: black;
    transition: width 0.3s ease;
}

.nav-left a:hover::after {
    width: 100%;
}

.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 1px;
    white-space: nowrap;
    text-decoration: none;
    color: black;
    transition: color 0.3s ease, transform 0.3s ease;
}

.logo:hover {    
    transform: translateX(-50%) scale(1.08); 
}

.nav-right {
    display: flex;
    gap: 18px;
}

.nav-right img {
    width: 22px;
}

.about-top-gallery {
    width: 100%;
    display: flex;
    position: relative; 
}

.about-top-gallery img {
    width: 25%;
    height: 520px;
    object-fit: cover;
}

.about-quote {
    display: flex;
    flex-direction: column;
    justify-content: center;   
}

.about-tag {
    font-size: 28px;
    margin-bottom: 10px;
}

.about-title {
    font-family: 'Anton', sans-serif;
    font-size: 120px;
    line-height: 1;
}

.about-desc {
    margin: 80px auto 40px;
    font-size: 20px;
    line-height: 1.7;
    max-width: 1200px;
    text-align: center;
}

.about-intro {
    padding: 60px 40px;
    max-width: none;
    margin: 0 auto;
    text-align: center;
}

.about-intro h2 {
    font-family: 'Anton', sans-serif;
    font-size: 56px;
    margin-bottom: 24px;
    max-width: none;
}

.about-intro p {
    font-size: 20px;
    line-height: 1.7;
    margin-bottom: 0px;
    max-width: 900px;
    margin-left: auto;   
    margin-right: auto;  
}

.double-boxes {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding-top: 20px;
    padding-bottom: 60px;
    max-width: 1300px;
    margin: 0 auto;
}

.info-box-left,
.info-box-right {
    flex: 1;
    background: #f3f3f3;
    border-radius: 18px;
    padding: 40px 50px;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

.info-box-left:hover,
.info-box-right:hover {
    background: #eaeaea;
    transform: translateY(-6px);
}

.double-boxes h3 {
    font-family: 'Anton', sans-serif;
    font-size: 40px;
    margin-bottom: 12px;
}

.double-boxes p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 22px;
}

.small-btn {
    padding: 12px 32px;
    background: black;
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    display: inline-block;     
    transition: transform 0.25s ease;
}

.small-btn:hover {
    transform: scale(1.05);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: white;
    border-radius: 10px;
    text-decoration: none;
    color: black;
    font-size: 17px;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
}

.social-links a:hover {
    background: #ddd;
    transform: translateY(-3px);
}

.social-links img {
    width: 26px;
}

.footer-info {
    width: 100%;
    background-color: lightgray;
    padding: 40px 0;
}

.footer-info-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;   
    align-items: flex-start;
    gap: 400px;                
    text-align: center;        
}

.info-box {
    width: 260px;
}

.info-box strong {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    display: block;
}

.info-box p {
    font-size: 28px;
    line-height: 1.7;
    margin: 0;
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 19px;
    cursor: pointer;
    border-radius: 20px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -4px;
    max-height: 32px;
}

.theme-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: scale(1.1);
}

.theme-toggle:active {
    transform: scale(0.95);
}

/* --- RESPONSIVE --- */

@media (max-width: 1024px) {

    .about-top-gallery img {
        height: 380px;
    }

    .about-title {
        font-size: 90px;
    }

    .double-boxes {
        gap: 40px;
        padding: 40px 20px;
    }

    .double-boxes h3 {
        font-size: 32px;
    }

    .footer-info-inner {
        gap: 140px;
    }

    .info-box {
        width: 240px;
    }

    .info-box strong {
        font-size: 30px;
    }

    .info-box p {
        font-size: 26px;
    }
}

@media (max-width: 768px) {

    .about-top-gallery img {
        height: 320px;
    }

    .about-title {
        font-size: 70px;
    }

    .about-intro h2 {
        font-size: 48px;
    }

    .about-intro p {
        font-size: 18px;
    }

    .double-boxes {
        gap: 30px;
        padding: 30px 20px;
    }

    .double-boxes h3 {
        font-size: 28px;
    }

    .double-boxes p {
        font-size: 16px;
    }

    .small-btn {
        font-size: 16px;
        padding: 10px 28px;
    }

    .footer-info-inner {
        gap: 60px;
    }

    .info-box {
        width: 200px;
    }

    .info-box strong {
        font-size: 26px;
    }

    .info-box p {
        font-size: 22px;
    }
}

/* Väikesed ekraanid – kuni 720px */
@media (max-width: 720px) {

    .main-header {
        padding: 12px 16px;
    }

    .nav-left {
        gap: 12px;
    }

    .nav-left a {
        font-size: 14px;
    }

    .logo {
        font-size: 14px;
    }

    /* --- Top gallery muutub 2x2 gridiks --- */
    .about-top-gallery {
        flex-wrap: wrap;
    }

    .about-top-gallery img {
        width: 50%;
        height: 280px;
    }

    /* --- Suur ABOUT title --- */
    .about-title {
        font-size: 50px;
    }

    .about-tag {
        font-size: 20px;
    }

    .about-desc {
        font-size: 16px;
        padding: 0 12px;
        margin-top: 40px;
    }

    .about-intro h2 {
        font-size: 36px;
    }

    .about-intro p {
        font-size: 16px;
        max-width: 90%;
    }

    /* Info-boxed stacked layout */
    .double-boxes {
        flex-direction: column;
        gap: 25px;
        padding: 20px;
    }

    .info-box-left,
    .info-box-right {
        padding: 25px;
    }

    .double-boxes h3 {
        font-size: 24px;
    }

    .double-boxes p {
        font-size: 15px;
    }

    .small-btn {
        font-size: 15px;
        padding: 9px 24px;
    }

    .footer-info-inner {
        flex-direction: column;
        gap: 30px;
        padding: 30px 20px;
    }

    .info-box {
        width: 100%;
        text-align: center;
    }

    .info-box strong {
        font-size: 22px;
    }

    .info-box p {
        font-size: 18px;
    }
}


/* Väga väiksed ekraanid – kuni 480px */
@media (max-width: 480px) {

    .main-header {
        padding: 8px 12px;
    }

    .nav-left {
        gap: 8px;
    }

    .nav-left a {
        font-size: 12px;
    }

    .logo {
        font-size: 12px;
    }

    .about-top-gallery img {
        width: 100%;
        height: 240px;
    }

    .about-title {
        font-size: 40px;
    }

    .about-tag {
        font-size: 18px;
    }

    .about-desc {
        font-size: 15px;
        padding: 0 10px;
        margin-top: 30px;
    }

    .about-intro h2 {
        font-size: 28px;
    }

    .about-intro p {
        font-size: 15px;
    }

    .double-boxes {
        padding: 15px;
    }

    .info-box-left,
    .info-box-right {
        padding: 20px;
    }

    .double-boxes h3 {
        font-size: 22px;
    }

    .double-boxes p {
        font-size: 14px;
    }

    .small-btn {
        font-size: 14px;
        padding: 8px 20px;
    }

    .social-links a {
        font-size: 14px;
        padding: 8px 12px;
    }

    .info-box strong {
        font-size: 18px;
    }

    .info-box p {
        font-size: 16px;
    }
}
