:root {
    --primary: #0056b3;
    --primary-dark: #003d82;
    --accent: #00d2d2;
    --dark: #1e293b;
    --light: #f8fafc;
    --white: #ffffff;
    --gray: #64748b;
    --border-color: #e2e8f0;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    background-color: var(--white);
}

body {
    overflow-x: hidden;
}

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

/* Header & Nav */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.mini-card-logo {
    max-height: 28px;
    max-width: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: var(--transition);
}

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

.nav-cta-btn {
    background: var(--primary);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 6px;
}

.nav-cta-btn:hover {
    background: var(--primary-dark);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    transition: var(--transition);
}

/* Hero Section */
.hero-section {
    padding: 140px 20px 80px;
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
    overflow: hidden;
}

.hero-container-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    gap: 40px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 86, 179, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--dark);
    line-height: 1.2;
}

.brand-promise {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* 3D Showcase Card Stack */
.hero-showcase {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 480px;
}

.card-stack {
    position: relative;
    width: 100%;
    max-width: 540px;
    height: 460px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.showcase-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    position: absolute;
    padding: 25px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255,255,255,0.8);
}

.center-card {
    width: 320px;
    height: 430px;
    z-index: 3;
    background: linear-gradient(180deg, #ffffff 0%, #fcfdfe 100%);
    box-shadow: 0 25px 50px rgba(0, 86, 179, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.center-card:hover {
    transform: translateY(-8px) scale(1.02);
}

.card-top-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
}

.text-blue { color: var(--primary); }
.text-teal { color: #0f766e; font-size: 1.5rem; }
.text-purple { color: #6d28d9; font-size: 1.5rem; }

.card-heading-group .sub-title-label {
    font-size: 1.2rem;
    color: #64748b;
    font-weight: 500;
}

.card-heading-group h2 {
    font-size: 1.7rem;
    color: var(--dark);
    line-height: 1.1;
    margin: 4px 0;
}

.card-heading-group p {
    font-size: 0.85rem;
    color: var(--gray);
}

.card-visual-illustration {
    position: relative;
    background: #f1f5f9;
    border-radius: 12px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 10px 0;
}

.laptop-screen-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.floating-icons {
    position: absolute;
    display: flex;
    gap: 6px;
    top: 10px;
    right: 10px;
}

.badge-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.badge-icon.wp { background: #0073aa; }
.badge-icon.code { background: #e11d48; }
.badge-icon.sh { background: #96bf48; }

.card-footer-pills {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray);
    background: #f8fafc;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.dot { color: var(--primary); }

.side-card {
    width: 250px;
    height: 370px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.left-card {
    left: 0;
    z-index: 2;
    transform: rotate(-6deg) translateY(10px);
    background: linear-gradient(135deg, #e6fffa 0%, #f0fdf4 100%);
    border-color: #99f6e4;
}

.left-card:hover {
    transform: rotate(0deg) translateY(0) scale(1.02);
    z-index: 4;
}

.left-card h3 {
    font-size: 1.5rem;
    line-height: 1.1;
    color: #0f766e;
}

.right-card {
    right: 0;
    z-index: 1;
    transform: rotate(6deg) translateY(10px);
    background: linear-gradient(135deg, #f5f3ff 0%, #faf5ff 100%);
    border-color: #ddd6fe;
}

.right-card:hover {
    transform: rotate(0deg) translateY(0) scale(1.02);
    z-index: 4;
}

.right-card h3 {
    font-size: 1.4rem;
    line-height: 1.1;
    color: #6d28d9;
}

.card-desc {
    font-size: 0.85rem;
    color: var(--gray);
}

.glowing-bulb {
    font-size: 3.5rem;
    color: #f59e0b;
}

.clipboard-graphic {
    background: rgba(139, 92, 246, 0.1);
    display: flex;
    gap: 12px;
    align-items: center;
}

.clipboard-box {
    background: white;
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.check-row {
    font-size: 0.75rem;
    color: #10b981;
    margin-bottom: 4px;
    font-weight: 600;
}

.magnifier {
    font-size: 2rem;
    color: #6d28d9;
}

/* Sections */
section { padding: 90px 0; }

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
}

.section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--gray);
    font-size: 1.05rem;
}

/* About Section */
.about-section { background: var(--white); }

.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.mv-card {
    background: var(--light);
    padding: 40px;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
}

.mv-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.mv-card h3 { margin-bottom: 15px; font-size: 1.5rem; }

.why-choose-us { text-align: center; margin-bottom: 80px; }
.why-choose-us .subtitle { color: var(--gray); margin-bottom: 40px; }

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

.feature-item {
    background: var(--light);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.feature-icon {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.feature-item h4 { margin-bottom: 8px; color: var(--dark); }

.our-approach h3 { text-align: center; margin-bottom: 40px; }

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.step-card {
    background: var(--light);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.step-num {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: rgba(0, 86, 179, 0.2);
    margin-bottom: 10px;
}

/* Services */
.services-section { background: var(--light); }

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

.service-card {
    background: var(--white);
    padding: 35px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--border-color);
}

.service-card.span-2 { grid-column: 1 / -1; }

.service-header-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.service-card h3 { font-size: 1.4rem; margin-bottom: 5px; }

.service-subtitle {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.service-card p { color: var(--gray); margin-bottom: 20px; font-size: 0.95rem; }

.service-card ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 25px;
    color: var(--dark);
    font-size: 0.9rem;
}

.service-card ul li { margin-bottom: 6px; }

.service-cta {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    margin-top: auto;
    cursor: pointer;
}

.service-cta:hover { text-decoration: underline; }

/* Portfolio Section & Filter Bar */
.portfolio-section { background: var(--white); }

.portfolio-filter-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 25px;
}

.filter-btn {
    background: var(--light);
    border: 1px solid var(--border-color);
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--dark);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.portfolio-card {
    background: var(--light);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.portfolio-img-wrapper {
    position: relative;
    height: 190px;
    overflow: hidden;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.portfolio-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}

.portfolio-body {
    padding: 22px;
}

.portfolio-body h3 {
    margin-bottom: 8px;
    font-size: 1.15rem;
}

.portfolio-body p {
    color: var(--gray);
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.project-link-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}

/* Modal Popup & 4-Screenshot Grid */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: var(--white);
    max-width: 820px;
    width: 100%;
    padding: 35px;
    border-radius: 12px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gray);
    cursor: pointer;
}

.close-modal:hover { color: var(--dark); }

.modal-category-tag {
    display: inline-block;
    background: rgba(0, 86, 179, 0.1);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.modal-content h2 { margin-bottom: 10px; font-size: 1.7rem; }
.modal-desc { color: var(--gray); margin-bottom: 20px; font-size: 0.95rem; line-height: 1.6; }
.modal-content h4 { margin-bottom: 10px; font-size: 1.05rem; }
.modal-list { list-style: none; margin-bottom: 15px; }
.modal-list li { margin-bottom: 6px; color: var(--gray); font-size: 0.9rem; }
.modal-list li i { color: #10b981; margin-right: 8px; }

.screenshots-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 10px;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--light);
}

.gallery-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    display: block;
    padding: 6px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray);
    text-align: center;
    background: #f1f5f9;
}

/* Contact */
.contact-section { background: var(--light); }

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    background: var(--white);
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.contact-info h3 { margin-bottom: 20px; }

.contact-info p {
    margin-bottom: 15px;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-icon { color: var(--primary); font-size: 1.1rem; }

.core-values-box {
    margin-top: 40px;
    background: var(--light);
    padding: 25px;
    border-radius: 8px;
}

.core-values-box h4 { margin-bottom: 15px; }
.core-values-box ul { list-style: none; }

.core-values-box ul li {
    padding: 5px 0;
    color: var(--gray);
    position: relative;
    padding-left: 15px;
}

.core-values-box ul li::before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: 0;
}

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,86,179,0.1);
}

/* Footer */
.site-footer {
    background: var(--dark);
    color: var(--white);
    text-align: center;
    padding: 40px 20px;
    font-size: 0.9rem;
}

.site-footer p { margin-bottom: 8px; opacity: 0.8; }

/* Responsive Layout */
@media (max-width: 1000px) {
    .hero-container-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-buttons { justify-content: center; }
    .hero-showcase { margin-top: 30px; }
}

@media (max-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 30px;
    }
    .hero-content h1 { font-size: 2.2rem; }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 75px;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 20px;
        box-shadow: 0 10px 10px rgba(0,0,0,0.05);
        text-align: center;
    }
    .nav-links.active { display: flex; }
    .hamburger { display: flex; }
    
    .card-stack {
        scale: 0.85;
    }

    .screenshots-gallery-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 500px) {
    .card-stack {
        scale: 0.7;
    }
    .side-card { display: none; }
    .center-card { position: relative; left: 0; }
}