/* ───── RESET ───── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* ───── HEADER ───── */
header {
    background: linear-gradient(135deg, #1565c0 0%, #1976d2 40%, #ffd600 100%);
    background-size: 200% 200%;
    animation: gradientMove 10s ease infinite;
    color: #fff;
    padding: 0.4rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(21, 101, 192, 0.5);
}

nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    height: 45px;
}

.logo-img {
    height: 100%;
    max-height: 45px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
    border-radius: 8px;
}

.logo-text {
    margin-left: 0.7rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.3s;
    padding: 0.35rem 0.8rem;
    border-radius: 20px;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.nav-links a.active {
    background: rgba(255, 255, 255, 0.25);
    border-bottom: 2px solid #ffd600;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: block;
}

/* Hamburger → X */
.hamburger.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ───── HERO ───── */
.hero {
    background-image:
        url('homeBG.png'),
        url('timeline photo.png');
    background-size: 55%, 118%;
    background-position: center center, center center;
    background-repeat: no-repeat, no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #000;
    margin-top: 55px;
    padding: 3rem 1rem;
    position: relative;
    overflow: hidden;
}

/* White overlay for readability */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.55);
    z-index: 0;
}

/* Floating colour blobs */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 20%, rgba(21,101,192,0.10), transparent),
        radial-gradient(circle at 80% 20%, rgba(255,214,0,0.15), transparent),
        radial-gradient(circle at 50% 80%, rgba(25,118,210,0.08), transparent),
        radial-gradient(circle at 10% 70%, rgba(255,234,0,0.12), transparent);
    animation: floatBg 18s ease-in-out infinite;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.badge {
    display: inline-block;
    background: rgba(21,101,192,0.12);
    color: #000;
    border: 2px solid rgba(21,101,192,0.3);
    border-radius: 50px;
    padding: 0.4rem 1.4rem;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-content h1 {
    font-size: 3.8rem;
    margin-bottom: 0.5rem;
    color: #0d47a1;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0,0,0,0.10);
    line-height: 1.15;
}

.hero-content h2.subtitle {
    font-size: 1.6rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.15rem;
    margin: 0 auto 2.5rem;
    max-width: 640px;
    color: #000;
}

/* ───── VERTICAL MARQUEE ───── */
.marquee-col {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 160px;
    overflow: hidden;
    z-index: 3;
}

.marquee-left  { left: 0; }
.marquee-right { right: 0; }

.marquee-col::before,
.marquee-col::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    height: 80px;
    z-index: 4;
    pointer-events: none;
}
.marquee-col::before {
    top: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0.9), transparent);
}
.marquee-col::after {
    bottom: 0;
    background: linear-gradient(to top, rgba(255,255,255,0.9), transparent);
}

.marquee-track {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
}

.marquee-track img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
    opacity: 0.88;
    transition: opacity 0.3s;
}

.marquee-track img:hover { opacity: 1; }

.marquee-up   { animation: scrollUp   28s linear infinite; }
.marquee-down { animation: scrollDown 28s linear infinite; }

.marquee-up:hover,
.marquee-down:hover { animation-play-state: paused; }

/* ───── CTA BUTTON ───── */
.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, #ffd600, #ffea00);
    color: #0d47a1;
    padding: 1.2rem 3rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.2rem;
    transition: all 0.3s;
    box-shadow: 0 8px 20px rgba(255,214,0,0.5);
    animation: fadeInUp 0.8s ease-out 0.3s both;
    border: 2px solid #f9a825;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255,214,0,0.7);
    background: linear-gradient(45deg, #ffea00, #ffd600);
}

.hero-note {
    margin-top: 2rem;
    font-size: 0.88rem;
    color: #1565c0;
}

/* ───── CONTAINER ───── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ───── SECTION TITLES ───── */
h2.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    color: #0d47a1;
}

.section-sub {
    text-align: center;
    color: #1976d2;
    font-size: 1.05rem;
    margin-bottom: 3rem;
}

