/* ============================================================
   VINAR TECH – Corporate Profile Stylesheet
   ============================================================ */

/* --- BRAND COLOR PALETTE --- */
:root {
    --brand-navy: #0B3C5D;
    --brand-blue: #1D9BF0;
    --brand-blue-dark: #0e6eb8;
    --brand-blue-light: rgba(29, 155, 240, 0.12);
    --bg-page: #EEF2F7;
    --bg-box: #FFFFFF;
    --text-dark: #1A1A2E;
    --text-muted: #5A6A7A;
    --border-color: #DDE4EF;
    --green-glow: #4ade80;
    --green-dim: rgba(74, 222, 128, 0.15);
}

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

/* --- PAGE BODY with dot-grid pattern --- */
body {
    background-color: var(--bg-page);
    background-image:
        radial-gradient(circle, rgba(29, 155, 240, 0.08) 1px, transparent 1px);
    background-size: 28px 28px;
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    padding: 40px 20px;
    overflow-x: hidden;
}

/* ============================================================
   SCROLL ANIMATION UTILITY
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered children delay */
.reveal-child>* {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-child.visible>*:nth-child(1) {
    opacity: 1;
    transform: none;
    transition-delay: 0.05s;
}

.reveal-child.visible>*:nth-child(2) {
    opacity: 1;
    transform: none;
    transition-delay: 0.15s;
}

.reveal-child.visible>*:nth-child(3) {
    opacity: 1;
    transform: none;
    transition-delay: 0.25s;
}

.reveal-child.visible>*:nth-child(4) {
    opacity: 1;
    transform: none;
    transition-delay: 0.35s;
}

.reveal-child.visible>*:nth-child(5) {
    opacity: 1;
    transform: none;
    transition-delay: 0.45s;
}

.reveal-child.visible>*:nth-child(6) {
    opacity: 1;
    transform: none;
    transition-delay: 0.55s;
}

/* ============================================================
   LAYOUT CONTAINER
   ============================================================ */
.container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: relative;
}

/* ============================================================
   FLOATING ORB DECORATIONS (background ambience)
   ============================================================ */
.container::before,
.container::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
}

.container::before {
    width: 500px;
    height: 500px;
    background: rgba(29, 155, 240, 0.10);
    top: -80px;
    right: -120px;
    animation: orbFloat 12s ease-in-out infinite alternate;
}

.container::after {
    width: 400px;
    height: 400px;
    background: rgba(74, 222, 128, 0.08);
    bottom: 10%;
    left: -100px;
    animation: orbFloat 16s ease-in-out infinite alternate-reverse;
}

@keyframes orbFloat {
    from {
        transform: translateY(0) scale(1);
    }

    to {
        transform: translateY(40px) scale(1.08);
    }
}

/* ============================================================
   CONTENT BOXES
   ============================================================ */
.content-box {
    background-color: var(--bg-box);
    border-radius: 24px;
    padding: 64px;
    box-shadow: 0 4px 6px rgba(11, 60, 93, 0.04),
        0 20px 60px rgba(11, 60, 93, 0.08);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Animated top accent bar */
.content-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-blue), #7dd3fc, var(--brand-blue));
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: shimmerBar 3s linear infinite;
}

.content-box:hover::before {
    opacity: 1;
}

