/* Workplace Planner - Professional Marketing Website Styles */

:root {
    --primary-color: #2767C5;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --gradient-start: #2767C5;
    --gradient-end: #1e4fa0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent horizontal scroll on mobile */
html, body {
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
}

/* Smooth scrolling for mobile */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 76px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Mobile body padding adjustment */
@media (max-width: 991.98px) {
    body {
        padding-top: 70px;
    }
}

@media (max-width: 575.98px) {
    body {
        padding-top: 65px;
    }
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
    transition: padding 0.3s ease;
}

@media (max-width: 991.98px) {
    .navbar {
        padding: 0.75rem 0;
    }
}

@media (max-width: 575.98px) {
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

.navbar-brand {
    font-size: 1.5rem;
    text-decoration: none;
}

.navbar-logo {
    transition: transform 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

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

.nav-link:hover {
    color: rgba(255,255,255,0.8) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(39, 103, 197, 0.85) 0%, rgba(30, 79, 160, 0.85) 100%),
                url('../images/2.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

@media (max-width: 991.98px) {
    .hero-section {
        background-attachment: scroll;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        padding: 1.5rem 0;
    }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 0;
}

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

.hero-section .row,
.hero-section h1,
.hero-section p,
.hero-section .btn,
.hero-section .stat-box {
    position: relative;
    z-index: 2;
}

.hero-image {
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.hero-image {
    padding: 2rem;
}

/* Stat Boxes */
.stat-box {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Feature Cards */
.feature-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: 1px solid #e9ecef;
}

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

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #2767C5, #1e4fa0);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    font-size: 2rem;
    color: #fff;
}

.feature-card h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-card p {
    color: #6c757d;
    margin: 0;
}

/* Benefits Section */
.benefit-item {
    padding: 1rem 0;
}

.benefit-icon {
    width: 50px;
    height: 50px;
    background: #2767C5;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-icon i {
    font-size: 1.5rem;
    color: #fff;
}

.benefit-item h5 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.benefit-item p {
    color: #6c757d;
    margin: 0;
}

.benefits-image {
    padding: 3rem;
}

/* Contact Form */
.contact-form {
    background: #fff;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.form-control,
.form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #2767C5;
    box-shadow: 0 0 0 0.2rem rgba(39, 103, 197, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--gradient-end));
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 103, 197, 0.4);
}

/* Footer */
footer {
    background: var(--dark-color) !important;
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: #fff !important;
}

/* Footer Logo */
footer img {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 4px;
    border-radius: 4px;
    opacity: 0.95;
    transition: opacity 0.3s ease;
}

footer img:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.15);
}

