/* Base Styles */
:root {
    --primary: #6c63ff;
    --secondary: #4d44db;
    --dark: #2a2a72;
    --light: #f8f9fa;
    --text: #333333;
    --text-light: #777777;
    --white: #ffffff;
    --black: #000000;
}

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

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

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

section {
    padding: 100px 0;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.highlight {
    color: var(--primary);
}

.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.3);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--primary);
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid var(--primary);
}

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

/* Particles Background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    z-index: 1000;

    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 10px 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Mobile menu button */
.menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 1001;
    background: transparent;
    border: none;
    padding: 8px;
}

.menu-toggle i {
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

/* Mobile styles */
@media (max-width: 768px) {
    .navbar {
        padding: 12px 0;
    }
    
    .navbar.scrolled {
        padding: 8px 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        
        z-index: 1000;
        padding: 80px 20px 40px;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-links a {
        font-size: 1.2rem;
        padding: 10px 0;
        display: block;
    }
    
    .nav-links .btn-primary {
        margin-top: 20px;
    }
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
}

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

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

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

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    overflow: hidden;
}

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

.hero-content {
    flex: 1;
    padding-right: 50px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-image {
    flex: 1;
    position: relative;
}

.floating {
    position: relative;
}

.main-img {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}

.float-1, .float-2, .float-3 {
    position: absolute;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: float 4s ease-in-out infinite;
}

.float-1 {
    top: -20px;
    left: -20px;
    z-index: 0;
    animation-delay: 0.5s;
}

.float-2 {
    bottom: -30px;
    right: -30px;
    z-index: 0;
    animation-delay: 1s;
}

.float-3 {
    top: 50%;
    right: -40px;
    transform: translateY(-50%);
    z-index: 2;
    animation-delay: 1.5s;
}

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

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(108, 99, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(108, 99, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(108, 99, 255, 0);
    }
}

/* Services Section */
.services {
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    perspective: 1000px;
    height: 300px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.service-card:hover {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease;
}

.card-back {
    transform: rotateY(180deg);
    background: var(--primary);
    color: var(--white);
}

.card-back h3 {
    color: var(--white);
    margin-bottom: 15px;
}

.card-back ul {
    list-style: none;
    margin-bottom: 20px;
    text-align: left;
}

.card-back ul li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.card-back ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--white);
}

.icon-box {
    width: 80px;
    height: 80px;
    background: rgba(108, 99, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

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

.learn-more {
    margin-top: auto;
    color: var(--primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.learn-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.service-card:hover .learn-more i {
    transform: translateX(5px);
}

/* About Section */
.about .container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-content {
    flex: 1;
}

.about-image {
    flex: 1;
}

.about-content p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.stats {
    display: flex;
    margin-top: 40px;
    gap: 30px;
}

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

.counter {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.team-avatar {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.3);
}
.avatar {
    text-align: center;
    background-size: cover;
    background-position: center;
}
.avatar-label {
    font-size: 12px;
    color: #555;
    text-align: center; /* Extra safety */
}
.avatar-wrapper:nth-child(1) .avatar {
    background-image: url('images/construction.png');
    animation-delay: var(--delay);
}

.avatar-wrapper:nth-child(2) .avatar {
    background-image: url('images/gym.png');
    animation-delay: var(--delay);
}

.avatar-wrapper:nth-child(3) .avatar {
    background-image: url('images/sports.png');
    animation-delay: var(--delay);
}

.avatar-wrapper:nth-child(4) .avatar {
    background-image: url('images/organization.png');
    animation-delay: var(--delay);
}


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

/* Portfolio Section */
.portfolio {
    background: var(--light);
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    padding: 8px 20px;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    color: var(--white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.portfolio-item {
    overflow: hidden;
    border-radius: 10px;
    position: relative;
}

.portfolio-img {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.portfolio-img img {
    width: 300px; /* Set desired small size */
    height: 500px; /* Maintain aspect ratio area */
    object-fit: contain; /* Show full image without cropping */
    transition: transform 0.5s ease;
}


.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(108, 99, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    text-align: center;
    color: var(--white);
}

.portfolio-overlay h3 {
    margin-bottom: 10px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.portfolio-overlay p {
    margin-bottom: 20px;
    transform: translateY(20px);
    transition: transform 0.3s ease 0.1s;
}

.portfolio-overlay .btn-secondary {
    transform: translateY(20px);
    transition: transform 0.3s ease 0.2s;
}

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

.portfolio-item:hover .portfolio-overlay h3,
.portfolio-item:hover .portfolio-overlay p,
.portfolio-item:hover .portfolio-overlay .btn-secondary {
    transform: translateY(0);
}

.portfolio-item:hover .portfolio-img img {
    transform: scale(1.1);
}

/* Contact Section */
.contact .container {
    display: flex;
    gap: 50px;
}

.contact-content {
    flex: 1;
}

.contact-form {
    flex: 1;
}

.contact-info {
    margin: 30px 0;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.info-item i {
    width: 40px;
    height: 40px;
    background: rgba(108, 99, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-right: 15px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(108, 99, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-5px);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
}

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

/* Footer */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 80px 0 0;
}

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

.footer-col h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

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

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.newsletter-form {
    display: flex;
    margin-top: 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 30px 0 0 30px;
    outline: none;
}

.newsletter-form button {
    width: 50px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--secondary);
}

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

/* Typewriter Effect */
.typewriter {
    overflow: hidden;
    border-right: 3px solid var(--primary);
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: 1px;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--primary); }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero .container,
    .about .container,
    .contact .container {
        flex-direction: column;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 50px;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .about-content {
        margin-bottom: 50px;
    }
    
    .contact-content {
        margin-bottom: 50px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: all 0.5s ease;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    section {
        padding: 70px 0;
    }
}

@media (max-width: 576px) {
    .stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
        white-space: normal !important;
    }
    
    .service-card {
        height: 350px;
    }
}

/* ===== Cigar ERP Section (namespaced; non-breaking) ===== */
.product-cigar {
    background: var(--white);
}

.cigar-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.cigar-video-frame {
    position: relative;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.10);
    background: #000;
    aspect-ratio: 16 / 9; /* modern browsers */
}
/* fallback for older browsers if aspect-ratio unsupported */
.cigar-video-frame::before {
    content: "";
    display: block;
    padding-top: 56.25%;
}
.cigar-video-frame > *:not(:first-child) { position: absolute; top: 0; left: 0; height: 100%; width: 100%; }
.cigar-video-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cigar-copy h2 { margin-bottom: 14px; }
.cigar-lead {
    color: var(--text-light);
    margin-bottom: 18px;
    line-height: 1.7;
}

.cigar-bullets {
    list-style: none;
    margin: 0 0 22px 0;
    padding: 0;
}
.cigar-bullets li {
    margin: 8px 0;
    padding-left: 26px;
    position: relative;
}
.cigar-bullets li::before {
    content: "\\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--primary);
    position: absolute;
    left: 0;
    top: 0;
}

.cigar-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 992px) {
    .cigar-grid {
        grid-template-columns: 1fr;
    }
}
@keyframes ringSpin {
    0%   { transform:rotate(0deg);   }
    100% { transform:rotate(360deg); }
}

@keyframes pulseText {
    0%   { opacity:0.6; }
    50%  { opacity:1;   }
    100% { opacity:0.6; }
}
@keyframes toastPulse {
    0%   { box-shadow:0 0 10px rgba(108,99,255,.0),0 0 30px rgba(108,99,255,.0); }
    50%  { box-shadow:0 0 10px rgba(108,99,255,.6),0 0 30px rgba(108,99,255,.4); }
    100% { box-shadow:0 0 10px rgba(108,99,255,.0),0 0 30px rgba(108,99,255,.0); }
}