/* ==================================== */
/* 1. Custom Properties               */
/* ==================================== */
:root {
    --primary-color: #e74c3c; /* Vibrant Red */
    --secondary-color: #a42b2b; /* Lighter Red */
    --text-color-primary: #111; /* Dark Text */
    --text-color-secondary: #555; /* Mid-grey Text */
    --bg-color-main: #f4f4f4; /* Light Grey Background */
    --bg-color-card: #ffffff; /* White for Cards & Containers */
    --border-color: #ddd; /* Light Grey Border */
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* ==================================== */
/* 2. Base & Global Styles            */
/* ==================================== */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-family);
    background-color: var(--bg-color-main);
    color: var(--text-color-primary);
    line-height: 1.6;
    text-align: center;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

h1, h2, h3, h4 {
    font-weight: bold;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 0.5em;
}

h1 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.8rem;
}
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; color: var(--primary-color); }
h4 { font-size: 1.5rem; }

p {
    font-size: 1.1rem;
    margin: 0 auto 1em;
    color: var(--text-color-secondary);
    max-width: 800px;
}

/* ==================================== */
/* 3. Layout & Sections               */
/* ==================================== */
header, footer, section {
    box-sizing: border-box;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em 5%;
    background-color: var(--bg-color-card);
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

main {
    /* Ensures main content doesn't interfere with other elements */
    display: block;
}

footer {
    text-align: center;
    padding: 1.5em 5%;
    background-color: var(--bg-color-card);
    color: #777;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}

section {
    padding: 5em 5%;
    border-bottom: 1px solid var(--border-color);
}

section:last-of-type {
    border-bottom: none;
}

.hero {
    background-color: var(--bg-color-card);
    padding: 6em 5%;
}

.hero h2 {
    font-size: 3rem;
    color: var(--text-color-primary);
    max-width: 800px;
    margin: 0 auto 0.5em;
}

.hero p {
    font-size: 1.3rem;
    max-width: 650px;
    margin: 0 auto 2em;
}

.intro, .why-choose {
    background-color: var(--bg-color-main);
}

/* ==================================== */
/* 4. Logo & Components               */
/* ==================================== */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 50px;
    width: auto;
    border-radius: 5px;
}

.cta-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 1em 2em;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    letter-spacing: 0.5px;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border: none;
    cursor: pointer;
}

.cta-btn:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.service-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2em;
    margin: 3em auto 0;
    max-width: 1200px;
}

.service-item {
    background-color: var(--bg-color-card);
    padding: 2.5em;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-basis: 300px;
    flex-grow: 1;
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.service-item h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0.5em;
}

.clients ul {
    list-style: none;
    padding-left: 0;
    display: flex;
    justify-content: center;
    gap: 1em;
    flex-wrap: wrap;
}

.clients li {
    font-size: 1.1rem;
    color: var(--text-color-secondary);
    background-color: var(--bg-color-card);
    padding: 0.5em 1.5em;
    border-radius: 50px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.bottom-cta {
    padding: 6em 5%;
    background-color: var(--primary-color);
    color: white;
}

.bottom-cta h3 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1em;
}

.bottom-cta .cta-btn {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid white;
}

.bottom-cta .cta-btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
}

/* ==================================== */
/* 5. REFINED NAVIGATION STYLES       */
/* ==================================== */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 1em;
}

nav li {
    height: 50px;
}

.main-nav .hideOnMobile a {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 15px;
    font-family: var(--font-family);
    font-weight: 600;
    color: var(--text-color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.main-nav .hideOnMobile a:hover {
    color: var(--primary-color);
    background-color: transparent;
}

.main-nav .hideOnMobile a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s ease-in-out;
}

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

.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 250px;
    z-index: 1001;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: -10px 0 10px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    display: flex;
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
}

.sidebar.visible {
    transform: translateX(0);
}

.sidebar li {
    width: 100%;
    height: auto;
}

.sidebar a {
    display: block;
    width: 100%;
    padding: 1.2rem 2rem;
    font-family: var(--font-family);
    font-weight: 600;
    color: var(--text-color-primary);
    text-decoration: none;
    box-sizing: border-box;
}

.sidebar a:hover {
    background-color: var(--bg-color-main);
    color: var(--text-color-primary);
}

.menu-button {
    display: none;
}

.menu-button svg path,
.close-button svg path {
    fill: var(--primary-color);
}

