/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e40af;
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    --secondary-color: #dc2626;
    --accent-color: #f59e0b;
    --safety-orange: #ff6b35;
    --success-green: #10b981;
    --text-dark: #0f172a;
    --text-muted: #475569;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-slate: #f1f5f9;
    --bg-white: #ffffff;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 40px -15px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 20px 50px -20px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 25px 60px -25px rgba(0, 0, 0, 0.2);
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    overflow-x: hidden;
    background: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation - أنيق */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: var(--transition);
}

/* Hero Section - أكثر جاذبية ومقاس مناسب */
.hero {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(160deg, #0f172a 0%, #1e3a8a 35%, #2563eb 60%, #1e40af 100%);
    color: white;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255,255,255,0.15), transparent),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(255,107,53,0.12), transparent),
        radial-gradient(ellipse 60% 40% at 0% 80%, rgba(59,130,246,0.2), transparent);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, rgba(15,23,42,0.4), transparent);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.25);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    padding: 0 20px 50px;
}

.hero-title {
    font-size: clamp(1.6rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    margin-bottom: 1.75rem;
    opacity: 0.95;
    line-height: 1.75;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 1.75rem;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    font-family: 'Cairo', sans-serif;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.25);
}

.btn-secondary {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 2px solid rgba(255,255,255,0.6);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.95);
    color: var(--primary-color);
    border-color: white;
}

.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.7);
    border-radius: 16px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    background: white;
    border-radius: 50%;
    animation: scroll 2s ease-in-out infinite;
}

@keyframes scroll {
    0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0.3; transform: translateX(-50%) translateY(12px); }
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section reveal عند التمرير */
section:not(.hero) {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

section:not(.hero).in-view {
    opacity: 1;
    transform: translateY(0);
}

.reveal-item {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1), transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-item.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Section Styles - أنيق ومتناسق */
section {
    padding: 5.5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    position: relative;
    display: inline-block;
    letter-spacing: -0.02em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--safety-orange));
    border-radius: 3px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-top: 1.25rem;
    font-weight: 500;
}

