/* ==========================================================================
   Base Styles
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #4a90e2;
    --secondary: #333;
    --accent: #f5a623;
    --light: #f8f9fa;
    --dark: #fff;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    color: #555;
    line-height: 1.8;
    overflow-x: hidden;
    background-color: #fff;
    font-family: 'Roboto', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* ==========================================================================
   Reusable Components
   ========================================================================== */

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

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(245, 241, 241, 0.1);
}

.btn-transparent {
    background-color: transparent;
    border: 2px solid white;
}

.btn-transparent:hover {
    background-color: white;
    color: var(--secondary);
}

.section {
    padding: 80px 0;
}
/* ===============================
   ABOUT SECTION (Image Top Layout)
   =============================== */

.about-section {
  padding: 80px 20px;
  background-color: #f9f9f9;
}

.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.about-image {
  width: 100%;
  max-width: 800px;
  margin-bottom: 40px;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
  transition: transform 0.6s ease;
}

.about-image:hover img {
  transform: scale(1.05);
}

/* Section Title */
.section-title {
  text-align: center;
  color: var(--secondary);
  padding: 0 20px;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary);
}

.section-title p {
  font-size: 1.1rem;
  color: #666;
  max-width: 700px;
  margin: 20px auto 0;
  line-height: 1.7;
}

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

@media (max-width: 992px) {
  .section-title h2 {
    font-size: 2.2rem;
  }

  .section-title p {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .about-section {
    padding: 60px 15px;
  }

  .about-image {
    margin-bottom: 30px;
  }

  .section-title h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .about-section {
    padding: 40px 10px;
  }

  .section-title h2 {
    font-size: 1.5rem;
  }

  .section-title p {
    font-size: 0.95rem;
  }
}

/* ==========================================================================
   Header
   ========================================================================== */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #fff;
    padding: 20px 0;
    transition: var(--transition);
    border-bottom: 1px solid #eee;
}

header.scrolled {
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(249, 245, 245, 0.05);
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary);
}

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

.nav-menu {
    display: flex;
}

.nav-menu li {
    margin: 0 15px;
}

