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

:root {
    --primary-black: #000000;
    --primary-gold: #D4AF37;
    --dark-gold: #B8941F;
    --light-gold: #F4E99B;
    --white: #FFFFFF;
    --gray-light: #F5F5F5;
    --gray-medium: #adb5bd;
    --gray-dark: #6c757d;
    
    --font-primary: 'Lato', sans-serif;
    --font-secondary: 'Lato', sans-serif;
    --font-blog: 'Lato', sans-serif;
    
    --transition: all 0.3s ease;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 8px 40px rgba(0, 0, 0, 0.25);
}

body {
    font-family: var(--font-secondary);
    line-height: 1.6;
    color: var(--primary-black);
    overflow-x: hidden;
    background-color: var(--white);
    padding-top: 4.375rem; /* Adjust based on navbar height */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-gold);
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--primary-black);
    font-weight: 700;
}

h3 {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    color: var(--primary-black);
    font-weight: 600;
}

p {
    margin-bottom: 1.2rem;
    color: var(--gray-dark);
    font-family: var(--font-secondary);
    font-weight: 400;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-pricing {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--dark-gold) 100%);
    color: var(--primary-black);
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    animation: buttonGlow 0.6s ease-in-out;
}

.btn-secondary {
    background: var(--primary-black);
    color: var(--primary-gold);
    border: 2px solid var(--primary-gold);
}

.btn-secondary:hover {
    background: var(--primary-gold);
    color: var(--primary-black);
    transform: translateY(-2px);
}

.btn-pricing {
    background: var(--primary-black);
    color: var(--primary-gold);
    width: 100%;
}

.btn-pricing:hover {
    background: var(--primary-gold);
    color: var(--primary-black);
    transform: translateY(-2px);
}

@keyframes buttonGlow {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    }
    50% {
        box-shadow: 0 8px 35px rgba(212, 175, 55, 0.6);
    }
}

/* Navigation */
.navbar {
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(10px);
}

.logo-main {
    height: 2.5rem;
    width: auto;
    transform-style:preserve-3d;
    object-fit:contain; 
    backface-visibility:visible; 
    filter:drop-shadow(0 10px 18px #0008);
}

.company-name {
    font-family: var(--font-primary);
    font-size: clamp(1rem, 4vw, 2.0rem);
    font-weight: 700;
    color: var(--primary-gold);
    flex-shrink: 1;
    min-width: 0;
}

.nav-link {
    color: var(--white) !important;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition);
}

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

.nav-link:hover::after {
    width: 100%;
    animation: slideUnderline 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-gold) !important;
}

@keyframes slideUnderline {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.dropdown-menu {
    background: var(--primary-black);
}

.dropdown-item {
    color: var(--white);
}

.dropdown-item:hover {
    background: var(--primary-gold);
    color: var(--primary-black);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--gray-dark) 100%);
    color: var(--white);
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

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

.hero-visual {
    position: relative;
    z-index: 0;
}

.hero-title:hover {
    color: var(--primary-gold);
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--light-gold);
    margin-bottom: 1.5rem;
    font-weight: 400;
    overflow: hidden; /* Ensures the text is not visible outside the container */
    white-space: nowrap; /* Keeps the content on a single line */
    margin: 0 auto; /* Gives that scrolling effect as the typing happens */
    letter-spacing: .15em; /* Adjust as needed */
    animation: 
        typing 3.5s steps(40, end),
        blink-caret .75s step-end infinite;
    width: 100%;
}

#hero-carousel {
 padding: 5% !important;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--gray-light);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-visual .carousel-item img {
    border-radius: 12px;
    box-shadow: var(--shadow-heavy);
    height: 400px;
    object-fit: cover;
}

.hero-tagline {
    margin-top: 4rem;
}

