/* ====== RESET & BASE STYLES ====== */
:root {
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --secondary: #7209b7;
    --accent: #f72585;
    --success: #4cc9f0;
    --dark: #2b2d42;
    --light: #f8f9fa;
    --gray: #adb5bd;
    --gray-light: #e9ecef;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
    color: var(--dark);
    line-height: 1.6;
    direction: rtl;
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ====== TYPOGRAPHY ====== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2.5rem;
    color: var(--dark);
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(to left, var(--primary), var(--accent));
    border-radius: 2px;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2::after {
    right: 50%;
    transform: translateX(50%);
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 1rem auto 2rem;
}

/* ====== BUTTONS ====== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    transition: var(--transition);
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline::before {
    display: none;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* ====== NAVBAR ====== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

.logo:hover img {
    transform: rotate(-5deg) scale(1.05);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 1rem;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 12px;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: calc(100% - 24px);
}

.nav-menu a:hover {
    color: var(--primary);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
}

/* ====== HERO SECTION ====== */
.hero {
    padding: 180px 0 100px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1558494949-ef010cbdcc31?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80') center/cover no-repeat;
    opacity: 0.2;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    color: var(--white);
    -webkit-text-fill-color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 3.5rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.domain-search {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: var(--radius);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.search-box {
    display: flex;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.search-box input {
    flex: 1;
    padding: 18px 25px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    background: var(--white);
    color: var(--dark);
    box-shadow: var(--shadow);
}

.search-box input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.3);
}

.search-box .btn {
    padding: 18px 35px;
    font-size: 1rem;
}

/* ====== DOMAINS SECTION ====== */
.domains-section {
    padding: 100px 0;
    background: var(--white);
}

.domain-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 25px;
    background: var(--gray-light);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.domains-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 3rem;
}

.domain-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.domain-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to left, var(--primary), var(--accent));
}

.domain-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.domain-name {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.domain-name.com { color: #264de4; }
.domain-name.net { color: #e34c26; }
.domain-name.org { color: #61dbfb; }
.domain-name.info { color: #f0db4f; }
.domain-name.co { color: #68a063; }
.domain-name.int { color: #007acc; }
.domain-name.edu { color: #302683; }
.domain-name.gov { color: #cd6799; }
.domain-name.mobi { color: #3c873a; }

.domain-prices {
    margin: 1.5rem 0;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-light);
}

.price-item:last-child {
    border-bottom: none;
}

.price-label {
    color: var(--gray);
    font-size: 0.9rem;
}

.price-value {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--dark);
}

.best-price {
    color: var(--accent);
    font-weight: 800;
}

.domain-features {
    list-style: none;
    text-align: right;
    margin: 1.5rem 0;
    padding: 0;
}

.domain-features li {
    padding: 8px 0;
    color: var(--gray);
    position: relative;
    padding-right: 25px;
}

.domain-features li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--success);
    font-weight: bold;
}

/* ====== SERVERS SECTION ====== */
.servers-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.server-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.server-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.server-card.popular {
    border: 2px solid var(--primary);
    transform: scale(1.05);
}

.server-card.popular::before {
    content: 'الأكثر طلباً';
    position: absolute;
    top: 20px;
    left: -35px;
    background: var(--primary);
    color: var(--white);
    padding: 5px 40px;
    transform: rotate(-45deg);
    font-size: 0.8rem;
    font-weight: 600;
}

.server-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-light);
}

.server-name {
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 1rem;
}

.server-price-main {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.server-period {
    color: var(--gray);
    font-size: 1rem;
}

.server-features {
    list-style: none;
    margin-bottom: 2.5rem;
}

.server-features li {
    padding: 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--gray-light);
}

.server-features li:last-child {
    border-bottom: none;
}

.server-features i {
    color: var(--success);
    font-size: 1.2rem;
}

.server-pricing-options {
    background: var(--gray-light);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.pricing-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

/* ====== CONTACT SECTION ====== */
.contact-section {
    padding: 100px 0;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    margin-top: 3rem;
}

.contact-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius);
    padding: 3rem;
    color: var(--white);
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.contact-item i {
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.contact-item h4 {
    color: var(--white);
    margin-bottom: 5px;
}

.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-wrapper {
    height: 400px;
    width: 100%;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ====== FOOTER ====== */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 80px 0 30px;
    margin-top: 100px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 20px;
}

.footer-logo p {
    color: var(--gray);
    margin-top: 15px;
}

.footer-links h4,
.footer-social h4 {
    color: var(--white);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after,
.footer-social h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--white);
    transform: translateX(-5px);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray);
}

/* ====== DASHBOARD STYLES ====== */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.login-box {
    background: var(--white);
    padding: 50px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.login-box h2 {
    margin-bottom: 30px;
}

.dashboard {
    min-height: 100vh;
    background: var(--light);
}

.dashboard-header {
    background: var(--dark);
    color: var(--white);
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
}

.dashboard-header h1 {
    color: var(--white);
    -webkit-text-fill-color: var(--white);
    font-size: 1.8rem;
    margin: 0;
}

.dashboard-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.dashboard-container {
    padding: 40px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.dashboard-section {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.dashboard-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.current-logo {
    text-align: center;
    margin: 2rem 0;
    padding: 2rem;
    background: var(--gray-light);
    border-radius: var(--radius);
}

.current-logo img {
    max-width: 200px;
    height: auto;
}

.upload-area {
    border: 2px dashed var(--primary);
    border-radius: var(--radius);
    padding: 3rem;
    text-align: center;
    margin: 2rem 0;
    cursor: pointer;
    transition: var(--transition);
}

.upload-area:hover {
    background: rgba(67, 97, 238, 0.05);
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.pricing-table th {
    background: var(--primary);
    color: var(--white);
    padding: 1rem;
    text-align: center;
    font-weight: 600;
}

.pricing-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid var(--gray-light);
}

.pricing-table input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: var(--transition);
}

.pricing-table input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

/* ====== ANIMATIONS ====== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ====== RESPONSIVE DESIGN ====== */
@media (max-width: 992px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2.2rem; }
    
    .hero { padding: 150px 0 80px; }
    .domains-grid { grid-template-columns: repeat(2, 1fr); }
    .servers-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .mobile-toggle { display: block; }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        height: calc(100vh - 80px);
        padding: 2rem;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    
    .hero { padding: 120px 0 60px; }
    .search-box { flex-direction: column; }
    .domains-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    
    .dashboard-section { padding: 1.5rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 15px; }
    .domain-search { padding: 2rem; }
    .login-box { padding: 2rem; }
}