/* --- 1. THEME & VARS (Ultra-Premium Industrial) --- */
:root {
    --c-primary: #D32F2F;
    /* Industrial Red (Stronger) */
    --c-secondary: #1A252F;
    /* Deep Industrial Blue/Grey */
    --c-bg: #F5F7FA;
    /* Cool Light Grey */
    --c-card: #FFFFFF;
    --c-text: #2C3E50;
    --c-text-muted: #7F8C8D;
    --c-border: #E0E6ED;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.1);

    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- 2. GLOBAL RESET & BODY --- */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    background-color: var(--c-bg);
    color: var(--c-text);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    /* Align top for scrolling */
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- 3. BACKGROUND DECORATION --- */
.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        radial-gradient(circle at 0% 0%, rgba(211, 47, 47, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(26, 37, 47, 0.03) 0%, transparent 50%);
}

/* --- 4. MAIN CARD CONTAINER --- */
.card-container {
    width: 100%;
    max-width: 480px;
    margin: 40px 20px;
    background: var(--c-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 0;
    overflow: hidden;
    position: relative;
    transition: max-width 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

@media (min-width: 768px) {
    .card-container {
        max-width: 1000px;
        /* Wider for premium feel */
        margin: 60px auto;
    }

    .services-scroll {
        grid-template-columns: repeat(4, 1fr);
    }

    .gallery-preview {
        grid-template-columns: repeat(6, 1fr);
    }

    .contact-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}

/* --- 5. HEADER SECTION --- */
.header {
    text-align: center;
    padding: 60px 40px 40px;
    background: linear-gradient(to bottom, #ffffff, #fafbfc);
    border-bottom: 1px solid var(--c-border);
}

.logo-area {
    width: 130px;
    height: 130px;
    margin: 0 auto 24px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    padding: 8px;
    border: 1px solid var(--c-border);
}

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

h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin: 0;
    color: var(--c-secondary);
    font-weight: 800;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    line-height: 1.2;
}

.tagline {
    color: var(--c-primary);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 12px;
    font-weight: 700;
}

.sub-tagline {
    font-size: 0.95rem;
    color: var(--c-text-muted);
    margin-top: 8px;
    font-weight: 500;
}

/* --- 6. ACTION BUTTONS --- */
.actions {
    display: flex;
    gap: 16px;
    padding: 32px 40px;
    flex-wrap: wrap;
    background: #fff;
}

.btn {
    flex: 1;
    padding: 18px 24px;
    border-radius: var(--radius-md);
    border: none;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1rem;
    min-width: 220px;
    font-family: var(--font-heading);
}

.btn-primary {
    background: #25D366;
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

.btn-primary:hover {
    background: #1ebc57;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.btn-secondary {
    background: #F1F5F9;
    color: var(--c-secondary);
    border: 1px solid transparent;
}

.btn-secondary:hover {
    background: #E2E8F0;
    transform: translateY(-2px);
    border-color: var(--c-border);
}

.btn-text {
    background: transparent;
    color: var(--c-text-muted);
    width: 100%;
    margin-top: 24px;
    font-size: 0.95rem;
    padding: 12px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
}

.btn-text:hover {
    color: var(--c-primary);
    background: rgba(211, 47, 47, 0.04);
    border-color: rgba(211, 47, 47, 0.1);
}

/* --- 7. CONTENT SECTIONS --- */
.section-title {
    padding: 0 40px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.section-title h3 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--c-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.line {
    flex: 1;
    height: 2px;
    background: #F1F5F9;
}

/* --- 8. SERVICES GRID --- */
.services-scroll {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 0 40px 40px;
}

.service-card {
    background: #fff;
    padding: 32px 24px;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--c-border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--c-primary);
}

.s-icon {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--c-primary);
    background: rgba(211, 47, 47, 0.08);
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.service-card:hover .s-icon {
    background: var(--c-primary);
    color: #fff;
}

.service-card h4 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--c-secondary);
    font-weight: 700;
    font-family: var(--font-heading);
}

.service-card p {
    font-size: 0.9rem;
    color: var(--c-text-muted);
    margin: 8px 0 0;
}

/* --- 9. GALLERY PREVIEW --- */
.gallery-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 0 40px;
}

.gallery-thumb {
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.gallery-thumb::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: var(--transition);
}

.gallery-thumb:hover::after {
    opacity: 1;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gallery-thumb:hover img {
    transform: scale(1.1);
}

/* --- 10. CONTACT LIST --- */
.contact-list {
    padding: 0 40px;
    margin-bottom: 50px;
}

.c-item {
    display: flex;
    align-items: center;
    padding: 24px;
    background: #fff;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    text-decoration: none;
    color: var(--c-text);
    transition: var(--transition);
    border: 1px solid var(--c-border);
    box-shadow: var(--shadow-sm);
}

.c-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--c-primary);
}

