/* Section Base */
.about-developer {
    padding: 60px 20px;
    text-align: center;
    background-color: #ffffff;
}

.section-header h2 {
    font-size: 2.2rem;
    color: #1a202c;
    font-weight: 700;
    margin-bottom: 50px;
    letter-spacing: -0.5px;
}

/* 3x2 Grid Setup for Two Rows */
.developer-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Force exactly 3 items per horizontal line */
    gap: 50px 40px; /* 50px vertical gap between rows, 40px horizontal gap */
    max-width: 1000px; /* Constrained width for compact premium look */
    margin: 0 auto;
}

/* Individual Developer Column Setup (Vertical Sequence) */
.dev-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* 1. PHOTO: Perfect Circle Image Wrapper */
.img-circle-wrapper {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    margin-bottom: 20px;
    overflow: hidden;
    border: 2px solid #1a365d; 
    padding: 4px;
    background: #fff;
    transition: transform 0.3s ease;
}

.dev-item:hover .img-circle-wrapper {
    transform: scale(1.05); /* Subtle zoom on hover */
}

.dev-img-circle {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* 2. NAME: Bold & Clean */
.dev-name {
    font-size: 1.25rem;
    color: #1a202c;
    font-weight: 700;
    margin: 0 0 8px 0;
    font-family: system-ui, -apple-system, sans-serif;
}

/* 3. PROJECT WORK: Description Text */
.dev-work {
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.5;
    margin: 0;
    font-weight: 400;
    padding: 0 10px;
}

/* Responsive adjustment for tablets and mobile screens */
@media (max-width: 900px) {
    .developer-row {
        grid-template-columns: repeat(2, 1fr); /* 2 items per line on tablets */
    }
}

@media (max-width: 600px) {
    .developer-row {
        grid-template-columns: 1fr; /* 1 item per line on mobiles */
        gap: 40px;
    }
}

    /* yaha se navbar ka css start hai */

    /* ===================================
   Page Layout & Header
=================================== */
.page-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 5%;
    min-height: 60vh;
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.page-header h1 {
    font-size: 40px;
    color: #0b2545;
    margin-bottom: 15px;
}

.page-header p {
    color: #666;
    font-size: 18px;
    margin-bottom: 30px;
}

/* ===================================
   Search Bar
=================================== */
.page-search {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.page-search input {
    width: 100%;
    padding: 15px 25px;
    font-size: 16px;
    border: 2px solid #eef2f7;
    border-radius: 50px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.page-search input:focus {
    border-color: #1565ff;
    box-shadow: 0 8px 25px rgba(21,101,255,0.15);
}

/* ===================================
   Services Grid Container
=================================== */
.services-grid {
    display: grid;
    /* This auto-fit magic makes it responsive without media queries! */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* ===================================
   Individual Service Cards (Injected by JS)
=================================== */
.service-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(21,101,255,0.1);
    border-color: #cde6ff;
}

.service-category {
    font-size: 12px;
    color: #1565ff;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.service-title {
    font-size: 22px;
    color: #0b2545;
    margin-bottom: 15px;
    line-height: 1.3;
}

.service-desc {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1; /* Pushes the button to the bottom */
}

/* Card Button */
.btn-apply {
    display: inline-block;
    text-align: center;
    background: #1565ff;
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.3s ease;
}

.btn-apply:hover {
    background: #0e4fcd;
}

/* ===================================
   Card Upgrades (Icons, Tags, Buttons)
=================================== */

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.icon-box {
    width: 45px;
    height: 45px;
    background-color: #e9f2ff;
    color: #1565ff;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
}

.service-category {
    margin-bottom: 0; /* Override previous margin */
}

.tags-container {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.service-tag {
    background-color: #f4f6f9;
    color: #555;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.card-actions {
    display: flex;
    gap: 10px;
    margin-top: auto; /* Pushes buttons to the bottom of the card */
}

.btn-details {
    flex: 1;
    background: #f4f6f9;
    color: #0b2545;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s ease;
}

.btn-details:hover {
    background: #e2e8f0;
}

.btn-official {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: #1565ff;
    color: #fff;
    padding: 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s ease;
}

.btn-official:hover {
    background: #0e4fcd;
}

/* ===================================
   Pop-up Modal Styles
=================================== */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 37, 69, 0.6); /* Dark blue overlay with transparency */
    backdrop-filter: blur(4px); /* Modern blur effect */
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 650px;
    max-height: 85vh;
    overflow-y: auto; /* Adds a scrollbar if the content is too long */
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #888;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #e63946; /* Red on hover */
}

/* Modal Inner Content Styles */
.modal-title {
    font-size: 24px;
    color: #0b2545;
    margin-bottom: 20px;
    padding-right: 30px;
}

.modal-section {
    margin-bottom: 20px;
}

.modal-section h4 {
    color: #1565ff;
    margin-bottom: 10px;
    font-size: 16px;
    border-bottom: 1px solid #eef2f7;
    padding-bottom: 5px;
}

.modal-section ul {
    padding-left: 20px;
    color: #555;
    line-height: 1.6;
}

.modal-section p {
    color: #555;
    line-height: 1.6;
}

/* the latest css of aboutus */
/* ==========================================================================
   1. GLOBAL STYLES & VARIABLES
   ========================================================================== */
:root {
    --primary-color: #003366;    /* Deep Government Blue */
    --secondary-color: #ff9933;  /* Vibrant Saffron Accent */
    --text-dark: #222222;
    --text-light: #666666;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

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

/* ==========================================================================
   2. HERO SECTION
   ========================================================================== */
.about-hero {
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.95), rgba(0, 20, 40, 0.9)), 
                url('../assets/images/hero/hero-bg.jpg') no-repeat center center/cover;
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.hero-content p {
    font-size: 1.2rem;
    color: #e2e8f0;
    font-weight: 300;
}

/* ==========================================================================
   3. MISSION & VISION
   ========================================================================== */
.about-mission {
    padding-bottom: 30px;
}

.mission-box {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    border-left: 5px solid var(--secondary-color);
    text-align: center;
}

.mission-box h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 15px;
}

.mission-box p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 900px;
    margin: 0 auto;
}

