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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    color: #1c1c1c;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #f5f5f5;
    z-index: 1001;
}

.scroll-progress__bar {
    height: 100%;
    background: #1c1c1c;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.1s ease-out;
    will-change: transform;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: transform 260ms ease-out;
    will-change: transform;
    border-bottom: 1px solid rgba(28, 28, 28, 0.1);
}

.header.hidden {
    transform: translateY(-100%);
}

.header__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.language-switcher {
    display: flex;
    background: rgba(28, 28, 28, 0.05);
    border-radius: 6px;
    padding: 2px;
}

.language-btn {
    background: none;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 200ms ease-out;
    color: #666;
}

.language-btn.active {
    background: #1c1c1c;
    color: white;
}

.header__logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1c1c1c;
    text-decoration: none;
}

.header__nav {
    display: none;
    gap: 2rem;
    list-style: none;
}

.header__nav a {
    color: #1c1c1c;
    text-decoration: none;
    position: relative;
    transition: color 220ms ease-out;
    font-weight: 500;
}

.header__nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #1c1c1c;
    transition: all 220ms ease-out;
    transform: translateX(-50%);
}

.header__nav a:hover::after {
    width: 100%;
}

.header__menu-btn {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    color: #1c1c1c;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid rgba(28, 28, 28, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    transition: transform 300ms ease-out;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
}

.mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-menu__nav {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    gap: 0;
}

.mobile-menu__nav a {
    color: #1c1c1c;
    text-decoration: none;
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background 220ms ease-out;
    font-weight: 500;
}

.mobile-menu__nav a:hover {
    background: #f8f8f8;
}

.mobile-menu__nav a:last-child {
    border-bottom: none;
}

/* Main Container */
.main {
    padding-top: 70px;
}

/* Hero Section */
.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 2rem 1rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #e7e7e7 0%, #ffffff 50%, #d5d5d5 100%);
}

.hero__container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
    z-index: 2;
    width: 100%;
}

.hero__content {
    text-align: left;
}

.hero__visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero__graphic {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(28, 28, 28, 0.1) 0%, rgba(28, 28, 28, 0.05) 100%);
    animation: float 6s ease-in-out infinite;
}

.hero__circle--large {
    width: 250px;
    height: 250px;
    animation-delay: 0s;
}

.hero__circle--medium {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, rgba(28, 28, 28, 0.08) 0%, rgba(28, 28, 28, 0.03) 100%);
    animation-delay: 2s;
}

.hero__circle--small {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(28, 28, 28, 0.06) 0%, rgba(28, 28, 28, 0.02) 100%);
    animation-delay: 4s;
}

.hero__dots {
    position: absolute;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero__dots span {
    width: 8px;
    height: 8px;
    background: #1c1c1c;
    border-radius: 50%;
    opacity: 0;
    animation: dotPulse 2s ease-in-out infinite;
}

.hero__dots span:nth-child(1) { animation-delay: 0s; }
.hero__dots span:nth-child(2) { animation-delay: 0.2s; }
.hero__dots span:nth-child(3) { animation-delay: 0.4s; }
.hero__dots span:nth-child(4) { animation-delay: 0.6s; }
.hero__dots span:nth-child(5) { animation-delay: 0.8s; }
.hero__dots span:nth-child(6) { animation-delay: 1s; }
.hero__dots span:nth-child(7) { animation-delay: 1.2s; }
.hero__dots span:nth-child(8) { animation-delay: 1.4s; }
.hero__dots span:nth-child(9) { animation-delay: 1.6s; }

@keyframes dotPulse {
    0%, 20%, 80%, 100% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

.hero__title {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 800ms ease-out forwards;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #1c1c1c 0%, #333 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.hero__subtitle {
    font-size: clamp(1.1rem, 4vw, 1.3rem);
    color: #666;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 800ms ease-out 200ms forwards;
    line-height: 1.6;
}

.hero__cta {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 800ms ease-out 400ms forwards;
}

.hero__bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    opacity: 0.1;
    background: 
        radial-gradient(circle at 20% 80%, #1c1c1c 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, #1c1c1c 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, #1c1c1c 0%, transparent 50%);
    animation: float 6s ease-in-out infinite;
}

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

/* Hero image: 600px on desktop, 300px on mobile */
.hero__img {
    width: 600px;
    max-width: 100%; /* keep it responsive if container is smaller */
    height: auto;
    display: block;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .hero__img {
        width: 350px;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border: 1px solid #1c1c1c;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 220ms ease-out;
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: #1c1c1c;
    color: white;
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(28, 28, 28, 0.2);
}

.btn--outline {
    background: transparent;
    color: #1c1c1c;
}

.btn--outline:hover {
    background: #1c1c1c;
    color: white;
}

/* Sections */
.section {
    padding: 4rem 1rem;
}

.section:nth-child(even) {
    background: #fafafa;
}

.section__container {
    max-width: 1200px;
    margin: 0 auto;
}

.section__title {
    font-size: clamp(2rem, 6vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section__title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #1c1c1c;
}

/* Services Grid */
.services__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 260ms ease-out;
    opacity: 0;
    transform: translateY(20px);
    will-change: transform;
    border: 1px solid #f0f0f0;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border-color: #1c1c1c;
}

.service-card__icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    color: #1c1c1c;
}

.service-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1c1c1c;
}

.service-card__description {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* About Section */
.about__content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.2rem;
    line-height: 1.7;
    color: #555;
}

.stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: scale(0.9);
    transition: all 500ms ease-out;
    border: 1px solid #f0f0f0;
}

