@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    text-align: center;
    background-color: black;
    color: white;
    font-family: 'Inter', sans-serif;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

main {
    font-size: 20px;
    flex: 1;
}

.hero-title {
    font-size: 48px;
    margin-top: 100px;
    margin-bottom: 20px;
}

/* Stops hero images from bleeding off smaller screens */
img {
    max-width: 100%;
    height: auto;
}

.cta {
    transform: scale(0.7);
    background-color: #1E90FF;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 28px;
    cursor: pointer;
    text-align: center;
    margin-top: 50px;
    transition: background-color 0.3s;
}

.cta:hover {
    background-color: #135ca5;
}

.hero p {
    margin-top: 50px;
    margin-bottom: 40px;
}

.left {
    text-align: left;
    margin-left: 20px;
}

.right {
    text-align: right;
    margin-right: 20px;
}

.container {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

/* ADDED PADDING SO TEXT NEVER TOUCHES THE EDGE ON OTHER PAGES */
.biggestcontainer {
    padding: 0 20px;
    box-sizing: border-box;
}

.gray-background {
    padding-top: 105px;
    padding-bottom: 200px;
    background-color: #0d141c;
}

.black-background {
    padding-top: 105px;
    padding-bottom: 200px;
    background-color: #000000;
}

.blank {
    padding-top: 20px;
    background-color: #ffffff;
}

.extra-top-padding {
    padding-top: 50px;
}

.extra-bottom-padding {
    padding-bottom: 50px;
}

.flex-sor {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.fix-flex {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.article-1 {
    text-align: left;
    margin-left: 40px;
}

.article-2 {
    text-align: right;
    margin-right: 40px;
}

.black-text {
    color: black;
}

/* Bento Desktop Grid */
.box {
    background-color: #1E90FF;
    margin: 0;
    transition: transform 0.2s;
    cursor: pointer;
}

.box:hover {
    transform: scale(1.02);
}

.grid-container {
    padding-top: 200px;
    margin-top: 40px;
    margin-bottom: 200px;
    transform: scale(0.6);
    transform-origin: top center;
    justify-content: center;
    display: grid;
    grid-template-rows: 150px 50px 220px 300px;
    grid-template-columns: 200px 200px 100px 200px 200px;
    gap: 1em;
    grid-template-areas:
        "box-1 box-2 box-2 box-3 box-3"
        "box-1 box-5 box-5 box-3 box-3"
        "box-4 box-5 box-5 box-3 box-3"
        "box-6 box-6 box-7 box-7 box-7"
        "box-6 box-6 box-7 box-7 box-7";
}

/* Placeholders */
.kep-helye {
    width: 100%;
    max-width: 600px;
    height: 300px;
    background-color: #ff4d4d;
    border: 2px dashed #000;
    margin: 40px auto;
}

.kep-helye2 {
    min-width: 300px;
    height: 530px;
    background-color: #ff4d4d;
    border: 2px dashed #000;
}

/* Header */
.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em 20px;
}

.logo {
    text-decoration: none;
    color: white;
    font-size: 20px;
    /* Removed the 100% width here so it doesn't push the links away */
    white-space: nowrap; 
}

.right-group {
    display: flex;
    gap: 30px;
    align-items: center;
}

.menu-link {
    text-decoration: none;
    color: #888888;
    font-weight: 200;
    transition: color 0.3s ease;
}

.menu-link:hover {
    color: white;
}

/* Footer */
footer {
    background-color: #000000;
    color: rgb(114, 114, 114);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer ul {
    list-style: none;
    text-align: right;
    padding: 0;
}

footer ul li {
    display: inline-block;
    padding: 16px;
}

.footer-a {
    color: inherit;
    text-decoration: underline;
}

/* Utilities */
.longtext {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
    font-size: 20px;
    padding: 0 20px; 
    box-sizing: border-box; 
}

.extreme-top-padding {
    padding-top: 100px;
}

/* MASSIVELY INCREASED DESKTOP MOCKUP SIZE */
.mockup-img {
    width: 100%; 
    max-width: 100%;
}

.bigtext {
    font-size: 64px;
    font-weight: 700;
}

.side-padding {
    padding-right: 40px;
    padding-left: 40px;
}

.bigicon {
    font-size: 50px;
    color: white;
}

.ultralargeicon {
    font-size: 180px;
    color: white;
}

.middle-icon {
    font-size: 100px;
    color: white;
}

.hole {
    height: 300px;
}

.blank {
    background-color: #303030;
    cursor: default;
}

.blank:hover {
    transform: none;
}

.image-shadow {
    filter: drop-shadow(15px 15px 20px rgba(0, 0, 0, 0.5));
}

.bento-differentcolor {
    background-color: #135ca5;
}

.bento-differentcolor2 {
    background-color: #ff4d4d;
}

.article-img {
    width: 100%;
    max-width: 600px;
    margin: 40px auto;
}

.article-img2 {
    width: 100%;
    max-width: 600px;
    margin: 40px 40px 0 40px;
}

body.loading {
    visibility: hidden;
}

.graycolor {
    color: rgb(58, 58, 58);
}

.extra-right-padding {
    padding-right: 80px;
}

.maxwidth300 {
    max-width: 300px;
    width: auto;
    display: block;
    margin: 0 auto;
}


/* ========================================= */
/* MOBILE RESPONSIVE RULES                   */
/* ========================================= */

@media (max-width: 768px) {

    img {
        max-width: 90vw;
        height: auto;
    }

    /* Stack flex elements vertically and center */
    .flex-sor {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .fix-flex {
        grid-template-columns: 1fr;
    }

    .left,
    .right,
    .article-1,
    .article-2 {
        text-align: center;
        margin-left: 0;
        margin-right: 0;
    }

    /* HEADER FIX: Keep Logo left, links securely on the right */
    .header-row {
        flex-direction: row; 
        flex-wrap: nowrap; /* Prevents the whole group from breaking to a new line */
        justify-content: space-between;
        padding: 1em 10px; 
    }

    .right-group {
        gap: 12px; 
        flex-wrap: wrap; /* Allows links to wrap if the screen is super narrow... */
        justify-content: flex-end; /* ...but keeps them glued to the right side! */
        text-align: right;
    }

    .menu-link {
        font-size: 14px; /* Shrunk slightly so it fits neatly beside the logo */
    }

    /* Footer Stacking */
    footer {
        flex-direction: column;
        text-align: center;
    }

    footer ul {
        text-align: center;
    }

    /* THIS IS THE FIX FOR THE SCROLLING ISSUE */
    #bento {
        scroll-margin-top: 100px; 
    }

    /* MOBILE 2-COLUMN BENTO GRID */
    .grid-container {
        margin-top: 200px;
        transform: scale(0.7);
        transform-origin: top center; 
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        width: 100%;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
        gap: 15px;
        padding: 0 10px;
        box-sizing: border-box;
        grid-template-areas:
            "box-1 box-1"
            "box-3 box-3"
            "box-5 box-5"
            "box-4 box-6";
    }

    .box {
        width: 100%;
        min-height: 150px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 20px;
        box-sizing: border-box;
    }

    /* Hides the empty placeholders to save mobile space */
    .blank {
        display: none;
    }

    /* Typography tweaks to prevent text spilling over */
    .hero-title {
        font-size: 36px;
        margin-top: 60px;
    }

    .bigtext {
        font-size: 40px;
    }

    .ultralargeicon {
        font-size: 80px;
    }

    .middle-icon {
        font-size: 60px;
    }
}