@keyframes shimmerBar {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Subtle corner watermark */
.content-box::after {
    content: '';
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(29, 155, 240, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1,
h2,
h3,
h4 {
    color: var(--brand-navy);
    line-height: 1.3;
}

.section-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.section-title i {
    color: var(--brand-blue);
    background: var(--brand-blue-light);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 0 0 0 rgba(29, 155, 240, 0.4);
    animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(29, 155, 240, 0.3);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(29, 155, 240, 0);
    }
}

p {
    color: var(--text-muted);
    margin-bottom: 15px;
    font-size: 15px;
}

/* ============================================================
   HERO BOX
   ============================================================ */
.hero-box {
    background:
        radial-gradient(ellipse at 70% 50%, rgba(29, 155, 240, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 80%, rgba(11, 60, 93, 0.06) 0%, transparent 50%),
        linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
    color: var(--brand-navy);
    text-align: center;
    padding: 90px 40px 80px;
    border-radius: 24px;
    box-shadow: 0 8px 30px rgba(29, 155, 240, 0.15),
        0 2px 6px rgba(11, 60, 93, 0.08);
    border: 1.5px solid rgba(29, 155, 240, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
    /* Fade in on load */
    animation: heroEntry 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes heroEntry {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* Animated circles behind hero */
.hero-box::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(29, 155, 240, 0.12) 0%, transparent 70%);
    animation: rotateSlow 20s linear infinite;
}

.hero-box::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(11, 60, 93, 0.08) 0%, transparent 70%);
    animation: rotateSlow 26s linear infinite reverse;
}

@keyframes rotateSlow {
    from {
        transform: rotate(0deg) scale(1);
    }

    to {
        transform: rotate(360deg) scale(1.1);
    }
}

.hero-box img {
    max-width: 260px;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 8px 24px rgba(29, 155, 240, 0.2));
    animation: logoFloat 4s ease-in-out infinite alternate;
}

@keyframes logoFloat {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-8px);
    }
}

.hero-box h1 {
    color: var(--brand-navy);
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
}

/* Gradient underline for h1 */
.hero-box h1::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-blue), #7dd3fc);
    border-radius: 4px;
    margin: 12px auto 0;
}

.hero-box .subtitle {
    font-size: 18px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

/* ============================================================
   GRIDS
   ============================================================ */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* ============================================================
   INNER CARDS
   ============================================================ */
.inner-card {
    background: linear-gradient(145deg, #f8fbff, #ffffff);
    padding: 30px;
    border-radius: 18px;
    border: 1px solid var(--border-color);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.35s ease,
        border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.inner-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--brand-blue-light) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.inner-card:hover {
    transform: translateY(-7px) scale(1.01);
    box-shadow: 0 16px 40px rgba(29, 155, 240, 0.15);
    border-color: var(--brand-blue);
}

.inner-card:hover::before {
    opacity: 1;
}

.inner-card i.main-icon {
    font-size: 32px;
    color: var(--brand-blue);
    margin-bottom: 18px;
    display: block;
    transition: filter 0.3s ease, color 0.3s ease;
}

.inner-card:hover i.main-icon {
    color: var(--brand-blue-dark);
    filter: drop-shadow(0 0 8px rgba(29, 155, 240, 0.5));
}

.inner-card h4 {
    font-size: 17px;
    margin-bottom: 10px;
    font-weight: 600;
}

/* ============================================================
   SUBSCRIPTION BADGE
   ============================================================ */
.subscription-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    padding: 5px 14px;
    background: linear-gradient(90deg, rgba(29, 155, 240, 0.1), rgba(125, 211, 252, 0.1));
    border: 1px solid rgba(29, 155, 240, 0.4);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: var(--brand-blue);
    letter-spacing: 0.3px;
    background-size: 200% 100%;
    animation: badgeShimmer 3s linear infinite;
}

@keyframes badgeShimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.subscription-badge span {
    font-weight: 700;
}

/* ============================================================
   ICON LIST
   ============================================================ */
.icon-list {
    list-style: none;
    padding: 0;
}

.icon-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 14px;
    color: var(--text-muted);
    font-size: 15px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.icon-list li:hover {
    color: var(--brand-navy);
    transform: translateX(4px);
}

.icon-list li i {
    position: absolute;
    left: 0;
    top: 5px;
    color: var(--brand-blue);
    font-size: 13px;
}

/* ============================================================
   AGRICULTURE AUTOMATION SECTION
   ============================================================ */
.agri-section {
    background:
        /* Leaf/field SVG pattern overlay */
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234ade80' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
        linear-gradient(135deg, #0d3b2e 0%, #0f2f4a 60%, #0B3C5D 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

/* Animated glow orb inside agri section */
.agri-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -80px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.12) 0%, transparent 65%);
    animation: orbFloat 10s ease-in-out infinite alternate;
    pointer-events: none;
}

