/*
Theme Name: Sina Amiri
Theme URI: https://sina.amiry.site
Author: Sina Amiri
Author URI: https://sina.amiry.site
Description: Custom theme for Video Editor and Motion Graphic Designer
Version: 1.0
Text Domain: sina-amiri
*/

/* Basic Styles */
body {
    margin: 0;
    font-family: var(--body-font);
    color: var(--primary-color);
}

.global-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Header Styles */

.modern-header {
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 24, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px -2px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.modern-header.scrolled {
    background: rgba(0, 0, 44, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-logo {
    height: 40px;
    width: auto;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-list li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-list li a:hover {
    color: white;
}

.nav-list li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    transition: width 0.3s ease;
}

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

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.action-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
}

/* Mobile Menu Styles */
.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    cursor: pointer;
}

.hamburger-icon {
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .primary-nav {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 250px;
        background: rgba(0, 0, 44, 0.95);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 0;
        padding: 6rem 2rem 2rem;
        transition: right 0.3s ease;
        z-index: 999;
        backdrop-filter: blur(10px);
    }
    
    .primary-nav.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-list li {
        width: 100%;
        padding: 0.5rem 0;
    }
    
    .nav-list li a {
        width: 100%;
        padding: 1rem;
    }
    
    .hamburger-menu {
        display: flex;
    }
    
    .header-actions {
        margin-top: 2rem;
        width: 100%;
        justify-content: center;
    }
    
    .action-btn {
        width: 80%;
        justify-content: center;
    }
}

.header-left {
    display: flex;
    align-items: center;
}

.header-logo {
    width: 200px; /* Adjust as needed */
}

.header-right {
    display: flex;
    align-items: center;
}

.social-media-links a {
    margin-left: 10px;
    color: var(--header-color);
    text-decoration: none;
}

.social-media-links a:hover {
    text-decoration: underline;
}

.hamburger-menu {
    display: none;
    cursor: pointer;
}

.hamburger-icon {
    font-size: 30px;
    color: var(--header-color);
}

@media (max-width: 768px) {
    .minimal-header {
        flex-direction: row;
        justify-content: space-between;
    }

    .main-nav {
        display: none;
    }

    .hamburger-menu {
        display: flex;
        align-items: center;
    }

    .main-nav.active {
        display: block;
    }
}

@media (max-width: 480px) {
    .header-logo {
        width: 150px; /* Adjust as needed */
    }
}

/* Modern Hero Section */
.hero-section {
    padding: 6rem 0 8rem;
    position: relative;
    overflow: hidden;
    background: rgba(10, 10, 24, 0.7);
    backdrop-filter: blur(5px);
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    min-height: 80vh;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    margin: 0;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 500px;
    line-height: 1.6;
}

.hero-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    margin: 1rem 0;
    border-radius: 2px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.btn-primary, .btn-outline {
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.4);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-3px);
}

/* Hero Media Styles */
.hero-media {
    position: relative;
}

.card-media {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.video-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.play-pulse {
    position: relative;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.play-pulse:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.pulse-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    opacity: 0;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.play-pulse:hover .pulse-circle {
    opacity: 0.3;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        opacity: 0.3;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

.play-icon {
    position: relative;
    z-index: 2;
    width: 24px;
    height: 24px;
}

.hero-poster {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    transition: transform 0.5s ease;
}

.hero-media:hover .hero-poster {
    transform: scale(1.05);
}

.media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 100%);
    border-radius: 15px;
    pointer-events: none;
}

/* Responsive Hero Section */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0 6rem;
    }
    
    .hero-container {
        gap: 3rem;
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-primary, .btn-outline {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4.5rem;
    color: #fff;
    margin: 0 0 1.5rem;
    line-height: 1.05;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    color: rgba(255,255,255,0.85);
    font-size: 1.5rem;
    margin: 0 0 2.5rem;
    font-weight: 300;
}

.hero-divider {
    width: 80px;
    height: 4px;
    background: rgba(255,255,255,0.3);
    margin: 2.5rem 0;
}

.hero-slogan {
    color: #fff;
    font-size: 1.8rem;
    line-height: 1.4;
    margin: 3rem 0 0;
    opacity: 0.9;
    font-weight: 300;
}

.hero-media .card-media {
    position: relative;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    border-radius: 15px;
    overflow: hidden;
    transform: translateZ(0);
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero-media:hover .hero-video {
    opacity: 1;
    transform: scale(1.05);
}

.media-overlay {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: linear-gradient(45deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 100%);*/
    mix-blend-mode: multiply;
}

@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.8rem;
    }
    
    .hero-slogan {
        font-size: 1.6rem;
    }
}

@media (max-width: 1024px) {
    .hero-container {
        gap: 3rem;
        padding: 0 1.5rem;
    }
    
    .hero-title {
        font-size: 3.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-divider {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-media {
        margin-top: 3rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-slogan {
        font-size: 1.3rem;
    }
}

/* Portfolio Section */


/* Modern Testimonial Slider */

/* General Section Styling */
.testimonials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 2rem 1rem;
}

.stars-container {
    width: 100%;
    display: content;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin-bottom: 2rem;
}

.five-stars {
    width: 25vw;
    max-width: 200px;
}

/* Testimonial Slider */
.testimonial-slider {
    position: relative;
    
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    align-items: center;
}

/* Individual Slide */
.testimonial-slide {
     display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1rem 3rem;
    background: #8888882e;
    border-radius: 12px;
    box-shadow: 10px 10px 10px 10px rgb(0 0 0 / 29%);
    position: relative;
    margin: 1rem;
    width: 80%;
    max-width: 600px;
    backdrop-filter: blur(3px);
    color: white;
}

.testimonial-slide.active {
    display: flex;
    animation: slideIn 0.5s ease;
}

/* Testimonial Image (Circular and Overlapping) */
.testimonial-image {
    width: 100px;
    height: 100px;
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: -50px; /* Half of the height to center it */
    left: 50%;
    transform: translateX(-50%);
}

/* Testimonial Content */
.testimonial-content {
    margin-top: 60px; /* Extra margin to account for the overlapping image */
}

blockquote {
    font-size: 1.2rem;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 800px;
    color: white;
}

cite {
    display: block;
    margin-top: 1rem;
    font-style: normal;
    font-weight: 600;
    color: white;
}

/* Slider Controls */
.slider-controls {
    display: none;
    justify-content: space-between;
    align-items: center;
    margin: 2%;
    position: absolute;
    width: 100%;
    top: calc(100% - 3rem);
    color: #00002c;
}

.slider-prev,
.slider-next {
    background: none;
    border: 2px solid #00002c;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-prev:hover,
.slider-next:hover {
    background: #2d2d2d;
    color: #fff;
}

/* Dots */
.slider-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
}

.dot.active {
    background: #2d2d2d;
}

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

/* Modern CTA Button */
.cta-button {
    padding: 1rem 2rem;
    background: #00002c;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    height: min-content;
    width: fit-content;
    position: relative;
    top: 4.5vw;
}

.cta-button:hover {
    background: transparent;
    color: #00002c;
    border-color: #00002c;
}

/* Responsive Design */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-slide {
        padding: 1.5rem;
    }
    
    blockquote {
        font-size: 1rem;
    }
}











/* Portfolio Showcase Section */
/* Portfolio Showcase Section */
.portfolio-showcase {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    background: rgba(10, 10, 24, 0.7);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Grid Layout */
.portfolio-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    padding: 0 1rem;
}

/* Portfolio Cards */
.portfolio-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    transform: translateY(0);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.portfolio-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(99, 102, 241, 0.3);
}

