/* Opun Mai Font */
@font-face {
    font-family: 'Opun Mai';
    src: url('fonts/OpunMai-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: 'Opun Mai';
    src: url('fonts/OpunMai-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Opun Mai';
    src: url('fonts/OpunMai-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'Opun Mai';
    src: url('fonts/OpunMai-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}
@font-face {
    font-family: 'Opun Mai';
    src: url('fonts/OpunMai-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: 'Opun Mai';
    src: url('fonts/OpunMai-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}

:root {
    --bg-dark: #0d0d0f;
    --bg-card: #161619;
    --primary-color: #5ec6d0;
    --primary-hover: #4aa8b1;
    --text-main: #ffffff;
    --text-muted: #8a8a8a;
    --accent: #e8b84b;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--accent));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', 'Opun Mai', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Ambient Glow Orbs */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(100px);
}

body::before {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(94, 198, 208, 0.12), transparent 70%);
    top: -100px;
    right: -100px;
    animation: ambientFloat 8s ease-in-out infinite alternate;
}

body::after {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(232, 184, 75, 0.08), transparent 70%);
    bottom: 10%;
    left: -100px;
    animation: ambientFloat 10s ease-in-out infinite alternate-reverse;
}

.glow-orb {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(100px);
}

.glow-orb-1 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(94, 198, 208, 0.08), transparent 70%);
    bottom: -50px;
    right: -50px;
    animation: ambientFloat 12s ease-in-out infinite alternate;
}

.glow-orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(232, 184, 75, 0.06), transparent 70%);
    top: 40%;
    left: -80px;
    animation: ambientFloat 9s ease-in-out infinite alternate-reverse;
}

@keyframes ambientFloat {
    0% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    50% { transform: translate(20px, -20px) scale(1.1); opacity: 1; }
    100% { transform: translate(-10px, 10px) scale(0.95); opacity: 0.7; }
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(13, 13, 15, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

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

.navbar-logo-img {
    height: 40px;
    width: auto;
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s;
}

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

.btn-primary {
    background: var(--gradient);
    color: white !important;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.3s, transform 0.3s;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #1e1e1e;
    color: var(--text-main);
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.3s;
    display: inline-block;
}

.btn-secondary:hover {
    background: #2a2a2a;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    padding-top: 80px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: #e0e0e0;
}

.description {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 480px;
}

.hero-buttons-wrapper {
    position: relative;
    padding: 1.5px;
    border-radius: 16px;
    overflow: hidden;
    width: fit-content;
    margin-bottom: 4rem;
    box-shadow: 0 0 15px rgba(94, 198, 208, 0.08), 0 0 30px rgba(232, 184, 75, 0.05);
}

.spinning-border {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent 0%,
        transparent 60%,
        rgba(94, 198, 208, 0.8) 68%,
        rgba(232, 184, 75, 0.9) 72%,
        rgba(94, 198, 208, 0.8) 76%,
        transparent 84%,
        transparent 100%
    );
    animation: spinBorder 4s linear infinite;
}

@keyframes spinBorder {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-buttons {
    display: flex;
    gap: 0;
    background: rgba(25, 25, 28, 0.95);
    padding: 6px;
    border-radius: 14px;
    width: fit-content;
    position: relative;
}

.hero-btn-slider {
    position: absolute;
    top: 6px;
    right: 6px;
    width: calc(50% - 6px);
    height: calc(100% - 12px);
    background: var(--gradient);
    border-radius: 10px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.hero-buttons.slide-left .hero-btn-slider {
    transform: translateX(calc(-100% - 0px));
}

.hero-tab {
    position: relative;
    z-index: 1;
    padding: 12px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.5);
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    white-space: nowrap;
}

.hero-tab.active {
    color: white;
}

.partner-logos {
    display: flex;
    align-items: center;
    gap: 2rem;
    color: var(--text-main);
    font-size: 1.2rem;
    font-weight: 600;
}

.partner-logos span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.8;
}

.logo-ipsum {
    font-family: sans-serif;
    font-weight: 700;
}

.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    height: 100vh;
}

.hero-image-container::before {
    content: '';
    position: absolute;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 184, 75, 0.3) 0%, rgba(94, 198, 208, 0.15) 35%, transparent 65%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    z-index: 0;
    filter: blur(30px);
    animation: glowPulse 4s ease-in-out infinite alternate;
}

@keyframes glowPulse {
    0% { opacity: 0.7; transform: translate(-50%, -55%) scale(1); }
    100% { opacity: 1; transform: translate(-50%, -55%) scale(1.08); }
}

.hero-person-img {
    width: 80%;
    max-height: 80vh;
    object-fit: cover;
    object-position: top center;
    border-radius: 20px;
    filter: drop-shadow(0 20px 50px rgba(0,0,0,0.5));
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateX(-80px);
    animation: slideInFromLeft 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 1.4s;
}

@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-80px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-quote {
    position: absolute;
    bottom: 20%;
    right: 10%;
    background: rgba(13, 13, 15, 0.85);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    max-width: 300px;
    border-right: 4px solid var(--accent);
}

.hero-quote i {
    font-size: 2rem;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.hero-quote p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.glow-circle {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(108,92,231,0.2) 0%, rgba(10,10,12,0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.abstract-shape {
    width: 350px;
    height: 450px;
    background: linear-gradient(135deg, #1f1f25, #151518);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    animation: morph 8s ease-in-out infinite alternate;
}

@keyframes morph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 50% 50% 30% 70% / 70% 30% 70% 30%; }
    100% { border-radius: 70% 30% 50% 50% / 30% 70% 30% 70%; }
}

/* Sections */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

.section-title span {
    color: var(--primary-color);
}

.services, .work, .contact {
    padding: 100px 5%;
}

/* Services */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 20px;
    transition: transform 0.3s, background 0.3s;
    border: 1px solid rgba(255,255,255,0.02);
}

.service-card:hover {
    transform: translateY(-10px);
    background: #1a1a1f;
    border-color: rgba(108,92,231,0.2);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

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

/* Work */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.portfolio-img-placeholder {
    height: 250px;
    width: 100%;
    transition: transform 0.5s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-icon {
    font-size: 3rem;
    color: white;
    opacity: 0.6;
}

.portfolio-item:hover .portfolio-img-placeholder {
    transform: scale(1.05);
}

.portfolio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(10,10,12,0.9));
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s;
}

.portfolio-item:hover .portfolio-info {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.portfolio-info p {
    color: var(--accent);
    font-size: 0.9rem;
}

/* All Projects */
.all-projects {
    padding: 60px 5%;
}

.projects-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 2rem;
    transition: border-color 0.3s, transform 0.3s;
    cursor: pointer;
}

.project-card:hover {
    border-color: rgba(94, 198, 208, 0.3);
    transform: translateY(-4px);
}

.project-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
}

.project-card-icon i {
    font-size: 1.2rem;
    color: white;
}

.project-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.project-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* CTA Section */
.cta-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    padding: 5rem 5%;
    background: var(--bg-card);
    border-top: 1px solid rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.cta-content {
    flex: 1;
}

.cta-title {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.cta-desc {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
    max-width: 500px;
}

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

.cta-btn {
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.cta-image {
    flex-shrink: 0;
}

.cta-image-circle {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(94, 198, 208, 0.3);
    box-shadow: 0 0 30px rgba(94, 198, 208, 0.1);
}

.cta-person-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* Contact Form */
.contact-form-wrapper {
    position: relative;
    padding: 3px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--accent), var(--primary-color), var(--accent));
    overflow: hidden;
}

.contact-form-box {
    background: #0d0d0f;
    border-radius: 22px;
    padding: 4rem 3rem;
    position: relative;
    z-index: 1;
}

.contact-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
}

