/* Capespan-Inspired Design Variables */
:root {
    /* Navy color scheme */
    --navy-primary: #1e3a8a;       /* Primary navy blue */
    --navy-light: #3b82f6;         /* Lighter navy for gradients */
    --navy-dark: #1e40af;          /* Darker navy for text */
    
    /* Text colors */
    --text-dark: #1f2937;          /* Dark text on light backgrounds */
    --text-light: #ffffff;         /* White text on dark backgrounds */
    --text-secondary: #6b7280;     /* Secondary gray text */
    --text-muted: rgba(107, 114, 128, 0.8); /* Muted text */
    
    /* Background colors */
    --bg-white: #ffffff;           /* Pure white background */
    --bg-light: #f8fafc;           /* Light gray background */
    --bg-navy: #1e3a8a;            /* Navy background */
    
    /* Typography */
    --font-primary: 'Questrial', sans-serif;
    --font-headings: 'Trirong', serif;
    
    /* UI elements */
    --border-radius: 8px;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --transition-speed: 0.3s;
}

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

/* Spacing Utility Classes */
.py-5 {
    padding-top: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
}

.py-4 {
    padding-top: var(--spacing-md);
    padding-bottom: var(--spacing-md);
}

/* Typography Enhancements - Capespan Style */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    font-weight: 300;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--text-dark);
}

/* Hero Section Styles */
.hero-section {
    background: 
        linear-gradient(rgba(30, 58, 138, 0.7), rgba(30, 58, 138, 0.7)),
        url('../assets/grapes-background.png') center/cover no-repeat;
    min-height: 70vh;
    display: flex;
    align-items: center;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-family: var(--font-headings);
    font-size: 4rem;
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.hero-title span {
    display: block;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title span:nth-child(2) {
    animation-delay: 0.2s;
}

.hero-title span:nth-child(3) {
    animation-delay: 0.4s;
}

/* Stacked Headlines - Capespan Style */
.stacked-headline {
    font-family: var(--font-headings);
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.stacked-headline span {
    display: block;
}

/* Text Styles */
.text-large {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-secondary);
}

.text-navy {
    color: var(--navy-primary) !important;
}

.text-black {
    color: var(--text-dark) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Section Layout Styles */
.section-padding {
    padding: 80px 0;
}

.section-padding-sm {
    padding: 60px 0;
}

.section-white {
    background-color: var(--bg-white);
}

.section-light {
    background-color: var(--bg-light);
}

.bg-navy {
    background-color: var(--navy-primary) !important;
}

/* Product Cards - Clean Design */
.product-card {
    background: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Navigation Styles */
.navbar-brand {
    font-family: var(--font-headings);
    font-weight: 400;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-family: var(--font-primary);
    font-weight: 400;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--navy-primary);
}

/* Button Styles */
.btn-primary {
    background-color: var(--navy-primary);
    border-color: var(--navy-primary);
    font-family: var(--font-primary);
    font-weight: 500;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--navy-dark);
    border-color: var(--navy-dark);
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: var(--navy-primary);
    border-color: var(--navy-primary);
    font-family: var(--font-primary);
    font-weight: 500;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--navy-primary);
    border-color: var(--navy-primary);
    color: white;
    transform: translateY(-1px);
}

/* Subtle Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Card & Element Styling */
.card {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    background-color: var(--bg-card);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.rounded {
    border-radius: var(--border-radius) !important;
}

/* Button Styling */
.btn {
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all var(--transition-speed);
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(74, 142, 74, 0.4);
}

.btn-outline-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1);
}

/* Product Feature Styling */
.product-feature {
    transition: transform var(--transition-speed);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-feature:hover {
    transform: translateY(-5px);
}

.product-overlay {
    transition: background var(--transition-speed);
}

.product-feature:hover .product-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.2));
}

/* Badge Styling */
.badge {
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.7rem;
}

/* Icon Circle */
.icon-circle {
    transition: transform var(--transition-speed), background var(--transition-speed);
    background: rgba(74, 142, 74, 0.1) !important;
}

.card:hover .icon-circle,
.p-4:hover .icon-circle {
    transform: scale(1.1);
    background: rgba(74, 142, 74, 0.2) !important;
}

/* Navigation Enhancement */
.navbar {
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

/* Section Backgrounds */
.bg-black {
    background-color: var(--bg-darker) !important;
}

.bg-dark {
    background-color: var(--bg-dark) !important;
}

/* Hero Section Enhancement */
#hero {
    transition: all 0.5s ease;
}

#hero .hero-bg {
    transition: transform 3s ease;
}

#hero:hover .hero-bg {
    transform: scale(1.05);
}

/* Footer Improvements */
footer {
    background-color: var(--bg-darker) !important;
}

