/*-------------------------------------------SOME RESETS----------------------------------*/


button {
    appearance: none;
    border: none;
    background: none;
    font: inherit;
    color: inherit;
    padding: 0;
}

button {
    cursor: pointer;
}

button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

a {
    color: inherit;
    text-decoration: none;
}

*, *::before, *::after{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    
}


/* Prevent layout breakage from long strings (URLs, hashes, etc.) */
p,
li,
h1, h2, h3, h4, h5, h6,
blockquote {
    overflow-wrap: anywhere;
}


/*-----------------------------GLOBAL RULES-----------------------------------------------------*/


html {
    font-family: system-ui, -apple-system, "Segoe UI", RM, sans-serif;
    font-size: 22px; /* 1rem = 20px */
    line-height: 1.5;
    color: #222;
    background-color: #fafafa;
    scroll-behavior: smooth;
}


:root{
    --body-bg: whitesmoke; /*bu güzel*/

    /* Spacing scale (5px base) */
    --space-1: 0.25rem; 
    --space-2: 0.5rem;  
    --space-3: 1rem;    
    --space-4: 1.5rem;  
    --space-5: 2rem;    
    --space-6: 4rem;
    --space-7: 8rem;   

    /* Colors */
    --color-bg: #ffffff;
    --bg-beige: #f5efe3;
    --bg-blue: #087182;
    --color-surface: #ffffff;
    --color-text: #222;
    --color-text-muted: #555;
    --color-accent: #3a7afe;
    --color-border: rgba(0,0,0,0.1);
    --color-green: rgb(81, 102, 81);
    --somatik-blue: #0e2a3a;
    --somatik-blue-hover: #0e2a3add;
    --somatik-orange: #ca3d33;

    /* Radius & shadows */
    --radius: 0.5rem;
    --shadow-small: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-medium: 0 3px 10px rgba(0,0,0,0.08);
    --shadow-intense: 0 5px 15px rgb(0, 0, 0);
    --shadow-custom: 0 2px 4px rgba(0,0,0,0.1);
}
/* size - size2 / 2 */

body{
    background-color: var(--bg-beige);
    min-height: 100dvh;
}

img{
    display: block;
}

ul{
    list-style-position: inside;
}

/*--------------------------------------MAIN CONTENT STYLES-----------------------------------------*/


main{
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section{
    width: 100%;
    display: flex;
    justify-content: center;
    padding: var(--space-3) 0;
    margin: var(--space-2) 0;
}

.content{
    width: 100%;
    max-width: 100ch;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap:var(--space-3);
    padding: var(--space-3);
}


.content img{
    max-width: 100%;
    /*max-height: 500px;*/
}


/*-------------------------------------------BUTTONS AND MISC-------------------------------------------------------*/


.btn {
    padding: var(--space-2) var(--space-3);
    background: var(--color-accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s, transform 0.1s;
    box-shadow: var(--shadow-small);
    width: fit-content;
}

.btn:hover {
    background: #1f6bfd;
}

.btn:active {
    transform: translateY(1px);
}

.btn:focus {
    outline: 2px solid #aac9ff;
    outline-offset: 2px;
}

.custom-button{
    background-color: var(--somatik-blue);
    color: #fffeee;
    padding: var(--space-2);
    border-radius: 16px;
    transition: padding 0.3s cubic-bezier(.25,.46,.45,.94);
}

.custom-button:hover{
    padding: var(--space-3);
    background-color: var(--somatik-blue-hover);
}

.space{
    white-space: pre-wrap;
}

.lean-left{
    width: 100%;
    text-align: left;
}

.tab{
    margin: var(--space-3);
}

.horizontal-line {
    position: relative;
    height: 1px;               
    margin: var(--space-4) 0;
    width: 100%;
    border: none;
}

.horizontal-line::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #836745;
    width: 100%;

    transform: scaleY(0.5);
    transform-origin: center;
}


h1, h2, h4 p{
    padding: 0;
    margin:0;
}


footer{
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: var(--space-3);
}


/*--------------------------------------------MEDIA RULES-----------------------------------------------------------*/


@media (max-width: 768px) {

    .section{
        padding: var(--space-4) var(--space-3);
    }

    .content{
        max-width: 100%;
    }

}

