:root {
    --color-primary-dark: #1C2E4A;
    /* Deep Navy Blue */
    --color-accent-orange: #FF6600;
    /* Vibrant Orange */
    --color-light-bg: #F8F8F8;
    /* Light Grey Background */
    --color-white: #FFFFFF;
    --color-dark-text: #2C2C2C;
    --color-grey-text: #6B6B6B;
    --color-light-grey-border: #E0E0E0;

    /* New CSS variables for 3D card tilt and depth */
    --card-hover-tilt-x: -5deg;
    /* Tilt up on X-axis */
    --card-hover-tilt-y: 5deg;
    /* Tilt right on Y-axis */
    --card-hover-translateZ: 30px;
    /* Pop out effect */
}

body {
    font-family: 'Syne', sans-serif;
    background-color: var(--color-light-bg);
    color: var(--color-dark-text);
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden;
    /* Prevent horizontal scroll from overflowing elements */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    color: var(--color-dark-text);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

h1 {
    font-weight: 800;
}

strong {
    font-weight: 600;
    color: var(--color-accent-orange);
}

p {
    font-weight: 400;
    /* Syne 400 for paragraph readability */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* General Scroll Reveal Animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.section-padding {
    padding: 100px 0;
}

/* SEO PAGE HERO SECTION - NEW DESIGN */
.hero-seo-section {
    background: linear-gradient(45deg, var(--color-primary-dark), #334e68);
    /* Slightly different gradient */
    color: var(--color-white);
    padding: 120px 0 100px;
    /* Adjust padding */
    text-align: center;
    position: relative;
    overflow: hidden;
    /* Essential for containing animated elements */
    border-bottom-left-radius: 40px;
    /* Slightly less rounded */
    border-bottom-right-radius: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: fadeInTop 1.2s ease-out forwards;
    /* New entry animation */
}

@keyframes fadeInTop {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animated Background Elements (newly added) */
.animated-icon-bg {
    position: absolute;
    color: rgba(255, 255, 255, 0.1);
    /* Subtle white color */
    pointer-events: none;
    /* Allows clicks to pass through to content */
    will-change: transform, opacity;
    /* Optimize for animation */
    transition: none !important;
    /* Ensure JS controls its animation */
}

/* Keyframe for primary floating animation */
@keyframes floatAndFade {
    0% {
        transform: translateY(0) scale(1) rotate(0deg);
        opacity: 0;
    }

    20% {
        opacity: 0.5;
    }

    80% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(-120vh) scale(1.2) rotate(360deg);
        /* Float upwards out of view, slightly larger, rotate */
        opacity: 0;
    }
}

/* Keyframe for alternative floating animation (for variety) */
@keyframes floatAndFadeAlt {
    0% {
        transform: translateY(0) translateX(0) scale(1) rotate(0deg);
        opacity: 0;
    }

    20% {
        opacity: 0.5;
    }

    80% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(-120vh) translateX(50px) scale(1.1) rotate(-360deg);
        /* Float upwards-right, slightly larger, rotate */
        opacity: 0;
    }
}


.hero-seo-content {
    position: relative;
    z-index: 1;
    /* Ensure content is above animated elements */
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* INCREASED TITLE SIZE */
.hero-seo-title {
    font-size: 5rem;
    /* Increased from 4rem */
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
    color: var(--color-white);
}

/* INCREASED SUBTITLE SIZE */
.hero-seo-subtitle {
    font-size: 2rem;
    /* Increased from 1.5rem */
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.hero-seo-cta-button {
    background-color: var(--color-accent-orange);
    color: var(--color-white);
    padding: 1rem 2.5rem;
    border-radius: 9999px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 8px 20px rgba(255, 102, 0, 0.4);
    display: inline-block;
    position: relative;
    overflow: hidden;
    z-index: 1;
    will-change: transform, box-shadow;
}

.hero-seo-cta-button:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 25px rgba(255, 102, 0, 0.6);
    background-color: #FF5500;
}

.hero-seo-cta-button::after {
    /* CTA button shine effect */
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    filter: blur(10px);
    transform: skewX(-20deg);
    transition: transform 0.8s ease-out, opacity 0.1s ease-in;
    opacity: 0;
    z-index: 2;
    pointer-events: none;
    will-change: transform, opacity;
}

.hero-seo-cta-button:hover::after {
    transform: translateX(300%) skewX(-20deg);
    opacity: 1;
    transition: transform 0.8s ease-out, opacity 0.3s ease-in 0.1s;
}

/* INCREASED SECTION TITLE SIZE */
.section-title {
    font-size: 3.5rem;
    /* New base size */
    margin-bottom: 1.5rem;
    /* Added margin for consistency */
}

/* INCREASED SECTION DESCRIPTION SIZE */
.section-description {
    font-size: 1.25rem;
    /* New base size */
    margin-bottom: 2.5rem;
    /* Added margin for consistency */
    color: var(--color-grey-text);
    /* Ensure consistent color */
}

/* Our SEO Pillars Section */
#seo-pillars {
    background-color: var(--color-light-bg);
}

.seo-pillar-card {
    background-color: var(--color-white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
    border: 1px solid var(--color-light-grey-border);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.3s ease;
    text-align: center;
    will-change: transform, box-shadow;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.seo-pillar-card:hover {
    transform: perspective(1000px) translateY(-15px) translateZ(var(--card-hover-translateZ)) rotateX(var(--card-hover-tilt-x)) rotateY(var(--card-hover-tilt-y)) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25), 0 0 20px rgba(255, 102, 0, 0.5);
    border-color: var(--color-accent-orange);
}

.seo-pillar-card .icon {
    font-size: 4rem;
    color: var(--color-accent-orange);
    margin-bottom: 1.5rem;
}

.seo-pillar-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

/* Benefit cards - simpler hover */
.benefit-card {
    background-color: var(--color-white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--color-light-grey-border);
    text-align: center;
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.benefit-card .icon {
    font-size: 3.5rem;
    color: var(--color-primary-dark);
    /* Dark blue for benefits icons */
    margin-bottom: 1rem;
}

.benefit-card h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* SEO Tools Section */
#seo-tools-we-use {
    background-color: var(--color-light-bg);
    padding-bottom: 100px;
}

.tool-card {
    background-color: var(--color-white);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--color-light-grey-border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    /* Consistent height */
    will-change: transform, box-shadow, border-color;
}

.tool-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--color-accent-orange);
}

.tool-card i {
    /* Style for Font Awesome icons */
    font-size: 3.5rem;
    /* Larger icon size */
    color: #4A4A4A;
    /* Default color for icons */
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
    /* Smooth transition for color */
}

.tool-card:hover i {
    color: var(--color-accent-orange);
    /* Change color on hover */
}

.tool-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-dark-text);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Why Choose Pengwin for SEO section */
#why-choose-pengwin-seo {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
}

