:root {
    --primary-color: #d92635;
    --secondary-color: #2d3748;
    --accent-color: #e53e3e;
    --text-dark: #1a202c;
    --text-muted: #718096;
    --bg-light: #f7fafc;
}

body {
    font-family: 'Open Sans', sans-serif;
    overflow-x: hidden;
    color: var(--text-dark);
    background-color: white;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 106px; /* Add padding for fixed navbar */
}

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

.text-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #e63946 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

.btn-primary {
    background: var(--primary-color);
    border: none;
    transition: all 0.3s ease;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(217, 38, 53, 0.3);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(217, 38, 53, 0.3);
}

.navbar {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    /* Remove position: static; to allow fixed-top to work */
}

.navbar-nav .nav-link {
    transition: color 0.3s ease;
    font-weight: 600;
}
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

.hero {
    background: url('https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=1950&q=80') no-repeat center center;
    background-size: cover;
    position: relative;
    overflow: hidden;
    color: white;
    min-height: 450px;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(45, 55, 72, 0.85), rgba(217, 38, 53, 0.85));
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: heroFloat 6s ease-in-out infinite;
    z-index: 1;
}

@keyframes heroFloat {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -60%) scale(1.1); }
}

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

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem 0;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.15) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-btn {
    padding: 1rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 180px;
    justify-content: center;
}

.hero-btn-primary {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    backdrop-filter: blur(10px);
}

.hero-btn-primary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-btn-secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white;
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.8s both;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    margin-top: 3rem !important;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
}

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

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

/* Floating particles effect */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: particleFloat 8s infinite linear;
}

.hero-particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 6s; }
.hero-particle:nth-child(2) { left: 20%; animation-delay: 1s; animation-duration: 8s; }
.hero-particle:nth-child(3) { left: 30%; animation-delay: 2s; animation-duration: 7s; }
.hero-particle:nth-child(4) { left: 40%; animation-delay: 3s; animation-duration: 9s; }
.hero-particle:nth-child(5) { left: 50%; animation-delay: 4s; animation-duration: 6s; }
.hero-particle:nth-child(6) { left: 60%; animation-delay: 5s; animation-duration: 8s; }
.hero-particle:nth-child(7) { left: 70%; animation-delay: 6s; animation-duration: 7s; }
.hero-particle:nth-child(8) { left: 80%; animation-delay: 7s; animation-duration: 9s; }
.hero-particle:nth-child(9) { left: 90%; animation-delay: 8s; animation-duration: 6s; }

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

/* Services Section */
.service-card {
    transition: all 0.3s ease-in-out;
    border: 1px solid #e2e8f0;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08) !important;
    border-color: var(--primary-color);
}

.icon-square {
    background-color: var(--primary-color);
    transition: all 0.3s ease-in-out;
}

.service-card:hover .icon-square {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 8px 20px rgba(217, 38, 53, 0.3);
}

/* Footer Styles */
.hover-opacity-100:hover {
    opacity: 1 !important;
}

.transition-opacity {
    transition: opacity 0.3s ease;
}

.contact-icon {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-brand img {
    filter: brightness(1.1);
}

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

/* Whois page specific styles */
#whois-results {
    background-color: #2d3748;
    color: #f7fafc;
    border-radius: 0.5rem;
    max-height: 500px;
    overflow-y: auto;
}

/* RBL Checker styles */
.table-responsive {
    border-radius: 0.25rem;
    overflow: hidden;
}

.table th {
    font-weight: 600;
    background-color: #f8f9fa;
}

.table td, .table th {
    padding: 1rem;
    vertical-align: middle;
}

.table a {
    color: #007bff;
}

.table a:hover {
    color: #0056b3;
    text-decoration: underline !important;
}

.table .text-success {
    color: #28a745 !important;
}

.table .text-danger {
    color: #dc3545 !important;
}

.table-success {
    background-color: #d4edda !important;
}

.table-danger {
    background-color: #f8d7da !important;
}

/* Domain Tools Section Enhancements */
.tools-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.tools-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="%23e2e8f0" fill-opacity="0.1"><circle cx="30" cy="30" r="2"/></g></svg>') repeat;
    opacity: 0.5;
}

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

.domain-input-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.domain-input-card .card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #e63946 100%);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
}

.domain-input-card .card-header h5 {
    margin: 0;
    font-weight: 600;
    font-size: 1.1rem;
}

.domain-input-card .card-body {
    padding: 1.5rem;
}

.domain-input-enhanced {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.domain-input-enhanced:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.15rem rgba(217, 38, 53, 0.12), 0 4px 15px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.tool-btn {
    border: none;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.tool-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.tool-btn:hover::before {
    left: 100%;
}

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

.tool-btn-whois {
    background: linear-gradient(135deg, var(--primary-color) 0%, #e63946 100%);
    color: white;
}

.tool-btn-dns {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
}

.tool-btn-zone {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
}

.tool-btn-rbl {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #212529;
}

.enhanced-preloader {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    padding: 2.5rem 1.5rem;
}

.spinner-enhanced {
    width: 3rem !important;
    height: 3rem !important;
    border-width: 3px;
    border-color: var(--primary-color) transparent var(--primary-color) transparent;
    animation: spin 1s linear infinite, pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.results-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border: none;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    overflow: hidden;
    animation: slideInUp 0.4s ease-out;
}

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

.results-card .card-header {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
}

.results-card .card-header h5 {
    margin: 0;
    font-weight: 600;
    font-size: 1.1rem;
}

.results-card .card-body {
    padding: 1.5rem;
}

.alert-enhanced {
    border: none;
    border-radius: 10px;
    padding: 1rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.alert-enhanced.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
}

.alert-enhanced.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

.tool-icon {
    width: 16px;
    height: 16px;
    margin-right: 0.3rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .hero {
        min-height: 400px;
        padding: 2rem 0;
    }
    
    .hero-content {
        padding: 1rem 0;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .hero-btn {
        width: 100%;
        max-width: 280px;
        padding: 0.875rem 1.5rem;
    }
    
    .domain-input-card .card-body {
        padding: 1.25rem;
    }
    
    .tool-btn {
        margin-bottom: 0.3rem;
        font-size: 0.75rem;
        padding: 0.45rem 0.65rem;
    }
    
    .enhanced-preloader {
        padding: 2rem 1.25rem;
    }
    
    .results-card .card-body {
        padding: 1.25rem;
    }
}

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

/* Large screen optimizations */
@media (min-width: 1200px) {
    .tools-container {
        max-width: 1400px;
    }
    
    .domain-input-card .card-body {
        padding: 2rem;
    }
    
    .results-card .card-body {
        padding: 2rem;
    }
}

@media (min-width: 1400px) {
    .tools-container {
        max-width: 1600px;
    }
}