.stat:hover {
    border-color: #1c1c1c;
    transform: scale(1.02);
}

.stat__number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1c1c1c;
    display: block;
    line-height: 1;
}

.stat__label {
    color: #666;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* FAQs */
.faqs {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.faq__question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 220ms ease-out;
}

.faq__question:hover {
    background: #f8f8f8;
}

.faq__chevron {
    width: 20px;
    height: 20px;
    transition: transform 300ms ease-out;
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 300ms ease-out;
    color: #666;
    line-height: 1.6;
    background: #f8f8f8;
}

.faq-item.open .faq__answer {
    max-height: 200px;
    opacity: 1;
    padding: 0 1.5rem 1.5rem;
}

.faq-item.open .faq__chevron {
    transform: rotate(90deg);
}

/* Contact Form */
.contact__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
}

.contact__info {
    text-align: center;
}

.contact__info h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.contact__info p {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.contact__detail {
    color: #1c1c1c;
    text-decoration: none;
    padding: 1rem;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    transition: all 220ms ease-out;
    font-weight: 500;
    min-width: 200px;
}

.contact__detail:hover {
    border-color: #1c1c1c;
    background: #f8f8f8;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form__label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1c1c1c;
}

.form__input,
.form__select,
.form__textarea {
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 220ms ease-out;
    outline: none;
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
    border-color: #1c1c1c;
    box-shadow: 0 0 0 3px rgba(28, 28, 28, 0.1);
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

.form__submit {
    justify-self: start;
    transition: transform 150ms ease-out;
}

.form__submit:active {
    transform: scale(0.98);
}

.form__success {
    background: #f0f9f0;
    color: #2d5a2d;
    padding: 1rem;
    border: 1px solid #c8e6c9;
    border-radius: 8px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 300ms ease-out;
    font-weight: 500;
}

.form__success.show {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
.footer {
    background: #1c1c1c;
    color: white;
    padding: 3rem 1rem 2rem;
    text-align: center;
}

.footer__container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer__links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer__links a {
    color: #ccc;
    text-decoration: none;
    transition: color 220ms ease-out;
    font-weight: 500;
}

.footer__links a:hover {
    color: white;
}

.footer__copyright {
    color: #999;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Language Support */
.lang-ar, .lang-ur {
    direction: rtl;
    text-align: right;
}

.lang-ar .hero__content,
.lang-ur .hero__content {
    text-align: right;
}

.lang-ar .hero__container,
.lang-ur .hero__container {
    grid-template-columns: 1fr 1fr;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .header__nav {
        display: none;
    }
    
    .header__actions .language-switcher {
        display: flex;
    }
    
    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero__content {
        text-align: center;
        order: 1;
    }
    
    .hero__visual {
        order: 2;
    }
    
    .hero__graphic {
        width: 200px;
        height: 200px;
    }
    
    .hero__circle--large {
        width: 180px;
        height: 180px;
    }
    
    .hero__circle--medium {
        width: 130px;
        height: 130px;
    }
    
    .hero__circle--small {
        width: 80px;
        height: 80px;
    }
    
    .hero__dots {
        gap: 8px;
    }
    
    .hero__dots span {
        width: 6px;
        height: 6px;
    }
}

@media (min-width: 769px) {
    .header__nav {
        display: flex;
    }
    
    .header__menu-btn {
        display: none;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Tablet Responsive */
@media (min-width: 768px) {
    .header__container {
        padding: 0 2rem;
    }

    .header__nav {
        display: flex;
    }

    .header__menu-btn {
        display: none;
    }

    .hero {
        min-height: 90vh;
        padding: 4rem 2rem;
    }

    .section {
        padding: 5rem 2rem;
    }

    .services__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .contact__container {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }

    .contact__info {
        text-align: left;
    }

    .contact__details {
        align-items: flex-start;
    }
}

/* Desktop Responsive */
@media (min-width: 1024px) {
    .services__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Animation States */
.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.stat.animate-in {
    opacity: 1 !important;
    transform: scale(1) !important;
}
