/*
Theme Name: iDEA 3D Web Theme
Theme URI: https://example.com/
Author: Your Name
Author URI: https://example.com/
Description: Converted static 3D landing page into a WordPress theme. All visuals match the original 3D web design.
Version: 1.0
Text Domain: idea-3d-web-theme
*/

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

.gradient-text {
    background: linear-gradient(135deg, #232C47, #D2671A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-orange {
    background: linear-gradient(135deg, #f7b86a, #D2671A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

:root {
    --primary: #D2671A;
    --dark: #232C47;
    --light: #ffffff;
}

html {
    background: linear-gradient(to left, #f5e6c8 0%, #ffffff 100%);
}

body {
    font-family: 'Tajawal', sans-serif;
    background: transparent;
    color: var(--dark);
    overflow-x: hidden;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    direction: rtl;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: linear-gradient(to left, #f5e6c8 0%, #ffffff 100%);
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    border-bottom: 1px solid rgba(35, 44, 71, 0.08);
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo img {
    height: 48px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.15s;
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.15s;
}

.nav-links a:hover::after {
    width: 100%;
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    margin: 3px 0;
    transition: 0.15s;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 88px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 88px);
        background: linear-gradient(to left, #f5e6c8 0%, #ffffff 100%);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 50px;
        transition: right 0.15s ease;
        backdrop-filter: blur(10px);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 20px 0;
    }

    .nav-links a {
        font-size: 18px;
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    padding: 0 5%;
    gap: 60px;
}

#heroCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
}

#servicesCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    pointer-events: none;
}

#whyCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.2;
    pointer-events: none;
}

#contactCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: right;
    flex: 1;
    max-width: 600px;
}

.phone-mockup {
    position: relative;
    width: 280px;
    height: 560px;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 12px;
    margin-left: 300px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.4);
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateY(15deg) rotateX(5deg);
    transition: transform 0.1s ease-out;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    transform: translateZ(20px);
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: #1a1a1a;
    border-radius: 0 0 20px 20px;
}

.phone-content {
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.phone-nav {
    background: white;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.phone-logo {
    font-size: 14px;
    font-weight: 900;
    color: #D2671A;
}

.phone-menu {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.phone-menu span {
    width: 16px;
    height: 2px;
    background: #232C47;
    border-radius: 2px;
}

.phone-hero {
    background: white;
    padding: 40px 15px 20px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.phone-hero h1 {
    font-size: 16px;
    font-weight: 900;
    margin-bottom: 6px;
    color: #232C47;
}

.phone-hero p {
    font-size: 9px;
    margin-bottom: 12px;
    color: #666;
}

.phone-btn {
    background: linear-gradient(135deg, #D2671A, #f7b86a);
    color: white;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 700;
    display: inline-block;
}

@media (max-width: 1200px) {
    .phone-mockup {
        width: 220px;
        height: 440px;
    }
}

@media (max-width: 968px) {
    .hero {
        flex-direction: column-reverse;
        justify-content: center;
        gap: 30px;
        padding-top: 100px;
        height: auto;
        min-height: 100vh;
        padding-bottom: 50px;
    }
    .phone-mockup {
        width: 240px;
        height: 480px;
        margin-left: 0;
        margin-right: 0;
    }
    .hero-content {
        text-align: center;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .phone-mockup {
        width: 200px;
        height: 400px;
    }
    .phone-logo {
        font-size: 11px;
    }
    .phone-hero {
        padding: 30px 12px 15px;
    }
    .phone-hero h1 {
        font-size: 13px;
        margin-bottom: 5px;
    }
    .phone-hero p {
        font-size: 7px;
        margin-bottom: 10px;
    }
    .phone-btn {
        font-size: 7px;
        padding: 5px 12px;
    }
}

.hero h1 {
    font-size: 64px;
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--dark), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 24px;
    margin-bottom: 40px;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
    color: var(--dark);
}

.cta-button {
    display: inline-block;
    padding: 18px 40px;
    background: var(--primary);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    border-radius: 50px;
    transition: all 0.3s;
    animation: fadeInUp 1s ease 0.4s both;
    box-shadow: 0 10px 30px rgba(210, 103, 26, 0.3);
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(210, 103, 26, 0.5);
}

/* Services Section */
.services {
    position: relative;
    padding: 100px 5%;
    background: transparent;
}

#servicesCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.section-title {
    font-size: 48px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 60px;
    color: var(--primary);
    background: linear-gradient(135deg, #232C47, #D2671A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 10;
}

.title-icon {
    color: initial !important;
    background: initial !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    margin-left: 10px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 10;
    perspective: 1200px;
}

.service-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 20px;
    border: 2px solid rgba(35, 44, 71, 0.08);
    box-shadow: 0 10px 30px rgba(35, 44, 71, 0.2);
    color: var(--dark);
    transform-style: preserve-3d;
    transform: translateZ(0);
    opacity: 0;
    transform: translateY(50px) rotateX(-10deg);
    transition: opacity 1.8s ease, transform 1.8s ease;
}

.service-card.animate {
    opacity: 1;
    transform: translateY(0) rotateX(0);
}

.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, opacity 0.8s ease;
}

.service-card:hover {
    transform: translateY(-10px) rotateX(-4deg) rotateY(4deg) translateZ(12px);
    border-color: rgba(210, 103, 26, 0.35);
    box-shadow: 0 25px 60px rgba(210, 103, 26, 0.4);
}

.service-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 28px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #232C47, #D2671A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-card p {
    font-size: 16px;
    line-height: 1.8;
    opacity: 0.9;
    color: var(--dark);
}

/* Why Choose Us */
.why-us {
    padding: 100px 5%;
    background: transparent;
    position: relative;
}

#whyCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.2;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
    position: relative;
    z-index: 10;
    perspective: 1200px;
}

.feature-item {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(35, 44, 71, 0.08);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(35, 44, 71, 0.15);
    color: var(--dark);
    transform-style: preserve-3d;
    transform: translateZ(0);
    opacity: 0;
    transform: translateX(50px) scale(0.9);
    transition: opacity 1.8s ease, transform 1.8s ease;
}

.feature-item.animate {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.feature-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 1.8s ease;
}

.feature-item:hover {
    transform: translateY(-8px) rotateX(-3deg) rotateY(3deg) translateZ(10px);
    box-shadow: 0 18px 45px rgba(210, 103, 26, 0.35);
}

.feature-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.feature-item h4 {
    font-size: 22px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #232C47, #D2671A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-item p {
    color: var(--dark);
}

/* Contact Section */
.contact {
    padding: 100px 5%;
    background: transparent;
    position: relative;
}

#contactCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.2;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.8s ease, transform 1.8s ease;
}

.contact-content.animate {
    opacity: 1;
    transform: translateY(0);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary);
}

