:root {
    /* Color Palette - Premium IT Theme */
    --primary: #007bff; /* Electric Blue */
    --primary-glow: rgba(0, 123, 255, 0.4);
    --primary-dark: #0056b3;
    --secondary: #6c757d;
    --background: #0f172a; /* Deep Slate / Dark Blue */
    --surface: #1e293b; /* Lighter Slate */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #38bdf8;
    --accent-glow: rgba(56, 189, 248, 0.4);
    --glass: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.1);
    
    /* Typography */
    --font-main: 'Inter', 'Noto Kufi Arabic', system-ui, -apple-system, sans-serif;
    
    /* Spacing */
    --section-padding: 120px 0 160px 0;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

section {
    padding: var(--section-padding);
}

/* Glassmorphism utility */
.glass-effect {
    background: var(--glass);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 14px 34px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px var(--primary-glow);
}

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

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes glow {
    0% { filter: drop-shadow(0 0 5px var(--primary-glow)); }
    50% { filter: drop-shadow(0 0 15px var(--primary-glow)); }
    100% { filter: drop-shadow(0 0 5px var(--primary-glow)); }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

.logo-glow {
    animation: glow 4s ease-in-out infinite;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    padding: 40px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.service-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 25px;
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

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

.portfolio-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.portfolio-item:hover .portfolio-overlay {
    bottom: 0;
    opacity: 1;
}

.portfolio-item:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Hero Section Specifics */
.hero-title {
    font-size: 4rem;
    margin-bottom: 30px;
}

.hero-image-container {
    position: relative;
    width: 450px;
    height: 550px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    border: 1px solid var(--glass-border);
}

.section-title {
    font-size: 2.5rem;
}

.stats-number {
    font-size: 2.5rem;
    color: var(--accent);
}

/* Utilities */
.text-center { text-align: center; }
.mb-50 { margin-bottom: 50px; }
.mb-60 { margin-bottom: 60px; }
.mb-80 { margin-bottom: 80px; }
.mb-100 { margin-bottom: 100px; }
.mb-120 { margin-bottom: 120px; }
.mb-200 { margin-bottom: 200px; }
.opacity-0 { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in { opacity: 1 !important; transform: translateY(0) !important; }

/* Responsive */
@media (max-width: 992px) {
    section { padding: 80px 0; }
    .hero-title { font-size: 3rem; }
    .section-title { font-size: 2rem; }
    .stats-number { font-size: 2rem; }
    #home { 
        flex-direction: column; 
        text-align: center; 
        gap: 50px; 
        padding-top: 120px;
        min-height: auto;
    }
    .hero-content { max-width: 100% !important; }
    .hero-image { justify-content: center; width: 100%; }
    .hero-image-container { width: 350px; height: 450px; }
    #contact > div { flex-direction: column; gap: 30px; }
    #contact h2 { font-size: 2.2rem !important; }
    header { width: 95%; top: 10px; padding: 10px 20px; }
    nav { display: none; }
}

@media (max-width: 576px) {
    .section-padding { padding: 60px 0; }
    .hero-title { font-size: 2.2rem; }
    .section-title { font-size: 1.8rem; }
    .hero-image-container { width: 280px; height: 350px; }
    .btn { padding: 12px 24px; font-size: 0.85rem; }
    .stats-container { flex-direction: column; gap: 30px; }
}