.menu-button a:hover,
.close-button a:hover {
    background: none;
    color: var(--text-color-primary);
}
.close-button a:hover::after {
    width: 0;
}

/* ==================================== */
/* 6. FORM STYLES                     */
/* ==================================== */
.service-form-section {
    background-color: var(--bg-color-main);
}
.uiux-form {
    background-color: var(--bg-color-card);
}
.website-dev-form {
     background-color: var(--bg-color-main);
}
.form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3em;
    background-color: var(--bg-color-card);
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    text-align: left; /* Align form content to the left */
}
.service-form-section:nth-child(even) .form-container {
    background-color: var(--bg-color-main);
}

.form-container h3, .form-container p {
    text-align: center; /* Keep titles centered */
}
.form-container p {
    margin-bottom: 2.5em;
}

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

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5em;
    color: var(--text-color-primary);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="url"],
.form-group input[type="date"],
.form-group textarea {
    width: 100%;
    padding: 1em;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 1rem;
    font-family: var(--font-family);
    transition: border-color 0.3s, box-shadow 0.3s;
}

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

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

.helper-text {
    font-size: 0.9rem;
    color: var(--text-color-secondary);
    margin-top: 0.5em;
    margin-bottom: 0;
    text-align: left;
}

.service-form {
    display: flex;
    flex-direction: column;
}

.service-form .cta-btn {
    align-self: center; /* Center the submit button */
    margin-top: 1.5em;
}

/* ==================================== */
/* 7. ABOUT PAGE SPECIFIC STYLES      */
/* ==================================== */
.belief-list {
    max-width: 800px;
    margin: 0 auto;
}

.belief-list p {
    margin-bottom: 1.2em;
    padding-left: 0;
}

.brand-list {
    max-width: 800px;
    margin: 0 auto;
}

.brand-list p {
    margin-bottom: 1.2em;
    padding-left: 0;
}

/* ==================================== */
/* 8. TESTIMONIALS SECTION            */
/* ==================================== */
.testimonials {
    text-align: center;
    background-color: var(--bg-color-card);
    padding: 5em 5%;
    border-bottom: 1px solid var(--border-color);
}

.testimonials h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 2em;
}

.testimonial-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2em;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background-color: var(--bg-color-card);
    padding: 2.5em;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.6s ease;
}

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

.testimonial-card.fade-in,
.testimonial-card.is-visible {
    animation: fadeInUp 0.6s ease-out forwards;
}

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

.testimonial-card .quote {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-color-secondary);
    margin-bottom: 1em;
    line-height: 1.6;
}

.testimonial-card .client-name {
    font-weight: bold;
    color: var(--text-color-primary);
    text-align: right;
    margin-top: 1em;
    font-size: 1rem;
}

.testimonial-card .project-title {
    font-weight: normal;
    color: var(--text-color-secondary);
    text-align: right;
    font-size: 0.9rem;
    margin-top: 0.5em;
}

/* ==================================== */
/* 9. RESPONSIVE DESIGN               */
/* ==================================== */
@media (max-width: 992px) {
    h2 { font-size: 2rem; }
    h3 { font-size: 1.8rem; }
    .hero { padding: 6em 5%; }
    .bottom-cta h3 { font-size: 2rem; }
}

@media (max-width: 800px) {
    .hideOnMobile {
        display: none;
    }
    .menu-button {
        display: block;
    }
}

@media (max-width: 768px) {
    .hero h2 { font-size: 2.2rem; }
    .form-container { padding: 2em; }
    
    .testimonial-container {
        grid-template-columns: 1fr;
    }
    
    .testimonials {
        padding: 4em 5%;
    }
    
    .testimonial-card {
        padding: 2em;
    }
}

@media (max-width: 576px) {
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }
    p { font-size: 1rem; }
    .hero { padding: 4em 5%; }
    .form-container { padding: 1.5em; }
}

@media (max-width: 400px) {
    .sidebar {
        width: 100%;
    }
}

.slideshow-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    background: #f9f9f9;
    padding: 20px 0;
}

.slide-track {
    display: flex;
    width: max-content;
    animation: scroll 35s linear infinite;
}

.slide-track img {
    width: 100%;
    height: 100%;
    max-width: 600px;
    max-height: 500px;
    margin: 0 15px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    display: block;
}

