/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --primary-color: #4f46e5; /* Indigo */
    --primary-dark: #4338ca;
    --secondary-color: #06b6d4; /* Cyan */
    --dark-bg: #0f172a;
    --light-bg: #f8fafc;
    --text-color: #334155;
    --heading-color: #1e293b;
    --white: #DBEBF1;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 8px;
    --transition: all 0.4s ease;
    --font-main: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
    font-weight: 700;
    line-height: 1.2;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   2. UTILITY CLASSES
   ========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.grid-2-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: center;
}

.grid-3-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4-col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.text-center { text-align: center; }
.text-white { color: var(--white); }
.text-gray { color: #94a3b8; }
.bg-light { background-color: var(--light-bg); }
.bg-dark { background-color: var(--dark-bg); }
.w-100 { width: 100%; }

/* Buttons */
.btn-primary, .btn-secondary, .btn-outline {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    margin-left: 10px;
}
.btn-secondary:hover { color: var(--primary-dark); }

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}
.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Headings */
.sub-heading {
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-heading {
    font-size: 2.5rem;
    margin-bottom: 40px;
}

/* =========================================
   3. HEADER & NAVIGATION
   ========================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

header.sticky {
    background-color: rgba(255, 255, 255, 0.7);
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(3px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--heading-color);
}
.logo span { color: var(--primary-color); }

.nav-menu ul {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    bottom: -5px;
    left: 0;
    transition: 0.3s;
}

.nav-link:hover::after { width: 100%; }

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--heading-color);
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px; /* Offset fixed header */
    background: radial-gradient(circle at top right, #f1f5f9, #ffffff);
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.hero-text { flex: 1; max-width: 600px; }

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-text h1 span {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #64748b;
}

/* Hero Visual Animation */
.hero-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.shape-box {
    position: relative;
    width: 400px;
    height: 400px;
}

.circle {
    width: 350px;
    height: 350px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    opacity: 0.1;
    position: absolute;
    top: 20px;
    right: 20px;
    animation: float 6s ease-in-out infinite;
}

.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    position: absolute;
    display: flex;
    align-items: center;
    gap: 15px;
    top: 100px;
    left: 0;
    width: 240px;
    animation: float 5s ease-in-out infinite 0.5s;
    border: 1px solid rgba(255,255,255,0.5);
}

.glass-card i {
    font-size: 2rem;
    color: var(--primary-color);
    background: #e0e7ff;
    padding: 10px;
    border-radius: 10px;
}

.card-2 {
    top: 220px;
    left: 120px;
    animation: float 7s ease-in-out infinite 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* =========================================
   5. SECTIONS
   ========================================= */

/* About */
.about-img {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.experience-badge {
    position: absolute;
    bottom: 30px;
    right: -20px;
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
    animation: float 4s infinite;
}
.experience-badge .num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
}

.feature-list { margin: 20px 0; }
.feature-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}
.feature-list i { color: var(--secondary-color); }

.btn-text {
    color: var(--primary-color);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Services */
.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-top: 4px solid transparent;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-top: 4px solid var(--primary-color);
}
.icon-box {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.service-card h3 { margin-bottom: 15px; }

/* Features */
.feature-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}
.f-icon {
    min-width: 60px;
    height: 60px;
    background: #eef2ff;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.feature-img img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }

/* Portfolio */
.portfolio-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    height: 300px;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img { transform: scale(1.1); }

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .overlay { opacity: 1; }
.overlay h3 { transform: translateY(20px); transition: 0.4s; }
.portfolio-item:hover .overlay h3 { transform: translateY(0); }
.btn-sm {
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    margin-top: 10px;
    cursor: pointer;
}

/* Pricing */
.pricing-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    position: relative;
    border: 1px solid #e2e8f0;
}
.pricing-card.highlighted {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
    z-index: 1;
}
.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}
.price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--heading-color);
    margin: 20px 0;
}
.price span { font-size: 1rem; color: #64748b; font-weight: 400; }
.features { margin: 30px 0; text-align: left; }
.features li { margin-bottom: 12px; color: #475569; }
.features li i { color: var(--primary-color); margin-right: 10px; }
.features li.disabled { opacity: 0.5; }

.faq-container { 
    max-width: 800px; 
    margin: 0 auto; 
}

.faq-item {
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 10px;
    /* Reveal conflict fix: default opacity set by reveal logic, not here */
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--heading-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 20px;
}

.faq-answer p { 
    padding-bottom: 20px; 
    color: #475569; 
}

/* এখানে 'active' এর বদলে 'faq-open' ব্যবহার করা হয়েছে */
.faq-item.faq-open .faq-answer { 
    max-height: 300px; /* content অনুযায়ী বাড়াতে পারেন */
}

.faq-item.faq-open .faq-question i { 
    transform: rotate(180deg); 
}
/* Contact */
.contact-info { padding-right: 30px; }
.contact-info .info-item {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}
.contact-info i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}
.contact-form-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--heading-color);
}
input, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-family: inherit;
    transition: var(--transition);
}
input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}
.error-msg { color: #ef4444; font-size: 0.85rem; display: none; }

/* Testimonials */
.testimonial-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    max-width: 700px;
    margin: 0 auto;
    box-shadow: var(--shadow-sm);
    font-style: italic;
}
.client-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    font-style: normal;
}
.client-img {
    width: 50px;
    height: 50px;
    background: #ccc;
    border-radius: 50%;
}
.stars { color: #fbbf24; }

/* Footer */
.footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 80px 0 20px;
}
.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col a:hover { color: var(--secondary-color); }
.social-links { display: flex; gap: 15px; margin-top: 20px; }
.social-links a {
    width: 40px; height: 40px;
    background: #1e293b;
    display: flex;
    align-items: center; justify-content: center;
    border-radius: 50%;
    color: var(--white);
}
.social-links a:hover { background: var(--primary-color); }
.newsletter-form { display: flex; gap: 10px; margin-top: 15px; }
.newsletter-form input { padding: 10px; background: #1e293b; border: none; color: white; }
.newsletter-form button { padding: 10px 15px; background: var(--primary-color); color: white; border: none; cursor: pointer; border-radius: 4px; }
.footer-bottom {
    text-align: center;
    margin-top: 60px;
    border-top: 1px solid #1e293b;
    padding-top: 20px;
    font-size: 0.9rem;
}

/* =========================================
   6. ANIMATION CLASSES
   ========================================= */
.reveal, .reveal-left, .reveal-right {
    opacity: 0;
    transition: all 1s ease;
}

.reveal.active { opacity: 1; transform: translateY(0); }
.reveal { transform: translateY(50px); }

.reveal-left { transform: translateX(-50px); }
.reveal-left.active { opacity: 1; transform: translateX(0); }

.reveal-right { transform: translateX(50px); }
.reveal-right.active { opacity: 1; transform: translateX(0); }

/* =========================================
   7. MEDIA QUERIES (RESPONSIVE)
   ========================================= */
@media (max-width: 1024px) {
    .grid-4-col { grid-template-columns: 1fr 1fr; }
    .grid-3-col { grid-template-columns: 1fr 1fr; }
    .hero-text h1 { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    /* Mobile Nav */
    .hamburger { display: block; z-index: 1001; }
    
    .nav-menu {
        position: fixed;
        top: 0; right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--white);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: 0.4s ease;
    }
    .nav-menu.active { right: 0; }
    
    .nav-menu ul { flex-direction: column; gap: 30px; }
    
    .grid-2-col, .grid-3-col, .grid-4-col { grid-template-columns: 1fr; }
    
    .hero-content { flex-direction: column; text-align: center; gap: 50px; }
    .hero-text h1 { font-size: 2.5rem; }
    .hero-btns { justify-content: center; }
    
    .pricing-card.highlighted { transform: scale(1); }
    
    .shape-box { width: 300px; height: 300px; }
    .circle { width: 250px; height: 250px; }
}

@media (max-width: 480px) {
    .hero-text h1 { font-size: 2rem; }
    .section-heading { font-size: 2rem; }
    .btn-primary, .btn-secondary { padding: 10px 20px; font-size: 0.9rem; }
}

