/*
 * Plastomer Corporation - Modern Theme 3
 * A sleek, modern design with parallax scrolling, video backgrounds, and angled elements
 */

/* ======================================
   Variables & Base Styles
   ====================================== */
:root {
    --primary-color: #3B82F6;
    --primary-dark: #1D4ED8;
    --primary-light: #60A5FA;
    --secondary-color: #10B981;
    --secondary-dark: #059669;
    --secondary-light: #34D399;
    --dark-color: #1E293B;
    --light-color: #F8FAFC;
    --gray-color: #64748B;
    --gray-light: #E2E8F0;
    --gray-dark: #334155;

    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --box-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --box-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --box-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --border-radius: 0.5rem;
}

/* Typography */
body {
    font-family: 'Roboto', sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--light-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-base);
}

a:hover {
    color: var(--primary-dark);
}

/* ======================================
   Layout & Container
   ====================================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
    position: relative;
}

.section-title {
    position: relative;
    margin-bottom: 3rem;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 4rem;
    height: 0.25rem;
    background-color: var(--primary-color);
}

.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* ======================================
   Header & Navigation
   ====================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-base);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--box-shadow-sm);
}

.header.scrolled {
    box-shadow: var(--box-shadow-md);
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 3rem;
    width: auto;
}

.logo-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    margin-left: 0.75rem;
    color: var(--dark-color);
}

/* Main Navigation */
.main-nav {
    display: flex;
    justify-content: center;
    flex-grow: 1;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--dark-color);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.5rem 0;
    display: block;
    position: relative;
    transition: var(--transition-base);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Animated Dropdown for Nav Items */
.nav-item:hover::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }
    70% {
        transform: translateX(-50%) scale(2);
        opacity: 0;
    }
    100% {
        transform: translateX(-50%) scale(1);
        opacity: 0;
    }
}

/* Mega Menu */
.mega-menu-container {
    position: relative;
}

.mega-menu-toggle {
    background: none;
    border: none;
    color: var(--dark-color);
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition-base);
}

.mega-menu-toggle:hover {
    background-color: var(--primary-light);
    color: white;
}

.mega-menu-toggle i {
    margin-left: 0.5rem;
    transition: var(--transition-base);
}

.mega-menu-toggle.active i {
    transform: rotate(180deg);
}

.mega-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 800px;
    max-width: 90vw;
    background-color: white;
    box-shadow: var(--box-shadow-lg);
    border-radius: var(--border-radius);
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(1rem);
    transition: var(--transition-base);
    z-index: 1000;
}

.mega-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-column h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 0.5rem;
}

.mega-menu-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.mega-menu-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-links li {
    margin-bottom: 0.75rem;
}

.mega-menu-links a {
    color: var(--dark-color);
    font-size: 0.95rem;
    transition: var(--transition-base);
    display: block;
    padding: 0.5rem 0;
    position: relative;
    overflow: hidden;
}

.mega-menu-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--primary-color);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mega-menu-links a:hover {
    color: var(--primary-color);
    padding-left: 0.5rem;
}

.mega-menu-links a:hover::before {
    transform: translateX(0);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--dark-color);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu {
    position: fixed;
    top: 5rem;
    left: 0;
    width: 100%;
    height: calc(100vh - 5rem);
    background-color: white;
    padding: 2rem;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-100%);
    transition: var(--transition-base);
    z-index: 999;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.mobile-menu-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-links li {
    margin-bottom: 1.5rem;
}

.mobile-menu-links a {
    color: var(--dark-color);
    font-size: 1.25rem;
    font-weight: 500;
    transition: var(--transition-base);
    display: block;
}

.mobile-menu-links a:hover {
    color: var(--primary-color);
}

/* ======================================
   Hero Section with Video Background
   ====================================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.hero-content {
    color: white;
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    padding-left: 2rem;
    transform: skewX(-10deg);
    display: inline-block;
    background-color: var(--primary-color);
    padding: 0.5rem 2rem;
    margin-left: -2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* ======================================
   Parallax Sections with Video
   ====================================== */
.parallax-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.parallax-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.parallax-content {
    color: white;
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.parallax-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.parallax-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    position: relative;
    transform: skewX(-10deg);
    display: inline-block;
    background-color: var(--secondary-color);
    padding: 0.5rem 2rem;
    margin-left: -2rem;
}

/* Angled Section Dividers */
.section-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 1;
}

.section-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.section-divider .shape-fill {
    fill: #FFFFFF;
}

/* ======================================
   Buttons & Interactive Elements
   ====================================== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-base);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-md);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-md);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background-color: white;
    color: var(--dark-color);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-md);
}

/* ======================================
   Cards & Features
   ====================================== */
.card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-md);
    overflow: hidden;
    transition: var(--transition-base);
}

.card:hover {
    transform: translateY(-0.5rem);
    box-shadow: var(--box-shadow-lg);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.card-text {
    color: var(--gray-color);
    margin-bottom: 1.5rem;
}

/* ======================================
   Footer
   ====================================== */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 3rem;
    height: 0.125rem;
    background-color: var(--primary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--gray-light);
    transition: var(--transition-base);
}

.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: var(--transition-base);
}

.social-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-light);
    font-size: 0.875rem;
}

/* ======================================
   Responsive Styles
   ====================================== */
@media (max-width: 1200px) {
    .mega-menu {
        grid-template-columns: repeat(2, 1fr);
        width: 600px;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .parallax-title {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .main-nav {
        display: none;
    }

    .mega-menu-container {
        margin-left: auto;
    }

    .mega-menu {
        right: 0;
        left: auto;
    }
}

@media (max-width: 768px) {
    .header-container {
        height: 4rem;
    }

    .logo img {
        height: 2.5rem;
    }

    .mega-menu-container {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .parallax-title {
        font-size: 2.5rem;
    }

    .parallax-subtitle {
        font-size: 1.125rem;
    }

    .section {
        padding: 4rem 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .parallax-title {
        font-size: 2rem;
    }
}

/* ======================================
   Animation Styles
   ====================================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.active {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Three.js Canvas Background */
.three-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}
