:root {
    --primary-color: #c5a059; /* Gold */
    --secondary-color: #1a2a44; /* Navy */
    --accent-color: #e2e8f0;
    --text-main: #334155;
    --text-light: #64748b;
    --text-white: #ffffff;
    --bg-dark: #0a192f;
    --bg-light: #f8fafc;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

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

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

h1, h2, h3, .logo-text {
    font-family: 'Amiri', serif;
    font-weight: 700;
}

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

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 1.5rem;
    color: var(--primary-color);
    line-height: 1.2;
}

.logo-subtext {
    font-size: 0.8rem;
    color: var(--text-white);
    opacity: 0.8;
    letter-spacing: 1px;
}

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

.menu-toggle {
    display: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-dark);
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
}

.nav-links a {
    color: var(--text-white);
    font-size: 0.95rem;
    font-weight: 400;
}

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

/* Buttons */
.btn {
    padding: 12px 28px;
    border-radius: 5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background-color: #d4b47a;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(197, 160, 89, 0.4);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-white);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.dark-outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.dark-outline:hover {
    background-color: var(--primary-color);
    color: var(--bg-dark);
}

.full-width {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 180px 0 100px;
    color: var(--text-white);
    background-color: var(--bg-dark);
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(197, 160, 89, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.highlight {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--accent-color);
    opacity: 0.9;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: visible;
}

.profile-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(197, 160, 89, 0.3);
    transition: var(--transition);
}

.profile-img:hover {
    transform: scale(1.02);
}

/* Stats Section */
.stats {
    background: var(--bg-dark);
    padding: 50px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

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

/* Sections General */
section {
    padding: 100px 0;
}

.section-tag {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 25px;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-list {
    margin-top: 30px;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.about-list i {
    color: var(--primary-color);
}

.rounded-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Services */
.services {
    background-color: #f1f5f9;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--text-white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.03);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Library Section */
.library {
    background-color: var(--bg-light);
}

.laws-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.law-card {
    background: var(--text-white);
    padding: 25px;
    border-radius: 12px;
    border-right: 4px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}

.law-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.law-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.4;
    min-height: 3em;
}

.download-btn {
    background-color: var(--secondary-color);
    color: white;
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: var(--transition);
}

.download-btn:hover {
    background-color: var(--primary-color);
    color: var(--bg-dark);
}

.library-footer {
    text-align: center;
    margin-top: 20px;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: #25d366;
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 9999;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-float i {
    font-size: 1.5rem;
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.05);
    background-color: #128c7e;
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.5);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6); }
    100% { transform: scale(1); }
}

@media (max-width: 576px) {
    .whatsapp-float span { display: none; }
    .whatsapp-float { padding: 15px; border-radius: 50%; bottom: 20px; left: 20px; }
}

/* Why Us */
.why-us {
    background: linear-gradient(135deg, #0a192f 0%, #172a45 100%), url('hero.png');
    background-size: cover;
    background-blend-mode: overlay;
    color: var(--text-white);
}

.white-text { color: var(--text-white); }

.feature-item {
    display: flex;
    gap: 25px;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.03);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary-color);
}

.feature-text h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.feature-text p {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
}

.contact-methods {
    margin-top: 40px;
}

.method {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.method i {
    width: 50px;
    height: 50px;
    background: rgba(197, 160, 89, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
}

.contact-form-wrapper {
    background: var(--text-white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.05);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 0.9rem;
}

.form-group input, .form-group select, .form-group textarea {
    width:100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-white);
    padding: 60px 0 30px;
    text-align: center;
}

.footer-logo .logo-text {
    font-size: 2rem;
}

.social-links {
    margin: 30px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    font-size: 1.5rem;
    opacity: 0.7;
}

.social-links a:hover {
    opacity: 1;
    color: var(--primary-color);
    transform: translateY(-3px);
}

.copyright {
    opacity: 0.5;
    font-size: 0.85rem;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .hero-container, .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title { font-size: 2.5rem; }
    
    .hero-btns { justify-content: center; }
    
    .hero-image-wrapper { order: -1; max-width: 400px; margin: 0 auto; }
    
    .nav-links { display: none; }
    
    .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 576px) {
    .stats-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 2rem; }
    .contact-form-wrapper { padding: 30px 20px; }
}
