/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #667eea;
    --accent-color: #667eea;
    --text-color: #2c3e50;
    --light-text: #7f8c8d;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
    --border-radius: 15px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Auth pages specific variables */
    --auth-container-padding-top: 180px;
    --auth-container-padding-top-mobile: 140px;
    --auth-container-padding-top-small: 110px;
    --auth-card-padding: 2.5rem;
    --auth-card-padding-mobile: 2rem;
    --auth-card-padding-small: 1.5rem;
    --auth-card-margin: 2rem 0 2rem 0;
    --auth-card-margin-small: 1rem 0 1rem 0;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

/* Custom Scrollbar - Circular Style */
::-webkit-scrollbar {
    width: 14px;
    height: 14px;
}

::-webkit-scrollbar-track {
    background: rgba(102, 126, 234, 0.05);
    border-radius: 20px;
    margin: 8px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    backdrop-filter: blur(5px);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 40px;
    position: relative;
}

::-webkit-scrollbar-thumb::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    opacity: 0.6;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

::-webkit-scrollbar-thumb:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
}

::-webkit-scrollbar-thumb:active {
    background: linear-gradient(135deg, #4a5fc8 0%, #5a3190 100%);
    transform: scale(0.95);
}

::-webkit-scrollbar-corner {
    background: transparent;
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #667eea rgba(102, 126, 234, 0.05);
}

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-logo i {
    margin-left: 10px;
    color: var(--secondary-color);
    font-size: 2rem;
    transition: var(--transition);
}

.nav-logo:hover i {
    transform: rotate(5deg);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 12px 20px;
    margin: 5px 0;
    border-radius: 25px;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover {
    color: var(--secondary-color);
    background: rgba(102, 126, 234, 0.1);
    border-color: var(--secondary-color);
    transform: scale(1.02);
}

.nav-link::after {
    display: none;
}

.nav-link:hover::after {
    display: none;
}

.login-btn {
    background: var(--gradient-primary);
    color: white !important;
    padding: 10px 20px;
    border-radius: 25px;
    transition: var(--transition);
    font-weight: 600;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    color: #2c3e50 !important;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--secondary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%), 
                url('https://arabslawyers.com/wp-content/uploads/2023/01/%D9%85%D9%87%D9%86%D8%A9-%D8%A7%D9%84%D9%85%D8%AD%D8%A7%D9%85%D8%A7%D8%A9.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero::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 1000 1000"><polygon fill="rgba(255,255,255,0.1)" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out;
}

.highlight {
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.3s both;
}

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

.btn {
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

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

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

.btn-primary {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.2);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 2rem;
    color: var(--white);
}

/* Services Section */
.services {
    padding: 100px 0;
    background: var(--light-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--light-text);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: var(--transition);
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: var(--shadow-hover);
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    opacity: 0;
    transition: var(--transition);
    border-radius: var(--border-radius);
}

.service-card:hover::after {
    opacity: 1;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.service-icon i {
    font-size: 2rem;
    color: var(--white);
    transition: var(--transition);
}

.service-card:hover .service-icon i {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.service-card:hover h3 {
    color: var(--secondary-color);
}

.service-card p {
    color: var(--light-text);
    line-height: 1.6;
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.service-card:hover p {
    color: var(--text-color);
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.stat-label {
    color: var(--light-text);
    font-size: 0.9rem;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 6s ease-in-out infinite;
}

.image-placeholder i {
    font-size: 5rem;
    color: var(--white);
}

/* Start Now Section */
.start-now {
    padding: 100px 0;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.start-now::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 1000 1000"><polygon fill="rgba(255,255,255,0.1)" points="0,0 1000,1000 1000,0"/></svg>');
    background-size: cover;
}

.start-now-content {
    text-align: center;
    color: white;
    position: relative;
    z-index: 2;
}

.start-now-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
}

.start-now-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.3s both;
}

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

.start-now .btn-primary {
    background: var(--white);
    color: var(--primary-color);
}

.start-now .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.start-now .btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.start-now .btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #667eea;
}

.footer-section p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    padding: 4px 0;
}

.footer-section ul li a:hover {
    color: #667eea;
    transform: scale(1.1);
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #667eea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    transform: translateY(-3px) scale(1.1);
    background: #667eea;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.contact-info p {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.contact-info p:hover {
    transform: scale(1.02);
}

.contact-info i {
    margin-left: 10px;
    color: #667eea;
    transition: var(--transition);
}

.contact-info p:hover i {
    transform: scale(1.1);
    color: #764ba2;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        padding: 12px 20px;
        margin: 5px 0;
        border-radius: 25px;
    }
    
    .nav-link:hover {
        transform: scale(1.02);
        background: rgba(102, 126, 234, 0.1);
        border-color: var(--secondary-color);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .stats {
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .start-now-content h2 {
        font-size: 2rem;
    }
    
    .start-now-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .service-card {
        padding: 2rem;
    }
}

/* Custom Scrollbar for internal elements */
.auth-form::-webkit-scrollbar,
.form-group::-webkit-scrollbar,
.otp-inputs::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.auth-form::-webkit-scrollbar-track,
.form-group::-webkit-scrollbar-track,
.otp-inputs::-webkit-scrollbar-track {
    background: rgba(102, 126, 234, 0.05);
    border-radius: 15px;
    margin: 4px;
}

.auth-form::-webkit-scrollbar-thumb,
.form-group::-webkit-scrollbar-thumb,
.otp-inputs::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.auth-form::-webkit-scrollbar-thumb:hover,
.form-group::-webkit-scrollbar-thumb:hover,
.otp-inputs::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: scale(1.1);
}

/* Firefox Scrollbar for internal elements */
.auth-form,
.form-group,
.otp-inputs {
    scrollbar-width: thin;
    scrollbar-color: #667eea rgba(102, 126, 234, 0.05);
}

/* Contact dropdown styles */
.contact-item {
    position: relative;
    margin-bottom: 0.5rem;
}

.contact-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.contact-trigger:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.dropdown-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    margin-right: auto;
}

.contact-item.active .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.contact-item.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: rgba(102, 126, 234, 0.1);
    color: var(--secondary-color);
    transform: translateX(-5px);
}

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

/* WhatsApp specific styling */
.dropdown-item[href*="wa.me"]:hover {
    background: rgba(37, 211, 102, 0.1);
    color: #25d366;
}

/* Phone specific styling */
.dropdown-item[href*="tel:"]:hover {
    background: rgba(102, 126, 234, 0.1);
    color: var(--secondary-color);
}

/* Email specific styling */
.dropdown-item[href*="mailto:"]:hover {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

/* Responsive design for contact dropdowns */
@media (max-width: 768px) {
    .dropdown-menu {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.9);
        min-width: 200px;
        max-width: 90vw;
        z-index: 10000;
    }
    
    .contact-item.active .dropdown-menu {
        transform: translate(-50%, -50%) scale(1);
    }
    
    .dropdown-item {
        padding: 1rem 1.2rem;
        font-size: 1.1rem;
    }
    
    .dropdown-item i {
        font-size: 1.2rem;
        width: 25px;
    }
}

@media (max-width: 480px) {
    .dropdown-menu {
        min-width: 180px;
    }
    
    .dropdown-item {
        padding: 0.9rem 1rem;
        font-size: 1rem;
    }
} 