/* ───── WHY SECTION ───── */
.why-section {
    background: linear-gradient(160deg, #e3f2fd, #fffde7, #e1f5fe, #fff9c4);
    background-size: 300% 300%;
    animation: gradientMove 18s ease infinite;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.why-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 0% 0%, rgba(21,101,192,0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 100%, rgba(255,214,0,0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 0%, rgba(25,118,210,0.08) 0%, transparent 40%);
    pointer-events: none;
}

/* ───── FEATURES GRID ───── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(21,101,192,0.12);
    transition: all 0.4s;
    border: 2px solid rgba(21,101,192,0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 45px rgba(21,101,192,0.22);
    border-color: #1976d2;
}

.feature-icon {
    font-size: 3rem;
    color: #1976d2;
    margin-bottom: 1.2rem;
}

.feature-card h3 {
    color: #0d47a1;
    font-size: 1.2rem;
    margin-bottom: 0.7rem;
}

.feature-card p {
    color: #555;
    font-size: 0.97rem;
}

/* ───── GALLERY SECTION ───── */
.gallery-section {
    background: linear-gradient(135deg, #fffde7, #e3f2fd, #fff9c4);
    background-size: 300% 300%;
    animation: gradientMove 18s ease infinite;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.gallery-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255,214,0,0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 0% 100%, rgba(21,101,192,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(21,101,192,0.15);
    transition: all 0.4s;
    border: 2px solid rgba(21,101,192,0.1);
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 40px rgba(21,101,192,0.25);
    border-color: #ffd600;
}

.gallery-placeholder {
    background: linear-gradient(135deg, #1565c0, #1976d2);
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    color: #ffd600;
    font-size: 2.8rem;
    transition: all 0.4s;
}

.gallery-item:nth-child(2) .gallery-placeholder { background: linear-gradient(135deg, #0288d1, #03a9f4); }
.gallery-item:nth-child(3) .gallery-placeholder { background: linear-gradient(135deg, #1565c0, #283593); }
.gallery-item:nth-child(4) .gallery-placeholder { background: linear-gradient(135deg, #0277bd, #01579b); }
.gallery-item:nth-child(5) .gallery-placeholder { background: linear-gradient(135deg, #1976d2, #42a5f5); }
.gallery-item:nth-child(6) .gallery-placeholder { background: linear-gradient(135deg, #283593, #1565c0); }

.gallery-placeholder span {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
}

/* ───── STEPS SECTION ───── */
.steps-section {
    background: linear-gradient(135deg, #e8eaf6, #fffde7, #e3f2fd, #fff9c4);
    background-size: 300% 300%;
    animation: gradientMove 18s ease infinite;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.steps-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(21,101,192,0.1) 0%, transparent 60%),
        radial-gradient(ellipse at 0% 100%, rgba(255,214,0,0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 50%, rgba(25,118,210,0.08) 0%, transparent 45%);
    pointer-events: none;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.step-card {
    text-align: center;
    padding: 2rem 1.5rem;
    position: relative;
}

.step-number {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #ffd600, #ffea00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 800;
    color: #0d47a1;
    margin: 0 auto 1.2rem;
    box-shadow: 0 6px 20px rgba(255,214,0,0.4);
    border: 3px solid #f9a825;
}

.step-card h3 {
    color: #0d47a1;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.step-card p {
    color: #555;
    font-size: 0.93rem;
}

/* ───── BOTTOM CTA SECTION ───── */
.cta-section {
    background: linear-gradient(135deg, #1565c0 0%, #1976d2 40%, #ffd600 100%);
    text-align: center;
    padding: 2rem 2rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(255,255,255,0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(0,0,0,0.08) 0%, transparent 50%);
    pointer-events: none;
}

.cta-section h2 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
    color: #fff;
    position: relative;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    color: #e3f2fd;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.cta-button-light {
    display: inline-block;
    background: linear-gradient(45deg, #ffd600, #ffea00);
    color: #0d47a1;
    padding: 1.1rem 2.8rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.15rem;
    transition: all 0.3s;
    box-shadow: 0 8px 24px rgba(255,214,0,0.5);
    border: 2px solid #f9a825;
    position: relative;
}

.cta-button-light:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(255,214,0,0.7);
    background: linear-gradient(45deg, #ffea00, #ffd600);
}

/* ───── FOOTER ───── */
footer {
    background-color: #0d47a1;
    background-image: url('Homebuildings.png');
    background-size: 100% 100%;
    background-position: center bottom;
    background-repeat: no-repeat;
    color: #e3f2fd;
    padding: 1.5rem 7rem 0.8rem;
    font-size: 0.82rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(13, 71, 161, 0.82);
    z-index: 0;
}

footer .container {
    position: relative;
    z-index: 1;
}

/* ───── FOOTER PARTNER LOGOS ───── */
.footer-partner-logo {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    object-fit: contain;
    z-index: 2;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    padding: 6px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
    transition: transform 0.3s, filter 0.3s;
}

.footer-partner-logo:hover {
    transform: translateY(-50%) scale(1.1);
    filter: drop-shadow(0 4px 14px rgba(255,214,0,0.6));
}

.footer-logo-left  { left: 1.5rem; }
.footer-logo-right { right: 1.5rem; }
.footer-logo-center {
    left: 50%;
    transform: translate(-50%, -50%);
}

.footer-logo-center:hover {
    transform: translate(-50%, -50%) scale(1.1);
    filter: drop-shadow(0 4px 14px rgba(255,214,0,0.6));
}

/* Individual logo sizes by filename */
img[src="sicat.png"] {
    width: 150px;
    height: 150px;
}

img[src="dasma.png"] {
    width: 150px;
    height: 150px;
}

img[src="DOT logo.png"] {
    width: 150px;
    height: 150px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-col h3 {
    color: #ffd600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.footer-col p {
    color: #bbdefb;
    line-height: 1.5;
    font-size: 0.8rem;
}

.footer-col p i {
    color: #ffd600;
    margin-right: 0.4rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.3rem; }

.footer-col ul li a {
    color: #bbdefb;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.8rem;
}

.footer-col ul li a:hover { color: #ffd600; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 0.8rem;
    text-align: center;
    color: #90caf9;
    font-size: 0.78rem;
}

/* ───── TIMELINE PHOTO ───── */
.footer-timeline {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2.5rem 1rem;
    background: #f0f8ff;
}

.timeline-img {
    width: 500px;
    max-width: 100%;
    display: block;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(21, 101, 192, 0.2);
}

/* ───── PAGE HERO (inner pages) ───── */
.page-hero {
    background: linear-gradient(135deg, #e3f2fd, #fffde7, #e1f5fe, #fff9c4);
    background-size: 300% 300%;
    animation: gradientMove 18s ease infinite;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #0d47a1;
    margin-top: 55px;
    padding: 3rem 1rem;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(21,101,192,0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(255,214,0,0.18) 0%, transparent 50%);
    animation: floatBg 18s ease-in-out infinite;
    z-index: 0;
}

.page-hero .hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.page-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #0d47a1;
    margin-bottom: 1rem;
}

.page-hero p {
    font-size: 1.1rem;
    color: #1a3a6e;
    max-width: 580px;
    margin: 0 auto;
}

/* ───── STORY BOX ───── */
.story-box {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(21,101,192,0.12);
    border-left: 5px solid #ffd600;
    max-width: 860px;
    margin: 0 auto;
}

.story-box p {
    color: #333;
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
    line-height: 1.8;
}

.story-box p:last-child { margin-bottom: 0; }

/* ───── CONTACT GRID ───── */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.contact-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(21,101,192,0.12);
    transition: all 0.4s;
    border: 2px solid rgba(21,101,192,0.1);
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(21,101,192,0.2);
    border-color: #ffd600;
}

.contact-card h3 {
    color: #0d47a1;
    font-size: 1.15rem;
    margin-bottom: 0.7rem;
}

.contact-card p {
    color: #555;
    font-size: 0.97rem;
    line-height: 1.7;
}

/* ───── ANIMATIONS ───── */
@keyframes gradientMove {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes floatBg {
    0%   { transform: translate(0, 0); }
    50%  { transform: translate(60px, -60px); }
    100% { transform: translate(0, 0); }
}

@keyframes scrollUp {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

@keyframes scrollDown {
    0%   { transform: translateY(-50%); }
    100% { transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ───── RESPONSIVE ───── */
@media (max-width: 900px) {
    .marquee-col { display: none; }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, #1565c0, #1976d2);
        flex-direction: column;
        padding: 1.5rem;
        border-radius: 0 0 20px 20px;
        z-index: 999;
    }

    .nav-links.active { display: flex; }

    .hero-content h1 { font-size: 2.4rem; }
    .hero-content h2.subtitle { font-size: 1.2rem; }
    .logo { height: 38px; }
    .logo-img { max-height: 38px; max-width: 130px; }
    .logo-text { font-size: 1rem; }
    .hero { margin-top: 55px; padding: 2rem 1rem; }
    .gallery-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
    .footer-grid { grid-template-columns: 1fr; }
    .story-box { padding: 1.5rem; }
    .page-hero h1 { font-size: 2rem; }
    .footer-partner-logo { display: none; }
    footer { padding: 1.5rem 1rem 0.8rem; }
}