/* 
   Yanis Delivery Website Stylesheet
   Modern and attractive design for a delivery service company in Morocco
*/

/* Base Styles and Variables */
:root {
    --primary-color: #FF8C00; /* Yanis Delivery orange */
    --secondary-color: #2C4C6B; /* Yanis Delivery navy blue */
    --accent-color: #FF8C00; /* Yanis Delivery orange */
    --text-color: #333333; /* Dark text */
    --light-text: #666666;
    --white: #fff;
    --light-bg: #F2F2F2;
    --border-color: #e0e0e0;
    --box-shadow: 0 10px 30px rgba(44, 76, 107, 0.1);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius: 12px;
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

p {
    margin-bottom: 15px;
}

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

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

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

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

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

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

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

.btn-block {
    display: block;
    width: 100%;
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-header p {
    color: var(--light-text);
    font-size: 1.1rem;
}

/* Header Styles */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
	padding:15px 0px;
    height: var(--header-height);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    height: 70px;
}

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

.logo {
    max-width: 150px;
}

.logo img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.nav ul {
    display: flex;
	align-items:center;
}

.nav ul li {
    margin-left: 30px;
}

.nav ul li a {
    font-weight: 500;
    position: relative;
}

.nav ul li a:not(.btn):hover {
    color: var(--primary-color);
}

.nav ul li a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav ul li a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}

/* Hero Section */
.hero {
    padding-top: 150px;
    padding-bottom: 80px;
    background: linear-gradient(to right, var(--secondary-color) 0%, rgba(26, 46, 76, 0.9) 100%); 
    background-size: cover;
    background-position: center;
    color: var(--white);
}

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

.hero-content {
    flex: 1;
    max-width: 600px;
}

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

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    text-align: right;
    margin-left: 30px;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.tracking.hero {
    padding: 180px 0 100px;
    background: linear-gradient(135deg, var(--white) 0%, var(--light-bg) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    height: 400px;
    background-color: rgba(255, 140, 0, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 300px;
    height: 300px;
    background-color: rgba(44, 76, 107, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

.hero-image {
    position: relative;
    z-index: 1;
    animation: floatAnimation 3s ease-in-out infinite alternate;
}

/* About Section */
.about {
    background-color: var(--light-bg);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.about-image img {
	display:block;
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.02);
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-top: 20px;
}

.stats {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    flex: 1;
    margin: 0 10px;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-text {
    color: var(--light-text);
    font-size: 0.9rem;
}

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

.service-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

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

.service-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(230, 126, 34, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.service-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.service-card h3 {
    margin-bottom: 15px;
}

/* CTA Band */
.cta-band {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 60px 0;
}

.cta-content h2 {
    text-align: center;
    color: var(--white);
    margin-bottom: 40px;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.feature {
    text-align: center;
}

.feature i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature h3 {
    color: var(--white);
    margin-bottom: 10px;
}

.feature p {
    color: rgba(255, 255, 255, 0.8);
}

/* Cities & Fees Section */
.cities-table {
    overflow-x: auto;
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

table th, table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

table th {
    background-color: var(--secondary-color);
    color: var(--white);
    font-weight: 600;
}

table tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.02);
}

table tr:hover {
    background-color: rgba(230, 126, 34, 0.05);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    gap: 20px;
}

.pagination button {
    padding: 8px 15px;
    font-size: 0.9rem;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination #pageInfo {
    font-weight: 500;
}

.cities-note {
    text-align: center;
    color: var(--light-text);
    font-style: italic;
}

/* Tracking Section */
.tracking {
    padding: 80px 0;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.tracking::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background-color: rgba(139, 195, 74, 0.1);
    border-radius: 50%;
    z-index: 0;
}

.tracking::after {
    content: '';
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 150px;
    height: 150px;
    background-color: rgba(46, 125, 50, 0.1);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    z-index: 0;
}

.tracking-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.tracking-form-container {
    flex: 1;
    max-width: 500px;
}

.tracking-form {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.tracking-form .form-group {
    margin-bottom: 20px;
}

.tracking-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--secondary-color);
}

.tracking-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: var(--transition);
}

.tracking-form input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(139, 195, 74, 0.2);
}

.track-btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.track-btn i {
    margin-right: 8px;
}

.tracking-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tracking-image img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
}

.form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: var(--border-radius);
    font-size: 14px;
    text-align: center;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
}

.form-message.info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    position: relative;
    background-color: var(--white);
    margin: 50px auto;
    padding: 0;
    width: 90%;
    max-width: 700px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    color: var(--secondary-color);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-header {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 20px 30px;
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
}

.modal-header h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
}

.modal-header p {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
}

.modal-body {
    padding: 30px;
}

/* Timeline Styles */
.tracking-timeline {
    position: relative;
    padding: 20px 0;
}

.tracking-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 4px;
    background-color: var(--primary-color);
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 30px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--white);
    border: 4px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    z-index: 1;
}

.timeline-content {
    background-color: var(--light-bg);
    padding: 15px 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.timeline-content h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: var(--secondary-color);
}