/* About Section - خلفية ناعمة */
.about {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 1.35rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    margin-top: 2rem;
    font-weight: 700;
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text p {
    color: var(--text-muted);
    line-height: 1.85;
    margin-bottom: 1.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.04);
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.stat-number {
    font-size: 2.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--safety-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
}

/* Services Section */
.services {
    background: var(--bg-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.75rem;
}

.service-card {
    background: white;
    padding: 2.25rem;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-sm);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
    border-right: 4px solid var(--safety-orange);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.25rem;
    filter: grayscale(0.2);
}

.service-card h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.service-card p {
    color: var(--text-muted);
    line-height: 1.75;
    font-size: 0.95rem;
}

/* Portfolio Section */
.portfolio {
    background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.75rem;
}

.portfolio-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

/* الخلفية دائماً زرقاء */
.portfolio-image {
    position: relative;
    height: 280px;
    background: #1e40af;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.88);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease, background 0.4s ease;
    color: white;
    padding: 2rem;
    text-align: center;
}

.portfolio-overlay h3,
.portfolio-overlay p {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.35s ease 0.08s, transform 0.35s ease 0.08s;
}

.portfolio-overlay p {
    transition-delay: 0.14s;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover .portfolio-overlay h3,
.portfolio-item:hover .portfolio-overlay p {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-overlay h3 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.portfolio-overlay p {
    font-size: 0.95rem;
}

.portfolio-item:hover .portfolio-overlay p {
    opacity: 0.92;
}

/* Capabilities Section - القابليات والامكانيات */
.capabilities {
    background: var(--bg-white);
}

.cap-block {
    margin-bottom: 2.5rem;
    padding: 2.25rem;
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: var(--shadow-md);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: var(--transition);
}

.cap-block:hover {
    box-shadow: var(--shadow-lg);
}

.cap-head {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    color: white;
    text-align: right;
}

.cap-operations .cap-head { background: linear-gradient(135deg, #1e40af, #2563eb); }
.cap-support .cap-head { background: linear-gradient(135deg, #059669, #10b981); }
.cap-training .cap-head { background: linear-gradient(135deg, #7c3aed, #8b5cf6); }
.cap-other .cap-head { background: linear-gradient(135deg, #dc2626, #ef4444); }
.cap-info .cap-head { background: linear-gradient(135deg, #0f766e, #14b8a6); }
.cap-partners .cap-head { background: linear-gradient(135deg, #b45309, #f59e0b); }

.cap-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.cap-card {
    background: white;
    padding: 1.5rem 1.5rem 1.5rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid #e2e8f0;
    border-right: 4px solid;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
}

.cap-operations .cap-card { border-right-color: #2563eb; }
.cap-operations .cap-card:hover { box-shadow: 0 8px 24px rgba(30, 64, 175, 0.12); }
.cap-support .cap-card { border-right-color: #10b981; }
.cap-support .cap-card:hover { box-shadow: 0 8px 24px rgba(16, 185, 129, 0.12); }
.cap-training .cap-card { border-right-color: #8b5cf6; }
.cap-other .cap-card { border-right-color: #ef4444; }

.cap-card:hover {
    transform: translateY(-3px);
    border-color: #cbd5e1;
}

.cap-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
    margin-bottom: 0.85rem;
    letter-spacing: 0.02em;
}

.cap-operations .cap-badge { background: rgba(37, 99, 235, 0.12); color: #1d4ed8; }
.cap-support .cap-badge { background: rgba(16, 185, 129, 0.12); color: #059669; }
.cap-training .cap-badge { background: rgba(139, 92, 246, 0.12); color: #6d28d9; }
.cap-other .cap-badge { background: rgba(239, 68, 68, 0.12); color: #b91c1c; }

.cap-card h4 {
    font-size: 1.08rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.cap-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
    margin: 0;
}

.cap-intro, .cap-sub {
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.7;
}

.cap-sub {
    font-weight: 600;
    color: var(--primary-color);
}

/* صناديق الدورات - أنيقة ومتناسقة */
.training-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.training-tags span {
    display: inline-block;
    padding: 0.6rem 1.1rem;
    background: white;
    color: #5b21b6;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    border: 1px solid rgba(124, 58, 237, 0.2);
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.06);
    transition: var(--transition);
}

.training-tags span:hover {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(139, 92, 246, 0.08));
    border-color: rgba(124, 58, 237, 0.35);
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.12);
    transform: translateY(-1px);
}

/* صناديق الأقسام الأخرى */
.other-depts {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.dept-pill {
    padding: 0.85rem 1.6rem;
    background: white;
    color: #1e40af;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    border: 1px solid rgba(30, 64, 175, 0.2);
    box-shadow: 0 2px 12px rgba(30, 64, 175, 0.06);
    transition: var(--transition);
}

.dept-pill:hover {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.06), rgba(59, 130, 246, 0.06));
    border-color: rgba(30, 64, 175, 0.35);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.12);
    transform: translateY(-2px);
}

/* صناديق إدارة المعلومات والشراكات */
.cap-info p, .cap-partners p {
    color: var(--text-dark);
    line-height: 1.85;
    margin: 0;
}

.cap-info, .cap-partners {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
    border: 1px solid #e2e8f0;
}

.cap-info .cap-head, .cap-partners .cap-head {
    border-radius: 10px;
}

/* Achievements Section - منجزات الأقسام */
.achievements-section {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.75rem;
}

.ach-card {
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid #e2e8f0;
    transition: var(--transition);
    background: white;
}

.ach-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-6px);
}

.ach-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid;
    border-radius: 2px;
    color: var(--text-dark);
}

.ach-ops h3 { border-color: #2563eb; color: #1e40af; }
.ach-recon h3 { border-color: #059669; color: #047857; }
.ach-qa h3 { border-color: #7c3aed; color: #6d28d9; }
.ach-qc h3 { border-color: #dc2626; color: #b91c1c; }
.ach-train h3 { border-color: #f59e0b; color: #d97706; }
.ach-aware h3 { border-color: #0d9488; color: #0f766e; }

.ach-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.ach-table tr {
    border-bottom: 1px solid #f1f5f9;
}

.ach-table tr:last-child {
    border-bottom: none;
}

.ach-table td {
    padding: 0.6rem 0;
    color: var(--text-dark);
}

.ach-table td:first-child {
    color: var(--text-light);
}

.ach-table td strong {
    color: var(--primary-color);
}

.ach-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Projects Detail Section */
.projects-detail {
    background: var(--bg-white);
}

.projects-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.project-detail-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid #e2e8f0;
    transition: var(--transition);
}

.project-detail-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-6px);
    border-color: var(--primary-light);
}

.project-detail-header {
    background: linear-gradient(135deg, #1e40af, #2563eb);
    color: white;
    padding: 1.1rem 1.25rem;
    font-weight: 700;
    font-size: 1.05rem;
}

.project-detail-card ul {
    list-style: none;
    padding: 1.25rem;
    margin: 0;
}

.project-detail-card ul li {
    padding: 0.4rem 0;
    color: var(--text-dark);
    line-height: 1.6;
    border-bottom: 1px solid #f1f5f9;
}

.project-detail-card ul li:last-child {
    border-bottom: none;
}

/* Profile Section - إيجاز المنظمة */
.profile-section {
    background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
    margin-bottom: 2rem;
}

.profile-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    border-right: 4px solid var(--primary-color);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid #e2e8f0;
}

.profile-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.profile-card h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(30, 64, 175, 0.2);
}

.profile-card ul {
    list-style: none;
}

.profile-card ul li {
    padding: 0.4rem 0;
    color: var(--text-dark);
    line-height: 1.6;
    position: relative;
    padding-right: 1rem;
}

.profile-card ul li::before {
    content: '▪';
    position: absolute;
    right: 0;
    color: var(--safety-orange);
    font-weight: bold;
}

.profile-stats-inline {
    text-align: center;
    padding: 1.75rem;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.06), rgba(255, 107, 53, 0.06));
    border-radius: var(--radius-lg);
    border: 1px solid rgba(30, 64, 175, 0.12);
}

.profile-stats-inline p {
    color: var(--text-dark);
    margin: 0;
    line-height: 1.8;
    font-size: 1rem;
}

/* Contact Section */
.contact {
    background: var(--bg-white);
    padding: 5.5rem 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--text-muted);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
    transition: var(--transition);
    background: #f8fafc;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.12);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--bg-white);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--bg-white);
    padding-right: 5px;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.social-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    color: var(--bg-white);
    padding-right: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        gap: 0;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        padding: 1rem 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .cap-block {
        padding: 1.25rem;
    }

    .cap-cards {
        grid-template-columns: 1fr;
    }

    .achievements-grid {
        grid-template-columns: 1fr;
    }

    .projects-detail-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}