#why-choose-pengwin-seo .section-title,
#why-choose-pengwin-seo .section-description {
    color: var(--color-white);
}

.seo-feature-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    text-align: center;
    will-change: transform, background-color, box-shadow;
}

.seo-feature-item:hover {
    transform: translateY(-8px) scale(1.01);
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--color-accent-orange);
    box-shadow: 0 10px 25px rgba(255, 102, 0, 0.25);
}

.seo-feature-item .icon {
    font-size: 4rem;
    color: var(--color-accent-orange);
    margin-bottom: 1.5rem;
}

.seo-feature-item h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 0.75rem;
}

.seo-feature-item p {
    color: #E0E0E0;
}

/* Footer (consistent with main page) */
.site-footer {
    background-color: #2C2C2C;
    color: var(--color-white);
    padding: 60px 0 30px;
    font-size: 0.9rem;
    font-weight: 400;
}

.site-footer a {
    color: var(--color-white);
    transition: color 0.3s;
}

.site-footer a:hover {
    color: var(--color-accent-orange);
}

.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-accent-orange);
    margin-bottom: 1rem;
}

.footer-description {
    color: #A0A0A0;
    margin-bottom: 1.5rem;
    max-width: 350px;
}

.footer-heading {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links li a {
    color: #E0E0E0;
}

.footer-social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background-color: #444444;
    margin-right: 0.5rem;
    transition: background-color 0.3s ease;
}

