/* ========================================
   GOOGLE EDLA CERTIFIED - SPIRAL SECTION
   Hardcoded Icons with Continuous Rotation
   Using unified Niva Blue color system
   ======================================== */

/* Section Container */
.edla-spiral-section {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
    background: linear-gradient(
        145deg, 
        var(--niva-blue-900, #0a1628) 0%, 
        var(--niva-blue-800, #0D1B6B) 40%, 
        var(--niva-blue-700, #1428A0) 80%, 
        var(--niva-blue-800, #0D1B6B) 100%
    );
}

.edla-spiral-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(ellipse at 30% 20%, rgba(66, 133, 244, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(52, 168, 83, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(251, 188, 5, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

/* Main Content Grid */
.edla-spiral-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* ========================================
   LEFT COLUMN - TEXT CONTENT
   ======================================== */

.edla-spiral-text {
    max-width: 560px;
}

/* Top Badge */
.edla-spiral-badge-top {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    margin-bottom: 32px;
}

.edla-google-g {
    flex-shrink: 0;
}

.edla-spiral-badge-top span {
    font-size: 15px;
    font-weight: 600;
    color: white;
    letter-spacing: 0.5px;
}

/* Title */
.edla-spiral-title {
    font-size: clamp(2rem, 4vw, 2.875rem);
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.edla-spiral-highlight {
    color: #4285F4;
    text-shadow: 0 0 40px rgba(66, 133, 244, 0.4);
}

.edla-spiral-gradient {
    background: linear-gradient(135deg, #4285F4 0%, #34A853 40%, #FBBC05 70%, #EA4335 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtitle */
.edla-spiral-subtitle {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.75;
    margin-bottom: 40px;
}

/* Feature List */
.edla-spiral-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.edla-spiral-feature {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.edla-spiral-feature-icon {
    width: 54px;
    height: 54px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.edla-spiral-feature:hover .edla-spiral-feature-icon {
    background: rgba(66, 133, 244, 0.25);
    border-color: rgba(66, 133, 244, 0.5);
    transform: scale(1.08);
    box-shadow: 0 0 25px rgba(66, 133, 244, 0.3);
}

.edla-spiral-feature-content h4 {
    font-size: 17px;
    font-weight: 700;
    color: white;
    margin-bottom: 6px;
}

.edla-spiral-feature-content p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.5;
    margin: 0;
}

/* CTA Buttons */
.edla-spiral-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.edla-spiral-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #4285F4 0%, #1a73e8 100%);
    color: white;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 24px rgba(66, 133, 244, 0.45);
}

.edla-spiral-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(66, 133, 244, 0.55);
    color: white;
}

.edla-spiral-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: transparent;
    color: white;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.edla-spiral-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

/* ========================================
   RIGHT COLUMN - SPIRAL GRAPHIC
   ======================================== */

.edla-spiral-graphic {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.edla-spiral-container {
    position: relative;
    width: 480px;
    height: 480px;
}

/* Spiral Rings */
.edla-spiral-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid transparent;
}

.edla-spiral-ring-1 {
    width: 180px;
    height: 180px;
    border-color: rgba(66, 133, 244, 0.35);
    box-shadow: 
        0 0 40px rgba(66, 133, 244, 0.15) inset,
        0 0 40px rgba(66, 133, 244, 0.1);
}

.edla-spiral-ring-2 {
    width: 300px;
    height: 300px;
    border-color: rgba(52, 168, 83, 0.25);
    animation: spiralRingPulse 6s ease-in-out infinite;
}

.edla-spiral-ring-3 {
    width: 420px;
    height: 420px;
    border-color: rgba(251, 188, 5, 0.18);
    animation: spiralRingPulse 6s ease-in-out infinite;
    animation-delay: 3s;
}

@keyframes spiralRingPulse {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.015); }
}

/* Center Badge */
.edla-spiral-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: linear-gradient(145deg, #1a2744 0%, #0d1b6b 50%, #0a1628 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 0 80px rgba(66, 133, 244, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 20px 40px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.edla-spiral-center-inner {
    text-align: center;
}

.edla-spiral-google-logo {
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 8px rgba(66, 133, 244, 0.4));
}

.edla-spiral-center-text {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: white;
    letter-spacing: 3px;
}

.edla-spiral-center-subtext {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 2px;
}

/* ========================================
   ROTATING ICONS - CONTINUOUS ANIMATION
   ======================================== */

.edla-spiral-icons-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 380px;
    height: 380px;
    transform: translate(-50%, -50%);
    animation: spiralRotate 25s linear infinite;
}

@keyframes spiralRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Hardcoded Icon Styles */
.edla-spiral-icon {
    position: absolute;
    width: 58px;
    height: 58px;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.35),
        0 0 20px rgba(66, 133, 244, 0.2);
    /* Counter-rotate to keep icons upright */
    animation: spiralIconCounterRotate 25s linear infinite;
}

@keyframes spiralIconCounterRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

/* Position icons evenly around the circle (5 icons, 72 degrees apart) */
/* Using trigonometry: 360° / 5 = 72° between each icon */
/* Starting from top (270°): 270°, 342°, 54°, 126°, 198° */

/* Icon 1 - Chrome (270° = top center) */
.edla-spiral-icon[data-position="1"] {
    top: 0%;
    left: 50%;
    transform: translateX(-50%);
}

/* Icon 2 - Gmail (342° = upper right) */
.edla-spiral-icon[data-position="2"] {
    top: 20.6%;
    left: 97.5%;
    transform: translate(-50%, -50%);
}

/* Icon 3 - Drive (54° = lower right) */
.edla-spiral-icon[data-position="3"] {
    top: 79.4%;
    left: 79.4%;
    transform: translate(-50%, -50%);
}

/* Icon 4 - YouTube (126° = lower left) */
.edla-spiral-icon[data-position="4"] {
    top: 79.4%;
    left: 20.6%;
    transform: translate(-50%, -50%);
}

/* Icon 5 - Play Store (198° = upper left) */
.edla-spiral-icon[data-position="5"] {
    top: 20.6%;
    left: 2.5%;
    transform: translate(-50%, -50%);
}

.edla-spiral-icon svg,
.edla-spiral-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* Glow Effects */
.edla-spiral-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.edla-spiral-glow-1 {
    width: 250px;
    height: 250px;
    background: rgba(66, 133, 244, 0.2);
    top: 10%;
    left: 10%;
    animation: spiralGlowPulse 7s ease-in-out infinite;
}

.edla-spiral-glow-2 {
    width: 200px;
    height: 200px;
    background: rgba(52, 168, 83, 0.15);
    bottom: 10%;
    right: 10%;
    animation: spiralGlowPulse 7s ease-in-out infinite;
    animation-delay: 3.5s;
}

@keyframes spiralGlowPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.15); }
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

@media (max-width: 1199px) {
    .edla-spiral-content {
        gap: 60px;
    }
    
    .edla-spiral-container {
        width: 420px;
        height: 420px;
    }
    
    .edla-spiral-icons-wrapper {
        width: 340px;
        height: 340px;
    }
    
    .edla-spiral-ring-1 { width: 160px; height: 160px; }
    .edla-spiral-ring-2 { width: 260px; height: 260px; }
    .edla-spiral-ring-3 { width: 380px; height: 380px; }
    
    .edla-spiral-center {
        width: 125px;
        height: 125px;
    }
    
    .edla-spiral-icon {
        width: 52px;
        height: 52px;
    }
    
    .edla-spiral-icon svg {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 991px) {
    .edla-spiral-section {
        padding: 80px 0;
    }
    
    .edla-spiral-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }
    
    .edla-spiral-text {
        max-width: 100%;
    }
    
    .edla-spiral-badge-top {
        margin-left: auto;
        margin-right: auto;
    }
    
    .edla-spiral-features {
        align-items: center;
    }
    
    .edla-spiral-feature {
        max-width: 420px;
        text-align: left;
    }
    
    .edla-spiral-cta {
        justify-content: center;
    }
    
    .edla-spiral-graphic {
        order: -1;
    }
    
    .edla-spiral-container {
        width: 360px;
        height: 360px;
    }
    
    .edla-spiral-icons-wrapper {
        width: 300px;
        height: 300px;
    }
    
    .edla-spiral-ring-1 { width: 140px; height: 140px; }
    .edla-spiral-ring-2 { width: 230px; height: 230px; }
    .edla-spiral-ring-3 { width: 340px; height: 340px; }
    
    .edla-spiral-center {
        width: 110px;
        height: 110px;
    }
    
    .edla-spiral-google-logo {
        width: 36px;
        height: 36px;
    }
    
    .edla-spiral-center-text {
        font-size: 18px;
    }
    
    .edla-spiral-icon {
        width: 46px;
        height: 46px;
        border-radius: 12px;
    }
    
    .edla-spiral-icon svg {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 767px) {
    .edla-spiral-section {
        padding: 60px 0;
    }
    
    .edla-spiral-title {
        font-size: 1.75rem;
    }
    
    .edla-spiral-subtitle {
        font-size: 15px;
    }
    
    .edla-spiral-feature-icon {
        width: 48px;
        height: 48px;
    }
    
    .edla-spiral-feature-content h4 {
        font-size: 16px;
    }
    
    .edla-spiral-feature-content p {
        font-size: 13px;
    }
    
    .edla-spiral-btn-primary,
    .edla-spiral-btn-outline {
        padding: 14px 24px;
        font-size: 15px;
    }
    
    .edla-spiral-container {
        width: 300px;
        height: 300px;
    }
    
    .edla-spiral-icons-wrapper {
        width: 250px;
        height: 250px;
    }
    
    .edla-spiral-ring-1 { width: 120px; height: 120px; }
    .edla-spiral-ring-2 { width: 190px; height: 190px; }
    .edla-spiral-ring-3 { width: 280px; height: 280px; }
    
    .edla-spiral-center {
        width: 90px;
        height: 90px;
    }
    
    .edla-spiral-google-logo {
        width: 30px;
        height: 30px;
    }
    
    .edla-spiral-center-text {
        font-size: 15px;
        letter-spacing: 2px;
    }
    
    .edla-spiral-center-subtext {
        font-size: 9px;
    }
    
    .edla-spiral-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }
    
    .edla-spiral-icon svg {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 575px) {
    .edla-spiral-content {
        gap: 40px;
    }
    
    .edla-spiral-badge-top {
        padding: 10px 18px;
    }
    
    .edla-spiral-badge-top span {
        font-size: 13px;
    }
    
    .edla-spiral-cta {
        flex-direction: column;
    }
    
    .edla-spiral-btn-primary,
    .edla-spiral-btn-outline {
        width: 100%;
        justify-content: center;
    }
    
    .edla-spiral-feature {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .edla-spiral-container {
        width: 260px;
        height: 260px;
    }
    
    .edla-spiral-icons-wrapper {
        width: 220px;
        height: 220px;
    }
    
    .edla-spiral-ring-1 { width: 100px; height: 100px; }
    .edla-spiral-ring-2 { width: 165px; height: 165px; }
    .edla-spiral-ring-3 { width: 245px; height: 245px; }
    
    .edla-spiral-center {
        width: 80px;
        height: 80px;
    }
    
    .edla-spiral-google-logo {
        width: 26px;
        height: 26px;
        margin-bottom: 4px;
    }
    
    .edla-spiral-center-text {
        font-size: 13px;
        letter-spacing: 1.5px;
    }
    
    .edla-spiral-center-subtext {
        font-size: 8px;
    }
    
    .edla-spiral-icon {
        width: 34px;
        height: 34px;
        border-radius: 8px;
    }
    
    .edla-spiral-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .edla-spiral-glow-1,
    .edla-spiral-glow-2 {
        display: none;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    .edla-spiral-icons-wrapper,
    .edla-spiral-icon,
    .edla-spiral-ring-2,
    .edla-spiral-ring-3,
    .edla-spiral-glow-1,
    .edla-spiral-glow-2 {
        animation: none;
    }
}