/* Simplified Animations */
.hover-lift {
    transition: transform var(--transition-speed);
}

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

/* Better Form Styling */
.form-control {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border-radius: 50px;
    padding: 0.75rem 1.25rem;
}

.form-control:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 0 0 3px rgba(74, 142, 74, 0.25);
}

/* Clean Image Styling */
.img-hover-zoom {
    overflow: hidden;
    border-radius: var(--border-radius);
}

.img-hover-zoom img {
    transition: transform 0.5s ease;
}

.img-hover-zoom:hover img {
    transform: scale(1.05);
}

/* Color Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-success {
    background-color: #5cb85c !important;
}

/* Food-specific elements */
.product-card {
    border-left: 3px solid var(--primary-color);
}

.farm-badge {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    font-size: 0.8rem;
    padding: 0.35em 0.8em;
    border-radius: 50px;
}

/* Product Badges */
.organic-badge, .processed-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    font-size: 0.7rem;
    padding: 0.2em 0.7em;
    border-radius: 50px;
    z-index: 2;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.organic-badge {
    background: linear-gradient(45deg, var(--navy-primary), var(--navy-light));
}

.processed-badge {
    background: linear-gradient(45deg, #e67e22, #d35400);
}

/* Team Member Cards */
.team-member-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e2e8f0;
}

.team-member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.15);
}

.team-member-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #e2e8f0;
    transition: all 0.3s ease;
}

.team-member-card:hover .team-member-avatar {
    border-color: var(--navy-primary);
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.team-member-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #e2e8f0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.team-member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Specific positioning for individual team members */
.team-member-photo img[alt="Uzima Namegabe"] {
    object-position: 50% 35%;
}

.team-member-photo img[alt="Moustafa Khedr"] {
    object-position: 50% 20%;
}

.team-member-photo img[alt="Sam Gerges"] {
    object-position: 50% 15%;
}

.team-member-card:hover .team-member-photo {
    border-color: var(--navy-primary);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.2);
    transform: scale(1.05);
}

/* Partnership Section Highlight */
.partner-highlight {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-blue));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    font-weight: bold;
}

/* Animation Effects */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

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

@keyframes shimmer {
    0% { background-position: -100% 0; }
    100% { background-position: 100% 0; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Apply animations */
.float {
    animation: float 6s ease-in-out infinite;
}

.pulse-animation {
    animation: pulse 1s ease-in-out;
}

.shimmer {
    background: linear-gradient(90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.2) 50%, 
        rgba(255,255,255,0) 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* Particles container */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

.section-with-particles {
    position: relative;
    overflow: hidden;
}

/* Tab transitions */
.tab-pane.fade {
    transition: opacity 0.5s ease;
}

.tab-pane.fade.show {
    opacity: 1;
}

/* Product Animations */
.product-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* Image hover animations */
.zoom-container {
    overflow: hidden;
    position: relative;
}

.zoom-container img {
    transition: transform 0.5s ease;
}

.zoom-container:hover img {
    transform: scale(1.1);
}

/* Badge animations */
.badge.bg-success {
    position: relative;
    overflow: hidden;
}

.badge.bg-success::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.2) 50%, 
        rgba(255,255,255,0) 100%);
    animation: shimmer 2s infinite;
}

/* Testimonial Cards Styling */
.testimonial-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.testimonial-card::before {
    content: "\f10e"; /* FontAwesome quote icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    bottom: -10px;
    right: 10px;
    font-size: 5rem;
    color: rgba(255,255,255,0.03);
    z-index: 0;
}

.testimonial-card .card-body {
    position: relative;
    z-index: 1;
}

.testimonial-card .card-text {
    position: relative;
    z-index: 2;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.25);
}

/* Parent company highlight animation */
.slide-up {
    opacity: 0;
    animation: slideUp 0.8s ease forwards;
}

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

/* Pulse animation for important elements */
.pulse {
    animation: pulse 2s infinite;
}

/* Star rating animation */
.text-warning i {
    transform: scale(1);
    transition: transform 0.3s ease;
}

.testimonial-card:hover .text-warning i {
    transform: scale(1.2);
    transition: transform 0.3s ease;
}

/* Homepage grid images - remove white spaces */
#we-deliver .row.g-2 {
    --bs-gutter-x: 0.5rem;
    --bs-gutter-y: 0.5rem;
}

#we-deliver .row.g-2 .col-6 {
    padding: 0.25rem;
}

#we-deliver .row.g-2 img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: center;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
}

#we-deliver .row.g-2 img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

/* Ensure no margin or padding issues */
#we-deliver .col-6 {
    display: flex;
    align-items: stretch;
}

#we-deliver .col-6 img {
    flex: 1;
}