/* =========================
RESET
========================= */

*{
margin:0;
padding:0;
box-sizing:border-box;
}

html{
scroll-behavior:smooth;
}

body{
font-family:'Inter',sans-serif;
background:var(--bg);
overflow-x:hidden;
color:var(--text);
}

/* =========================
GLOBAL BACKGROUND
========================= */

body::before{
content:'';
position:fixed;
inset:0;
background:
radial-gradient(circle at top left, rgba(0,119,255,.15), transparent 25%),
radial-gradient(circle at bottom right, rgba(124,58,237,.15), transparent 30%),
var(--bg);
z-index:-3;
}

body::after{
content:'';
position:fixed;
inset:0;
background-image:
linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
background-size:60px 60px;
z-index:-2;
}

.container{
width:min(1380px,92%);
margin:auto;
}

/* =========================
BUTTONS (UPGRADED HOVER SWAP)
========================= */

.btn-wrap{
display:flex;
gap:18px;
margin-top:40px;
flex-wrap:wrap;
}

.btn {
padding: 17px 32px;
border: none;
cursor: pointer;
border-radius: 18px;
font-weight: 700;
font-size: 15px;
position: relative;
overflow: hidden;
transition: transform 0.3s cubic-bezier(0.2, 1, 0.2, 1), box-shadow 0.3s ease, background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
display: inline-flex;
align-items: center;
justify-content: center;
z-index: 1;
}

.primary {
background: var(--primary);
color: #ffffff;
border: 1px solid var(--primary);
}

.secondary {
background: var(--bg);
border: 1px solid var(--primary);
color: var(--primary);
}

/* Primary Button Hover State */
.primary:hover {
background: var(--primary-hover);
color: #ffffff;
border-color: var(--primary-hover);
transform: translateY(-5px);
box-shadow: 0 20px 40px rgba(37, 99, 235, 0.25);
}

/* Secondary Button Hover State */
.secondary:hover {
background: #EFF6FF;
color: var(--primary);
border-color: var(--primary);
transform: translateY(-5px);
box-shadow: 0 20px 40px rgba(37, 99, 235, 0.1);
}

/* =========================
HERO
========================= */

.hero{
position:relative;
min-height:100vh;
display:flex;
align-items:center;
overflow:hidden;
}

.hero-grid{
display:grid;
grid-template-columns:42% 58%;
align-items:center;
gap:20px;
min-height:100vh;
}

/* LEFT */

.hero-left{
position:relative;
z-index:50;
}

.hero-tag{
display:inline-flex;
align-items:center;
gap:10px;
padding:12px 20px;
background:rgba(255,255,255,.05);
border:1px solid rgba(255,255,255,.08);
border-radius:999px;
backdrop-filter:blur(10px);
margin-bottom:30px;
}

.hero-tag span{
width:10px;
height:10px;
border-radius:50%;
background:#60a5fa;
}

.hero-left h1{
font-size:80px;
line-height:1;
font-weight:900;
letter-spacing:-3px;
margin-bottom:30px;
max-width:700px;
}

.hero-left h1 span{
color:var(--accent);
}

.hero-left p{
font-size:19px;
line-height:1.9;
max-width:560px;
color:var(--text-light);
}

/* RIGHT */

.hero-right{
position:relative;
height:950px;
width:100%;
display:flex;
align-items:center;
justify-content:center;
overflow:visible;
}

/* CURVE */

.hero-svg{
position:absolute;
width:100%;
height:100%;
z-index:30;
pointer-events:none;
overflow:visible;
}

#curve{
fill:none;
stroke:white;
stroke-width:4;
stroke-linecap:round;
filter:drop-shadow(0 0 20px rgba(255,255,255,.5));
}

/* MAIN CARD */

.main-card{
position:relative;
width:760px;
height:500px;
border-radius:38px;
overflow:hidden;
z-index:10;
background:rgba(255,255,255,.05);
border:1px solid rgba(255,255,255,.1);
box-shadow:0 35px 120px rgba(0,0,0,.65);
backdrop-filter:blur(14px);
}

.main-img{
position:absolute;
inset:0;
width:100%;
height:100%;
object-fit:cover;
opacity:0;
transform:scale(1.2);
}

