/* 
    ======================================
    Pattasu Express - Global Styles
    ======================================
*/

:root {
    /* Color Palette */
    --primary: #4A148C;        /* Dark Purple */
    --primary-dark: #2A0850;   /* Deeper Purple for hero */
    --accent: #FFC107;         /* Amber */
    --yellow: #FFD54F;         /* Lighter Yellow */
    --red: #F44336;            /* Error/Don'ts */
    --green: #4CAF50;          /* Success/Do's */
    --white: #FFFFFF;
    --bg-light: #FFF9F2;       /* Light warm background */
    --text-dark: #222222;
    --text-gray: #555555;
    
    /* Typography */
    --font-main: 'Poppins', sans-serif;
    
    /* Layout & Effects */
    --border-radius-sm: 8px;
    --border-radius: 12px;
    --border-radius-lg: 24px;
    --border-radius-pill: 50px;
    
    --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 15px 35px rgba(74, 20, 140, 0.15);
    
    --transition-fast: 0.2s ease;
    --transition: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Typography Utility */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

/* Button Component */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--border-radius-pill);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--text-dark);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 193, 7, 0.6);
    background-color: var(--yellow);
}

/* 
    ======================================
    Header & Navigation
    ======================================
*/
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

.header.scrolled {
    background: rgba(42, 8, 80, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.header-container {
    display: flex;
    align-items: center;
    position: relative;
    padding: 15px 0;
}

.logo {
    position: absolute;
    left: 15px;
    top: -15px;
    width: 260px; /* slightly larger to match image */
    z-index: 1001;
}

.nav-menu {
    margin-left: 280px; /* clear the absolute logo */
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 35px;
}

.nav-link {
    color: var(--white);
    font-size: 15px;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

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

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

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

.contact-pill {
    margin-left: auto;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    padding: 8px 25px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.contact-pill a {
    color: var(--yellow);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-pill a:hover {
    color: var(--white);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
}

/* 
    ======================================
    Hero Section
    ======================================
*/
.hero {
    position: relative;
    background-color: var(--primary-dark);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 160px 0 80px;
    overflow: hidden;
}

/* Simulated Fireworks Background using Radial Gradients */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 15% 30%, rgba(255, 193, 7, 0.15) 0%, transparent 20%),
        radial-gradient(circle at 85% 20%, rgba(244, 67, 54, 0.15) 0%, transparent 25%),
        radial-gradient(circle at 50% 80%, rgba(76, 175, 80, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 75% 60%, rgba(255, 255, 255, 0.1) 0%, transparent 15%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content {
    color: var(--white);
    padding-right: 20px;
}

.welcome-label {
    display: inline-block;
    color: var(--yellow);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.hero-title {
    font-size: 80px;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero-title .highlight {
    color: var(--white); /* Depending on exact design, it might be gradient */
}

.hero-description {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 550px;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.train-img {
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.4));
    max-width: 120%;
    margin-left: -10%;
}

.badge {
    position: absolute;
    top: 50px;
    left: 20px;
    width: 160px;
    height: 160px;
    background: var(--yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 3;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2), inset 0 0 0 5px rgba(255,255,255,0.3);
    border: 2px dashed #B8860B;
}

.badge-text {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 14px;
    line-height: 1.4;
}

/* 
    ======================================
    Features Bar
    ======================================
*/
.features-wrapper {
    position: relative;
    z-index: 10;
    margin-top: -60px;
}

.features-bar {
    background: var(--white);
    border-radius: var(--border-radius-pill);
    padding: 20px 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    box-shadow: var(--shadow-lg);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--white);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.bg-purple { background-color: #7B1FA2; }
.bg-green { background-color: var(--green); }
.bg-dark-purple { background-color: var(--primary); }

.feature-text h3 {
    font-size: 16px;
    margin-bottom: 2px;
    color: var(--text-dark);
}

.feature-text p {
    font-size: 12px;
    color: var(--text-gray);
    line-height: 1.3;
}

/* 
    ======================================
    About Section
    ======================================
*/
.about {
    padding: 100px 0 10px;
    background-color: var(--bg-light);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.sub-heading {
    color: var(--primary);
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 5px;
    display: block;
}

.section-title {
    font-size: 42px;
    color: var(--primary);
    margin-bottom: 25px;
    text-transform: uppercase;
}

.about-desc {
    color: var(--text-gray);
    margin-bottom: 40px;
    font-size: 16px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 10px;
}

.feature-col {
    padding-right: 20px;
    border-right: 1px solid rgba(74, 20, 140, 0.2); /* faint purple line */
}

.feature-col.border-none {
    border-right: none;
    padding-right: 0;
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.feature-header i {
    font-size: 28px;
    color: var(--primary);
}

.feature-header h3 {
    font-size: 18px;
    color: var(--primary-dark);
    font-weight: 700;
}

.feature-col p {
    font-size: 13px;
    color: #444;
    line-height: 1.6;
}

/* 
    ======================================
    Products Section
    ======================================
*/
.products-section {
    padding: 80px 0;
    background-color: var(--white);
}

.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: rgba(74, 20, 140, 0.2);
}

.product-img-wrapper {
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    position: relative;
    background-color: var(--bg-light);
    overflow: hidden;
}

.product-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: var(--transition-slow);
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.1);
}

.product-info {
    padding: 25px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.product-title {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 600;
}

.btn-order {
    width: 100%;
    padding: 10px 20px;
    font-size: 15px;
    border-radius: var(--border-radius-sm);
}

/* 
    ======================================
    Safety First Section
    ======================================
*/
.safety-rules {
    background-color: var(--primary-dark);
    background-image: linear-gradient(rgba(42, 8, 80, 0.75), rgba(42, 8, 80, 0.75)), url('../images/m.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 120px 0 80px;
    color: var(--white);
    position: relative;
}

.safety-rules::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: var(--bg-light);
    border-bottom-left-radius: 50% 60px;
    border-bottom-right-radius: 50% 60px;
    z-index: 1;
}

.safety-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.safety-left {
    width: 48%;
    max-width: 550px;
}

.safety-title {
    font-size: 42px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.safety-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    max-width: 90%;
}

.safety-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 30px;
    border-radius: var(--border-radius-pill);
    font-weight: 700;
    font-size: 22px;
    margin-bottom: 25px;
}

.badge-green {
    background-color: #4CAF50;
    color: var(--white);
}

.badge-red {
    background-color: #F44336;
    color: var(--white);
}

.safety-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 15px;
    line-height: 1.5;
}

.list-green i { color: var(--green); margin-top: 3px; font-size: 18px;}
.list-red i { color: var(--red); margin-top: 3px; font-size: 18px;}

.safety-right {
    width: 48%;
    max-width: 550px;
    padding-top: 120px; /* Align with DOs list roughly */
}

/* 
    ======================================
    Terms & Conditions
    ======================================
*/
.terms {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.terms-header {
    text-align: center;
    margin-bottom: 50px;
}

.terms-header h2 {
    color: var(--primary-dark);
    font-size: 32px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
}

.terms-header h2::before,
.terms-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background-color: rgba(74, 20, 140, 0.3);
}

.terms-header .dot {
    font-size: 20px;
    color: var(--primary-dark);
}

.terms-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    margin-bottom: 0;
    border-top: 1px solid rgba(74, 20, 140, 0.15);
    border-left: 1px solid rgba(74, 20, 140, 0.15);
}

.terms-bottom-grid {
    display: flex;
    justify-content: center;
    border-left: 1px solid rgba(74, 20, 140, 0.15);
}

.tc-card {
    background: transparent;
    border-radius: 0;
    padding: 25px 20px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 15px;
    border-right: 1px solid rgba(74, 20, 140, 0.15);
    border-bottom: 1px solid rgba(74, 20, 140, 0.15);
    box-shadow: none;
    transition: var(--transition);
}

.tc-card:hover {
    background-color: rgba(74, 20, 140, 0.03);
}

.tc-card.wide {
    width: 450px;
    flex-direction: row;
    align-items: flex-start;
}

.tc-icon {
    font-size: 36px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 5px;
}

.tc-card.wide .tc-icon {
    font-size: 36px;
    margin-top: 5px;
}

.tc-content h4 {
    color: var(--primary);
    font-size: 16px;
    margin-bottom: 8px;
}

.tc-content p {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.5;
}

/* 
    ======================================
    Footer
    ======================================
*/
.footer {
    background: linear-gradient(90deg, #3A0B70 0%, #4A148C 100%);
    padding: 25px 0;
    color: var(--white);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
}

.footer-item i {
    color: var(--yellow);
    font-size: 20px;
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-item a:hover {
    color: var(--yellow);
}

/* 
    ======================================
    Animations & Effects
    ======================================
*/
.floating {
    animation: float 6s ease-in-out infinite;
}

.floating-slow {
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform .5s, opacity 1s;
}

.ripple:active::after {
    transform: scale(0, 0);
    opacity: .3;
    transition: 0s;
}

/* Scroll Reveal Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