.agri-section::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(29, 155, 240, 0.1) 0%, transparent 65%);
    animation: orbFloat 14s ease-in-out infinite alternate-reverse;
    pointer-events: none;
}

.agri-section .section-title {
    color: #fff;
    position: relative;
    z-index: 1;
}

.agri-section .section-title i {
    background: rgba(74, 222, 128, 0.15);
    color: var(--green-glow);
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4);
    animation: greenPulse 3s ease-in-out infinite;
}

@keyframes greenPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.35);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(74, 222, 128, 0);
    }
}

.agri-section>p {
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    z-index: 1;
}

/* Agriculture cards */
.agri-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(8px);
    position: relative;
    z-index: 1;
}

.agri-card::before {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.08) 0%, transparent 60%);
}

.agri-card:hover {
    border-color: var(--green-glow);
    box-shadow: 0 16px 40px rgba(74, 222, 128, 0.15);
    background: rgba(255, 255, 255, 0.09);
}

.agri-card h4 {
    color: #fff;
}

.agri-card p {
    color: rgba(255, 255, 255, 0.72);
}

.agri-card .main-icon {
    color: var(--green-glow);
}

.agri-card:hover .main-icon {
    color: #86efac;
}

.agri-list li {
    color: rgba(255, 255, 255, 0.78);
}

.agri-list li:hover {
    color: #fff;
}

.agri-list li i {
    color: var(--green-glow);
}

/* ============================================================
   MICROSOFT CSP SECTION
   ============================================================ */
.ms-section {
    background:
        url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.02' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E"),
        linear-gradient(135deg, #0B3C5D 0%, #0e2f4a 100%);
    color: white;
}

.ms-section h2,
.ms-section p {
    color: white;
}

.ms-section .section-title i {
    background: rgba(255, 255, 255, 0.08);
    color: var(--brand-blue);
    animation: iconPulse 3s ease-in-out infinite;
}

/* ============================================================
   CONTACT FOOTER BOX
   ============================================================ */
.footer-box {
    background:
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Ccircle cx='30' cy='30' r='1' fill='%231D9BF0' fill-opacity='0.08'/%3E%3C/g%3E%3C/svg%3E"),
        linear-gradient(135deg, #071e2f 0%, #0B3C5D 50%, #082d46 100%);
    color: white;
    padding: 64px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.footer-box::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(29, 155, 240, 0.12) 0%, transparent 65%);
    pointer-events: none;
}

.footer-box a {
    color: var(--brand-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-box a:hover {
    color: #7dd3fc;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 30px;
    text-align: center;
}

.contact-item {
    position: relative;
}

.contact-item i {
    font-size: 22px;
    color: var(--brand-blue);
    margin-bottom: 14px;
    background: rgba(29, 155, 240, 0.12);
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(29, 155, 240, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.contact-item:hover i {
    transform: translateY(-4px) scale(1.1);
    background: rgba(29, 155, 240, 0.22);
    box-shadow: 0 8px 24px rgba(29, 155, 240, 0.3);
}

.contact-item p {
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    font-size: 13px;
}

/* ============================================================
   DIVIDER
   ============================================================ */
hr {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 40px 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {

    .grid-2,
    .grid-3,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .content-box {
        padding: 40px 24px;
    }

    .hero-box {
        padding: 60px 20px;
    }

    .hero-box h1 {
        font-size: 32px;
    }

    .footer-box {
        padding: 40px 24px;
    }

    .container::before,
    .container::after {
        display: none;
    }
}
