/* ========================================
   GLOBAL RESPONSIVE STYLES
   ======================================== */

/* Base font size for better mobile scaling */
html {
    font-size: 16px;
}

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

/* Responsive typography */
h1 {
    font-size: 2rem;
    line-height: 1.2;
}

h2 {
    font-size: 1.75rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.5rem;
    line-height: 1.4;
}

p {
    margin-bottom: 1rem;
}

/* Container adjustments */
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
}

/* Navigation for mobile */
@media (max-width: 991.98px) {
    /* Show full long brand name on a single line on small screens */
    .navbar-brand {
        font-size: 10px !important;
        line-height: 1.2;
        white-space: nowrap;      /* single line only */
        max-width: 100%;          /* allow more width so full text can fit */
        overflow: visible;        /* do not cut text */
    }

    .navbar-collapse {
        background: #2c3e50;
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        margin-top: 10px;
    }
    
    .navbar-nav {
        padding: 10px 0;
    }
    
    .nav-link {
        padding: 12px 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        color: #ffffff !important;
        font-weight: 500;
    }
    
    .nav-link:hover {
        color: #4facfe !important;
    }
    
    .navbar-toggler {
        border: 1px solid rgba(255, 255, 255, 0.5);
    }
    
    .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%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    }
}

/* Hero sections */
.hero-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* Responsive tables */
.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Form elements */
.form-control {
    width: 100%;
    max-width: 100%;
}

/* Cards */
.card {
    margin-bottom: 20px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 8px;
    overflow: hidden;
}

/* Buttons */
.btn {
    white-space: nowrap;
    margin: 5px 0;
}

/* Grid system adjustments */
.row {
    margin-right: -10px;
    margin-left: -10px;
}

[class*="col-"] {
    padding-right: 10px;
    padding-left: 10px;
}

/* Responsive utilities */
.text-center-sm {
    text-align: center !important;
}

.mt-sm-4 {
    margin-top: 1.5rem !important;
}

/* Responsive breakpoints */
@media (max-width: 767.98px) {
    html {
        font-size: 14px;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .btn {
        width: 100%;
        margin: 5px 0;
    }
    
    .text-center-sm {
        text-align: center !important;
    }
    
    .mt-sm-4 {
        margin-top: 1.5rem !important;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    html {
        font-size: 15px;
    }
}

/* Fix for mobile viewport units */
@supports (-webkit-touch-callout: none) {
    .vh-100 {
        height: -webkit-fill-available !important;
    }
}

/* Products page specific */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

/* Contact page specific */
.contact-info {
    margin-bottom: 30px;
}

.contact-form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* About page specific */
.about-section {
    padding: 80px 0;
}

.team-member {
    text-align: center;
    margin-bottom: 30px;
}

.team-member img {
    border-radius: 50%;
    max-width: 200px;
    margin-bottom: 15px;
}

/* Plan page specific */
.pricing-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.pricing-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.pricing-header {
    padding: 30px 20px;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.pricing-body {
    padding: 30px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}

.pricing-features li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* Responsive adjustments for small devices */
@media (max-width: 575.98px) {
    .pricing-table {
        grid-template-columns: 1fr;
    }
    
    .pricing-card {
        margin-bottom: 20px;
    }
    
    .hero-section {
        padding: 40px 0;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

/* Animation for page transitions */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-content {
    animation: fadeIn 0.5s ease-out;
}

/* Footer adjustments */
.footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer h5 {
    color: #fff;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #4facfe;
    text-decoration: none;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: white;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #4facfe;
    transform: translateY(-3px);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}