.portfolio-link {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* Card Inner */
.card-inner {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Video Media Section */
.card-media {
    position: relative;
    padding-top: 60%; /* 3:2 aspect ratio */
    overflow: hidden;
    border-radius: 15px;
}

.category-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-card:hover .category-poster {
    transform: scale(1.05);
}

.media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
    border-radius: 15px;
    transition: background 0.3s ease;
}

.portfolio-card:hover .media-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.8) 100%);
}

/* Video Controls */
.video-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-card:hover .video-controls {
    opacity: 1;
}

/* Play Button */
.play-pulse {
    position: relative;
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.play-pulse:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.pulse-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    opacity: 0;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.play-pulse:hover .pulse-circle {
    opacity: 0.3;
}

.play-icon {
    position: relative;
    z-index: 2;
    width: 24px;
    height: 24px;
    fill: white;
}

/* Project Count */
.project-count {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.project-count span {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.project-count small {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Card Content */
.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.75rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

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

/* Category Title */
.category-title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-title:before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 2px;
}

/* Category Description */
.category-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .portfolio-grid-modern {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .portfolio-showcase {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .portfolio-grid-modern {
        gap: 2rem;
    }
    
    .card-media {
        padding-top: 70%; /* Slightly taller for mobile */
    }
    
    .category-title {
        font-size: 1.25rem;
    }
    
    .category-description {
        font-size: 0.9rem;
    }
}

.portfolio-showcase .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    color: #fff;
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin-bottom: 3rem;
}


.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: rgba(255,255,255,0.3);
}

.section-subtitle {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Grid Layout */
.portfolio-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-items: center;
    padding: 0 1rem;
}

/* Portfolio Cards */
.portfolio-card {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
	
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.4);
}

.card-inner {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: #000;
}

/* Video Media Section */
.card-media {
    position: relative;
    padding-top: 125%;
}

.category-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.portfolio-card:hover .category-video {
    opacity: 1;
    transform: scale(1.05);
}

.media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%);*/
    mix-blend-mode: multiply;
}

