*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

/* ================= BASE STYLES ================= */

body{
    font-family:'Poppins',sans-serif;
    color:white;
    background: radial-gradient(circle at top, #1e293b, #0f172a 60%, #020617);
    overflow-x:hidden;
}

/* ================= TECH GRID ANIMATED BACKGROUND ================= */

body::before{
    content:"";
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background-image:
        linear-gradient(rgba(59,130,246,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59,130,246,0.05) 1px, transparent 1px);
    background-size:60px 60px;
    z-index:-2;
    animation: moveGrid 20s linear infinite;
}

@keyframes moveGrid{
    from { transform: translateY(0); }
    to { transform: translateY(60px); }
}

/* ================= TRANSPARENT FIXED NAVIGATION HEADER ================= */

nav{
    display: flex;
    justify-content: flex-end; /* Shifting your navigation menus cleanly back to the right side */
    align-items: center;
    padding: 25px 8%;
    position: fixed;        /* Keeps it accessible on all sections */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent; /* Maintains your beautiful original blueprint view */
    transition: all 0.4s ease;
}

/* This elegant modern class kicks in automatically via JS only when scrolling down */
nav.scrolled {
    padding: 15px 8%;
    background: rgba(15, 23, 42, 0.7); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.4);
}

.logo{
    display:flex;
    align-items:center;
}

.logo img{
    height:45px;
    width:auto;
    max-height:50px;
    object-fit:contain;
    display:block;
    filter:brightness(1.1);
}

nav ul{
    display:flex;
    list-style:none;
    gap:30px;
}

nav a{
    text-decoration:none;
    color:white;
    transition:0.3s;
    font-weight:500;
    position:relative;
}

nav a:hover{
    color:#22d3ee;
}

nav a::after{
    content:'';
    position:absolute;
    left:0;
    bottom:-5px;
    width:0%;
    height:2px;
    background:#22d3ee;
    transition:0.3s;
}

nav a:hover::after{
    width:100%;
}

/* ================= HERO BLUEPRINT GRAPHIC SECTION ================= */

.hero{
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 40px 40px 40px;
    
    /* Updated background configuration */
    background: linear-gradient(rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.75)), 
                url('../images/hero-bg.png') no-repeat center center;
    background-size: 100% 100%; /* Forces the entire image to fit perfectly inside the container */
    position: relative;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 5;
    max-width: 900px;
}

/* Cyber Neon Blue Light Glow Effect */
.hero h1{
    font-size: 5.5rem;
    letter-spacing: 5px;
    margin-bottom: 15px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 12px rgba(34, 211, 238, 0.7),
                 0 0 30px rgba(34, 211, 238, 0.4),
                 0 0 60px rgba(59, 130, 246, 0.3);
    animation: glowPulse 4s infinite ease-in-out;
}

@keyframes glowPulse{
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.02); filter: brightness(1.1); }
}

.tagline{
    font-size:1.6rem;
    color:#e2e8f0;
    margin-bottom:25px;
    font-weight: 400;
    letter-spacing: 1px;
}

.description{
    max-width:750px;
    margin: 0 auto 45px auto;
    color:#94a3b8;
    line-height:1.7;
    font-size: 1.1rem;
}

/* ================= ACTION BUTTON ================= */

.btn{
    background: linear-gradient(90deg, #3b82f6, #22d3ee);
    color:white;
    text-decoration:none;
    padding:16px 38px;
    border-radius:12px;
    transition:0.3s;
    font-weight:600;
    display: inline-block;
    box-shadow: 0 0 25px rgba(34, 211, 238, 0.4);
}

.btn:hover{
    transform:scale(1.05);
    box-shadow: 0 0 40px rgba(34,211,238,0.7);
}

/* ================= SECTION HEADERS ================= */

section{
    padding:100px 10%;
    position: relative;
    z-index: 2;
}

h2{
    text-align:center;
    margin-bottom:50px;
    font-size:2.4rem;
    background: linear-gradient(90deg, #ffffff, #94a3b8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ================= CONTENT CARDS ================= */

.services-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:25px;
}

.card{
    background:#1e293b;
    padding:35px 30px;
    border-radius:15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border:1px solid #293548;
    text-align: left; /* Ensuring left-aligned text looks crisp */
}

/* Flex layout to place icon and heading block side by side */
.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

/* Modern Technical Vector Icon Styling */
.service-icon {
    font-size: 1.6rem;
    color: #22d3ee;
    min-width: 35px;
    text-align: center;
    /* Clean cyan ambient glow to match your site's heading rules */
    filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.6));
    transition: transform 0.3s ease;
}

/* Micro-interaction: icon responds gently when the card is hovered */
.card:hover .service-icon {
    transform: scale(1.1) rotate(-5deg);
    color: #ffffff;
    filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.8));
}