.tagline {
    font-size: 1.5rem;
    font-family: var(--font-primary);
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

.vision {
    font-size: 1.1rem;
    color: var(--gray-medium);
    max-width: 800px;
    margin: 0 auto;
}

/* Services Preview */
.services-preview {
    background: var(--gray-light);
}

.section-title {
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 6.25rem;
    height: 0.1875rem;
    background: var(--primary-gold);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.service-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 2px solid transparent;
    height: 100%;
    margin-bottom: 1rem;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-gold);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

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

.service-card p {
    color: var(--gray-dark);
    margin-bottom: 1rem;
    font-weight: 500;
}

.service-subtitle {
    font-style: italic;
    color: var(--primary-gold);
    font-size: 0.9rem;
}

/* About Section */
.about {
    background: var(--white);
}

.about-description {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    color: var(--gray-dark);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.why-choose-us {
    margin-top: 3rem;
}

.reason {
    padding: 1.5rem;
    background: var(--gray-light);
    border-radius: 8px;
    border-left: 4px solid var(--primary-gold);
    margin-bottom: 1rem;
}

.about-team {
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
}

/* Detailed Services */
.detailed-services {
    background: var(--primary-black);
}

.detailed-services .section-title {
    color: var(--white);
}

.service-detail {
    margin-bottom: 4rem;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid var(--primary-gold);
}

.service-detail h3 {
    color: var(--primary-gold);
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

/* Flippable Card Styles */
.flip-card {
    background-color: transparent;
    width: 100%;
    height: 12.5rem;
    perspective: 1000px;
    margin-bottom: 1rem;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

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

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
}

.flip-card-front {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--primary-gold);
    color: var(--primary-gold);
}

.flip-card-front h4 {
    font-size: 1.5rem;
}

.more-info {
    font-style: italic;
    font-size: 0.9rem;
    margin-top: 1rem;
    color: var(--gray-light);
}

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

.flip-card-back p {
    font-size: 1rem;
    color: var(--primary-black);
}


.technical-features ul {
    list-style: none;
    padding-left: 0;
}

.technical-features li {
    color: var(--gray-medium);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.technical-features li::before {
    content: '✓';
    color: var(--primary-gold);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Pricing */
.pricing {
    background: var(--gray-light);
}

.pricing-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    position: relative;
    border: 2px solid transparent;
    height: 100%;
    margin-bottom: 1rem;
}

.pricing-card.featured {
    border-color: var(--primary-gold);
    transform: scale(1.05);
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--gray-dark) 100%);
    color: var(--white);
}

.pricing-card.featured h3,
.pricing-card.featured .package-subtitle {
    color: var(--primary-gold);
}

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

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.pricing-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-align: center;
}

.package-subtitle {
    text-align: center;
    color: var(--primary-gold);
    font-style: italic;
    margin-bottom: 2rem;
}

.package-features ul {
    list-style: none;
    margin-bottom: 2rem;
    padding-left: 0;
}

.package-features li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--gray-medium);
    position: relative;
    padding-left: 2rem;
}

.package-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-gold);
    font-weight: bold;
}

.pricing-note {
    margin-top: 2rem;
}

/* FAQ */
.faq {
    background: var(--white);
}

.accordion-button:not(.collapsed) {
    color: var(--primary-black);
    background-color: var(--light-gold);
}

/* Contact */
.contact {
    background: var(--primary-black);
}

.contact h2 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.contact p {
    color: var(--gray-medium);
}

.consultation-process h3,
.next-steps h3 {
    color: var(--primary-gold);
    margin-bottom: 1.5rem;
}

.consultation-process ul {
    list-style: none;
    padding-left: 0;
}

.consultation-process li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
}

.consultation-process li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--primary-gold);
}

.step {
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border-left: 3px solid var(--primary-gold);
}

.contact-details {
    display: grid;
    gap: 1rem;
}

.contact-item {
    color: var(--gray-medium);
}

.contact-item a {
    color: var(--primary-gold);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.consultation-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--primary-gold);
}

.consultation-form h3 {
    color: var(--primary-gold);
    text-align: center;
    margin-bottom: 2rem;
}

.form-control {
    background-color: var(--primary-black);
    color: var(--white);
    border: 1px solid var(--primary-gold);
}

.form-control::placeholder { /* Placeholder color */
    color: var(--gray-medium); /* Lighter shade of gray */
    opacity: 1; /* Ensure placeholder is not transparent */
}

.form-control:focus {
    background-color: var(--primary-black);
    color: var(--white);
    border-color: var(--light-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.whatsapp-qr h3 {
    color: var(--primary-gold);
    margin-bottom: 1.5rem;
}

.whatsapp-qr img {
    max-width: 150px;
    height: auto;
    border: 4px solid var(--white);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.whatsapp-qr p {
    color: var(--gray-medium);
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: var(--primary-black);
}

.footer h3, .footer h4 {
    color: var(--primary-gold);
}

.footer a {
    color: var(--gray-medium);
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--primary-gold);
}

.logo-footer {
    height: 3.75rem;
    width: auto;
    margin-bottom: 1rem;
}

.social-links a {
    padding: 0.5rem;
    border: 1px solid var(--primary-gold);
    border-radius: 6px;
}

.social-links a:hover {
    background: var(--primary-gold);
    color: var(--primary-black);
}

.footer-bottom {
    color: var(--gray-medium);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .service-card, .pricing-card, .faq-item, .contact-form {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .service-card, .pricing-card, .faq-item, .contact-form {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .service-card, .pricing-card, .faq-item, .contact-form {
        padding: 0.8rem;
    }
}

@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);
    }
}

.animate-in {
    animation: fadeInUp 1s ease forwards;
}

/* Chatbot */
.chatbot-widget {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    width: 80vw;
    max-width: 21.875rem;
    height: 70vh;
    max-height: 31.25rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-heavy);
    display: none;
    flex-direction: column;
    border: 1px solid var(--primary-gold);
    z-index: 1001;
}

