/* 
    Digitcom India Technologies - Premium Light Theme
    Focus: Minimalist, clean, ample whitespace, high contrast.
*/

:root {
    --primary: #000000;
    --secondary: #ffffff;
    --text-main: #111111;
    --text-muted: #555555;
    --bg-main: #ffffff;
    --bg-alt: #f8f9fa;
    --border-color: #e5e5e5;
    --accent: #0f2b48; /* Dark Navy from Logo */
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
}

/* ================= Navbar ================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-main);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

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

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

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 4px;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

/* Internal Portal Link - Premium Button Style */
.portal-link {
    background: var(--accent);
    color: var(--secondary) !important;
    padding: 10px 24px !important;
    border-radius: 4px;
    margin-left: 1rem;
    font-size: 0.85rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 1px solid var(--accent);
}

.portal-link:hover {
    background: transparent !important;
    color: var(--accent) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(15, 43, 72, 0.15);
}

.portal-link::after {
    display: none !important;
}

@media (max-width: 1024px) {
    .portal-link { margin-left: 0.5rem; padding: 8px 16px !important; }
}

.dropdown {
    position: relative;
    padding: 10px 0;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: -20px;
    background: var(--secondary);
    border: 1px solid var(--border-color);
    min-width: 240px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    animation: fadeIn 0.2s ease forwards;
}

.dropdown:hover .dropdown-content {
    display: flex;
    flex-direction: column;
}

.dropdown-content a {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    text-transform: none;
    letter-spacing: normal;
    font-size: 1rem;
    font-weight: 400;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a::after {
    display: none;
}

.dropdown-content a:hover {
    background: var(--bg-alt);
    color: var(--accent);
    padding-left: 2rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary);
    cursor: pointer;
}

/* ================= Hero Section ================= */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 130px 2rem 5rem;
    overflow: hidden;
    margin-top: 120px;
    background-color: var(--primary); /* Fallback */
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8), rgba(0,0,0,0.4));
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 10;
    animation: fadeUp 1s ease forwards;
    color: var(--secondary);
}

.badge {
    display: inline-block;
    padding: 0.5rem 0;
    color: #cccccc;
    font-weight: 500;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--secondary);
    letter-spacing: -1px;
}