.form-group input,
.form-group textarea {
    padding: 15px;
    border: 2px solid rgba(35, 44, 71, 0.12);
    background: rgba(255, 255, 255, 0.9);
    color: var(--dark);
    border-radius: 10px;
    font-family: 'Tajawal', sans-serif;
    font-size: 16px;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #ffffff;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    padding: 18px;
    background: var(--primary);
    color: var(--light);
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Tajawal', sans-serif;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(210, 103, 26, 0.5);
}

/* Footer */
footer {
    padding: 40px 5%;
    background: transparent;
    text-align: center;
    border-top: 1px solid rgba(35, 44, 71, 0.08);
}

footer p {
    opacity: 0.7;
    color: var(--dark);
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    opacity: 0;
    transform: translateY(-30px);
    transition: opacity 1.8s ease, transform 1.8s ease;
}

.section-title.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Order Steps Section */
#order .feature-item {
    position: relative;
    border: 2px solid rgba(210, 103, 26, 0.1);
    background: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(255,255,255,0.95));
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(30px) rotate(5deg);
    transition: opacity 1.8s ease, transform 1.8s ease;
}

#order .feature-item.animate {
    opacity: 1;
    transform: translateY(0) rotate(0);
}

#order .feature-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 1.8s ease;
}

#order .feature-item:hover {
    transform: translateY(-8px) rotateX(-3deg) rotateY(3deg) translateZ(10px) !important;
    box-shadow: 0 18px 45px rgba(210, 103, 26, 0.35);
}

#orderCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.2;
    pointer-events: none;
}

.step-number {
    position: absolute;
    top: -15px;
    right: -15px;
    background: linear-gradient(135deg, #D2671A, #f7b86a);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(210, 103, 26, 0.3);
}

#order .feature-icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: inherit !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    filter: none !important;
}

/* FAQ Section */
.faq-section {
    position: relative;
    padding: 100px 5%;
    background: transparent;
}

#faqCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.2;
    pointer-events: none;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.faq-item {
    background: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    border-radius: 15px;
    border: 1px solid rgba(210, 103, 26, 0.1);
    box-shadow: 0 5px 15px rgba(35, 44, 71, 0.15);
    transition: all 0.3s ease;
    overflow: hidden;
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 1.8s ease, transform 1.8s ease;
}

.faq-item.animate {
    opacity: 1;
    transform: translateX(0);
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(210, 103, 26, 0.05);
}

.faq-toggle {
    font-size: 16px;
    font-weight: bold;
    color: var(--primary);
    transition: transform 0.15s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.15s ease;
}

.faq-answer-content {
    padding: 0 25px 20px 25px;
    color: var(--dark);
    line-height: 1.6;
    opacity: 0.9;
}

.faq-item.active .faq-toggle {
    transform: rotate(90deg);
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: white;
}

/* Footer Styles */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 48px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.8s ease, transform 1.8s ease;
}

.footer.animate {
    opacity: 1;
    transform: translateY(0);
}

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

.footer-content {
    text-align: center;
}

.footer-logo {
    font-size: 32px;
    font-weight: 900;
    background: linear-gradient(135deg, #D2671A, #f7b86a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
}

.footer-description {
    color: #9ca3af;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 32px;
}

.footer-social a {
    color: #9ca3af;
    transition: color 0.3s;
    text-decoration: none;
}

.footer-social a:hover.whatsapp {
    color: #10b981;
}

.footer-social a:hover.instagram {
    color: #ec4899;
}

.footer-social a:hover.twitter {
    color: #3b82f6;
}

.footer-divider {
    border-top: 1px solid #374151;
    padding-top: 24px;
}

.footer-copyright {
    color: #6b7280;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 40px;
    }

    .hero p {
        font-size: 18px;
    }

    .section-title {
        font-size: 36px;
    }

    .nav-links {
        gap: 15px;
    }

    .nav-links a {
        font-size: 14px;
    }

    .feature-item,
    .service-card,
    .faq-item {
        transform: translateY(30px) !important;
    }

    .feature-item.animate,
    .service-card.animate,
    .faq-item.animate {
        transform: translateY(0) !important;
    }
}
