/**
 * TouchOst Hosting - Main Stylesheet
 *
 * Crafted with ❤ by HOSSAM ALZYOD - Mr.Server
 * Website: https://hossam.net
 * Email: i@hossam.net
 */

/* CSS Variables - Tech Colors (No Purple) */
:root {
    --primary-color: #00d4ff;
    --secondary-color: #0099cc;
    --accent-color: #00ff88;
    --dark-color: #0a0e27;
    --light-color: #f8fafc;
    --gray-color: #64748b;
    --success-color: #00ff88;
    --warning-color: #ffa726;
    --danger-color: #ff4757;
    --info-color: #00d4ff;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    --gradient-secondary: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
    --gradient-accent: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.3);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray-color);
    margin-bottom: 3rem;
}

/* Buttons */
.btn {
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all var(--transition-normal);
    text-decoration: none;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    background: linear-gradient(135deg, #00b8e6 0%, #0088b3 100%);
    color: white;
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    background: transparent;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-2px);
}

/* Navigation */
.navbar {
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    transition: all var(--transition-normal);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white !important;
    text-decoration: none;
}

.brand-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    transition: all var(--transition-fast);
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all var(--transition-fast);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: var(--gradient-secondary);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 255, 136, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0, 153, 204, 0.2) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    font-size: 2rem;
    color: rgba(0, 212, 255, 0.4);
    animation: floatElement 15s linear infinite;
}

.floating-element:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.floating-element:nth-child(2) { top: 40%; right: 15%; animation-delay: -3s; }
.floating-element:nth-child(3) { bottom: 30%; left: 20%; animation-delay: -7s; }
.floating-element:nth-child(4) { bottom: 20%; right: 25%; animation-delay: -10s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes floatElement {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-normal);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(10px);
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.feature-text h6 {
    color: white;
    margin: 0;
    font-weight: 600;
}

.feature-text small {
    color: rgba(255, 255, 255, 0.7);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    z-index: 2;
}

.server-animation {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.server-stack {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.server-unit {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: var(--radius-md);
    padding: 1rem;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all var(--transition-normal);
    animation: serverPulse 3s ease-in-out infinite;
}

.server-unit.active {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.server-unit:nth-child(odd) {
    animation-delay: 1.5s;
}

@keyframes serverPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.02); opacity: 1; }
}

.server-lights {
    display: flex;
    gap: 0.5rem;
}

.light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: lightBlink 2s ease-in-out infinite;
}

.light.green { background-color: var(--accent-color); }
.light.blue { background-color: var(--primary-color); animation-delay: 0.3s; }
.light.orange { background-color: var(--warning-color); animation-delay: 0.6s; }

@keyframes lightBlink {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; box-shadow: 0 0 10px currentColor; }
}

.server-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
}

.connection-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.line {
    position: absolute;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0.6;
    animation: dataFlow 4s linear infinite;
}

.line-1 { top: 20%; left: -20%; width: 30%; animation-delay: 0s; }
.line-2 { top: 40%; right: -20%; width: 25%; animation-delay: -1s; }
.line-3 { bottom: 40%; left: -15%; width: 35%; animation-delay: -2s; }
.line-4 { bottom: 20%; right: -25%; width: 30%; animation-delay: -3s; }

@keyframes dataFlow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(300%); }
}

/* Domain Search */
.bg-gradient {
    background: var(--gradient-primary);
}

.domain-input-group {
    max-width: 600px;
    box-shadow: var(--shadow-lg);
}

.domain-input-group .form-control,
.domain-input-group .form-select {
    border: none;
    font-size: 1.1rem;
    padding: 0.75rem 1rem;
}

.domain-input-group .form-control:focus,
.domain-input-group .form-select:focus {
    box-shadow: none;
    border-color: transparent;
}

.domain-tld {
    max-width: 120px;
}

.domain-results {
    display: none;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    color: var(--dark-color);
}

.price-tag {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    margin: 0.25rem;
    display: inline-block;
    font-weight: 500;
}

/* Pricing Cards */
.pricing-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    position: relative;
    border: 2px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.popular {
    border-color: var(--accent-color);
    transform: scale(1.05);
    z-index: 2;
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-5px);
}

.popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-accent);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.plan-description {
    color: var(--gray-color);
    font-size: 1rem;
}

.pricing-price {
    text-align: center;
    margin-bottom: 2rem;
}

.price-monthly {
    margin-bottom: 0.5rem;
}

.currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-color);
}

.amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--dark-color);
}

.period {
    font-size: 1.2rem;
    color: var(--gray-color);
}

.pricing-features {
    flex-grow: 1;
    margin-bottom: 2rem;
}

.pricing-features .feature-item {
    background: transparent;
    padding: 0.75rem 0;
    border: none;
    border-radius: 0;
    justify-content: flex-start;
    gap: 0.75rem;
}

.pricing-features .feature-item:hover {
    transform: none;
    background: rgba(0, 212, 255, 0.05);
}

.pricing-features .feature-item i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.pricing-action {
    text-align: center;
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border: 1px solid rgba(0, 0, 0, 0.1);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.feature-card .feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

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

/* Service Cards */
.service-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border: 1px solid rgba(0, 0, 0, 0.1);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.service-card .service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: var(--gradient-accent);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.service-price {
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 1rem;
}

/* Stats Section */
.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin: 0;
}

/* Footer */
.footer {
    background: var(--dark-color) !important;
    color: rgba(255, 255, 255, 0.8);
}

.footer h4,
.footer h5 {
    color: white;
}

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

.footer-links li {
    margin-bottom: 0.5rem;
}

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

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

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-features {
        gap: 0.75rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .pricing-card.popular {
        transform: none;
    }

    .domain-input-group {
        flex-direction: column;
    }

    .domain-tld {
        max-width: none;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .pricing-card {
        padding: 1.5rem;
    }
}

/* Animations */
@media (prefers-reduced-motion: no-preference) {
    .stat-number[data-count] {
        animation: countUp 2s ease-out;
    }
}

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

/* Utilities */
.bg-light {
    background-color: #f8fafc !important;
}

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

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

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

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

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

/* Hero Section with Blue Gradient - Fix */
.hero-section.hero-gradient {
    min-height: auto !important;
    background: var(--gradient-primary) !important;
    position: relative;
    display: block;
    overflow: hidden;
    padding: 4rem 0 !important;
}

.hero-section.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><radialGradient id="a" cx="50" cy="40" r="50"><stop offset="0" stop-color="rgba(255,255,255,.1)"/><stop offset="1" stop-color="rgba(255,255,255,0)"/></radialGradient></defs><rect width="100" height="20" fill="url(%23a)"/></svg>');
    opacity: 0.1;
    pointer-events: none;
}

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