.card h3{
    color:#22d3ee;
    margin-bottom: 0; /* Removed bottom margin since layout handled by container flex gap */
    font-size: 1.3rem;
    line-height: 1.2;
}

.card p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ================= LAYOUT WRAPPERS ================= */

#projects,
#contact{
    text-align:center;
}

.project-placeholder {
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.contact-card {
    background: #1e293b;
    max-width: 450px;
    margin: 0 auto;
    padding: 35px;
    border-radius: 15px;
    border: 1px solid #293548;
}

.contact-card p {
    margin: 12px 0;
    color: #cbd5e1;
    font-size: 1.1rem;
}

/* ================= INTERSECTION SCROLL ANIMATIONS ================= */

.hidden {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    filter: blur(6px);
    transition: all 0.8s ease;
}

.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

@media (prefers-reduced-motion: no-preference){
    .hidden {
        transition: all 0.8s ease;
    }
}

/* ================= FOOTER ================= */

footer{
    text-align:center;
    padding:40px 30px;
    border-top:1px solid #1e293b;
    color:#94a3b8;
    font-size:0.9rem;
    position: relative;
    z-index: 2;
}

.menu-toggle{
    display:none;
    font-size:28px;
    cursor:pointer;
    color:white;
}

/* ================= SMARTPHONE RESPONSIVE QUERY ================= */

@media (max-width: 768px){
    nav{
        background: rgba(15, 23, 42, 0.8);
        backdrop-filter: blur(12px);
        position: fixed;
        padding: 15px 5%;
    }

    nav ul{
        position:absolute;
        top:75px;
        right:5%;
        background:#0f172a;
        flex-direction:column;
        width:220px;
        padding:25px 20px;
        border:1px solid #293548;
        border-radius: 12px;
        display:none;
        gap: 20px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    }

    nav ul.active {
        display:flex;
    }

    .menu-toggle{
        display:block;
    }

    .hero h1{
        font-size:3rem;
    }

    .tagline{
        font-size:1.2rem;
    }

    section{
        padding:70px 5%;
    }
}
/* ================= ABOUT SECTION ================= */

.about-section {
    text-align: center;
}

.about-container {
    max-width: 800px;
    margin: 0 auto;
    background: #1e293b;
    padding: 40px;
    border-radius: 15px;
    border: 1px solid #293548;
}

.about-text {
    color: #cbd5e1;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* ================= VISION & MISSION MODULE STYLES ================= */

.section-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #293548, transparent);
    margin: 40px 0;
}

.vision-mission-main-title {
    color: #ffffff;
    font-size: 1.6rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 40px;
    text-align: center;
}

.vision-mission-container {
    display: flex;
    flex-direction: column;
    gap: 45px;
    max-width: 850px;
    margin: 0 auto;
    text-align: left;
}

.vm-row {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

/* Engineering Circular Blueprint Ring */
.vm-icon-ring {
    position: relative;
    min-width: 65px;
    height: 65px;
    border-radius: 50%;
    border: 1.5px solid #3b82f6;
    background: rgba(59, 130, 246, 0.05);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3), 
                inset 0 0 10px rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Realistic Technical CSS Vector Eye Graphic --- */
.tech-icon-eye {
    width: 26px;
    height: 16px;
    border: 2px solid #22d3ee;
    border-radius: 80% 0;
    transform: rotate(45deg);
    position: relative;
}

.tech-icon-eye::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22d3ee;
    top: 3px;
    left: 3px;
    box-shadow: 0 0 8px #22d3ee;
}

/* --- Realistic Technical CSS Crosshair Target Graphic --- */
.tech-icon-target {
    width: 16px;
    height: 16px;
    border: 2px solid #22d3ee;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 8px rgba(34, 211, 238, 0.5);
}

/* Crosshair cross-lines */
.tech-icon-target::before,
.tech-icon-target::after {
    content: '';
    position: absolute;
    background: #22d3ee;
}

/* Horizontal line */
.tech-icon-target::before {
    top: 5px;
    left: -6px;
    width: 24px;
    height: 2px;
}

/* Vertical line */
.tech-icon-target::after {
    left: 5px;
    top: -6px;
    width: 2px;
    height: 24px;
}

.vm-content h3 {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.vm-content p {
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.7;
}

.vm-list {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vm-list li {
    color: #cbd5e1;
    font-size: 1.05rem;
    position: relative;
    padding-left: 25px;
    line-height: 1.5;
}

.vm-list li::before {
    content: "•";
    color: #22d3ee;
    font-size: 1.4rem;
    position: absolute;
    left: 5px;
    top: -2px;
}

@media (max-width: 600px) {
    .vm-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .vm-list {
        align-items: center;
    }
    .vm-list li {
        padding-left: 0;
    }
    .vm-list li::before {
        display: none;
    }
}
/* ================= HORIZONTAL COMPANY PILLARS ================= */

.brand-pillars-bar {
    display: flex !important; /* Force layout mode */
    flex-direction: row !important; /* Force items into a flat line */
    justify-content: space-between;
    align-items: stretch; /* Stretch container to encompass all text heights */
    background: #1e293b;
    border: 1px solid #293548;
    border-radius: 15px;
    padding: 30px 25px;
    margin: 60px auto 20px auto;
    width: 100%; /* Force box to stretch wide */
    max-width: 1200px; /* Limits size on ultra-wide screens */
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.4);
    box-sizing: border-box;
    clear: both; /* Prevents layout collision with grid items above */
}

.pillar-item {
    display: flex !important;
    align-items: center;
    gap: 15px;
    flex: 1 1 0px !important; /* Guarantees each of the 4 zones takes exactly equal horizontal space */
    padding: 10px 20px;
    position: relative;
    box-sizing: border-box;
}

/* Linear vertical divider accents between columns */
.pillar-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, #293548, transparent);
}

.pillar-icon {
    font-size: 1.8rem;
    color: #22d3ee;
    min-width: 40px;
    text-align: center;
    filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.6));
}