.text-gradient {
    background: linear-gradient(to right, #ffffff, #888888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #dddddd;
    margin-bottom: 3rem;
    max-width: 600px;
    font-weight: 300;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

.swipe-hint {
    margin-top: 3rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.swipe-hint span {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 0.5; }
}

.btn {
    padding: 1.2rem 3rem;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px; /* Sharp corners */
}

.btn-primary {
    background: var(--primary);
    color: var(--secondary);
    border: 1px solid var(--primary);
}

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

.btn-secondary {
    background: transparent;
    color: var(--secondary);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    border-color: var(--secondary);
    background: rgba(255, 255, 255, 0.1);
}

/* ================= Stats Section ================= */
.stats-section {
    padding: 5rem 0;
    background: var(--secondary);
    border-bottom: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    text-align: center;
}

.stat-card {
    position: relative;
}

.stat-card:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1.5rem;
    top: 20%;
    height: 60%;
    width: 1px;
    background: var(--border-color);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 300;
    color: var(--primary);
    margin-bottom: 0.5rem;
    letter-spacing: -2px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ================= About Snippet ================= */
.about-snippet {
    padding: 8rem 0;
    background: var(--bg-main);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.about-text p {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-weight: 300;
}

.learn-more {
    color: var(--primary);
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1.5rem;
    border-bottom: 1px solid var(--primary);
    padding-bottom: 4px;
}

.learn-more:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
    gap: 1.2rem;
}

.expertise-section h3 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.expertise-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.expertise-items p {
    color: var(--text-muted);
    font-size: 1.15rem;
    font-weight: 300;
    line-height: 1.5;
}

/* ================= Services Showcase ================= */
.services-section {
    padding: 8rem 0;
    background: var(--bg-alt);
}

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

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.2rem;
    font-weight: 300;
    margin-top: 1rem;
}

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

.service-card {
    background: var(--secondary);
    border: 1px solid var(--border-color);
    padding: 4rem 3rem;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.service-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.service-desc {
    color: var(--text-muted);
    margin-bottom: 3rem;
    flex-grow: 1;
    font-size: 1.05rem;
    line-height: 1.7;
    font-weight: 300;
}

.service-link {
    color: var(--primary);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 4px;
}

.service-card:hover .service-link {
    border-bottom-color: var(--primary);
}

/* Featured Service */
.service-card.featured {
    background: var(--primary);
    color: var(--secondary);
}

.service-card.featured .service-title {
    color: var(--secondary);
}

.service-card.featured .service-desc {
    color: #a0a0a0;
}

.service-card.featured .service-link {
    color: var(--secondary);
    border-bottom-color: #333;
}

.service-card.featured:hover .service-link {
    border-bottom-color: var(--secondary);
}

.service-tag {
    display: inline-block;
    background: var(--secondary);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

/* ================= Footer ================= */
.footer {
    background: var(--primary);
    color: var(--secondary);
    padding: 6rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 5rem;
}

.footer-brand .logo img {
    /* For a JPG with a white background: 
       invert(1) makes background black and logo light, 
       grayscale(1) removes color casts,
       contrast(1.5) removes compression artifacts, brightness(1.5) makes logo pop */
    filter: invert(1) grayscale(1) contrast(1.5) brightness(1.5);
    height: 55px;
}

.footer-brand p {
    color: #888;
    margin-top: 1.5rem;    max-width: 300px;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.7;
}

.footer-links h4, .footer-contact h4 {
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    color: var(--secondary);
}

.footer-links a {
    display: block;
    color: #888;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 300;
}

.footer-links a:hover {
    color: var(--secondary);
}

.footer-contact p {
    color: #888;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 300;
    display: flex;
    gap: 1rem;
}

.footer-contact a {
    color: #888;
}

.footer-contact a:hover {
    color: var(--secondary);
}

.footer-bottom {
    border-top: 1px solid #222;
    padding: 2rem 0;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    font-weight: 300;
}

/* ================= Animations & Modifiers ================= */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* ================= Responsive Design ================= */
@media (max-width: 1200px) {
    .container { padding: 0 40px; }
}

@media (max-width: 1024px) {
    .about-grid { gap: 3rem; }
    .hero-title { font-size: 3rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    
    .nav-container {
        height: 85px;
        justify-content: center;
        position: relative;
    }

    .logo {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .logo img {
        height: 75px;
        max-width: 250px;
        object-fit: contain;
    }

    .mobile-menu-btn {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%) !important;
        display: block;
        z-index: 1000;
        color: var(--text-main);
        background: none;
        border: none;
        font-size: 2.2rem;
        cursor: pointer;
        padding: 5px;
        transition: transform 0.3s ease;
    }

    .mobile-menu-btn.active {
        transform: rotate(90deg);
        color: var(--text-main);
    }

    /* Navbar Styles for Mobile */
    .nav-links {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-main);
        transition: right 0.5s cubic-bezier(0.7, 0, 0.3, 1);
        z-index: 999;
        gap: 2rem;
        padding-top: 80px;
        visibility: hidden;
    }

    .nav-links.active {
        right: 0;
        visibility: visible;
    }

    .nav-links a {
        font-size: 1.25rem;
        color: var(--text-main) !important;
        font-weight: 500;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s ease;
    }

    .nav-links.active a {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links .portal-link {
        color: white !important;
        margin-top: 1rem;
        width: auto;
        padding: 12px 30px !important;
    }

    /* Mobile Dropdown Logic */
    .dropdown {
        width: 100%;
        text-align: center;
    }

    .dropdown-content {
        position: static;
        display: none;
        background: rgba(255,255,255,0.05);
        box-shadow: none;
        width: 100%;
        animation: none;
        padding: 0.5rem 0;
    }

    .dropdown-content.active {
        display: block;
    }

    .dropdown-content a {
        font-size: 1.1rem;
        padding: 1rem;
        color: var(--text-muted) !important;
    }

    /* Body scroll lock */
    body.menu-open {
        overflow: hidden;
    }

    /* Layout Adjustments */
    .hero-title { font-size: 2.25rem; }
    .hero-content { padding: 0 20px; text-align: center; }
    .hero-actions { flex-direction: column; gap: 15px; }
    .btn { width: 100%; justify-content: center; }
    
    .about-grid { grid-template-columns: 1fr; text-align: center; }
    .about-text h2 { font-size: 2rem; }
    
    .stats-grid { grid-template-columns: 1fr; gap: 2rem; }
    .stat-card::after { display: none; }
    .stats-section { padding: 4rem 1.5rem; }
    
    .section-header h2 { font-size: 1.8rem; }
    .container { padding: 0 20px; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
    .hero { padding: 120px 0 60px; min-height: auto; }
    .service-card { padding: 2.5rem 1.5rem; }
    .nav-container { height: 70px; }
    .logo img { height: 35px; }
    .certificate-card { padding: 2rem 1.5rem; }
}

/* ================= Certificates Section ================= */
.certificates-section {
    padding: 8rem 0;
    background: var(--bg-main);
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.certificate-card {
    background: var(--bg-alt);
    padding: 3rem;
    border-radius: 4px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    border-color: var(--accent);
}

.cert-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.certificate-card h3 {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.certificate-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1rem;
    font-weight: 300;
}

.btn-cert {
    display: inline-block;
    padding: 0.8rem 2rem;
    border: 1px solid var(--accent);
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-cert:hover {
    background: var(--accent);
    color: var(--secondary);
}
