/* Virtual Phone Number System - Main Stylesheet */
/* Mobile App-like Responsive Design */

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

:root {
    --primary-color: #ff6b35;
    --primary-dark: #e55a2b;
    --secondary-color: #ff8c42;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-bg: #f8f9fa;
    --text-dark: #333;
    --text-light: #666;
    --border-color: #e0e0e0;
    --card-shadow: 0 2px 10px rgba(0,0,0,0.1);
    --card-shadow-hover: 0 5px 20px rgba(0,0,0,0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: #ffffff;
    -webkit-user-select: text !important; /* Enable text selection */
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Enable text selection everywhere */
*, *::before, *::after {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

input, textarea, [contenteditable], p, h1, h2, h3, h4, h5, h6, span, div, li, td, th {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

/* Only disable selection for buttons and navigation items */
.btn, .nav-item, button, a.btn, button.nav-item {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #ff6b35 0%, #4285F4 50%, #667eea 100%);
    color: white;
    padding: 15px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links a {
    color: #ffffff !important;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s;
    position: relative;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    display: inline-block;
}

.nav-links a:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(255,255,255,0.2);
    opacity: 1;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.6;
}

/* Country Selector */
.country-selector {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.country-selector-inner {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.country-option {
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.country-option:hover,
.country-option.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

/* Number Grid */
.number-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.number-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.number-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b35 0%, #ff8c42 100%);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.number-card:hover::before {
    transform: scaleX(1);
}

.number-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.25);
    border-color: #ff6b35;
}

.phone-number {
    font-size: 32px;
    font-weight: 800;
    color: #ff6b35;
    margin-bottom: 20px;
    text-align: center;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    position: relative;
    padding: 18px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border: 2px solid #e9ecef;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.08);
    transition: all 0.3s;
}

.number-card:hover .phone-number {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    color: white;
    border-color: #ff6b35;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    transform: scale(1.05);
}

.number-details {
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s;
}

.detail-row:hover {
    padding-left: 8px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 6px;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: #666;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    color: #1a1a1a;
    font-weight: 600;
    font-size: 14px;
}

.number-price {
    font-size: 32px;
    font-weight: 800;
    color: #28a745;
    text-align: center;
    margin: 25px 0;
    padding: 15px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 12px;
    border: 2px solid #bbf7d0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.1);
}

.number-price::before {
    content: '💰';
    font-size: 24px;
    display: inline-block;
}

.type-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.type-badge:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.type-mobile {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    color: white;
}

.type-local {
    background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%);
    color: white;
}

.type-tollfree {
    background: linear-gradient(135deg, #FF9800 0%, #E65100 100%);
    color: white;
}

.type-vanity {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    color: white;
}

/* Buttons - Attractive & Curved */
.btn {
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 25px; /* Curved buttons */
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

.btn:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-large {
    padding: 16px 40px;
    font-size: 17px;
    border-radius: 30px; /* More curved */
    font-weight: 700;
    letter-spacing: 0.5px;
}

.btn-full {
    width: 100%;
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea87a 100%);
    box-shadow: 0 8px 30px rgba(40, 167, 69, 0.4);
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3f8e 100%);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
}

/* Features Section */
.features-section {
    background: var(--light-bg);
    padding: 60px 20px;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 50px;
    color: var(--text-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    text-align: center;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.feature-description {
    color: var(--text-light);
    line-height: 1.6;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    overflow-y: auto;
}

.modal-content {
    background: white;
    margin: 50px auto;
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-dark);
}

.close-btn {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: var(--text-light);
    line-height: 1;
}

.close-btn:hover {
    color: var(--text-dark);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Trusted Companies */
.trusted-section {
    padding: 60px 20px;
    background: white;
    text-align: center;
}

.trusted-title {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.company-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    opacity: 0.6;
}

.company-logo {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .number-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        display: none;
    }
    
    .container {
        padding: 15px;
    }
}

/* Bottom Navigation (Mobile) - Professional & Compact */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 15px rgba(0,0,0,0.1);
    z-index: 1000;
    border-top: 1px solid #e0e0e0;
}

.bottom-nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 6px 0;
    max-width: 100%;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: #999;
    font-size: 10px;
    padding: 5px 10px;
    transition: all 0.3s;
    border-radius: 8px;
    min-width: 55px;
    flex: 1;
}

.nav-item:hover {
    background: #f5f5f5;
}

.nav-item.active {
    color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
    font-weight: 600;
}

.nav-item .nav-icon,
.nav-item span:first-child {
    font-size: 18px;
    display: block;
    margin-bottom: 2px;
}

.nav-item .nav-label,
.nav-item span:last-child {
    font-weight: 500;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .bottom-nav {
        display: block;
    }
    
    body {
        padding-bottom: 55px;
    }
    
    .header {
        padding: 12px 15px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .hero-title {
        font-size: 24px !important;
    }
    
    .hero-subtitle {
        font-size: 14px !important;
    }
    
    .country-selector {
        padding: 20px;
    }
    
    .number-grid {
        gap: 15px;
    }
    
    .number-card {
        padding: 20px;
    }
    
    .phone-number {
        font-size: 24px !important;
    }
    
    .features-grid {
        gap: 20px;
    }
    
    .feature-card {
        padding: 25px;
    }
}

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

.number-card {
    animation: fadeIn 0.5s ease-out;
}

.feature-card {
    animation: fadeIn 0.6s ease-out;
}

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

/* Loading States */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Touch Friendly */
@media (hover: none) {
    .btn:hover,
    .number-card:hover,
    .feature-card:hover {
        transform: none;
    }
    
    .btn:active {
        transform: scale(0.98);
    }
}

