/* ===================================
   Prime Sphere Trading LLC - Main Stylesheet
   ================================== */

/* Import Fonts - Using Playfair Display for headers and Source Sans Pro for body */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800&family=Source+Sans+Pro:wght@300;400;600;700&display=swap');

/* CSS Variables - Theme Colors */
:root {
    --primary-color: #2c3846;
    --secondary-color: #ff3131;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --text-dark: #1a1a1a;
    --text-light: #6c757d;
    --border-light: #e9ecef;
    --shadow-sm: 0 2px 8px rgba(44, 56, 70, 0.08);
    --shadow-md: 0 4px 16px rgba(44, 56, 70, 0.12);
    --shadow-lg: 0 8px 32px rgba(44, 56, 70, 0.16);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

body {
    font-family: 'Source Sans Pro', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-color);
}

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

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

 Logo 
 ============================== */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 80px;          /* adjust as needed */
    /* width: 200px; */
    display: block;
}

/* ===================================
   NAVIGATION BAR
   ================================== */

.navbar {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    transition: var(--transition-smooth);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    transition: var(--transition-fast);
}

.navbar-brand:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.navbar-nav .nav-link {
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 1rem;
    padding: 0.5rem 0;
    position: relative;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

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

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

/* Mobile Menu Toggle Animation */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%232c3846' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===================================
   HERO SECTION
   ================================== */

/* .hero-section { */
    /* position: relative; */
    /* min-height: 100vh; */
    /* display: flex; */
    /* align-items: center; */
    /* background: linear-gradient(135deg, var(--primary-color) 0%, #1a2230 100%); */
    /* overflow: hidden; */
    /* padding: 100px 0; */
/* } */

/* .hero-section::before { */
    /* content: ''; */
    /* position: absolute; */
    /* top: 0; */
    /* left: 0; */
    /* right: 0; */
    /* bottom: 0; */
    /* background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); */
    /* opacity: 0.4; */
/* } */

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

/* .hero-section h1 { */
    /* font-size: 4rem; */
    /* color: var(--white); */
    /* margin-bottom: 1.5rem; */
    /* font-weight: 800; */
    /* line-height: 1.2; */
    /* animation: fadeInUp 1s ease-out; */
/* } */

/* .hero-section .subtitle { */
    /* font-size: 1.5rem; */
    /* color: rgba(255, 255, 255, 0.9); */
    /* margin-bottom: 2rem; */
    /* font-weight: 300; */
    /* animation: fadeInUp 1s ease-out 0.2s both; */
/* } */

/* .hero-section p { */
    /* font-size: 1.1rem; */
    /* color: rgba(255, 255, 255, 0.8); */
    /* margin-bottom: 2.5rem; */
    /* max-width: 600px; */
    /* animation: fadeInUp 1s ease-out 0.4s both; */
/* } */

.hero-floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    opacity: 0.1;
    animation: float 2s infinite ease-in-out;
}

.floating-shape:nth-child(1) {
    top: 10%;
    left: 10%;
    width: 80px;
    height: 80px;
    background: var(--secondary-color);
    border-radius: 50%;
    animation-delay: 0s;
}

.floating-shape:nth-child(2) {
    top: 60%;
    right: 15%;
    width: 120px;
    height: 120px;
    background: var(--white);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation-delay: 2s;
}

.floating-shape:nth-child(3) {
    bottom: 10%;
    left: 20%;
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    transform: rotate(45deg);
    animation-delay: 4s;
}

/* ===================================
   BUTTONS
   ================================== */