.chatbot-header {
    background: var(--primary-black);
    color: var(--primary-gold);
    padding: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 7px 7px 0 0;
}

.chatbot-close {
    background: none;
    border: none;
    color: var(--primary-gold);
    font-size: 1.5rem;
    cursor: pointer;
}

.chatbot-messages {
    flex: 1;
    padding: 0.75rem;
    overflow-y: auto;
}

.bot-message {
    background: var(--gray-light);
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.user-message {
    background: var(--primary-gold);
    color: var(--primary-black);
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    margin-left: 2rem;
    font-size: 0.9rem;
}

.chatbot-input {
    display: flex;
    padding: 0.75rem;
    border-top: 1px solid var(--gray-medium);
}

.chatbot-toggle {
    position: fixed;
    bottom: 1.875rem;
    right: 1.875rem;
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 50%;
    background: var(--primary-gold);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    z-index: 1000;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-heavy);
}

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

@keyframes glitch {
  0% {
    transform: translate(0);
  }
  20% {
    transform: translate(-5px, 5px);
  }
  40% {
    transform: translate(-5px, -5px);
  }
  60% {
    transform: translate(5px, 5px);
  }
  80% {
    transform: translate(5px, -5px);
  }
  100% {
    transform: translate(0);
  }
}

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

/* The typewriter cursor effect */
@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: orange; }
}

/* Neural Network Animation */
.neural-network {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.neural-network canvas {
    width: 100%;
    height: 100%;
}

.hero-title:hover ~ .neural-network canvas {
    filter: brightness(1.5);
}

/* Blog Page Styles */
.blog-header {
    background: var(--primary-black);
    color: var(--white);
    padding: 3.75rem 0;
    text-align: center;
}

.blog-header h1 {
    font-size: 3.5rem;
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
}

.blog-header p {
    font-size: 1.2rem;
    color: var(--gray-light);
}

.blog-container {
    max-width: 75rem; /* Increased max-width for more columns */
    margin: 2.5rem auto;
    padding: 0 1.25rem;
}

.blog-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Adjusted min-width for more columns */
    gap: 1.875rem;
}

.blog-post-item {
    background: var(--white);
    padding: 1.5rem; /* Reduced padding */
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none; /* Remove underline from the card link */
    color: inherit; /* Inherit text color */
    display: block; /* Make the entire card clickable */
    height: 100%; /* Ensure cards in a row have equal height */
}

.blog-post-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.blog-post-item h2 {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem); /* Smaller and responsive font size for headers */
    margin-bottom: 0.8rem; /* Adjusted margin */
}

.blog-post-item h2 a {
    color: inherit; /* Inherit color from parent */
}

.blog-post-item h2 a:hover {
    color: var(--primary-gold); /* Only change color on hover of the link itself */
}

.blog-post-image {
    width: 100%;
    height: 11.25rem; /* Slightly reduced image height */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem; /* Adjusted margin */
}

.blog-post-item p {
    font-size: 0.95rem; /* Slightly smaller paragraph font size */
    line-height: 1.6;
}

.post-meta {
    font-size: 0.85rem; /* Slightly smaller meta font size */
    margin-top: 0.8rem; /* Adjusted margin */
}

/* Adjust blog container max-width for better control on large screens */
.blog-container {
    max-width: 1200px; /* Increased max-width for more columns */
    margin: 40px auto;
    padding: 0 20px;
}

/* Responsive adjustments for blog cards */
@media (max-width: 992px) {
    .blog-list {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Adjust for tablets */
    }
}

@media (max-width: 768px) {
    .blog-list {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Adjust for smaller tablets/large mobiles */
    }
    .blog-post-item {
        padding: 1rem;
    }
    .blog-post-image {
        height: 9.375rem;
    }
    .blog-post-item h2 {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .blog-list {
        grid-template-columns: 1fr; /* Single column on small mobiles */
    }
    .blog-post-item {
        padding: 1rem;
    }
    .blog-post-image {
        height: 7.5rem;
    }
    .blog-post-item h2 {
        font-size: 1.1rem;
    }
    .post-meta {
        font-size: 0.8rem;
    }
}
@media (max-width: 992px) { /* Adjust for smaller screens if navbar height changes */
    body {
        padding-top: 3.75rem;
    }
}