/*-----------------------------------------------------------------------------------
    MODERN AGENCY GSAP SECTIONS: REFINED SPACING & RESPONSIVENESS
-----------------------------------------------------------------------------------*/

:root {
    --ag-accent: #0091FF;
    --ag-bg: #05070a;
    --ag-card-bg: rgba(255, 255, 255, 0.03);
    --ag-border: rgba(255, 255, 255, 0.08);
}

/* 1. Agency Pillars Section */
.agency-pillars-area {
    position: relative;
    background: var(--ag-bg);
    padding: 60px 0 40px; /* Further reduced from 80/60 */
    overflow: hidden;
}

.pillar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px; /* Reduced from 50px */
}

.pillar-card {
    position: relative;
    background: var(--ag-card-bg);
    border: 1px solid var(--ag-border);
    padding: 50px 40px;
    border-radius: 24px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: border-color 0.4s ease, background-color 0.4s ease;
}

.pillar-card:hover {
    border-color: var(--ag-accent);
    background: rgba(255, 255, 255, 0.05);
}

.pillar-num {
    font-size: 60px;
    font-weight: 900;
    line-height: 1;
    color: rgba(255, 255, 255, 0.15); /* Subtle solid fill */
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3); /* Stronger stroke */
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1;
}

.pillar-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 25px;
    color: var(--ag-accent);
    position: relative;
    z-index: 2;
}

.pillar-content {
    position: relative;
    z-index: 2;
}

.pillar-content h4 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #fff;
    font-weight: 700;
}

.pillar-content p {
    font-size: 16px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* 2. Infinite Vision — Modern 2x2 Card Grid */
.infinite-vision-area {
    position: relative;
    background: #020408;
    padding: 120px 0 140px;
    overflow: hidden;
}

/* Decorative glowing orbs */
.iv-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}
.iv-orb-1 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(0,145,255,0.12) 0%, transparent 70%);
    top: -200px;
    right: -150px;
}
.iv-orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(100,0,255,0.08) 0%, transparent 70%);
    bottom: -150px;
    left: -100px;
}

/* Background watermark text */
.iv-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 22vw;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.025);
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
    letter-spacing: 0.05em;
    user-select: none;
}

/* Section header */
.iv-header {
    position: relative;
    z-index: 2;
    margin-bottom: 70px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.iv-label {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--ag-accent);
}
.iv-label-line {
    display: block;
    width: 40px;
    height: 1px;
    background: var(--ag-accent);
}

.iv-title {
    font-size: clamp(48px, 6vw, 80px);
    font-weight: 900;
    color: #fff;
    line-height: 1;
    margin: 0;
}

.iv-subtitle {
    font-size: 18px;
    color: rgba(255,255,255,0.45);
    margin: 0;
    max-width: 500px;
    line-height: 1.6;
}

/* 2x2 Grid */
.iv-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* Individual card */
.iv-card {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    cursor: default;
    /* Animated gradient border via pseudo-element */
    background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid rgba(255,255,255,0.08);
    transition: border-color 0.4s ease, transform 0.4s ease;
    will-change: transform;
}
.iv-card:hover {
    border-color: rgba(0,145,255,0.35);
    transform: translateY(-6px);
}
.iv-card:nth-child(even) .iv-card-glow {
    background: radial-gradient(circle at 80% 20%, rgba(100,50,255,0.2) 0%, transparent 60%);
}

/* Animated glow on hover */
.iv-card-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 80%, rgba(0,145,255,0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 0;
    border-radius: inherit;
}
.iv-card:hover .iv-card-glow {
    opacity: 1;
}

/* Card inner content */
.iv-card-inner {
    position: relative;
    z-index: 1;
    padding: 50px 48px;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 280px;
}

/* Large ghost number */
.iv-card-num {
    position: absolute;
    top: 28px;
    right: 36px;
    font-size: 80px;
    font-weight: 900;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.08);
    pointer-events: none;
    transition: -webkit-text-stroke-color 0.4s ease;
}
.iv-card:hover .iv-card-num {
    -webkit-text-stroke-color: rgba(0,145,255,0.25);
}

/* Tag */
.iv-card-tag {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(0,145,255,0.1);
    border: 1px solid rgba(0,145,255,0.2);
    color: var(--ag-accent);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 32px;
    width: fit-content;
}

/* Card title */
.iv-card-title {
    font-size: clamp(28px, 2.8vw, 40px);
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    margin: 0 0 16px;
}

/* Card body text */
.iv-card-text {
    font-size: 16px;
    color: rgba(255,255,255,0.48);
    line-height: 1.65;
    margin: 0 0 32px;
    flex: 1;
}

/* Animated bottom bar (grows in on scroll) */
.iv-card-bar {
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, var(--ag-accent), rgba(100,50,255,0.8));
    border-radius: 2px;
    transition: width 0.6s ease;
}
.iv-card.iv-animated .iv-card-bar {
    width: 60px;
}
.iv-card:hover .iv-card-bar {
    width: 100px;
}

/* Responsive */
@media (max-width: 1399px) {
    .pillar-grid { gap: 20px; }
    .pillar-card { padding: 40px 30px; }
    .iv-card-inner { padding: 40px 36px; min-height: 260px; }
}

@media (max-width: 1199px) {
    .agency-pillars-area { padding: 60px 0; }
    .pillar-grid { grid-template-columns: repeat(2, 1fr); }
    .iv-watermark { display: none; }
    .iv-card-inner { padding: 36px 30px; }
    .iv-card-title { font-size: 30px; }
}

@media (max-width: 767px) {
    .pillar-grid { grid-template-columns: 1fr; }
    .tp-section-title.fs-80 { font-size: 48px; line-height: 1.1; }
    .iv-grid { grid-template-columns: 1fr; }
    .infinite-vision-area { padding: 80px 0 100px; }
    .iv-header { margin-bottom: 50px; }
    .iv-card-inner { min-height: auto; }
}
