/* 
* Keep Studio - Main Stylesheet
*/

/* Variables organized by screen size */
:root {
    /* Font Families */
    --font-primary: 'AeonikFono', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
    
    /* Colors */
    --color-primary: #0E1BDB;
    --color-background: #fff;
    --color-border: #E8E8E8;
    
    /* Spacing */
    --spacing-large: 180px;
    --spacing-medium: 80px;
    --spacing-small: 20px;
    
    /* Typography */
    --h1-size: 90px;
    --h1-line-height: 105%;
    --h1-letter-spacing: -2px;
    
    --h2-size: 28px;
    --h2-letter-spacing: -0.15px;
    
    --body-size: 25px;
    --body-line-height: 140%;
    --body-letter-spacing: -0.1px;
    
    --table-size: 18px;
    
    /* Font Weights */
    --font-weight-regular: 400;
    --font-weight-medium: 500;
}
  
/* Font imports */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&display=swap');
  
/* AeonikFono for the Slogan */
@font-face {
    font-family: 'AeonikFono';
    src: url('fonts/aeonikfono-medium.woff2') format('woff2'),
         url('fonts/aeonikfono-medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
}
  
/* General Styles */
body {
    font-family: var(--font-secondary);
    background-color: var(--color-background);
    color: var(--color-primary);
    margin: 0;
    padding: 0;
    line-height: var(--body-line-height);
    font-size: var(--body-size);
    letter-spacing: var(--body-letter-spacing);
}
  
/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-medium);
    color: var(--color-primary);
}
  
h1.slogan {
    font-family: var(--font-primary);
    font-size: var(--h1-size);
    line-height: var(--h1-line-height);
    letter-spacing: var(--h1-letter-spacing);
    margin: var(--spacing-medium) 0;
    min-height: 190px;
    white-space: pre-line;
    font-weight: var(--font-weight-medium);
    /* Animation styles */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
  
h1.slogan.show {
    opacity: 1;
    transform: translateY(0);
}
  
h2 {
    font-size: var(--h2-size);
    margin: var(--spacing-large) 0 var(--spacing-small);
    letter-spacing: var(--h2-letter-spacing);
    font-family: var(--font-primary);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.3s ease;
}

h2.show {
    opacity: 1;
    transform: translateY(0);
}
  
p {
    font-size: var(--body-size);
    line-height: var(--body-line-height);
    margin: 2px 0;
}
  
a {
    color: var(--color-primary);
    text-decoration: underline;
    transition: text-decoration 0.3s ease-in-out;
}
  
a:hover {
    text-decoration: none;
}
  
/* Layout */
.container {
    width: 70%;
    margin: 0 auto;
    max-width: 1000px;
    padding: 60px 0;
}
  
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
  
.content {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
  
.content.show {
    opacity: 1;
    transform: translateY(0);
}

.intro-text {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
  
.intro-text.show {
    opacity: 1;
    transform: translateY(0);
}
  
.two-column-row {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: var(--spacing-large);
    padding-top: 100px;
    padding-bottom: var(--spacing-large);
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
  
.two-column-row.show {
    opacity: 1;
    transform: translateY(0);
}
  
.column {
    width: 50%;
}

/* Make all two-column-row content appear immediately with the row */
.two-column-row h2,
.two-column-row p {
    opacity: 1;
    transform: translateY(0);
    transition: none;
}
  
/* Projects Section */
.projects {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
  
.projects.show {
    opacity: 1;
    transform: translateY(0);
}
  
.projects table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--table-size);
    font-family: var(--font-mono);
}
  
.projects th, .projects td {
    text-align: left;
    padding: 8px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-primary);
}

/* No hover effects for table rows */
.projects table tr:not(:first-child) {
    transition: none;
}
  
.no-padding {
    padding-left: 0 !important;
}
  
/* Contact Section */
.contact-info {
    padding-top: 200px;
}
  
/* Slider styles */
.horizontal-slider {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
}
  
.slider-track {
    display: flex;
    overflow-x: scroll;
    -ms-overflow-style: none;
    scrollbar-width: none;
    gap: 0;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: auto;
}
  
.slider-track::-webkit-scrollbar {
    display: none;
}
  
.slider-item {
    flex: 0 0 auto;
    width: auto;
    margin: 0;
    padding: 0;
}
  
.slider-item img {
    height: 100%;
    width: auto;
    display: block;
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
    object-fit: cover;
}
  
/* Footer */
footer {
    text-align: left;
    padding: 4px 0;
    color: var(--color-primary);
    font-size: var(--body-size);
}

/* Tablet breakpoint (1000px) */
@media screen and (max-width: 1000px) {
    :root {
        --h1-size: 48px;
        --h1-line-height: 110%;
        
        --h2-size: 22px;
        
        --body-size: 18px;
        
        --table-size: 11px;
        
        --spacing-large: 80px;
        --spacing-medium: 40px;
        --spacing-small: 12px;
    }
        
    .container {
        width: 90%;
        padding: 24px 0;
    }

    h1.slogan {
        min-height: 105px;
    }
    
    .two-column-row {
        flex-direction: column;
        gap: 24px;
        padding-bottom: 40px;
    }
    
    .column {
        width: 100%;
    }
    
    .projects th, .projects td {
        padding: 4px;
    }
    
    .contact-info {
        padding-top: 100px;
    }
}

/* Tablet-small breakpoint (768px) */  
@media screen and (max-width: 768px) {
    .slider-item[style*="height: 280px"] {
        height: 180px !important;
    }
    
    .slider-item[style*="height: 370px"] {
        height: 240px !important;
    }
    
    .slider-item[style*="height: 200px"] {
        height: 129px !important;
    }
}

/* Mobile breakpoint (480px) */  
@media screen and (max-width: 480px) {
    .slider-item[style*="height: 280px"] {
        height: 140px !important;
    }
    
    .slider-item[style*="height: 370px"] {
        height: 185px !important;
    }
    
    .slider-item[style*="height: 200px"] {
        height: 100px !important;
    }
}