/*
Theme Name: WP Specialist Pro
Theme URI: https://example.com
Author: Antigravity
Author URI: https://example.com
Description: A professional portfolio theme for a Senior WordPress Developer.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wp-specialist-pro
*/

:root {
    --primary-color: #0f172a;
    /* Slate 900 */
    --accent-color: #3b82f6;
    /* Blue 500 */
    --text-color: #334155;
    /* Slate 700 */
    --bg-light: #f8fafc;
    /* Slate 50 */
    --white: #ffffff;
    --font-heading: 'Avocado Sans Bold', sans-serif;
    --font-body: 'Avocado Sans Bold', sans-serif;
    --container-width: 1200px;
}

/* Reset & Basics */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-light);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--accent-color);
    color: var(--white);
    border-radius: 6px;
    font-weight: 600;
}

.btn:hover {
    opacity: 0.9;
}

/* Header */
.site-header {
    background: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-navigation a {
    font-weight: 500;
}

.main-navigation a:hover {
    color: var(--accent-color);
}

/* Hero */
.hero {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e293b 100%);
    color: var(--white);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--white);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Sections */
.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.portfolio-item {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.portfolio-thumb {
    height: 200px;
    background-color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.portfolio-content {
    padding: 20px;
}

/* Footer */
.site-footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

/* Video Background */
.video-background {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: #000;
}

.video-foreground {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.video-foreground iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 100%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* Green Overlay */
.video-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.32);
    z-index: 1;
}

#vidtop-content {
    position: relative;
    z-index: 2;
    text-align: center;
    /* Centered as per image */
    color: #fff;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.vid-info__name {
    font-family: 'Avocado Sans Bold', sans-serif;
    font-size: 4.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2rem;
    text-transform: uppercase;
    line-height: 1.3;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    max-width: 1150px;
}

.vid-info__cta {
    display: inline-block;
    padding: 0px 20px;
    background-color: #ef4444;
    color: var(--white);
    font-family: 'Avocado Sans Bold', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    border-radius: 25px;
    text-transform: uppercase;
    text-shadow: none;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
    animation: cta-pulse 0.8s infinite alternate;
}

.vid-info__cta:hover {
    background-color: #dc2626;
    color: var(--white);
    animation-play-state: paused;
    transform: scale(1.05);
}

/* Vivid Pulse Animation */
@keyframes cta-pulse {
    0% {
        transform: scale(1);
        background-color: #ef4444;
        /* Standard Red */
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    100% {
        transform: scale(1.1);
        background-color: #ff2222;
        /* Brighter, almost neon red */
        box-shadow: 0 0 20px 10px rgba(239, 68, 68, 0);
    }
}

/* Responsive Media Queries */

/* Large Tablet / Laptop (max-width: 1200px) */
@media (max-width: 1200px) {
    .vid-info__name {
        font-size: 3.5rem;
    }

    .vid-info__cta {
        font-size: 3rem;
        padding: 0 15px;
    }
}

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .vid-info__name {
        font-size: 3rem;
    }

    .vid-info__cta {
        font-size: 2.5rem;
        padding: 10px 30px;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .vid-info__name {
        font-size: 1.8rem;
        /* Drastic reduction for mobile readability */
        margin-bottom: 1.5rem;
        line-height: 1.4;
    }

    .vid-info__cta {
        font-size: 1.5rem;
        padding: 15px 20px;
        width: 90%;
        white-space: normal;
        /* Allow text wrapping if needed */
        line-height: 1.2;
    }

    .video-background {
        height: 100vh;
    }

    #vidtop-content {
        padding: 15px;
        /* Reduce padding on mobile */
    }
}

/* Aspect Ratio Queries for Perfect Video Cover */
@media (min-aspect-ratio: 16/9) {
    .video-foreground iframe {
        width: 100vw;
        height: 56.25vw;
    }
}

@media (max-aspect-ratio: 16/9) {
    .video-foreground iframe {
        width: 177.78vh;
        height: 100vh;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .vid-info__name {
        font-size: 1.5rem;
    }

    .vid-info__cta {
        font-size: 1.2rem;
        padding: 12px 15px;
    }
}