/* Animation */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Smooth scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hover scaling for cards and images */
.project-card, .speaker, .service-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover, .speaker:hover, .service-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.slideshow-container {
  width: 100%;
  overflow: hidden;
  padding: 2rem 0;
}

.slide-track {
  display: flex;
  animation: scroll 25s linear infinite;
}

.slide {
  flex: 0 0 auto;
  margin: 0 15px;
}

.slide img {
  width: 280px;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

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

.project-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.about-author {
  background: #f8faff;
  padding: 4rem 2rem;
  border-top: 2px solid #eee;
}

.author-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  max-width: 900px;
  margin: auto;
}

.author-card img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.author-text h4 {
  margin-bottom: 0.8rem;
  color: #0d1b4c;
}

/* ==================================== */
/* Global Reset                        */
/* ==================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

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

a { 
    text-decoration: none; 
    transition: 0.3s ease; 
    color: var(--primary-color); 
}

a:hover { 
    color: var(--secondary-color); 
}

/* ==================================== */
/* Navbar                               */
/* ==================================== */
.navbar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    background: var(--primary-color); 
    padding: 1rem 2rem; 
    position: sticky; 
    top: 0; 
    z-index: 100; 
    box-shadow: var(--box-shadow);
}

.logo a { 
    color: #fff; 
    font-size: 1.6rem; 
    font-weight: bold; 
}

.nav-links a { 
    margin: 0 1rem; 
    color: #fff; 
}

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

.cta-btn { 
    background: #fff; 
    color: var(--primary-color); 
    padding: 0.5rem 1rem; 
    border-radius: 6px; 
    font-weight: 600; 
    border: 2px solid var(--primary-color); 
    transition: 0.3s ease; 
}

.cta-btn:hover { 
    background: var(--secondary-color); 
    color: #fff; 
    border-color: var(--secondary-color); 
}

/* ==================================== */
/* Hero Section                         */
/* ==================================== */
.hero { 
    background: linear-gradient(rgba(231,76,60,0.85), rgba(231,76,60,0.85)),
                url('../images/jjkk.jpg') center/cover;
    color: #fff; 
    text-align: center; 
    padding: 6rem 2rem; 
}

.hero h2 { 
    font-size: 2.5rem; 
    margin-bottom: 1rem; 
}

.hero p { 
    font-size: 1.2rem; 
    margin-bottom: 2rem; 
}

.hero-btn { 
    background: #fff; 
    color: var(--primary-color); 
    border: none; 
    padding: 0.8rem 1.5rem; 
    font-size: 1rem; 
    border-radius: 8px; 
    cursor: pointer; 
    font-weight: 600; 
    transition: 0.3s ease; 
}

.hero-btn:hover { 
    background: var(--secondary-color); 
    color: #fff; 
}

/* ==================================== */
/* Sections                             */
/* ==================================== */
section { 
    padding: 4rem 2rem; 
    text-align: center; 
}
h3 { font-size: 2rem; margin-bottom: 1rem; }

/* ==================================== */
/* About Author                         */
/* ==================================== */
.about-author { 
    background: var(--bg-color-main); 
    padding: 4rem 2rem; 
    border-top: 2px solid var(--border-color); 
}

.author-card { 
    display: flex; 
    flex-wrap: wrap; 
    align-items: center; 
    gap: 2rem; 
    max-width: 900px; 
    margin: auto; 
    text-align: left; 
}

.author-card img { 
    width: 180px; 
    height: 180px; 
    border-radius: 50%; 
    object-fit: cover; 
    box-shadow: 0 6px 16px rgba(0,0,0,0.2); 
}

.service-form-section {
  display: none;
}

.service-form-section {
  display: none; /* Hide all forms by default */
}



.author-text h4 { 
    margin-bottom: 0.8rem; 
    color: var(--primary-color); 
}

/* ==================================== */
/* Footer                               */
/* ==================================== */
.footer { 
    background: var(--primary-color); 
    color: #fff; 
    padding: 2rem; 
    text-align: center; 
}

.footer-links a { 
    margin: 0 0.8rem; 
    color: #fff; 
}

.footer-links a:hover { 
    color: var(--bg-color-main); 
}

/* ==================================== */
/* Responsive                           */
/* ==================================== */
@media (max-width: 768px) {
  .navbar { flex-direction: column; }
  .author-card { flex-direction: column; text-align: center; }
}