.btn-custom {
    padding: 14px 40px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
    font-size: 0.95rem;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-custom::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-custom:hover::before {
    width: 300px;
    height: 300px;
}

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

.btn-primary-custom:hover {
    background: #e62929;
    border-color: #e62929;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 49, 49, 0.3);
}

.btn-outline-custom {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline-custom:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-outline-dark-custom {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

/* ===================================
   SECTION STYLES
   ================================== */

.section {
    padding: 30px 0;
    position: relative;
}
.section p {
	font-size: 16px;
	color: var(--primary-color);
}

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

.section-title::after {
    content: '';
    position: absolute;
    /* bottom: -10px; */
    left: 0;
    width: 80px;
    height: 4px;
    /* background: var(--secondary-color); */
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem !important;
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-weight: 400;
}

.mission {
	color: var(--primary-color);
	font-size: 16px;
	text-align: justify;
}

/* Alternate Section Background */
.section-alt {
    background: var(--light-bg);
}

/* ===================================
   FEATURE CARDS
   ================================== */

.feature-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    height: 100%;
    border: 1px solid var(--border-light);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ===================================
   PRODUCT CARDS
   ================================== */

.product-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    height: 100%;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.product-card-image {
    position: relative;
    overflow: hidden;
    height: 250px;
    background: var(--light-bg);
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.product-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(44, 56, 70, 0.8) 0%, transparent 50%);
    opacity: 0;
    transition: var(--transition-smooth);
}

.product-card:hover .product-card-overlay {
    opacity: 1;
}

.product-card-content {
    padding: 2rem;
}

.product-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.product-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary-color);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


/* =================================== 
 ABOUT US
 =================================== */
 
.animated-gradient-section {
    padding: 30px 20px;
    text-align: center;
    /* color: white; */
    background: linear-gradient(
        -45deg,
        #5b6c7e,
        #FF6B6B
    );
    background-size: 400% 400%;
    animation: gradientMove 10s ease infinite;
}

.about-us-content h2 {
	color: black;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    position: relative;
    /* display: inline-block; */
}

.about-us-content p {
	color: black;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    position: relative;
    /* display: inline-block; */
}

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




/* ===================================
   STATS SECTION
   ================================== */

.stats-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a2230 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: 'Playfair Display', serif;
    color: var(--secondary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===================================
   CONTACT FORM
   ================================== */

.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    border: 2px solid var(--border-light);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: var(--transition-fast);
    width: 100%;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(255, 49, 49, 0.1);
    outline: none;
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.error-message {
    color: var(--secondary-color);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: none;
}

.error-message.show {
    display: block;
}

.form-control.error {
    border-color: var(--secondary-color);
}

/* ===================================
   CONTACT INFO
   ================================== */

.contact-info {
    background: var(--light-bg);
    padding: 3rem;
    border-radius: 16px;
    height: 100%;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
}

.contact-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.contact-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.contact-details p {
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

/* ===================================
   FOOTER
   ================================== */

.footer {
    background: var(--primary-color);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 30px;
}

.footer h5 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-fast);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

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

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

.social-link:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
}

/* ===================================
   ANIMATIONS
   ================================== */

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

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

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-30px) rotate(5deg);
    }
    66% {
        transform: translateY(-15px) rotate(-5deg);
    }
}

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

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

/* Scroll-triggered animation classes */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

.slide-in-left {
    opacity: 0;
    animation: slideInLeft 1s ease-out forwards;
}

.slide-in-right {
    opacity: 0;
    animation: slideInRight 1s ease-out forwards;
}

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

/* Staggered animation delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

/* ===================================
   RESPONSIVE STYLES
   ================================== */

@media (max-width: 991px) {
    .hero-section h1 {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .navbar-nav .nav-link {
        margin: 0.5rem 0;
    }
}

@media (max-width: 767px) {
    .hero-section {
        min-height: 80vh;
        padding: 80px 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .subtitle {
        font-size: 1.2rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .contact-form,
    .contact-info {
        padding: 2rem;
    }
}

@media (max-width: 575px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .btn-custom {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
}

/* ===================================
   UTILITY CLASSES
   ================================== */

.text-primary-custom {
    color: var(--primary-color);
}

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

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

.bg-secondary-custom {
    background-color: var(--secondary-color);
}

.mt-100 {
    margin-top: 100px;
}

.mb-100 {
    margin-bottom: 100px;
}


/* =============================== 
 IMAGE CAROUSEL 
 =============================== */
 
 .hero-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

/* Carousel fills hero */
.hero-carousel,
.hero-carousel .carousel-inner,
.hero-carousel .carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
	/* background-color: #ffffff; */
}

.hero-carousel .carousel-item img {
    height: 100%;
    object-fit: cover;
}

/* Dark overlay for text readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1;
}

/* Content above carousel */
.hero-content-wrapper {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    /* align-items: left; */
}


/* ========================= 
 SUSTAINABILITY SECTION 
 ========================= */
 
 .sustainability-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.sustainability-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Highlights */
.sustainability-highlights {
    margin-top: 2rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.highlight-item i {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-right: 12px;
}

/* Image styling */
.sustainability-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

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