/* Video Controls */
.video-controls {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    display: flex;
    gap: 1rem;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-card:hover .video-controls {
    opacity: 1;
}

/* Play Button */
.play-pause {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    padding: 10px;
    transition: transform 0.3s ease;
}

.play-pause:hover {
    transform: scale(1.1);
}

.play-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Utility Controls */
.control-buttons {
    position: absolute;
    top: 1rem;
    
    display: flex;
    gap: 0.5rem;
    z-index: 4;
}

/* Fullscreen and Mute Buttons */
.fullscreen,
.mute-toggle {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-icon,
.mute-icon {
    width: 24px;
    height: 24px;
    fill: #00002c;
    transition: transform 0.3s ease;
}

.fullscreen:hover .fullscreen-icon,
.mute-toggle:hover .mute-icon {
    transform: scale(1.1);
}

/* Mute State */
.mute-toggle.muted .mute-icon {
    fill: #ff0000;
}

/* Project Count */
.project-count {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255,255,255,0.1);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    text-align: center;
}

.project-count span {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.project-count small {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.8);
}

/* Card Content */
.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: -webkit-fill-available;
    padding: 2rem 1.5rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card-title {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    width: 100%;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    opacity: 0;
	    text-shadow: 0 0 14px black;
}

.portfolio-card:hover .card-title {
    transform: translateY(0);
    opacity: 1;
}

/* CTA Button */
.cta-modern {
    display: inline-flex
;
    align-items: center;
    gap: 0.75rem;
    color: #fff;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    backdrop-filter: blur(5px);
    transition: all 0.3sease;
    justify-content: center;
    width: 10vw;
    font-size: 1.1vw;
    margin: 10px auto 0;
	text-shadow: 0 0 5px black;
	box-shadow: 0px 0px 20px 0px #00000094;
}

.cta-modern:hover {
    background: rgba(255,255,255,0.2);
    padding-right: 2rem;
	box-shadow: 0px 0px 20px 7px #00000094;
	transition: padding-right 0.3s ease, box-shadow 0.3s ease;
}

.arrow {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .portfolio-grid-modern {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .portfolio-showcase {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .portfolio-grid-modern {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .play-pause {
        width: 50px;
        height: 50px;
    }
    
    .fullscreen,
    .mute-toggle {
        width: 35px;
        height: 35px;
        padding: 6px;
    }
    
    .project-count {
        top: 1rem;
        right: 1rem;
        padding: 0.5rem 0.75rem;
    }
    
    .project-count span {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.75rem;
    }
    
    .cta-modern {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
    
    .card-content {
        padding: 1.5rem 1rem;
    }
}
















/* Modern About Section */
.about-modern {
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
    color: #fff;
	backdrop-filter: blur(2px);
    box-shadow: -2px -1px 20px 20px rgb(0 0 0 / 29%);
	background: #0a0a18ab;
}

.about-modern .container {
    position: relative;
    z-index: 2;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.profile-media {
    position: relative;
    max-width: 500px;
}

.profile-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    transform: rotate(-3deg);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}

.profile-image img {
    width: 100%;
    height: auto;
    display: block;
    transform: rotate(3deg);
    transition: transform 0.3s ease;
}

.profile-image:hover img {
    transform: rotate(0) scale(1.05);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: #fff;
    color: #00002c;
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.experience-badge span {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.experience-badge small {
    font-size: 0.9rem;
    opacity: 0.8;
}

.motion-graphic {
    position: absolute;
    top: -30px;
    left: -30px;
    width: 150px;
    height: 150px;
}

.shape-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    animation: pulse 6s infinite;
}

.shape-triangle {
    position: absolute;
    width: 40%;
    height: 40%;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    background: rgba(255,255,255,0.15);
    top: 20%;
    left: 30%;
    animation: rotate 15s linear infinite;
}

.shape-wave {
    position: absolute;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
}

.about-content .section-title {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.highlight {
    color: #fff;
    position: relative;
    display: inline-block;
}

.highlight:after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.3);
    z-index: -1;
}

.about-text .lead {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.signature {
    margin: 2rem 0;
    opacity: 0.8;
}

.signature img {
    height: 50px;
}

.agency-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.agency-info:hover {
    transform: translateX(10px);
}

.agency-icon {
    width: 40px;
    height: 40px;
    fill: #fff;
}

.agency-details p {
    margin: 0;
}

.agency-title {
    font-size: 0.9rem;
    opacity: 0.7;
}

.agency-link {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.3s ease;
}

.agency-link:hover {
    opacity: 0.8;
}

.arrow {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

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

@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .profile-media {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .about-content .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .about-modern {
        padding: 4rem 0;
    }
    
    .experience-badge {
        padding: 1rem;
        bottom: -15px;
        right: -15px;
    }
    
    .experience-badge span {
        font-size: 2rem;
    }
}


/* Play/Pause Button Styling */
.play-pause {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    padding: 12px;
}

.play-pause svg {
    width: 100%;
    height: 100%;
    fill: #000;
}

.play-pause.playing .play-icon {
    display: none;
}

.play-pause.playing .pause-icon {
    display: block;

}






/* Hero Video Controls */
.hero-media .video-controls {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-media .video-container:hover .video-controls {
    opacity: 1;
}

.hero-media .play-pause {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    padding: 15px;
    transition: transform 0.3s ease;
}

.hero-media .play-pause img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.hero-media .control-buttons {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 4;
}

.hero-media .mute-toggle,
.hero-media .fullscreen {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    padding: 8px;
    transition: all 0.3s ease;
}

.hero-media .mute-toggle:hover,
.hero-media .fullscreen:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

/* Match portfolio overlay behavior */
.hero-media .media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 100%);
    mix-blend-mode: multiply;
    transition: opacity 0.3s ease;
}




/* YouTube Modal Styles */
.video-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(0 0 0 / 80%); /* Increased opacity for better visibility */
    z-index: 999999; /* Increased z-index to ensure it's above everything */
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.video-modal {
    position: relative;
    width: 90%;
    max-width: 1200px;
    background: rgba(0, 0, 44, 0.9);
    border-radius: 15px;
    padding: 20px;
    animation: modalSlideIn 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.close-modal {
    position: relative;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 1;
    margin-top: 40px;
}

.close-modal:hover {
    transform: rotate(90deg);
}

.youtube-embed-wrapper {
    position: relative;
    padding-bottom: 50%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
}

.youtube-embed-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-description {
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 1.2rem;
    opacity: 0.9;
    margin-top: 20px;
}

@keyframes modalSlideIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Adjust existing video controls */
.video-controls {
    cursor: pointer;
}
.hero-poster, .category-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}


/*    Sub Category Page  styles   */

.subcategory-row{
    display: flex;
    align-items: flex-start;
    justify-content: center;
	    padding-bottom: 50px;

}



@media (max-width: 768px) {

    .subcategory-row{

        flex-direction: column-reverse;
    }

	.drive-frame{

	height: auto;
}

}

.copy-link-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    background-color: #404;
    color: #fff;
    height: max-content;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.copy-link-button:hover {
    background-color: #606;
}

.copy-link-button img {
    width: 50px;
    height: 50px;
scale: 1.5;
}


/*  google drive video player */


.drive-embed-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

#drive-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


.google-drive-container{

    display: inline-block;
    height: 60vh;
    justify-self: center;

}

.drive-frame{

    border-radius: 2%;
    border: none;
    aspect-ratio: 16 / 9;
    width: auto;
    
    justify-self: center;

}




/* portfolio item grid page styles  */


/* Category Showreel Styles */



/* Container for each subcategory section */
.subcategory-section {
    margin-bottom: 4rem;
}

/* Flex container for showreel and portfolio grid */
.category-showreel-and-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
}

/* Category Showreel Styling */
.category-showreel {
    flex: 1 1 40%; /* Adjust as needed */
    position: relative;
}

.category-showreel img {
    width: 100%;
    height: auto;
    display: block;
}

.category-showreel .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-showreel:hover .overlay {
    opacity: 1;
}

.category-showreel .category-info {
    margin-top: 1rem;
}

.category-showreel h2 {
    font-size: 2em;
    margin-bottom: 0.5rem;
}

.category-showreel .video-description {
    font-size: 1rem;
    line-height: 1.6;
}

/* Portfolio Grid Styling */
.portfolio-grid {
    flex: 1 1 55%; /* Adjust as needed */
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
align-self: center;
}

.portfolio-item {
    width: calc(50% - 15px); /* Two items per row */
    position: relative;
}

.portfolio-item img {
    width: 100%;
    height: auto;
    display: block;
}

.portfolio-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .overlay {
    opacity: 1;
}

.portfolio-item h3 {
    margin-top: 0.5rem;
    font-size: 1.2rem;
}

.portfolio-item p {
    font-size: 1rem;
}

.little-card{

width:29%;


}
.big-card{
    max-width: 35vw;
    align-self: center;

}
@media (max-width: 768px) {

.little-card{

width:100%;


}

.big-card{
    max-width: 100%;
    align-self: center;

}
}

.portfolio-card.little-card:hover {
    box-shadow: 7px 3px 80px 7px blue;
}






/*  front-page cta button   */

/* From Uiverse.io by cssbuttons-io */ 
.learn-more {
 position: relative;
 display: inline-block;
 cursor: pointer;
 outline: none;
 border: 0;
 vertical-align: middle;
 text-decoration: none;
 background: transparent;
 padding: 0;
 font-size: inherit;
 font-family: inherit;
}

a.learn-more {
 width: 17rem;
 height: auto;
}
.card-actions {
    justify-self: center;
    padding-top: 10px;
}

a.learn-more .circle {
 transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
 position: relative;
 display: block;
 margin: 0;
 width: 3rem;
 height: 3rem;
 background: #282936;
 border-radius: 1.625rem;
}

a.learn-more .circle .icon {
 transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
 position: absolute;
 top: 0;
 bottom: 0;
 margin: auto;
 background: #fff;
}

a.learn-more .circle .icon.arrow {
 transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
 left: 0.625rem;
 width: 1.125rem;
 height: 0.125rem;
 background: none;
}

a.learn-more .circle .icon.arrow::before {
 position: absolute;
 content: "";
 top: -0.29rem;
 right: 0.0625rem;
 width: 0.625rem;
 height: 0.625rem;
 border-top: 0.125rem solid #fff;
 border-right: 0.125rem solid #fff;
 transform: rotate(45deg);
}

a.learn-more .button-text {
 transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
 position: absolute;
 top: 0;
 left: 0;
 right: 0;
 bottom: 0;
 padding: 0.75rem 2rem;
 margin: 0 0 0 1.85rem;
 color: #282936;
 font-weight: 700;
 line-height: 1.6;
 text-align: center;
 text-transform: uppercase;
 width:max-content
}

a:hover .circle {
 width: 108%;
}

a:hover .circle .icon.arrow {
 background: #fff;
 transform: translate(0.5rem, 0);
}

a:hover .button-text {
 color: #fff;
}


.footer-content{
	margin-top: 50px;
	margin-bottom: 50px;
}


/* Pricing Section */
.pricing-section {
    margin-inline: 4rem;
    padding: 4rem 0;
    background: var(--pricing-bg, #f9f9f9);
    color: #00002c;
}

.pricing-grid {
    display: flex;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3%;
    margin-top: 3rem;
    justify-content: space-around;
    text-align: center;
}

.pricing-card {
    background: linear-gradient(197deg, #01082b, #9378ff7d);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px 6px #5e5eed80;
    transition: transform 0.3s ease;
    width: -webkit-fill-available;
    color: white;

}

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

.plan-price {
    font-size: 3rem;
    font-weight: 700;
    color: #00002c;
    margin: 1rem 0;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.plan-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

/* Contact Modal */
.form-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 9999;
}

.form-modal {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.modal-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    cursor: pointer;
    font-size: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    margin-bottom: 1rem;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

@media (max-width: 768px) {

    .pricing-card {
        
        min-width: none;
    }

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


.pricing-section {
    padding: 4rem 0;
}

.pricing-type-group {
    margin-bottom: 4rem;
}

.plan-type-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}



.plan-price {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 1rem 0;
}

.plan-duration, .working-days {
    color: #666;
    margin-bottom: 1rem;
}

.plan-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.plan-features li:before {
    content: "✓";
    margin-right: 0.5rem;
    color: green;
}
/* Pricing Cards */
.price-duration-list {
    margin: 1rem 0;
    border-bottom: 1px solid #eee;
}

.price-duration-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-top: 1px solid #eee;
}

.price-duration-item .duration {
    color: white;
}

.price-duration-item .price {
    font-weight: bold;
    color: var(--primary-color);
}

/* Admin Repeater Styles */
.repeater-item {
    margin-bottom: 1rem;
    padding: 0.5rem;
    border: 1px solid #ddd;
}

.repeater-item input[type="text"] {
    margin-right: 1rem;
    width: 200px;
}



.price-duration-list {
    margin: 1rem 0;
    border-top: 1px solid #eee;
}

.price-duration-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.example-video-button {
    background: #007bff;
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    margin: 1rem 0;
    font-size: large;
}

.example-video-button:hover {
    background: #0056b3;
}

.open-form:hover{
    translate: 0vh -2px;
    box-shadow: 0px 0px 20px 7px #2c12e5cc;
    transition: translate 0.2s ease;
    padding-right: 0;
    padding-left: 0;
}

.post-container{
    
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #ffffff1a;
    box-shadow: 0 10px 30px 6px #ffffff29;
    margin-inline: auto;
    backdrop-filter: blur(2px) brightness(1.2);

}

.post-image .img {
    border-radius: 10rem;
}

.loading-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}



/* single pricing plan styles */

/* Single Plan Styling */
.plan-single {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.plan-header {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.plan-image {
    border-radius: 8px;
    overflow: hidden;
}

.plan-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

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

.plan-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.plan-content {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.price-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 1rem;
    color:#00002c;
    
}

.price-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 4px;
}

.plan-cta {
    text-align: center;
    margin: 3rem 0;
}

@media (min-width: 768px) {
    .plan-header {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
    
    .plan-content {
        grid-template-columns: 2fr 1fr;
    }
}


/* blog post style */





/* Center the content with a max width */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Style the post container */
.post-container {
    background-color: #fff; /* White background for readability */
    padding: 40px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    margin-top: 60px;
    margin-bottom: 60px;
    border-radius: 8px; /* Rounded corners */
}

/* Responsive post image */
.post-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Post title */
.blog-section-title {
    font-family: 'Arial', sans-serif; /* Adjust to your site’s font */
    font-size: 2.5em;
    color: #222; /* Dark color for contrast */
    margin-bottom: 20px;
    text-align: left;
}

/* Flexbox layout for content and sidebar */
.content-wrapper {
    display: flex;
    justify-content: space-between;
}

/* Main content area */
.post-content {
    flex: 1; /* Takes up remaining space */
    margin-right: 20px; /* Space between content and sidebar */
    font-family: 'Arial', sans-serif; /* Adjust to your site’s font */
    font-size: 1.1em;
    line-height: 1.8; /* Better readability */
    color: #333; /* Dark gray for contrast */
}

/* Sidebar styling */
.sidebar {
    width: 300px;
    position: sticky;
    top: 90px;
    color: #00002c;

    
}

/* Comment section */
.comment-section {
    margin-top: 40px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column; /* Stack content and sidebar */
    }
    .post-content {
        margin-right: 0;
    }
    .sidebar {
        width: 100%;
        margin-top: 20px;
    }
    .blog-section-title {
        font-size: 2em;
    }
    .post-content {
        font-size: 1em;
    }
    .post-container {
        padding: 20px;
    }
}












    /* Root colors */
    :root {
        --bg-color: #00002c;
        --primary-bg: #000044;
        --secondary-bg: #00002c;
        --text-color: #ffffff;
        --accent-color: #1e90ff;
        --accent-light: #63b3ed;
        --overlay: rgba(0, 0, 0, 0.6);
        --section-bg: rgba(0, 0, 44, 0.8);
        --border-color: var(--accent-light);
      }
  
      /* Reset */
      * { margin: 0; padding: 0; box-sizing: border-box; }
      body { font-family: 'Segoe UI', sans-serif; background: var(--bg-color); color: var(--text-color); }
      a { color: var(--accent-color); text-decoration: none; }
      .container { width: 90%; max-width: 1100px; margin: auto; }
  
      /* Hero Section */
      .hero {
        background: url('images/hero-bg.jpg') center/cover no-repeat;
        position: relative;
        color: var(--text-color);
        background-attachment: fixed;
      }
      .hero::before {
        content: '';
        position: absolute; top: 0; left: 0; right: 0; bottom: 0;
        background: var(--overlay);
        z-index: 1;
      }
      .hero .container {
        position: relative; z-index: 2;
        padding: 4rem 0;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        align-items: center;
        gap: 2rem;
      }
      .hero-content h1 { color: var(--accent-color); font-size: 2.5rem; margin-bottom: 1rem; }
      .hero-content p { font-size: 1.125rem; line-height: 1.5; }
      .hero-form {
        background: rgb(56 56 255 / 10%);
    padding: 2rem;
    border-radius: 8px;
    backdrop-filter: blur(5px);
      }
      .hero-form .field { margin-bottom: 1rem; }
      .hero-form input,
      .hero-form textarea {
        width: 100%; padding: 0.75rem;
        background: whitesmoke;
        border: 1px solid var(--border-color);
        border-radius: 4px;
        color: var(--text-color);
      }
      .hero-form button {
        width: 100%; padding: 0.75rem;
        background: var(--accent-color);
        border: none; border-radius:4px;
        font-size:1rem; cursor:pointer;
      }
      .hero-form button:hover { opacity: .9; }
      .consent { font-size:0.875rem; color:#888; margin-top:0.5rem; }
  
      /* Background wrappers */
      .primary-bg { 
        background-image: url(images/second-bg.jpg);
    background-size: cover;
    background-attachment: fixed;
    background-color: #00011c87;
    background-blend-mode: overlay;
       }
      .secondary-bg { 
        background-image: url(images/third-bg.jpg);
        background-size: cover;
        background-attachment: fixed;
        background-color: #252525fc;
        background-blend-mode: overlay; }
  
      /* Blurry transparent cards */
      .card {
        background: rgba(0, 0, 44, 0.5);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(99, 179, 237, 0.3);
        padding: 1.5rem; border-radius: 8px; text-align: center;
      }
      .card h3 { margin-bottom: 1rem; }
      .card p { font-size: 0.9rem; line-height: 1.4; }
  
      /* Sections and grids */
      section { padding: 3rem 0; }
      .section-title { text-align: center; margin-bottom: 2rem; }
      .section-title h2 { color: var(--accent-color); font-size: 2rem; }
      .grid { display: grid; gap: 2rem; }
      .grid-3 { grid-template-columns: repeat(3, 1fr); }
      .grid-4 { grid-template-columns: repeat(4, 1fr); }
  
      /* FAQs */
      .faqs { max-width: 800px; margin: 4rem auto; text-align: center; }
      .faq-item { margin-bottom: 1rem; }
      .faq-item details {
        background: var(--section-bg);
        padding: 1rem 1.5rem;
        border-radius: 6px;
        border: 1px solid var(--accent-light);
      }
      .faq-item summary { font-size: 1rem; cursor: pointer; list-style: none; outline: none; }
      .faq-item summary::-webkit-details-marker { display: none; }
      .faq-item summary::after { content: '+'; float: right; font-size: 1.25rem; }
      .faq-item details[open] summary::after { content: '-'; }
      .faq-item p { margin-top: 0.5rem; font-size: 0.95rem; line-height: 1.4; }
  
      /* Section descriptions padding */
      .section-description { max-width: 900px; margin: 0 auto; padding: 0 1rem; }
  
      /* Responsive adjustments */
      @media(max-width: 768px) {
        .grid-3, .grid-4 { grid-template-columns: 1fr; }
        .section-title h2 { font-size: 1.75rem; }
        .hero-content h1 { font-size: 2rem; }
      }


      /*  free sample button  */


      /* From Uiverse.io by MuhammadHasann */ 
.free-sample-button {
    --black-700: hsl(244.21deg 100% 20.15%);
    --border_radius: 9999px;
    --transtion: 0.3s ease-in-out;
    --offset: 2px;
  
    cursor: pointer;
    position: relative;
  
    display: flex;
    align-items: center;
    gap: 0.5rem;
  
    transform-origin: center;
  
    padding: 1rem 2rem;
    background-color: transparent;
  
    border: none;
    border-radius: var(--border_radius);
    transform: scale(calc(1 + (var(--active, 0) * 0.1)));
  
    transition: transform var(--transtion);
  }
  
  .free-sample-button::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  
    width: 100%;
    height: 100%;
    background-color: var(--black-700);
  
    border-radius: var(--border_radius);
    box-shadow: inset 0 0.5px hsl(0, 0%, 100%), inset 0 -1px 2px 0 hsl(0, 0%, 0%),
      0px 4px 10px -4px hsla(0 0% 0% / calc(1 - var(--active, 0))),
      0 0 0 calc(var(--active, 0) * 0.375rem) hsl(260 97% 50% / 0.75);
  
    transition: all var(--transtion);
    z-index: 0;
  }
  
  .free-sample-button::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  
    width: 100%;
    height: 100%;
    background-color: hsla(260 97% 61% / 0.75);
    background-image: radial-gradient(
        at 51% 89%,
        hsla(266, 45%, 74%, 1) 0px,
        transparent 50%
      ),
      radial-gradient(at 100% 100%, hsla(266, 36%, 60%, 1) 0px, transparent 50%),
      radial-gradient(at 22% 91%, hsla(266, 36%, 60%, 1) 0px, transparent 50%);
    background-position: top;
  
    opacity: var(--active, 0);
    border-radius: var(--border_radius);
    transition: opacity var(--transtion);
    z-index: 2;
  }
  
  .free-sample-button:is(:hover, :focus-visible) {
    --active: 1;
  }
  .free-sample-button:active {
    transform: scale(1);
  }
  
  .free-sample-button .dots_border {
    --size_border: calc(100% + 2px);
  
    overflow: hidden;
  
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  
    width: var(--size_border);
    height: var(--size_border);
    background-color: transparent;
  
    border-radius: var(--border_radius);
    z-index: -10;
  }
  
  .free-sample-button .dots_border::before {
    content: "";
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    transform-origin: left;
    transform: rotate(0deg);
  
    width: 100%;
    height: 2rem;
    background-color: white;
  
    mask: linear-gradient(transparent 0%, white 120%);
    animation: rotate 2s linear infinite;
  }
  
  @keyframes rotate {
    to {
      transform: rotate(360deg);
    }
  }
  
  .free-sample-button .sparkle {
    position: relative;
    z-index: 10;
  
    width: 1.75rem;
  }
  
  .free-sample-button .sparkle .path {
    fill: currentColor;
    stroke: currentColor;
  
    transform-origin: center;
  
    color: hsl(0, 0%, 100%);
  }
  
  .free-sample-button:is(:hover, :focus) .sparkle .path {
    animation: path 1.5s linear 0.5s infinite;
  }
  
  .free-sample-button .sparkle .path:nth-child(1) {
    --scale_path_1: 1.2;
  }
  .free-sample-button .sparkle .path:nth-child(2) {
    --scale_path_2: 1.2;
  }
  .free-sample-button .sparkle .path:nth-child(3) {
    --scale_path_3: 1.2;
  }
  
  @keyframes path {
    0%,
    34%,
    71%,
    100% {
      transform: scale(1);
    }
    17% {
      transform: scale(var(--scale_path_1, 1));
    }
    49% {
      transform: scale(var(--scale_path_2, 1));
    }
    83% {
      transform: scale(var(--scale_path_3, 1));
    }
  }
  
  .free-sample-button .text_button {
    position: relative;
    z-index: 10;
  
    background-image: linear-gradient(
      90deg,
      hsla(0 0% 100% / 1) 0%,
      hsla(0 0% 100% / var(--active, 0)) 120%
    );
    background-clip: text;
  
    font-size: 1rem;
    color: white;
  }
  
  @media(max-width: 768px){
    .free-sample-button .text_button{
        font-size: unset;
    }
  }

  /* sidebar cta catalog */

  .sidebar-widget {
    width: 100%;
    background-image: url('images/sidebar cta bg.jpg');
    background-size: cover;
    padding: 20px;
    color: white;
    text-align: center;
    box-sizing: border-box;
    position: relative;
    height: 512px;
    border-radius: 20px;
    display: flex
;
    flex-direction: column;
    align-items: center;
}

.main-text {
font-size: 18px;
font-weight: bold;
text-transform: uppercase;
text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.claim-text {
font-size: 24px;
font-weight: bold;
text-transform: uppercase;
text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
margin: 10px 0;
}

.info-text {
font-size: 14px;
margin: 10px 0;
text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

.cta-button {
background: linear-gradient(to bottom, #800080, #4B0082);
color: white;
padding: 10px 20px;
border: none;
border-radius: 5px;
text-transform: uppercase;
font-weight: bold;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
cursor: pointer;
display: inline-block;
}

/* Responsive Design */
@media (max-width: 600px) {
.sidebar-widget {
width: 100%;
}
.main-text {
font-size: 16px;
}
.claim-text {
font-size: 20px;
}
.info-text {
font-size: 12px;
}
}

.call-to-action {
    min-height: 200px;
}



/* style for Client Dashboard (project stats) */

/* General Dashboard Styles (if not already present) */
.dashboard-section {
    background-color: #f9f9f9; /* Light grey background for sections */
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.dashboard-section .section-title {
    font-size: 1.8em;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

/* Project Stats Specific Styles */
.project-stats .project-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
    gap: 25px;
}

.project-item {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-item:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.project-title {
    font-size: 1.3em;
    font-weight: 600;
    color: #00002c; /* Your theme's dark blue */
    margin: 0;
}

.project-status-label {
    font-size: 0.85em;
    color: #fff;
    padding: 5px 12px;
    border-radius: 15px;
    font-weight: 500;
    white-space: nowrap;
}

.project-details {
    margin-top: auto; /* Pushes details to the bottom if card height varies */
}

.progress-bar-container {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 25px;
    margin-bottom: 15px;
    height: 22px; /* Slightly taller for better text visibility */
    overflow: hidden; /* Ensures inner bar stays rounded */
}

.progress-bar {
    height: 100%;
    line-height: 22px; /* Vertically center text */
    color: white;
    text-align: center;
    font-size: 0.8em;
    font-weight: bold;
    border-radius: 25px 0 0 25px; /* Keep left side rounded */
    transition: width 0.5s ease-in-out;
}

.progress-bar:empty { /* If progress is 0%, might not need text */
    text-indent: -9999px;
}


.project-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.action-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9em;
    transition: background-color 0.2s ease;
}

.action-link .icon {
    margin-right: 6px;
    font-size: 1.1em;
}

.view-chat-link {
    background-color: #00002c; /* Your theme's dark blue */
    color: #fff;
}

.view-chat-link:hover {
    background-color: #001f5c; /* Darker shade for hover */
}

.no-projects {
    text-align: center;
    font-size: 1.1em;
    color: #555;
    padding: 30px;
}
.no-projects a {
    color: #00002c;
    text-decoration: underline;
}

/* Sidebar Enhancements (Optional - adjust as per your full dashboard design) */
.sidebar {
    background: #00002c; /* Dark blue from your theme */
    color: #fff;
    padding: 25px;
    width: 250px; /* Slightly wider */
    min-height: 100vh;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}
.sidebar h2 {
    font-size: 1.6em;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    text-align: center;
}
.sidebar nav a {
    color: #f0f0f0;
    display: flex; /* For icon alignment */
    align-items: center;
    padding: 12px 15px;
    margin: 8px 0;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-size: 1.05em;
}
.sidebar nav a:hover,
.sidebar nav a.active-screen { /* Add .active-screen class dynamically if needed */
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-weight: 500;
}
.sidebar nav a .icon { /* Example if you add icons to nav links */
    margin-right: 10px;
}

/* Main Content Area */
.main {
    flex: 1;
    padding: 30px 40px; /* More padding */
    
}
.main header {
    margin-bottom: 30px;
}
.main header h1 {
    font-size: 2.2em; /* Larger screen titles */
    color: #00002c;
}


/* Messages Section Specific Styles */
.messages-section {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.messages-section .section-title {
    font-size: 1.8em;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

/* Project Selection List (if no project_id is in URL) */
.project-selection-list {
    list-style: none;
    padding: 0;
}
.project-selection-list li a {
    display: block;
    padding: 12px 15px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 10px;
    text-decoration: none;
    color: #00002c;
    font-weight: 500;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.project-selection-list li a:hover {
    background-color: #f0f5fa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.back-to-projects-link {
    color: #00002c;
    text-decoration: none;
    font-size: 0.95em;
    padding: 8px 12px;
    border-radius: 5px;
    background-color: #e9ecef;
    transition: background-color 0.2s ease;
}
.back-to-projects-link:hover {
    background-color: #dde2e6;
}


.chat-window-container {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px; /* Padding for the container */
    margin-bottom: 20px;
    max-height: 500px; /* Or your desired height */
    overflow-y: auto; /* Enables scrolling */
}

.chat-window {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Space between messages */
}

.chat-message {
    display: flex;
    align-items: flex-end; /* Aligns avatar with bottom of message bubble */
    max-width: 75%;
    animation: fadeIn 0.3s ease-out;
}

.chat-message .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    margin-left: 10px; /* For 'theirs' */
    border: 2px solid #f0f0f0;
}

.chat-message.mine {
    align-self: flex-end;
    flex-direction: row-reverse; /* Avatar on the right */
}
.chat-message.mine .avatar {
    margin-left: 10px;
    margin-right: 0;
}

.chat-message .message-content {
    display: flex;
    flex-direction: column;
}

.chat-message.mine .message-content {
    align-items: flex-end;
}
.chat-message.theirs .message-content {
    align-items: flex-start;
}

.message-bubble {
    padding: 10px 15px;
    border-radius: 18px;
    word-wrap: break-word;
    position: relative;
}

.chat-message.mine .message-bubble {
    background-color: #00002c; /* Your theme's dark blue for client messages */
    color: #fff;
    border-bottom-right-radius: 4px; /* Tail effect */
}

.chat-message.theirs .message-bubble {
    background-color: #e9ecef; /* Light grey for admin/other messages */
    color: #333;
    border-bottom-left-radius: 4px; /* Tail effect */
}

.message-bubble .sender-name {
    font-size: 0.8em;
    font-weight: bold;
    display: block;
    margin-bottom: 4px;
    color: inherit; /* Inherits color from parent bubble, or can be set specifically */
}
.chat-message.theirs .message-bubble .sender-name {
    color: #555; /* Slightly darker for admin sender name if needed */
}


.message-bubble p {
    margin: 0;
    line-height: 1.5;
}

.timestamp {
    font-size: 0.75em;
    color: #777;
    margin-top: 5px;
}
.chat-message.mine .timestamp {
    align-self: flex-end;
    margin-right: 5px;
}
.chat-message.theirs .timestamp {
    align-self: flex-start;
    margin-left: 5px;
}


.send-message-form {
    display: flex;
    gap: 10px;
    margin-top: 20px; /* Space above the form */
    align-items: stretch; /* Make textarea and button same height */
}

.message-input {
    flex-grow: 1;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 25px; /* Pill shape */
    font-size: 1em;
    resize: none; /* Prevent manual resizing if desired */
    min-height: 48px; /* Ensure a decent default height */
    line-height: 1.4;
}
.message-input:focus {
    outline: none;
    border-color: #00002c;
    box-shadow: 0 0 0 2px rgba(0, 0, 44, 0.2);
}

.send-button {
    background-color: #00002c; /* Your theme's dark blue */
    color: #fff;
    border: none;
    padding: 0 20px; /* Adjust padding for text and icon */
    border-radius: 25px; /* Pill shape */
    cursor: pointer;
    font-size: 1em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    min-height: 48px;
}
.send-button:hover {
    background-color: #001f5c; /* Darker shade */
}
.send-button .button-text {
    margin-right: 8px;
}
.send-button .button-icon {
    font-size: 1.2em;
    line-height: 1; /* Helps with vertical alignment */
}

.no-messages-yet, .error-message, .no-projects {
    text-align: center;
    color: #666;
    font-size: 1.05em;
    padding: 20px;
    background-color: #f0f0f0;
    border-radius: 6px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive adjustments for chat */
@media (max-width: 768px) {
    .chat-message {
        max-width: 90%;
    }
    .main header h1 {
        font-size: 1.8em;
    }
    .chat-header .section-title {
        font-size: 1.5em;
    }
    .chat-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}










/* --- Home Screen Specific Styles --- */
.welcome-banner {
    background-color: #3498db; /* Primary blue */
    color: white;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.welcome-banner h2 {
    margin-top: 0;
    font-size: 2em; /* Larger welcome heading */
    font-weight: 600;
}
.welcome-banner p {
    font-size: 1.1em;
    opacity: 0.9;
}

.dashboard-home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive grid */
    gap: 25px; /* Space between cards */
    margin-top: 20px;
}

.info-card {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05); /* Softer shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.info-card h3 {
    margin-top: 0;
    color: #3498db; /* Blue for card titles */
    font-size: 1.3em; /* Slightly larger card titles */
    margin-bottom: 15px;
    border-bottom: 1px solid #eee; /* Separator for title */
    padding-bottom: 10px;
}

.info-card p {
    font-size: 0.95em;
    color: #555; /* Dark grey for text */
    line-height: 1.6;
}

.info-card .stat {
    font-size: 2.5em; /* Larger stat number */
    font-weight: bold;
    color: #2ecc71; /* Green for positive stats */
    display: block;
    margin-bottom: 10px;
    text-align: center;
}

.info-card .stat.neutral { /* For neutral or informational stats */
    color: #3498db; /* Blue */
}
.info-card .stat.warning { /* For stats needing attention, like unpaid invoices */
    color: #e74c3c; /* Red */
}


.quick-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #dde3e0;
    display: flex;
    gap: 15px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.quick-actions .btn {
    background-color: #3498db;
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.95em;
    transition: background-color 0.2s ease, transform 0.2s ease;
    display: inline-block; /* Ensure proper spacing and alignment */
}

.quick-actions .btn:hover {
    background-color: #2980b9; /* Darker blue on hover */
    transform: translateY(-2px); /* Slight lift on hover */
}


/* Chat Window Styles */
.chat-window {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    background-color: #f9f9f9;
}
.chat-window .msg {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    max-width: 80%;
    word-wrap: break-word;
}
.chat-window .mine {
    background-color: #3498db; /* User's messages */
    color: white;
    margin-left: auto; /* Align to right */
    text-align: right;
}
.chat-window .theirs {
    background-color: #ecf0f1; /* Other party's messages */
    color: #333;
    margin-right: auto; /* Align to left */
    text-align: left;
}
.chat-window .msg strong {
    display: block;
    font-size: 0.9em;
    margin-bottom: 5px;
    opacity: 0.8;
}

/* Form styling for message sending and file uploads */
form {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
form textarea, form input[type="file"], form input[type="text"], form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box; /* Important for width calculations */
}
form button[type="submit"], form .btn {
    background-color: #2ecc71; /* Green for submit buttons */
    color: white;
    padding: 10px 18px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.2s ease;
}
form button[type="submit"]:hover, form .btn:hover {
    background-color: #27ae60; /* Darker green on hover */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body.page-template-app-dashboard {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        min-height: auto;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    .main {
        padding: 20px;
    }
    .dashboard-home-grid {
        grid-template-columns: 1fr; /* Stack cards on smaller screens */
    }
    .welcome-banner h2 {
        font-size: 1.6em;
    }
    .welcome-banner p {
        font-size: 1em;
    }
    .info-card .stat {
        font-size: 2em;
    }
}






/* Invoice Table Styling */
.amiri-invoices-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.9em;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

.amiri-invoices-table thead tr {
    background-color: #00002c; /* Dark blue */
    color: #ffffff;
    text-align: left;
}

.amiri-invoices-table th,
.amiri-invoices-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #dddddd;
}

.amiri-invoices-table tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

.amiri-invoices-table tbody tr:last-of-type {
    border-bottom: 2px solid #00002c; /* Dark blue */
}

.amiri-invoices-table tbody tr:hover {
    background-color: #e0e0e0;
}

/* Status Indicators */
.invoice-status {
    padding: 5px 10px;
    border-radius: 4px;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8em;
}

.invoice-status.paid {
    background-color: #28a745; /* Green */
}

.invoice-status.unpaid {
    background-color: #dc3545; /* Red */
}

/* Buttons */
.amiri-invoices-table .button,
.amiri-invoices-table .button-primary {
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
    cursor: pointer;
}

.amiri-invoices-table .button-primary {
    background-color: #007bff; /* Blue */
    color: white;
    border: 1px solid #007bff;
}

.amiri-invoices-table .button-primary:hover {
    background-color: #0056b3;
}

.amiri-invoices-table .button {
    background-color: #6c757d; /* Grey */
    color: white;
    border: 1px solid #6c757d;
}
.amiri-invoices-table .button:hover {
    background-color: #545b62;
}

.invoice-paid-message {
    padding: 10px;
    background-color: #d4edda; /* Light green */
    color: #155724; /* Dark green */
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    margin-top: 15px;
}

/* Responsive adjustments for smaller screens */
@media screen and (max-width: 768px) {
    .amiri-invoices-table thead {
        display: none; /* Hide table headers */
    }
    .amiri-invoices-table, .amiri-invoices-table tbody, .amiri-invoices-table tr, .amiri-invoices-table td {
        display: block;
        width: 100%;
    }
    .amiri-invoices-table tr {
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 4px;
    }
    .amiri-invoices-table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
        border-bottom: 1px solid #eee;
    }
    .amiri-invoices-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: calc(50% - 20px);
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
    }

    /* Add data-label attributes to your td elements in PHP if you use this responsive approach, e.g. <td data-label="Invoice ID"> */
    /* For example, in your PHP:
       <td data-label="Invoice ID">#<?php echo esc_html( $invoice_id ); ?></td>
       <td data-label="Date"><?php echo esc_html( $invoice_date ); ?></td>
       ...and so on for other cells.
    */
}

/* Invoice Detail View */
.invoice-detail-container {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.invoice-header .agency-details h3 {
    margin-top: 0;
    color: #00002c; /* AmiriMotion Dark Blue */
}

.invoice-header .agency-details p,
.billed-to p {
    font-size: 0.9em;
    line-height: 1.6;
    color: #555;
    margin-bottom: 0;
}

.invoice-header .invoice-meta {
    text-align: right;
}

.invoice-header .invoice-meta h1 {
    margin: 0 0 10px 0;
    font-size: 2.5em;
    color: #00002c; /* AmiriMotion Dark Blue */
}

.invoice-header .invoice-meta p {
    margin: 5px 0;
    font-size: 0.95em;
}

.billed-to {
    margin-bottom: 30px;
}

.billed-to h4 {
    margin-bottom: 10px;
    color: #333;
}

.invoice-items-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.invoice-items-table th,
.invoice-items-table td {
    border: 1px solid #eee;
    padding: 12px 15px;
    text-align: left;
}

.invoice-items-table thead th {
    background-color: #f9f9f9;
    font-weight: bold;
    color: #333;
}

.invoice-items-table tfoot td {
    font-weight: bold;
}
.invoice-items-table tfoot td.text-right {
    text-align: right;
}


.invoice-payment-actions {
    margin-top: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
    text-align: right;
}
.invoice-payment-actions p {
    margin: 0 0 15px 0;
    font-size: 1.1em;
    font-weight: bold;
}
.invoice-payment-actions .pay-now-button {
    padding: 12px 25px;
    font-size: 1.1em;
}


.invoice-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
    font-size: 0.9em;
    color: #777;
}

.invoice-footer p {
    margin: 5px 0;
}

/* Responsive adjustment for invoice detail */
@media screen and (max-width: 768px) {
    .invoice-header {
        flex-direction: column;
    }
    .invoice-header .agency-details,
    .invoice-header .invoice-meta {
        width: 100%;
        text-align: left;
        margin-bottom: 20px;
    }
    .invoice-header .invoice-meta h1 {
        font-size: 2em;
    }
    .invoice-items-table th,
    .invoice-items-table td {
         padding: 8px 10px;
    }
    .invoice-payment-actions {
        text-align: center;
    }
    .invoice-payment-actions .pay-now-button {
        width: 100%;
    }
}

/* Ensure data-labels for responsive table on payments screen are set if you use them */
.amiri-invoices-table td[data-label]::before {
    content: attr(data-label);
    position: absolute;
    left: 10px;
    width: calc(50% - 20px); /* Adjust as needed */
    padding-right: 10px;
    white-space: nowrap;
    text-align: left;
    font-weight: bold;
    color: #333; /* Make labels a bit more prominent */
}
.amiri-invoices-table td {
    /* Ensure enough padding for the label if using the responsive stacking method */
    /* padding-left: 50% !important; /* Only if using the full stacking method from previous CSS */
}