.main-img.active{
opacity:1;
transform:scale(1);
}

/* FLOATING CARDS WITH FIXED BASE STRUCT */
.float-wrapper {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
pointer-events: none;
}

.float-card{
position:absolute;
overflow:hidden;
border-radius:24px;
border:1px solid rgba(255,255,255,.12);
box-shadow:0 25px 60px rgba(0,0,0,.45);
z-index:15;
background:var(--card-bg);
}

.float-card img{
width:100%;
height:100%;
object-fit:cover;
}

/* Absolute Desktop Initial Placements */
.fc1{width:160px;height:120px;top:40px;left:-20px;}
.fc2{width:180px;height:130px;top:100px;right:-10px;}
.fc3{width:150px;height:110px;bottom:220px;left:0px;}
.fc4{width:190px;height:130px;bottom:130px;right:-20px;}
.fc5{width:130px;height:95px;top:330px;left:-40px;}
.fc6{width:140px;height:100px;top:390px;right:-40px;}
.fc7{width:140px;height:100px;bottom:20px;left:180px;}

/* =========================
SECTION COMMON
========================= */

.section{
position:relative;
padding:100px 0;
overflow:hidden;
}

.section-inner{
display:grid;
grid-template-columns:1fr 1fr;
gap:60px;
align-items:center;
}

/* UNIQUE BG */

.bg-one{ background:var(--section-bg); }
.bg-two{ background:var(--section-bg); }
.bg-three{ background:var(--section-bg); }
.bg-four{ background:var(--section-bg); }
.bg-five{ background:var(--section-bg); }

/* IMAGE */

.section-image{
position:relative;
height:520px;
border-radius:34px;
overflow:hidden;
box-shadow:0 30px 100px rgba(0,0,0,.55);
}

.section-image img{
position:absolute;
inset:0;
width:100%;
height:100%;
object-fit:cover;
opacity:0;
transform:scale(.82) rotate(-6deg);
transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 1, 0.2, 1);
}

.section-image img.active{
opacity:1;
transform:scale(1) rotate(0deg);
}

/* TEXT */

.section-content h2{
font-size:52px;
line-height:1.1;
letter-spacing:-2px;
margin-bottom:28px;
}

.section-content p{
font-size:18px;
line-height:1.8;
color:var(--text-light);
margin-bottom: 20px;
}

/* =========================
MISSION & VISION CARDS
========================= */

.mission-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 30px;
margin-top: 40px;
}

.mission-card {
background: var(--card-bg);
border: 1px solid var(--border);
padding: 40px 30px;
border-radius: 24px;
transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.mission-card:hover {
transform: translateY(-10px);
background: rgba(255, 255, 255, 0.06);
border-color: rgba(103, 167, 255, 0.4);
}

.mission-card h3 {
font-size: 24px;
color: var(--accent);
margin-bottom: 15px;
}

.mission-card p {
font-size: 16px;
color: var(--text-light);
line-height: 1.7;
margin: 0;
}

/* =========================
TIMELINE (OUR APPROACH)
========================= */

.timeline {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 20px;
margin-top: 40px;
}

.timeline-item {
text-align: center;
position: relative;
padding: 30px 20px;
background: var(--section-bg);
border-radius: 16px;
border: 1px solid var(--border);
transition: background 0.3s ease;
}

.timeline-item:hover {
background: rgba(255, 255, 255, 0.05);
}

.timeline-icon {
width: 60px;
height: 60px;
background: rgba(103, 167, 255, 0.1);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 20px;
color: var(--accent);
font-size: 24px;
font-weight: 800;
border: 1px solid rgba(103, 167, 255, 0.3);
}

.timeline-item h4 {
font-size: 18px;
margin-bottom: 10px;
color: var(--text);
}

.timeline-item p {
font-size: 14px;
color: var(--text-light);
line-height: 1.6;
margin: 0;
}

/* =========================
STATISTICS (WHY CHOOSE US)
========================= */

.stats-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 30px;
margin-top: 40px;
text-align: center;
}

.stat-card {
padding: 40px 20px;
background: var(--section-bg);
border-radius: 20px;
border: 1px solid var(--border);
}

.stat-number {
font-size: 48px;
font-weight: 900;
color: var(--text);
margin-bottom: 10px;
}