.c-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    /* Prevent shrinking */
    background: #F8FAFC;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 24px;
    color: var(--c-primary);
    font-size: 1.4rem;
    transition: var(--transition);
}

.c-item:hover .c-icon {
    background: var(--c-primary);
    color: #fff;
}

.c-info {
    flex: 1;
    min-width: 0;
    /* Enable shrinking for flex child */
}

.c-info div {
    font-size: 0.9rem;
    color: var(--c-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.c-info strong {
    font-size: 1.1rem;
    display: block;
    color: var(--c-secondary);
    margin-bottom: 4px;
    font-family: var(--font-heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- 11. GSTIN ROW --- */
.gstin-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 40px;
    background: #F8FAFC;
    margin-bottom: 40px;
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
}

.gstin-label {
    font-size: 0.85rem;
    color: var(--c-text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    font-weight: 600;
}

.gstin-number {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--c-secondary);
    letter-spacing: 1px;
}

/* --- 12. FOOTER --- */
.footer {
    text-align: center;
    padding: 30px 20px;
    background: #F8FAFC;
    border-top: 1px solid var(--c-border);
}

.dev-credit p {
    font-size: 0.75rem;
    color: var(--c-text-muted);
    margin: 0 0 10px 0;
}

.techy-logo-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

.techy-logo-link:hover {
    transform: translateY(-3px);
}

.techy-logo {
    height: 1rem;
    /* Extremely Minimal as requested */
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.7);
    transition: filter 0.3s ease;
}

.techy-logo-link:hover .techy-logo {
    filter: grayscale(0%) opacity(1);
}

/* --- RESPONSIVE ADJUSTMENTS --- */
/* Mobile (Portrait) */
@media (max-width: 767px) {
    .card-container {
        width: 92%;
        margin: 20px auto;
        padding-bottom: 20px;
        border-radius: var(--radius-md);
    }

    .header {
        padding: 30px 20px 20px;
    }

    .logo-area {
        width: 100px;
        height: 100px;
        margin-bottom: 20px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .tagline {
        font-size: 0.85rem;
    }

    .actions {
        padding: 20px 20px 10px;
        gap: 10px;
    }

    .btn {
        padding: 14px;
        min-width: 100%;
        font-size: 0.95rem;
    }

    .section-title {
        padding: 0 20px;
        margin-bottom: 15px;
    }

    .services-scroll {
        padding: 0 20px 30px;
        gap: 10px;
        grid-template-columns: 1fr 1fr;
    }

    /* Very Small Screens fix for Services */
    @media (max-width: 370px) {
        .services-scroll {
            grid-template-columns: 1fr;
        }
    }

    .service-card {
        padding: 15px 10px;
    }

    .service-card h4 {
        font-size: 0.85rem;
    }

    .gallery-preview {
        padding: 0 20px;
        gap: 10px;
    }

    .contact-list {
        padding: 0 20px;
        margin-bottom: 30px;
    }

    .c-item {
        padding: 15px;
    }

    .c-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 1.1rem;
        margin-right: 15px;
    }

    .c-info strong {
        font-size: 1rem;
    }

    .c-info div {
        font-size: 0.8rem;
    }

    .gstin-row {
        padding: 15px 20px;
    }

    .gstin-number {
        font-size: 1.2rem;
    }
}

/* Tablet (Portrait/Landscape) */
@media (min-width: 768px) and (max-width: 1024px) {
    .card-container {
        max-width: 90%;
        margin: 40px auto;
    }

    .services-scroll {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-preview {
        grid-template-columns: repeat(4, 1fr);
    }

    .logo-area {
        width: 120px;
        height: 120px;
    }
}

/* --- 13. GALLERY MODAL (GRID) --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    overflow-y: auto;
}

.modal-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100%;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.modal-header h2 {
    margin: 0;
    color: var(--c-secondary);
    font-family: var(--font-heading);
    font-size: 2rem;
}

.close-modal {
    font-size: 2rem;
    color: var(--c-text-muted);
    cursor: pointer;
    transition: var(--transition);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #F1F5F9;
}

.close-modal:hover {
    color: #fff;
    background: var(--c-primary);
}

.modal-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
    padding: 0 20px;
}

.modal-gallery-item {
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    position: relative;
    border: 1px solid var(--c-border);
}

.modal-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.modal-gallery-item:hover img {
    transform: scale(1.05);
}

/* --- 14. LIGHTBOX (SINGLE IMAGE) --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 3000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-container {
    width: 90%;
    height: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.lightbox-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.lightbox-container img.zoomed {
    transform: scale(1.5);
    cursor: zoom-out;
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 30px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 2rem;
    cursor: pointer;
    z-index: 3001;
    transition: 0.3s;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.close-lightbox:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.3s;
    z-index: 3001;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.lightbox-nav.prev {
    left: 30px;
}

.lightbox-nav.next {
    right: 30px;
}

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 1px;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 20px;
    border-radius: 20px;
}