.footer-social-icons a:hover {
    background-color: var(--color-accent-orange);
}

.footer-bottom-bar {
    border-top: 1px solid #444444;
    padding-top: 2rem;
    margin-top: 3rem;
    text-align: center;
    color: #A0A0A0;
    font-weight: 400;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {

    /* INCREASED TITLE SIZE (for larger tablets/small laptops) */
    .hero-seo-title {
        font-size: 3.8rem;
        /* Adjusted from 3.2rem */
    }

    /* INCREASED SUBTITLE SIZE (for larger tablets/small laptops) */
    .hero-seo-subtitle {
        font-size: 1.6rem;
        /* Adjusted from 1.3rem */
    }

    /* INCREASED SECTION TITLE SIZE */
    .section-title {
        font-size: 2.8rem;
        /* Adjusted from 2.5rem */
    }

    .seo-pillar-card h3 {
        font-size: 1.7rem;
    }

    .benefit-card h4 {
        font-size: 1.3rem;
    }

    .seo-feature-item h3 {
        font-size: 1.7rem;
    }
}

@media (max-width: 767px) {
    .hero-seo-section {
        padding: 80px 0 60px;
        border-bottom-left-radius: 30px;
        border-bottom-right-radius: 30px;
    }

    /* INCREASED TITLE SIZE (for tablets/medium phones) */
    .hero-seo-title {
        font-size: 3rem;
        /* Adjusted from 2.5rem */
    }

    /* INCREASED SUBTITLE SIZE (for tablets/medium phones) */
    .hero-seo-subtitle {
        font-size: 1.2rem;
        /* Adjusted from 1rem */
        margin-bottom: 1.5rem;
    }

    .hero-seo-cta-button {
        padding: 0.8rem 1.8rem;
        font-size: 0.85rem;
    }

    .section-padding {
        padding: 60px 0;
    }

    /* INCREASED SECTION TITLE SIZE */
    .section-title {
        font-size: 2.2rem;
        /* Adjusted from 2rem */
        margin-bottom: 1rem;
    }

    /* INCREASED SECTION DESCRIPTION SIZE */
    .section-description {
        font-size: 1.1rem;
        /* Adjusted from 1rem */
        margin-bottom: 2rem;
    }

    .seo-pillar-card,
    .benefit-card,
    .tool-card,
    .seo-feature-item {
        padding: 2rem 1.5rem;
    }

    .seo-pillar-card h3 {
        font-size: 1.5rem;
    }

    .seo-pillar-card .icon {
        font-size: 3rem;
    }

    .benefit-card .icon {
        font-size: 3rem;
    }

    .benefit-card h4 {
        font-size: 1.2rem;
    }

    .tool-card i {
        font-size: 3rem;
    }

    .seo-feature-item .icon {
        font-size: 3rem;
    }

    .seo-feature-item h3 {
        font-size: 1.5rem;
    }

    .footer-logo {
        font-size: 1.8rem;
    }

    .footer-heading {
        font-size: 1rem;
    }

    .footer-links li {
        margin-bottom: 0.7rem;
    }

    /* Responsive adjustments for animated background icons */
    .animated-icon-bg {
        font-size: 20px !important;
        /* Smaller icons on mobile */
    }
}

@media (max-width: 480px) {

    /* INCREASED TITLE SIZE (for small phones) */
    .hero-seo-title {
        font-size: 2.5rem;
        /* Adjusted from 2rem */
    }

    /* INCREASED SUBTITLE SIZE (for small phones) */
    .hero-seo-subtitle {
        font-size: 1rem;
        /* Adjusted from 0.9rem */
    }

    .animated-icon-bg {
        font-size: 15px !important;
        /* Even smaller icons on extra small mobile */
    }
}