/*
Modern & Responsive Styles for Setapp Landing
Author: Gemini
*/

/* 1. Variables & Root ================================= */
:root {
  --primary-color: #0d6efd; 
  --primary-hover: #0b5ed7;
  --secondary-color: #6c757d;
  --dark-color: #212529;
  --light-color: #f8f9fa;
  --white-color: #ffffff;
  --font-family-base: 'Montserrat', sans-serif;
  --border-radius: 0.375rem;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 2. Base & Typography ================================= */
body {
  font-family: var(--font-family-base);
  color: var(--dark-color);
  background-color: var(--white-color);
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 0.75rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

a:hover { color: var(--primary-hover); }

.section {
    padding: 80px 0;
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
}

/* 3. Navbar & Mobile Menu ================================= */
.navbar {
    padding: 1rem 0;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--box-shadow);
}

.navbar .navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
}

.navbar .nav-link { font-weight: 500; margin: 0 0.5rem; }

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--dark-color);
}

/* 4. Buttons & Images ================================= */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    border: 1px solid transparent;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color) !important;
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.15);
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

/* 5. Sections & Cards ================================= */
.hero-section {
    padding: 100px 0;
    background-color: var(--light-color);
}

.features-section {
    background-color: var(--dark-color);
    color: var(--white-color);
}

.features-section .info .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.features-section .info h4 { color: var(--white-color); }
.features-section .info p { color: rgba(255, 255, 255, 0.8); }

/* Team Section */
.team-section {
    background-color: var(--light-color);
}

.team-section .card-profile {
    border: none;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--white-color);
}

.team-section .card-profile:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.15);
}

.team-section .card-avatar {
    width: 150px; /* Fixed size for avatars */
    height: 150px;
    margin: 0 auto 1rem auto; /* Center and add margin below */
    border-radius: 50%; /* Make them circular */
    overflow: hidden;
    border: 4px solid var(--primary-color); /* Border around avatar */
    box-shadow: 0 0 0 4px rgba(0,0,0,0.05); /* Subtle outer shadow */
}

.team-section .card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure image covers the area without distortion */
}

.team-section .card-body {
    padding: 1.5rem;
}

.team-section .card-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.team-section .card-category {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* Video Cards */
.video-card {
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    overflow: hidden; 
    background: var(--white-color);
}
.video-card .video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; }
.video-card iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.video-card .card-body { padding: 1.25rem; }

/* 6. Floating WhatsApp Button ================================= */
.whatsapp_float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.2);
    z-index: 100;
    transition: transform 0.2s ease;
}

.whatsapp_float:hover { transform: scale(1.1); }
.whatsapp-icon { margin-top: 15px; }

/* 7. Responsive Adjustments ================================= */

/* Laptops & Desktops */
@media(min-width: 768px) {
    .nav-menu {
        display: flex !important; /* Ensure flex on desktop */
        flex-direction: row; /* Horizontal on desktop */
        align-items: center; /* Center items vertically */
        list-style-type: none; /* Remove bullets */
        margin: 0; /* Reset margin */
        padding: 0; /* Reset padding */
    }
    .hamburger {
        display: none; /* Hide hamburger on desktop */
    }
}

/* Tablets */
@media (max-width: 991.98px) {
    .features-section .info {
        margin-bottom: 30px;
    }
}

/* Mobile devices */
@media (max-width: 767.98px) {
    .nav-menu {
        position: fixed;
        left: 0; /* Position it correctly when shown */
        top: 65px; /* Adjust based on navbar height */
        flex-direction: column;
        background-color: var(--white-color);
        width: 100%;
        text-align: center;
        transition: transform 0.3s ease; /* Transition for sliding effect */
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        z-index: 99;
        transform: translateX(-100%); /* Start off-screen */
        display: flex; /* Ensure it's a flex container even when hidden */
        list-style-type: none; /* Remove bullets on mobile */
    }

    .nav-menu.active {
        transform: translateX(0); /* Slide into view */
    }
    .nav-item { padding: 1rem 0; }
    .hamburger { display: block; }

    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    .section { padding: 60px 0; }

    .whatsapp_float {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    .whatsapp-icon { margin-top: 13px; }
}