.contact-glow-right {
    bottom: -50px;
    left: -50px;
    background: rgba(232, 184, 75, 0.3);
}

.contact-glow-left {
    top: -50px;
    right: -50px;
    background: rgba(94, 198, 208, 0.2);
}

.contact-heading {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 300;
    font-style: italic;
    color: var(--text-main);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

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

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding: 0.8rem 0;
    color: var(--text-main);
    font-size: 1rem;
    font-family: 'Cairo', 'Opun Mai', sans-serif;
    outline: none;
    transition: border-color 0.3s;
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
}

.form-submit-btn {
    align-self: center;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--text-muted);
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-family: 'Cairo', 'Opun Mai', sans-serif;
    cursor: not-allowed;
    transition: all 0.4s;
    margin-top: 1rem;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.form-submit-btn.active {
    cursor: pointer;
    background: var(--gradient);
    color: white;
    border-color: transparent;
    text-decoration: none;
}

.form-submit-btn.active:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.contact-info-bar {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-main);
    text-decoration: none;
    background: rgba(255,255,255,0.03);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    transition: background 0.3s, color 0.3s;
    direction: ltr;
    border: 1px solid rgba(255,255,255,0.05);
}

.contact-link:hover {
    background: rgba(94, 198, 208, 0.1);
    color: var(--primary-color);
    border-color: rgba(94, 198, 208, 0.2);
}

.contact-link i {
    font-size: 1.2rem;
    color: var(--accent);
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    .contact-form-box {
        padding: 2.5rem 1.5rem;
    }
    .contact-heading {
        font-size: 2rem;
    }
}
/* CTA Section */
.cta-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px 5%;
    min-height: 80vh;
}

.cta-content {
    flex: 1;
    max-width: 600px;
}

.cta-title {
    font-size: 3rem;
    line-height: 1.3;
    font-weight: 300;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.cta-desc {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

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

.cta-btn {
    font-family: 'Cairo', 'Opun Mai', sans-serif;
    font-size: 1rem;
}

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

.cta-image-circle {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1f, #0d0d0f);
    border: 2px solid rgba(255,255,255,0.05);
}

.cta-person-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 5000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
    padding: 2rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(30px);
    transition: transform 0.4s;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255,255,255,0.2);
}

