/* ==================== 
   NILOGIC - CSS Styles
   Egypt Flag Colors: #CE1126 (Red), #FFFFFF (White), #000000 (Black), #C5A028 (Gold)
==================== */

/* CSS Variables */
:root {
    --egypt-red: #CE1126;
    --egypt-red-dark: #a50e1f;
    --egypt-white: #FFFFFF;
    --egypt-black: #000000;
    --egypt-gold: #C5A028;
    --egypt-gold-light: #d4b43a;
    
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-card: #111111;
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --border-color: rgba(255, 255, 255, 0.1);
    
    --transition: all 0.3s ease;
    --shadow-glow-red: 0 0 30px rgba(206, 17, 38, 0.4);
    --shadow-glow-gold: 0 0 30px rgba(197, 160, 40, 0.4);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Particle Canvas */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ==================== 
   Navigation
==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 50px;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--egypt-red);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--egypt-red);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.lang-btn:hover {
    border-color: var(--egypt-red);
    color: var(--text-primary);
}

.cta-btn {
    padding: 10px 25px;
    background: var(--egypt-red);
    color: var(--egypt-white);
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}

.cta-btn:hover {
    background: var(--egypt-red-dark);
    box-shadow: var(--shadow-glow-red);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* ==================== 
   Hero Section
==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    z-index: 1;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(206, 17, 38, 0.1);
    border: 1px solid rgba(206, 17, 38, 0.3);
    border-radius: 50px;
    color: var(--egypt-red);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.badge-gold {
    background: rgba(197, 160, 40, 0.1);
    border-color: rgba(197, 160, 40, 0.3);
    color: var(--egypt-gold);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--egypt-red) 0%, var(--egypt-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 50px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 35px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--egypt-red);
    color: var(--egypt-white);
}

.btn-primary:hover {
    background: var(--egypt-red-dark);
    box-shadow: var(--shadow-glow-red);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--egypt-red);
}

.btn-full {
    width: 100%;
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--egypt-gold);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.code-circle {
    position: relative;
    width: 350px;
    height: 350px;
}

.orbit {
    position: absolute;
    border: 2px solid;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.orbit-1 {
    width: 100%;
    height: 100%;
    border-color: rgba(206, 17, 38, 0.3);
    animation: rotate 20s linear infinite;
}

.orbit-2 {
    width: 80%;
    height: 80%;
    border-color: rgba(197, 160, 40, 0.3);
    animation: rotate 15s linear infinite reverse;
}

.orbit-3 {
    width: 60%;
    height: 60%;
    border-color: rgba(255, 255, 255, 0.1);
    animation: rotate 10s linear infinite;
}

.code-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--egypt-red), var(--egypt-red-dark));
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow-red);
    animation: float 6s ease-in-out infinite;
}

.code-icon svg {
    width: 60px;
    height: 60px;
    color: white;
}

.floating-icon {
    position: absolute;
    padding: 12px;
    background: var(--egypt-gold);
    border-radius: 12px;
    font-size: 24px;
    animation: float 6s ease-in-out infinite;
}

.icon-1 {
    top: 20px;
    right: 20px;
    animation-delay: 1s;
}

.icon-2 {
    bottom: 40px;
    left: 10px;
    background: white;
    animation-delay: 2s;
}