/* ==========================================================================
   4. KEY FEATURES SECTION
   ========================================================================== */
.about-features {
    text-align: center;
}

.about-features h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 40px;
    position: relative;
}

.about-features h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 35px 25px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border-top: 4px solid transparent;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-top-color: var(--primary-color);
}

.feature-card h3 {
    color: var(--primary-color);
    font-size: 1.35rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ==========================================================================
   5. DEVELOPER SECTION (Premium Minimal Layout)
   ========================================================================== */
.about-developer {
    background-color: var(--white);
    border-radius: 16px;
    margin-top: 40px;
    margin-bottom: 60px;
    box-shadow: var(--card-shadow);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    color: var(--primary-color);
    font-size: 2rem;
    position: relative;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    margin: 10px auto 0;
}

.developer-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px 20px;
    justify-items: center;
}

.dev-item {
    text-align: center;
    transition: var(--transition);
    width: 100%;
    max-width: 280px;
    padding: 20px;
    border-radius: 12px;
}

.dev-item:hover {
    background-color: var(--bg-light);
    transform: translateY(-5px);
}

.img-circle-wrapper {
    width: 140px;
    height: 140px;
    margin: 0 auto 20px;
    border-radius: 50%;
    padding: 6px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.dev-img-circle {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background-color: #fff;
    display: block;
}

.dev-name {
    color: var(--text-dark);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.dev-work {
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   6. CALL TO ACTION (CTA)
   ========================================================================== */
.about-cta {
    background: linear-gradient(135deg, var(--primary-color), #002244);
    color: var(--white);
    text-align: center;
    padding: 60px 20px;
    margin-top: 40px;
}

.about-cta h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    font-weight: 400;
}

.btn-primary {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 12px 35px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(255, 153, 51, 0.4);
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: #e0882c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 153, 51, 0.6);
}

/* ==========================================================================
   7. RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .container {
        padding: 40px 15px;
    }
    
    .developer-row {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 30px 15px;
    }
    
    .img-circle-wrapper {
        width: 120px;
        height: 120px;
    }
}
