/* DevLetics Website Styles */

/* ===== CSS Variables for Theming ===== */
:root {
    --primary-color: #c28316;
    --secondary-color: #141414;
    --accent-color: #f59e0b;
    --text-dark: #092338;
    --text-light: #6b7280;
    --bg-light: #f8fafc;
    --bg-dark: #092338;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 800; /* Bold headings */
    letter-spacing: -0.02em; /* Tighter letter spacing */
    line-height: 1.2; /* Tighter line height for headings */
}

p {
    font-weight: 400;
    max-width: 75ch; /* Optimal reading width */
}

/* ===== Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    font-weight: 400;
    -webkit-font-smoothing: antialiased; /* Better font rendering on Mac */
    text-rendering: optimizeLegibility; /* Improved readability */
}

/* ===== Header/Navigation ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: var(--shadow);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}
/* ===== Hero Section ===== */

.wrapper {
    height: 100vh;
    width: auto;
    overflow-y: auto;
    overflow-x: hidden;
    perspective: 11px; 
}
  
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 30vh;
    align-items: center;
    height: 110vh;
    transform-style: preserve-3d;
    z-index: -1;
    font-family: sans-serif;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0.5rem; /* Häivytyksen korkeus */
    pointer-events: none; /* Ei häiritse klikkauksia */
    background: linear-gradient(to top, rgba(12, 12, 12, 0.7), transparent);
    z-index: 2; /* Näkyy kuvan päällä */
}

.background {
    transform: translateZ(-70px) scale(4); /* Parallax-liike taaksepäin */
    height: 200%;
    width: 200%;
}
  
.foreground {
    transform: translateZ(-20px) scale(3.0); /* Parallax-liike eteenpäin */
    height: 100%;
    width: 100%;
    object-fit: bottom;
    object-position: bottom;   
}

.background, .foreground {
    position: absolute;
    object-fit: cover;
    z-index: -1;
}

.hero-title {
    font-size: 5rem;
    align-items: center;
    color: white;
    text-shadow: 0 0 10px black;
    display: block;
}


.hero-title2 {
    font-size: 1.5rem;
    font-weight: 600;
    font-style: italic;
    align-items: center;
    color: white;
    text-shadow: 0 0 10px black;
    display: block;
}

.hero-title3 {
    font-size: 1
    align-items: center;
    color: white;
    text-shadow: 0 0 15px black(202, 155, 24);
    display: block;
}

/* ===== Section Base Styles ===== */
section {
    padding: 5rem 0;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

/* ===== About Section ===== */
.about {
    padding-top: 8rem; 
    background: var(--bg-light);
    gap: 2rem;
}

.about-content {
    padding-top: 8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

.about-text h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.about-text p {
    font-size: 1.20rem;
    color: var(--text-light);
    max-width: 80ch;
    margin-bottom: 1rem;
}

.about-image {
    /* Removed all frame-related styles */
    background: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

.about-logo {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 18%;
    height: auto;
    margin-bottom: 60px;
}

/* ===== Solution Section ===== */
/* ===== Solution Section ===== */
.solution {
    padding-top: 2rem; 
    background: var(--white);
    max-width: 100%;
}

.solution-content {
    padding-top: 8rem;
    padding-bottom: 5rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    justify-items: center;
    gap: 3rem;
}

.solution-image {
    background: var(--bg-light);
    border-radius: var(--border-radius);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    color: var(--text-light);
}

.solution-text1 {
    font-size: 1.0rem;
    margin: 0;
    padding-top: 0;
    color: var(--bg-dark);
    line-height: 1.6;
    text-align: center;
}

.solution-text {
    font-size: 1.0rem;
    margin: 0;
    padding-top: 0;
    color: var(--bg-dark);
    line-height: 1.6;
    text-align: left;
}

/* ===== Team Section ===== */

/* ===== Video Background Styling ===== */
.team {
    background: var(--bg-light);
    position: relative; /* Needed for absolute video positioning */
    overflow: hidden;   /* Hide overflowing video edges */
    padding: 4rem 0; /* Added padding to create space around content */
}

.team-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Keep it behind content */
    pointer-events: none; /* Allow clicks through video */
}
.team-background-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Poista tai säädä nämä kaksi: */
    background: none; /* Poistaa harmaan taustan */
    filter: none;     /* Poistaa harmaasuodattimen */
}

/* Make sure content stays above the video */
.team > .container {
    position: relative;
    z-index: 2; /* Kasvatettu z-index arvoa */
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.3); /* Hieman läpinäkyvä tausta paremmalle kontrastille */
    border-radius: var(--border-radius);
}


/* ==== Team Section Styles ==== */
.section-title {
    position: relative;
    z-index: 3; /* Korkeampi z-index kuin containerilla */
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.7); /* Tausta paremmalle luettavuudelle */
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}


.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem; /* Added margin to separate from section title */
}

.team-card {
    /* glass-style translucent panel */
    background: rgb(255 255 255 / 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);

    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    padding-bottom: 5rem; /* Space for social icons */
}

.team-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    font-weight: bold;
}

.team-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.team-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    position: absolute;
    bottom: 1.5rem;
    left: 0;
    right: 0;
}

.social-links a {
    display: inline-flex;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.social-links img {
    width: 90%;
    height: 90%;
}

/* ===== Events Section ===== */
.events {
    padding-top: 10rem; 
    padding-bottom: 10rem;
    background: var(--white);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.event-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.event-image {
    height: 200px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-content {
    padding: 1.5rem;
    color: var(--text-dark);
}


.event-content h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.event-date {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.event-content-title {
    padding-left: 1.5rem; /* Sisennys vasemmalta */
    margin: 0.5rem 0; /* Vähän tilaa listan ylä- ja alapuolelle */
    color: var(--primary-color);
    font-size: 1.0em; /* Pienempi fonttikoko */
}
.event-list {
    padding-left: 1.5rem; /* Sisennys vasemmalta */
    margin: 0.5rem 0; /* Vähän tilaa listan ylä- ja alapuolelle */
    font-size: 0.9em; /* Pienempi fonttikoko */
}

.event-last {
    ;
    
}

/* ===== Footer ===== */
footer {
    background: var(--bg-dark);
    color: var(--white);
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

.footer-logo {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--accent-color);
}

.footer-logo {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 135px;
    height: auto;
}

.footer-logo2 {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 235px;
    height: auto;
}

/* ===== Mobile Responsiveness ===== */
@media (max-width: 1024px) {
    /* Tablet adjustments */
    .solution-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Mobile menu adjustments needed here */
    .nav-links {
        display: none; /* TODO: Implement mobile menu toggle */
    }

    .hero {
        min-height: 100vh; /* Reduced height for mobile */
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1.2rem;
        margin-bottom: 10rem;
    }

    .about-content,
    .solution-content {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .about-logo {
        max-width: 25%; /* Larger logo on mobile */
    }
}

@media (max-width: 480px) {
    /* Small mobile adjustments */
    .section-title {
        font-size: 1.8rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .container {
        padding: 0 1rem;
    }

    nav {
        padding: 0 1rem;
    }
}