/* ==================== 
   Services Section
==================== */
.services {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin: 15px 0;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 35px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(206, 17, 38, 0.1), rgba(197, 160, 40, 0.1));
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    border-color: rgba(206, 17, 38, 0.5);
    transform: translateY(-5px);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--egypt-red), var(--egypt-red-dark));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-icon svg {
    width: 30px;
    height: 30px;
    color: white;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.service-card:hover h3 {
    color: var(--egypt-red);
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: var(--egypt-gold);
    font-weight: 500;
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.service-card:hover .service-link {
    opacity: 1;
    transform: translateX(0);
}

/* ==================== 
   About Section
==================== */
.about {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.image-frame {
    background: linear-gradient(135deg, rgba(206, 17, 38, 0.2), rgba(197, 160, 40, 0.2));
    padding: 4px;
    border-radius: 24px;
}

.image-frame img {
    width: 100%;
    border-radius: 20px;
    display: block;
}

.satisfaction-card {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.check-icon {
    width: 45px;
    height: 45px;
    background: var(--egypt-red);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.satisfaction-card .percent {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
}

.satisfaction-card .label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.decor-circle {
    position: absolute;
    border: 2px solid;
    border-radius: 50%;
}

.circle-1 {
    width: 80px;
    height: 80px;
    border-color: rgba(197, 160, 40, 0.3);
    top: -20px;
    right: -20px;
}

.circle-2 {
    width: 120px;
    height: 120px;
    border-color: rgba(206, 17, 38, 0.3);
    bottom: -40px;
    right: 40px;
}

.about-content h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin: 15px 0 25px;
}

.about-content > p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 35px;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.feature-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    transition: var(--transition);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.feature-icon {
    width: 45px;
    height: 45px;
    background: rgba(197, 160, 40, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.feature-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==================== 
   Portfolio Section
==================== */
.portfolio {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.portfolio-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
}

.portfolio-card:hover {
    border-color: rgba(206, 17, 38, 0.5);
    transform: translateY(-5px);
}

.portfolio-image {
    aspect-ratio: 16/10;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.portfolio-icon {
    font-size: 80px;
    opacity: 0.6;
    transition: var(--transition);
}

.portfolio-card:hover .portfolio-icon {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.view-btn {
    padding: 12px 30px;
    background: var(--egypt-red);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transform: translateY(20px);
    transition: var(--transition);
    font-family: inherit;
}

.portfolio-card:hover .view-btn {
    transform: translateY(0);
}

.view-btn:hover {
    background: var(--egypt-red-dark);
}

.portfolio-info {
    padding: 25px;
}

.portfolio-category {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(197, 160, 40, 0.1);
    border-radius: 50px;
    color: var(--egypt-gold);
    font-size: 0.8rem;
    margin-bottom: 12px;
}

.portfolio-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    transition: var(--transition);
}

.portfolio-card:hover .portfolio-info h3 {
    color: var(--egypt-red);
}

.portfolio-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==================== 
   Contact Section
==================== */
.contact {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: var(--transition);
}

.info-item:hover {
    border-color: rgba(206, 17, 38, 0.5);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(206, 17, 38, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.info-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 3px;
}

.info-value {
    font-weight: 600;
}

.map-placeholder {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, rgba(206, 17, 38, 0.1), rgba(197, 160, 40, 0.1));
    border: 1px solid var(--border-color);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.map-placeholder span {
    font-size: 40px;
}

.map-placeholder p {
    color: var(--text-secondary);
}

.contact-form {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row .form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--egypt-red);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    resize: none;
    min-height: 120px;
}

.success-message {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
}

.success-message.show {
    display: flex;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: rgba(34, 197, 94, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #22c55e;
    margin-bottom: 20px;
}

/* ==================== 
   Footer
==================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 80px 0 30px;
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    height: 60px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: var(--transition);
}

.social-links a:hover {
    border-color: var(--egypt-red);
    color: var(--egypt-red);
}

.footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--egypt-red);
}

.footer-newsletter h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.footer-newsletter p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: inherit;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--egypt-red);
}

.newsletter-form button {
    padding: 12px 20px;
    background: var(--egypt-red);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.newsletter-form button:hover {
    background: var(--egypt-red-dark);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-bottom span {
    color: var(--egypt-red);
}

/* ==================== 
   Modal
==================== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.modal-close:hover {
    background: var(--egypt-red);
}

.modal-body {
    padding: 40px;
}

.modal-image {
    aspect-ratio: 16/9;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.modal-icon {
    font-size: 100px;
}

.modal-body h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.modal-category {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(197, 160, 40, 0.1);
    border-radius: 50px;
    color: var(--egypt-gold);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.modal-body p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 25px;
}

.modal-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: var(--egypt-red);
    color: white;
    border-radius: 10px;
    font-weight: 600;
    transition: var(--transition);
}

.modal-btn:hover {
    background: var(--egypt-red-dark);
}

/* ==================== 
   Toast
==================== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px 30px;
    color: white;
    font-weight: 500;
    z-index: 3000;
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ==================== 
   Animations
==================== */
@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes float {
    0%, 100% {
        transform: translate(-50%, -50%) translateY(0);
    }
    50% {
        transform: translate(-50%, -50%) translateY(-20px);
    }
}

/* ==================== 
   Responsive
==================== */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links,
    .nav-actions {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        padding: 30px;
        gap: 20px;
        display: none;
    }
    
    .nav-links.show {
        display: flex;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        margin: 0 auto 30px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-visual {
        display: none;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .about-image {
        order: -1;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .stats {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--egypt-red);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--egypt-gold);
}

/* Selection */
::selection {
    background: rgba(206, 17, 38, 0.3);
    color: white;
}
