/* Custom CSS for Sckooly Landing Page */

:root {
    --primary-color: #DA251D;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --hero-bg: #F5F5EE;
}

/* General Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #ffffff;
}

/* Headers with Jost font */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Jost', sans-serif;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-gradient-primary {
    background: var(--hero-bg);
}

.text-primary {
    color: var(--primary-color) !important;
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Dark navbar toggler for light backgrounds */
.navbar-toggler-dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    padding-top: 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.1"><circle cx="30" cy="30" r="4"/></g></svg>') repeat;
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section .navbar {
    position: relative;
    z-index: 3;
    background: transparent !important;
}

.phone-mockup {
    animation: float 3s ease-in-out infinite;
}

/* Founders Section */
.founders-section {
    padding: 1rem 0;
}

.founders-profiles {
    position: relative;
}

.founder-circle {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.founder-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(218, 37, 29, 0.2);
}

.founder-circle:first-child {
    z-index: 2 !important;
}

.founder-circle:last-child {
    z-index: 1 !important;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Feature Cards */
.feature-card {
    transition: all 0.3s ease;
    background: white;
    border: 1px solid #e5e7eb !important;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
    border-color: var(--primary-color) !important;
}

.feature-icon {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Stats */
.stat-item h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Buttons */
.btn {
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

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

.btn-primary:hover {
    background-color: #3730a3;
    border-color: #3730a3;
    transform: translateY(-2px);
}

.btn-light:hover {
    transform: translateY(-2px);
}

.btn-outline-light:hover {
    transform: translateY(-2px);
}

/* Contact Section */
.contact-item {
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
}

/* Social Links */
.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Desktop Hero Spacing */
@media (min-width: 769px) {
    .hero-content {
        padding-top: 2rem !important;
        padding-bottom: 1rem !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }
    
    .hero-content {
        padding-top: 4rem !important;
        padding-left: 2.5rem !important;
        padding-right: 2.5rem !important;
    }
    
    .hero-content h1 {
        font-size: 1.8rem !important;
    }
    
    section .container {
        padding-left: 2.5rem !important;
        padding-right: 2.5rem !important;
    }
    
    .hero-content .btn {
        padding: 0.6rem 1rem !important;
        font-size: 0.85rem !important;
        width: 100% !important;
        max-width: 280px !important;
        margin: 0 auto !important;
    }
    
    .hero-content .col-lg-7 .d-flex {
        margin-bottom: 3rem !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.8rem !important;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
.loading {
    opacity: 0;
    animation: fadeIn 0.6s ease-in-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3730a3;
}

/* Room Page Styles */
.spinner-border {
    animation: spinner-border 0.75s linear infinite;
}

.card {
    transition: transform 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-2px);
}

.rounded-4 {
    border-radius: 1rem !important;
}

.bg-light {
    background-color: var(--bg-light) !important;
}

.alert-info {
    background-color: rgba(218, 37, 29, 0.1);
    border-color: var(--primary-color);
    color: var(--text-dark);
}

#joinRoomBtn {
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(218, 37, 29, 0.3);
}

#joinRoomBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(218, 37, 29, 0.4);
}

/* New Compact Room Preview Styles */
.room-preview .room-icon {
    margin-bottom: 1rem;
}

.room-preview .detail-item {
    transition: all 0.3s ease;
    min-height: 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.room-preview .detail-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.room-preview .detail-item i {
    font-size: 1.25rem;
}

.download-section .btn {
    transition: all 0.3s ease;
    text-decoration: none;
}

.download-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.features .feature-item {
    transition: all 0.3s ease;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.features .feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.features .feature-item i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.features .feature-item small {
    line-height: 1.3;
    text-align: center;
}

/* Compact Typography */
.room-preview h1.h3 {
    font-size: 1.5rem;
    line-height: 1.3;
}

.room-preview h4 {
    font-size: 1.25rem;
}

.room-preview h5 {
    font-size: 1.1rem;
}

.room-preview h6 {
    font-size: 0.95rem;
}

/* App Store Button Styles */
.btn-dark:hover {
    background-color: #000 !important;
    border-color: #000 !important;
}

.btn-success:hover {
    background-color: #0f5132 !important;
    border-color: #0f5132 !important;
}

/* Mobile responsiveness for room page */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .card-body {
        padding: 1.5rem !important;
    }
    
    .room-preview h1.h3 {
        font-size: 1.3rem !important;
    }
    
    .room-preview h4 {
        font-size: 1.1rem !important;
    }
    
    .room-preview h5 {
        font-size: 1rem !important;
    }
    
    .fa-3x {
        font-size: 2rem !important;
    }
    
    .download-section .btn {
        font-size: 0.85rem !important;
        padding: 0.6rem !important;
    }
    
    .download-section .btn i {
        font-size: 1rem !important;
    }
    
    .download-section .btn strong {
        font-size: 0.8rem !important;
    }
    
    .download-section .btn small {
        font-size: 0.65rem !important;
    }
    
    .features .feature-item {
        min-height: 70px;
    }
    
    .features .feature-item i {
        font-size: 1.25rem;
    }
    
    .features .feature-item small {
        font-size: 0.75rem;
    }
    
    .room-preview .detail-item {
        min-height: 65px;
    }
    
    .room-preview .detail-item i {
        font-size: 1rem;
    }
    
    .room-preview .detail-item small {
        font-size: 0.7rem;
    }
    
    .room-preview .detail-item .fw-semibold {
        font-size: 0.8rem;
    }
}