.timeline-date {
    font-size: 14px;
    color: var(--light-text);
    margin: 0;
}

/* Status Colors */
.status-pending {
    border-color: #ffc107;
    color: #856404;
}

.status-processing {
    border-color: #17a2b8;
    color: #0c5460;
}

.status-shipped {
    border-color: #6c757d;
    color: #383d41;
}

.status-in-transit {
    border-color: #007bff;
    color: #004085;
}

.status-out-for-delivery {
    border-color: #28a745;
    color: #155724;
}

.status-delivered {
    border-color: #28a745;
    color: #155724;
}

.status-failed {
    border-color: #dc3545;
    color: #721c24;
}

.status-unknown {
    border-color: #6c757d;
    color: #383d41;
}

/* Signup Section */
.signup {
    background-color: var(--light-bg);
}

.signup-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.signup-image {
    flex: 1;
}

.signup-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.signup-form {
    flex: 1;
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.2);
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding-top: 70px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo p {
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.footer h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links ul li a:hover {
    color: var(--primary-color);
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact ul li i {
    margin-right: 10px;
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* Thank You Page Styles */
.thankyou {
    padding-top: 150px;
    padding-bottom: 80px;
}

.thankyou-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.thankyou-icon {
    font-size: 5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.thankyou h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.next-steps {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    margin: 30px 0;
    text-align: left;
}

.next-steps h3 {
    margin-bottom: 20px;
}

.next-steps ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.next-steps ul li i {
    color: var(--primary-color);
    margin-right: 10px;
}

.thankyou-buttons {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.thankyou-image {
    margin-top: 50px;
    max-width: 400px;
    margin: 50px auto 0;
}

.thankyou-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .about-content,
    .signup-content,
    .tracking-content {
        flex-direction: column;
    }
    
    .about-image,
    .signup-image,
    .tracking-image {
        margin-bottom: 30px;
        order: -1;
    }
    
    .tracking-form-container {
        max-width: 100%;
    }
    
    .stats {
        flex-wrap: wrap;
    }
    
    .stat-item {
        flex: 0 0 calc(50% - 20px);
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    /* Modal responsive styles */
    .modal-content {
        width: 95%;
        margin: 20px auto;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .timeline-item {
        padding-left: 50px;
    }
    
    .nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 70px);
        background-color: var(--white);
        transition: all 0.3s ease-in-out;
        box-shadow: var(--box-shadow);
        z-index: 1000;
        overflow-y: auto;
    }
    
    .nav.active {
        left: 0;
    }
    
    .nav ul {
        flex-direction: column;
        padding: 30px;
    }
    
    .nav ul li {
        margin: 15px 0;
    }
    
    .menu-toggle {
        display: block;
        position: relative;
        z-index: 1001;
    }
    
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: 40px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        margin-left: 0;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
    }
    
    .features {
        grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
    }
    
    .feature {
        margin-bottom: 30px;
    }
    
    .thankyou-buttons {
        flex-direction: column;
    }
    
    .thankyou-buttons .btn {
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    section {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .stat-item {
        flex: 0 0 100%;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes pulseAnimation {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Geometric Shapes */
.shape {
    position: absolute;
    z-index: 0;
    opacity: 0.5;
}

.shape-1 {
    top: 20%;
    right: 10%;
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    animation: rotateAnimation 15s linear infinite;
}

.shape-2 {
    bottom: 15%;
    left: 5%;
    width: 60px;
    height: 60px;
    background-color: var(--secondary-color);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    animation: floatAnimation 8s ease-in-out infinite alternate;
}

.shape-3 {
    top: 40%;
    left: 15%;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
    animation: rotateAnimation 10s linear infinite reverse;
}

/* Speed Lines */
.speed-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.speed-line {
    position: absolute;
    height: 3px;
    background-color: var(--primary-color);
    opacity: 0.3;
    transform-origin: left center;
    animation: speedLineAnimation 2s ease-out infinite;
}

.speed-line:nth-child(1) {
    top: 20%;
    width: 100px;
}

.speed-line:nth-child(2) {
    top: 40%;
    width: 150px;
}

.speed-line:nth-child(3) {
    top: 60%;
    width: 120px;
}

.speed-line:nth-child(4) {
    top: 80%;
    width: 180px;
}

.speed-line:nth-child(5) {
    top: 30%;
    width: 90px;
}

@keyframes speedLineAnimation {
    0% {
        transform: scaleX(0);
        opacity: 0.7;
    }
    100% {
        transform: scaleX(1);
        opacity: 0;
    }
}

/* Section Header Animations */
.section-header h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transition: width 0.8s ease;
}

.section-header.animate h2::after {
    width: 100%;
}

/* Highlight Section Animation */
.highlight-section {
    position: relative;
}

.highlight-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 140, 0, 0.1);
    opacity: 0;
    z-index: -1;
    animation: highlightPulse 1.5s ease-out;
}

@keyframes highlightPulse {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.fade-in.animate {
    opacity: 1;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.animate {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.animate {
    opacity: 1;
    transform: translateX(0);
}