/* Page Headers */
.page-header {
    background: linear-gradient(135deg, rgba(39, 103, 197, 0.9) 0%, rgba(30, 79, 160, 0.9) 100%),
                url('../images/2.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding: 4rem 0 3rem;
    color: #fff;
    text-align: center;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Feature Detail Cards */
.feature-detail-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.feature-detail-card:hover {
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.feature-detail-card h3 {
    color: #2767C5;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-detail-card ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0 0;
}

.feature-detail-card ul li {
    padding: 0.75rem 0 0.75rem 2.5rem;
    position: relative;
    line-height: 1.7;
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.feature-detail-card ul li:hover {
    color: #212529;
}

.feature-detail-card ul li::before {
    content: '✓';
    font-family: Arial, sans-serif;
    position: absolute;
    left: 0;
    top: 0.75rem;
    color: #198754;
    font-size: 1.1rem;
    font-weight: bold;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.4rem;
    height: 1.4rem;
    background-color: rgba(25, 135, 84, 0.1);
    border-radius: 50%;
    flex-shrink: 0;
}

/* About Section */
.about-section {
    padding: 3rem 0;
}

.about-card {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ============================================ */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    /* Navigation */
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-logo {
        height: 30px !important;
    }
    
    .navbar-brand span {
        font-size: 0.9rem;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 2rem 0 3rem;
        min-height: auto;
    }
    
    .hero-section .min-vh-100 {
        min-height: auto !important;
    }
    
    .display-3 {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 1rem !important;
    }
    
    .hero-section .lead {
        font-size: 1rem;
        margin-bottom: 1.5rem !important;
    }
    
    .hero-section .btn {
        width: 100%;
        margin-bottom: 0.5rem;
        font-size: 0.95rem;
        padding: 0.75rem 1.5rem;
    }
    
    .hero-section .d-flex.gap-3 {
        flex-direction: column;
        gap: 0.75rem !important;
    }
    
    .hero-image img {
        max-width: 200px !important;
        margin-top: 2rem;
    }
    
    /* Stat Boxes */
    .stat-box {
        margin-bottom: 1rem;
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    /* Page Headers */
    .page-header {
        padding: 2.5rem 0 2rem;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .page-header p {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    /* Feature Cards */
    .feature-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .feature-icon i {
        font-size: 1.5rem;
    }
    
    .feature-card h4 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .feature-card p {
        font-size: 0.9rem;
    }
    
    /* Feature Detail Cards */
    .feature-detail-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .feature-detail-card h3 {
        font-size: 1.25rem;
    }
    
    .feature-detail-card .lead {
        font-size: 1rem;
    }
    
    .feature-detail-card ul li {
        font-size: 0.9rem;
        padding-left: 2rem;
    }
    
    /* Benefits Section */
    .benefit-item {
        margin-bottom: 1.5rem;
    }
    
    .benefit-icon {
        width: 45px;
        height: 45px;
    }
    
    .benefit-icon i {
        font-size: 1.25rem;
    }
    
    .benefit-item h5 {
        font-size: 1.1rem;
    }
    
    .benefit-item p {
        font-size: 0.9rem;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-form h2 {
        font-size: 1.5rem;
    }
    
    .contact-info-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
    }
    
    .contact-icon i {
        font-size: 1.5rem;
    }
    
    /* Buttons */
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Footer */
    footer {
        padding: 2rem 0 !important;
    }
    
    footer h5 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    footer img {
        height: 25px !important;
    }
    
    footer p {
        font-size: 0.9rem;
    }
    
    footer .row {
        margin-bottom: 1.5rem;
    }
    
    /* About Page */
    .about-card {
        padding: 1.5rem;
    }
    
    .about-card h2 {
        font-size: 1.5rem;
    }
    
    /* Sections */
    section {
        padding: 2.5rem 0 !important;
    }
    
    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    
    /* Container padding */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Text */
    .lead {
        font-size: 1rem;
    }
    
    h2.display-5 {
        font-size: 1.75rem;
    }
    
    /* CTA Section */
    .bg-primary.text-white {
        padding: 2.5rem 1rem !important;
    }
    
    .bg-primary h2 {
        font-size: 1.5rem;
    }
    
    .bg-primary .lead {
        font-size: 0.95rem;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .display-3 {
        font-size: 2.25rem;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .page-header h1 {
        font-size: 2.25rem;
    }
    
    .hero-image img {
        max-width: 250px;
    }
    
    .feature-card {
        padding: 1.75rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .hero-image img {
        max-width: 280px;
    }
    
    .navbar-logo {
        height: 35px !important;
    }
}

/* Large Devices (desktops, 992px and up) - Default styles apply */

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        padding: 1.5rem 0;
        min-height: auto;
    }
    
    .hero-section .min-vh-100 {
        min-height: auto !important;
    }
    
    .display-3 {
        font-size: 1.5rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets for mobile */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        padding: 1rem 0.75rem;
    }
    
    .form-control,
    .form-select {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Remove hover effects on touch devices */
    .feature-card:hover {
        transform: none;
    }
    
    .btn-primary:hover {
        transform: none;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Image Responsiveness */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Ensure all images are responsive */
.hero-image img,
.navbar-logo,
footer img {
    max-width: 100%;
    height: auto;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Success/Error Messages */
.alert {
    border-radius: 8px;
    border: none;
    padding: 1rem 1.5rem;
}

/* Text Utilities */
.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

.bg-white-50 {
    background-color: rgba(255, 255, 255, 0.5) !important;
}

/* Contact Page Styles */
.contact-info-card {
    padding: 2rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    height: 100%;
    transition: transform 0.3s ease;
}

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

.contact-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: linear-gradient(135deg, #2767C5, #1e4fa0);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.8rem;
    color: #fff;
}

.contact-info-card h5 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.contact-info-card p {
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.contact-info-card a {
    color: #2767C5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-card a:hover {
    color: #1e4fa0;
    text-decoration: underline;
}

