/* =========================================================================
   Ceylog Tropical Manufactures Pvt Ltd — Custom Styles
   Theme: Sky Blue corporate identity
   ========================================================================= */

/* ---------- Design Tokens ---------- */
:root {
    --sky-50:  #eef7ff;
    --sky-100: #d7ecff;
    --sky-200: #b6dcff;
    --sky-300: #84c5fc;
    --sky-400: #4aa8f5;
    --sky-500: #2e9be6;   /* primary */
    --sky-600: #1d7ec4;
    --sky-700: #16649c;

    --navy-900: #0c2240;
    --navy-800: #102a4c;
    --gray-50:  #f5f8fc;
    --gray-100: #eef2f7;
    --gray-200: #e3e9f1;
    --gray-500: #6b7a8d;
    --white:    #ffffff;

    --primary: var(--sky-500);
    --primary-dark: var(--sky-600);
    --gradient-sky: linear-gradient(135deg, var(--sky-400) 0%, var(--sky-600) 100%);

    --shadow-soft: 0 10px 30px rgba(20, 60, 110, 0.08);
    --shadow-hover: 0 18px 45px rgba(20, 60, 110, 0.16);
    --radius: 1rem;

    --font-head: "Plus Jakarta Sans", system-ui, sans-serif;
    --font-body: "Inter", system-ui, sans-serif;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: #2a3a4d;
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .navbar-brand, .footer-brand {
    font-family: var(--font-head);
    letter-spacing: -0.02em;
}

a { text-decoration: none; }

.text-gradient {
    background: var(--gradient-sky);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---------- Accessibility: skip link ---------- */
.skip-link {
    position: fixed;
    top: -100px;
    left: 1rem;
    z-index: 2000;
    background: var(--primary);
    color: #fff;
    padding: .6rem 1rem;
    border-radius: .5rem;
    transition: top .2s;
}
.skip-link:focus { top: 1rem; color: #fff; }

:focus-visible {
    outline: 3px solid var(--sky-300);
    outline-offset: 2px;
}

/* ---------- Utility spacing ---------- */
.section { position: relative; }
.py-7 { padding-top: 5.5rem; padding-bottom: 5.5rem; }
.section-alt { background: var(--gray-50); }

.eyebrow {
    display: inline-block;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--sky-50);
    padding: .35rem .9rem;
    border-radius: 2rem;
    margin-bottom: 1rem;
}

.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
.section-lead { max-width: 640px; color: var(--gray-500); font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
    font-family: var(--font-head);
    font-weight: 600;
    border-radius: 999px;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary {
    background: var(--gradient-sky);
    border: none;
    box-shadow: 0 8px 22px rgba(46, 155, 230, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(46, 155, 230, .45); }
.btn-cta {
    background: var(--gradient-sky);
    color: #fff;
    padding: .55rem 1.4rem;
    box-shadow: 0 8px 22px rgba(46, 155, 230, .35);
}
.btn-cta:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(46, 155, 230, .45); }

/* ---------- Navbar ---------- */
.navbar {
    background: rgba(255, 255, 255, .9);
    backdrop-filter: saturate(180%) blur(12px);
    transition: background .3s, box-shadow .3s, padding .3s;
    padding-top: .9rem;
    padding-bottom: .9rem;
}
.navbar.scrolled { background: #fff; box-shadow: 0 6px 24px rgba(20,60,110,.10); padding-top: .5rem; padding-bottom: .5rem; }
.brand-text { font-weight: 800; font-size: 1.35rem; color: var(--navy-800); }
.brand-accent { color: var(--primary); }
.navbar .nav-link {
    font-weight: 600;
    color: var(--navy-800);
    padding: .5rem 1rem !important;
    position: relative;
}
.navbar .nav-link::after {
    content: "";
    position: absolute;
    left: 1rem; right: 1rem; bottom: .35rem;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}
.navbar .nav-link:hover::after,
.navbar .nav-link.active::after { transform: scaleX(1); }
.navbar-toggler { border: none; }
.navbar-toggler:focus { box-shadow: none; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background:
        linear-gradient(120deg, rgba(12,34,64,.72), rgba(29,126,196,.55)),
        url("https://picsum.photos/seed/ceylog-tropical-hero/1920/1080") center/cover no-repeat;
    color: #fff;
    padding-top: 80px;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 30%, rgba(46,155,230,.25), transparent 60%);
}
.hero-content { position: relative; z-index: 2; max-width: 880px; }
.hero-logo img { filter: drop-shadow(0 8px 20px rgba(0,0,0,.3)); }
.hero-title {
    font-size: clamp(2rem, 5.5vw, 3.6rem);
    font-weight: 800;
    margin: 1rem 0 .8rem;
    text-shadow: 0 4px 20px rgba(0,0,0,.25);
}
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 660px;
    margin: 0 auto 2rem;
    color: rgba(255,255,255,.92);
}
.badge-pill {
    display: inline-block;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    backdrop-filter: blur(6px);
    padding: .45rem 1.1rem;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
}
.hero-actions .btn-light { background:#fff; color: var(--navy-800); }
.hero-actions .btn-light:hover { background: var(--sky-50); }
.hero-actions .btn-outline-light:hover { background: rgba(255,255,255,.12); color:#fff; }

.scroll-down {
    position: absolute;
    bottom: 2rem; left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 10px); }
}

/* ---------- About ---------- */
.about-img-wrap { position: relative; }
.about-badge {
    position: absolute;
    bottom: 1rem; left: 1rem;
    background: #fff;
    color: var(--navy-800);
    font-weight: 700;
    font-size: .85rem;
    padding: .55rem 1rem;
    border-radius: 999px;
    box-shadow: var(--shadow-soft);
    display: flex; align-items: center; gap: .4rem;
}
.about-badge i { color: var(--primary); }

.stat-card {
    background: var(--sky-50);
    border-radius: var(--radius);
    padding: 1.1rem;
    text-align: center;
    border: 1px solid var(--sky-100);
}
.stat-num { font-family: var(--font-head); font-size: 2.2rem; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-label { font-size: .85rem; color: var(--gray-500); font-weight: 600; }

/* ---------- Feature / Info cards ---------- */
.feature-card {
    background: #fff;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    padding: 2rem 1.6rem;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: transform .3s, box-shadow .3s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.feature-icon {
    width: 64px; height: 64px;
    margin: 0 auto 1rem;
    display: flex; align-items: center; justify-content: center;
    border-radius: 18px;
    background: var(--gradient-sky);
    color: #fff;
    font-size: 1.6rem;
    box-shadow: 0 10px 24px rgba(46,155,230,.35);
}
.info-card {
    background: #fff;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    padding: 1.4rem;
    box-shadow: var(--shadow-soft);
    transition: transform .3s, box-shadow .3s;
}
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.info-icon {
    flex: 0 0 auto;
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 14px;
    background: var(--sky-50);
    color: var(--primary);
    font-size: 1.4rem;
}

/* ---------- Gallery ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}
.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    aspect-ratio: 4 / 3;
    display: block;
}
.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-caption {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(12,34,64,.7), transparent 55%);
    opacity: 0;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.6rem;
    transition: opacity .35s ease;
}
.gallery-item:hover .gallery-caption { opacity: 1; }

/* ---------- Lightbox ---------- */
.lightbox-close {
    position: absolute;
    top: -12px; right: -12px;
    width: 42px; height: 42px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: var(--navy-800);
    font-size: 1.1rem;
    box-shadow: var(--shadow-soft);
    z-index: 5;
}
.lightbox-close:hover { background: var(--sky-50); }

/* ---------- Company cards ---------- */
.company-card {
    background: #fff;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    padding: 2rem 1.6rem;
    box-shadow: var(--shadow-soft);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
    position: relative;
    overflow: hidden;
}
.company-card::before {
    content: "";
    position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: var(--gradient-sky);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s ease;
}
.company-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); border-color: var(--sky-200); }
.company-card:hover::before { transform: scaleX(1); }
.company-icon {
    width: 64px; height: 64px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 18px;
    background: var(--sky-50);
    color: var(--primary);
    font-size: 1.7rem;
    margin-bottom: 1.1rem;
    transition: background .3s, color .3s;
}
.company-card:hover .company-icon { background: var(--gradient-sky); color: #fff; }
.link-more {
    color: var(--primary);
    font-weight: 700;
    font-size: .92rem;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}
.link-more i { transition: transform .25s; }
.link-more:hover { color: var(--primary-dark); }
.link-more:hover i { transform: translateX(4px); }

/* ---------- Contact ---------- */
.contact-info-card {
    background: #fff;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
}
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li {
    display: flex; gap: 1rem;
    padding: .9rem 0;
    border-bottom: 1px dashed var(--gray-200);
}
.contact-list li:last-child { border-bottom: none; }
.contact-ico {
    flex: 0 0 auto;
    width: 46px; height: 46px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
    background: var(--sky-50);
    color: var(--primary);
    font-size: 1.2rem;
}
.contact-list strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--gray-500); }
.contact-list a { color: var(--navy-800); }