.stat-number span {
color: var(--accent);
}

.stat-label {
font-size: 16px;
color: var(--text-light);
font-weight: 500;
}

/* =========================
PHILOSOPHY STATEMENT
========================= */

.philosophy-section {
text-align: center;
padding: 120px 20px;
position: relative;
}

.philosophy-bg {
position: absolute;
inset: 0;
background: url('imgs/HCS\ TechNova\ Philosophy.avif') no-repeat center center/cover;
opacity: 0.15;
z-index: 1;
}

.philosophy-content {
position: relative;
z-index: 2;
max-width: 900px;
margin: 0 auto;
}

.philosophy-content h2 {
font-size: 56px;
line-height: 1.2;
letter-spacing: -2px;
margin-bottom: 30px;
}

.philosophy-content p {
font-size: 22px;
line-height: 1.8;
color: var(--text-light);
}

/* =========================
CTA SECTION
========================= */
.cta-section {
text-align: center;
padding: 100px 20px;
background: var(--section-bg);
}

.cta-content {
max-width: 800px;
margin: 0 auto;
}

.cta-content h2 {
font-size: 48px;
letter-spacing: -1.5px;
margin-bottom: 24px;
}

.cta-content p {
font-size: 18px;
line-height: 1.8;
color: var(--text-light);
margin-bottom: 40px;
}

/* =========================
RESPONSIVE (ANTI-OVERLAP MATRIX)
========================= */

@media(max-width:1100px){
.hero-grid, .section-inner{ grid-template-columns:1fr; }
.hero-left{ text-align:center; padding-top:80px; }
.hero-left p{ margin:auto; }
.btn-wrap{ justify-content:center; }
.hero-left h1{ font-size:58px; margin:auto auto 28px; }
.hero-right{ height:720px; }
.main-card{ width:100%; height:420px; }
.section-content h2{ font-size:44px; }
.timeline, .stats-grid { grid-template-columns: repeat(2, 1fr); }
.philosophy-content h2 { font-size: 42px; }
}

@media(max-width:768px){
.hero{ padding-bottom:50px; }
.hero-left h1{ font-size:40px; letter-spacing:-2px; margin-bottom: 20px; }
.hero-left p{ font-size:16px; }
.hero-right{ height:460px; margin-top: 30px; }
.main-card{ height:300px; border-radius:24px; width: 88%; max-width: 440px; margin: 0 auto; }

/* Scale Matrix to secure layout clearance from Center Container Box on Mobile devices */
.float-card { z-index: 5; }
.fc1{ top:-20px; left:-15px; width:100px; height:75px; }
.fc2{ top:0px; right:-15px; width:110px; height:80px; }
.fc3{ bottom:120px; left:-15px; width:95px; height:70px; }
.fc4{ bottom:60px; right:-15px; width:110px; height:80px; }
.fc5{ top:150px; left:-25px; width:90px; height:65px; }
.fc6{ top:190px; right:-25px; width:95px; height:70px; }
.fc7{ bottom:-20px; left:30%; width:95px; height:70px; }

.section{ padding:70px 0; }
.section-image{ height:300px; }
.section-content h2{ font-size:34px; }
.section-content p{ font-size:16px; line-height:1.8; }
.btn{ width:100%; }

.mission-grid, .timeline, .stats-grid { grid-template-columns: 1fr; }
.philosophy-section { padding: 80px 20px; }
.philosophy-content h2 { font-size: 32px; }
.philosophy-content p { font-size: 18px; }
.cta-content h2 { font-size: 32px; }
}


.Banner {
        margin-bottom: 0px;
        position: relative;
        background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.85)), url('imgs/banner.avif') no-repeat center center/cover;
        height: 350px;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 0 20px;
    }

    .hero-content {
        position: relative;
        z-index: 2;
        max-width: 800px;
    }

    .hero-content h1 {
        font-size: 42px;
        font-weight: 800;
        letter-spacing: 1px;
        margin-bottom: 15px;
        text-transform: uppercase;
        color: white;
    }

    .hero-content h2{
        font-size: 28px;
        font-weight: 600;
        letter-spacing: 1px;
        margin-bottom: 0px;
        color: #cbd5e1;
        font-style: italic;
    }