.nav-menu a {
    color: var(--secondary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

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

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

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 1.8rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    height: 90vh;
    background: none;
    display: flex;
    align-items: center;
    text-align: left;
    color: var(--secondary);
    position: relative;
}

.hero-content {
    max-width: 600px;
    margin: 0;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.hero-btns .btn {
    margin: 0 10px;
}

.hero-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image img {
    max-width: 80%;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* ==========================================================================
   About Section
   ========================================================================== */

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image img {
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.about-text h3 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--secondary);
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* ==========================================================================
   Services Section
   ========================================================================== */

.services {
    background-color: var(--light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-card {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    text-align: left;
    border: 1px solid #eee;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary);
}

/* ==========================================================================
   Video Showcase Section
   ========================================================================== */

.video-showcase {
    margin-bottom: 60px;
    text-align: center;
}

.video-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    background: #000;
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(74,144,226,0.8), rgba(245,166,35,0.8));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.video-container:hover .video-overlay {
    opacity: 1;
}

.video-overlay h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.video-overlay p {
    font-size: 1.1rem;
    max-width: 80%;
    margin: 0 auto;
}

/* Responsive video styles */
@media (max-width: 768px) {
    .video-container {
        max-width: 100%;
        margin: 0 20px;
    }
    
    .video-overlay h3 {
        font-size: 1.5rem;
    }
    
    .video-overlay p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .video-overlay h3 {
        font-size: 1.2rem;
    }
    
    .video-overlay p {
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   Portfolio & Client Sections
   ========================================================================== */

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

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

.portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

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

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

.portfolio-overlay h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.portfolio-overlay p {
    color: #ddd;
    margin-bottom: 20px;
}

.client-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    align-items: center;
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */

.testimonials {
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1770&q=80') no-repeat center center/cover;
    color: white;
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.testimonial {
    text-align: center;
    padding: 30px;
    display: none;
}

.testimonial.active {
    display: block;
    animation: fadeIn 1s ease;
}

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

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
}

.testimonial-text::before,
.testimonial-text::after {
    content: '"';
    font-size: 3rem;
    color: var(--primary);
    position: absolute;
}

.testimonial-text::before {
    top: -20px;
    left: -20px;
}

.testimonial-text::after {
    bottom: -40px;
    right: -20px;
}

.testimonial-author {
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 20px;
}

.testimonial-role {
    color: var(--primary);
    font-size: 0.9rem;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.testimonial-controls button {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    margin: 0 10px;
    cursor: pointer;
    transition: var(--transition);
}

.testimonial-controls button:hover {
    color: var(--primary);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--secondary);
}

.contact-details {
    margin-top: 30px;
}

.contact-detail {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    color: white;
    font-size: 1.2rem;
}

.contact-form {
    flex: 1;
    min-width: 300px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 10px rgba(243, 156, 18, 0.3);
}

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

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
  background-color: #0a0a0a;
  color: #f5f5f5;
  text-align: center;
  padding: 60px 20px 30px;
  position: relative;
  overflow: hidden;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-logo {
  font-size: 2rem;
  font-weight: 700;
  color: #d4af37; /* gold accent */
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.footer-tagline {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 30px;
}

.footer-nav h3 {
  color: #f5f5f5;
  margin-bottom: 15px;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0 auto 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.footer-links li {
  display: inline-block;
}

.footer-links a {
  text-decoration: none;
  color: #ccc;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 5px 10px;
  border-radius: 5px;
}

.footer-links a:hover {
  color: #fff;
  background-color: #d4af37;
}

.footer-note {
  font-size: 0.9rem;
  color: #999;
  margin-top: 20px;
}

/* 🌐 Responsive Design */
@media (max-width: 600px) {
  .footer-logo {
    font-size: 1.6rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 10px;
  }

  .footer-nav h3 {
    font-size: 1rem;
  }

  footer {
    padding: 40px 15px 20px;
  }
}

/* ==========================================================================
   Animation Styles
   ========================================================================== */

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation for grid items */
.service-card:nth-child(1) { transition-delay: 0.1s; }
.service-card:nth-child(2) { transition-delay: 0.2s; }
.service-card:nth-child(3) { transition-delay: 0.3s; }

.portfolio-item:nth-child(1) { transition-delay: 0.1s; }
.portfolio-item:nth-child(2) { transition-delay: 0.2s; }
.portfolio-item:nth-child(3) { transition-delay: 0.3s; }

/* Particle Effect */
.particle {
    position: absolute;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.6;
    pointer-events: none;
    animation: float 3s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.6; }
    50% { transform: translateY(-20px) rotate(180deg); opacity: 1; }
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.1s ease;
    mix-blend-mode: difference;
}

.custom-cursor.active {
    opacity: 1;
    transform: scale(1.5);
}

/* Loading Animation */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.loader::before {
    content: '';
    width: 50px;
    height: 50px;
    border: 3px solid var(--light);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Magnetic Button Hover Effect */
.btn-magnetic {
    transition: transform 0.3s ease;
}

/* Pulse Animation for CTAs */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.btn-pulse {
    animation: pulse 2s infinite;
}

/* Bounce Animation for Icons */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.bounce {
    animation: bounce 2s infinite;
}

/* Counter Animation */
.counter {
    font-weight: bold;
    color: var(--primary);
}

/* Parallax Elements */
.parallax {
    will-change: transform;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        background-color: white;
        width: 250px;
        height: calc(100vh - 70px);
        flex-direction: column;
        padding: 40px 20px;
        transition: var(--transition);
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    .nav-menu a {
        color: var(--secondary);
        font-weight: 500;
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid #eee;
    }
    
    .nav-menu a:hover {
        color: var(--primary);
    }
    
    .hamburger {
        display: block;
        transition: var(--transition);
    }
    
    .hamburger.active {
        color: var(--primary);
        transform: rotate(90deg);
    }
    
    .hamburger.active i::before {
        content: '\f00d';
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .about-image::before {
        display: none;
    }
    
    .hero-btns .btn {
        margin: 10px;
        display: block;
    }
    
    /* Hide custom cursor on mobile */
    .custom-cursor {
        display: none;
    }
}

@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 80vh;
        padding-top: 80px; /* prevents navbar overlap */
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        padding: 0 1rem;
        width: 100%;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
    }

    .hero-btns .btn {
        width: 90%;
        max-width: 280px;
    }

    .custom-cursor {
        display: none;
    }
}

@media (max-width: 576px) {
    .hero {
        min-height: 70vh;
        padding-top: 60px;
    }

    .hero-content h1 {
        font-size: 1.6rem;
        line-height: 1.3;
        margin-bottom: 15px;
    }

    .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .hero-btns .btn {
        font-size: 0.9rem;
        padding: 10px 18px;
    }
}