.pillar-text {
    text-align: left;
}

.pillar-text h4 {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.pillar-text p {
    color: #94a3b8;
    font-size: 0.8rem;
    line-height: 1.4;
}

/* Responsive balancing mechanics for portable tablet displays */
@media (max-width: 992px) {
    .brand-pillars-bar {
        flex-wrap: wrap !important;
        gap: 20px 0;
    }
    .pillar-item {
        flex: 1 1 50% !important; /* Safely morphs into a pristine 2x2 grid when space runs tight */
    }
    .pillar-item:nth-child(2)::after {
        display: none; /* Safely removes border line rules on dynamic line breaks */
    }
}

/* Mobile responsive handling */
@media (max-width: 650px) {
    .brand-pillars-bar {
        flex-direction: column !important;
        padding: 20px;
    }
    .pillar-item {
        flex: 1 1 auto !important;
        width: 100%;
    }
    .pillar-item::after {
        display: none; /* Hide separation borders entirely on vertical mobile viewport view */
    }
}
/* ================= NEW EXPLICIT HORIZONTAL STRIP ================= */

.pillars-row-container {
    display: flex !important;
    flex-direction: row !important; /* Locks all items into a single flat line */
    justify-content: space-between !important;
    align-items: stretch !important;
    background-color: #1e293b !important; /* The single master background container */
    border: 1px solid #293548 !important;
    border-radius: 16px !important;
    padding: 30px 20px !important;
    margin: 60px auto 20px auto !important;
    width: 100% !important; /* Spans perfectly across your page width */
    max-width: 1200px !important;
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.4) !important;
    box-sizing: border-box !important;
}

.pillar-column-clean {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 15px !important;
    flex: 1 1 0px !important; /* Splices the line evenly into 4 identical columns */
    padding: 10px 15px !important;
    position: relative !important;
    box-sizing: border-box !important;
    background: transparent !important; /* Overrides any stray box background colors */
    border: none !important; /* Erases any lingering block outlines */
}

/* Vertical divider accents between items */
.pillar-column-clean:not(:last-child)::after {
    content: '' !important;
    position: absolute !important;
    right: 0 !important;
    top: 20% !important;
    height: 60% !important;
    width: 1px !important;
    background: linear-gradient(to bottom, transparent, #293548, transparent) !important;
}

.pillar-icon-cyan {
    font-size: 1.8rem !important;
    color: #22d3ee !important;
    min-width: 40px !important;
    text-align: center !important;
    filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.6)) !important;
}

.pillar-content-box {
    text-align: left !important;
}

.pillar-content-box h4 {
    color: #ffffff !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 4px !important;
    white-space: nowrap !important; /* Keeps your headings on a single clean line */
}

.pillar-content-box p {
    color: #94a3b8 !important;
    font-size: 0.75rem !important;
    line-height: 1.4 !important;
    margin: 0 !important;
}

/* Graceful responsive wrapping for mobile viewports */
@media (max-width: 992px) {
    .pillars-row-container {
        flex-wrap: wrap !important;
        gap: 20px 0 !important;
    }
    .pillar-column-clean {
        flex: 1 1 50% !important; /* Neat 2x2 grid when space gets tight */
    }
    .pillar-column-clean:nth-child(2)::after {
        display: none !important;
    }
}

@media (max-width: 650px) {
    .pillars-row-container {
        flex-direction: column !important;
        padding: 20px !important;
    }
    .pillar-column-clean {
        flex: 1 1 auto !important;
        width: 100% !important;
    }
    .pillar-column-clean::after {
        display: none !important;
    }
}
.card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.6s ease forwards;
}

.card.show {
    animation: fadeUp 0.6s ease forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(34, 211, 238, 0.15);
    border-color: #22d3ee;
}