.map-placeholder {
    height: 200px;
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(46,155,230,.1), rgba(29,126,196,.18)),
        repeating-linear-gradient(45deg, #eaf3fb, #eaf3fb 14px, #e1eefb 14px, #e1eefb 28px);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: .5rem;
    color: var(--navy-800);
    font-weight: 600;
    border: 1px solid var(--sky-100);
}
.map-placeholder i { font-size: 2rem; color: var(--primary); }

.contact-form {
    background: #fff;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
}
.contact-form .form-label { font-weight: 600; color: var(--navy-800); font-size: .9rem; }
.form-control {
    border-radius: .75rem;
    border-color: var(--gray-200);
    padding: .7rem .9rem;
}
.form-control:focus {
    border-color: var(--sky-300);
    box-shadow: 0 0 0 .2rem rgba(46,155,230,.18);
}

/* ---------- Footer ---------- */
.footer {
    background: var(--navy-900);
    color: #cdd9e8;
    padding-top: 4rem;
    padding-bottom: 2rem;
}
.footer-brand { font-weight: 800; font-size: 1.4rem; color: #fff; }
.footer-brand .brand-accent { color: var(--sky-400); }
.social-links a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: #fff;
    margin-right: .5rem;
    font-size: 1.1rem;
    transition: background .3s, transform .3s;
}
.social-links a:hover { background: var(--primary); transform: translateY(-3px); }
.footer-title { color: #fff; font-size: 1.05rem; font-weight: 700; margin-bottom: 1rem; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a, .footer-contact a { color: #b9c7d8; transition: color .25s; }
.footer-links a:hover { color: var(--sky-300); padding-left: 4px; }
.footer-contact li { display: flex; gap: .6rem; margin-bottom: .6rem; align-items: flex-start; }
.footer-contact i { color: var(--sky-400); margin-top: .25rem; }
.footer-divider { border-color: rgba(255,255,255,.12); margin: 2rem 0 1.2rem; }
.footer-bottom { font-size: .9rem; }

/* ---------- Back to top ---------- */
.to-top {
    position: fixed;
    bottom: 1.5rem; right: 1.5rem;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--gradient-sky);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 10px 24px rgba(46,155,230,.4);
    opacity: 0; visibility: hidden;
    transform: translateY(10px);
    transition: all .3s ease;
    z-index: 1000;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { color: #fff; transform: translateY(-3px); }

/* ---------- Reveal animations ---------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .scroll-down { animation: none; }
    * { transition: none !important; }
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: #fff;
        border-radius: 1rem;
        padding: 1rem;
        margin-top: .6rem;
        box-shadow: var(--shadow-soft);
    }
    .navbar .nav-link::after { display: none; }
}
@media (max-width: 575.98px) {
    .py-7 { padding-top: 4rem; padding-bottom: 4rem; }
    .about-badge { font-size: .75rem; }
}