/* Footer */
footer {
    padding: 2rem 5%;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.5rem;
}

.footer-logo-img {
    height: 30px;
    width: auto;
    opacity: 0.8;
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--text-main);
}

.socials {
    display: flex;
    gap: 1.5rem;
}

.socials a {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: color 0.3s;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
}

.socials a:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.footer-copyright {
    text-align: center;
    font-size: 0.85rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

@media (max-width: 768px) {
    .cta-section {
        flex-direction: column;
        text-align: center;
    }
    .cta-content {
        align-items: center;
        display: flex;
        flex-direction: column;
    }
    .cta-title { font-size: 2rem; }
    .cta-image-circle { width: 250px; height: 250px; }
    .footer-content { flex-direction: column; gap: 1.5rem; }
    .footer-links { gap: 1rem; }
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 200px;
}

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

.preloader-logo-img {
    height: 50px;
    width: auto;
}

.progress-bar-container {
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: var(--gradient);
    border-radius: 4px;
    animation: loading 1.2s ease-in-out forwards;
}

@keyframes loading {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* Scroll Animations */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.fade-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.fade-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.fade-up.reveal-visible,
.fade-right.reveal-visible,
.fade-left.reveal-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .hero {
        padding-top: 100px;
    }
    .title {
        font-size: 2.8rem;
    }
    .hero-image-container {
        height: auto;
    }
    .hero-person-img {
        max-height: 60vh;
    }
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    /* Fix page shifting */
    html, body {
        overflow-x: hidden !important;
        width: 100%;
        max-width: 100vw;
    }

    /* Force Cairo font - exclude icon fonts */
    *:not(i):not(.fas):not(.fab):not(.far):not(.fa) {
        font-family: 'Cairo', sans-serif !important;
    }

    section {
        padding: 40px 5% !important;
    }

    /* Navbar */
    .navbar {
        padding: 0.8rem 4% !important;
    }
    .nav-links {
        display: none;
    }
    .logo {
        font-size: 1.4rem;
    }

    /* Hero Section */
    .hero {
        flex-direction: column;
        text-align: center;
        justify-content: flex-start;
        gap: 1rem;
        padding-top: 90px;
        min-height: auto;
        padding-bottom: 2rem;
    }
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        order: 2;
        padding: 0 1rem;
    }
    .subtitle {
        font-size: 0.85rem;
    }
    .title {
        font-size: 2rem;
        line-height: 1.3;
    }
    .description {
        font-size: 0.95rem;
        max-width: 100%;
    }

    /* Hero Image */
    .hero-image-container {
        order: 1;
        flex: none;
        height: auto;
        justify-content: center;
        width: 100%;
    }
    .hero-image-container::before {
        width: 280px;
        height: 280px;
    }
    .hero-person-img {
        width: 60%;
        max-height: 45vh;
        border-radius: 16px;
        animation-delay: 1s;
    }

    /* Quote - repositioned below image */
    .hero-quote {
        position: relative;
        bottom: auto;
        right: auto;
        margin: 0.5rem auto 0;
        max-width: 85%;
        text-align: center;
        border-right: none;
        border-bottom: 2px solid var(--accent);
        padding: 0.8rem 1rem;
    }
    .hero-quote i {
        font-size: 1.2rem;
        margin-bottom: 0.4rem;
    }
    .hero-quote p {
        font-size: 0.75rem;
        line-height: 1.5;
    }

    /* Hero Buttons */
    .hero-buttons-wrapper {
        margin-bottom: 2rem;
    }
    .hero-tab {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    /* Partner logos */
    .partner-logos {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        font-size: 0.9rem;
    }

    /* Section titles */
    .section-title {
        font-size: 1.8rem;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Work / Portfolio */
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    /* All Projects */
    .all-projects {
        padding: 40px 5%;
    }
    .projects-list {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    /* CTA Section */
    .cta-section {
        flex-direction: column;
        text-align: center;
        padding: 3rem 5%;
    }
    .cta-image {
        width: 150px;
        height: 150px;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    /* Modal */
    .modal-content {
        width: 95%;
        max-height: 90vh;
        padding: 1.5rem;
    }

    /* Preloader */
    .preloader-logo {
        font-size: 2rem;
    }
    .preloader-tagline {
        font-size: 0.85rem;
    }

    /* Glow orbs - smaller on mobile */
    .glow-orb-1, .glow-orb-2 {
        width: 200px;
        height: 200px;
    }
    body::before {
        width: 300px;
        height: 300px;
    }
    body::after {
        width: 250px;
        height: 250px;
    }
}

/* Responsive - Small Mobile */
@media (max-width: 480px) {
    .title {
        font-size: 1.6rem;
    }
    .projects-list {
        grid-template-columns: 1fr;
    }
    .hero-person-img {
        width: 70%;
    }
    .partner-logos {
        font-size: 0.75rem;
        gap: 0.6rem;
    }
}
