/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: #0f0f0f;
    color: #ffffff;
}

/* Header nav bar - Clean & Floating */
header {
    position: fixed;
    width: 100%;
    top: 20px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    padding: 0 40px;
    background: transparent; /* Remove the black box */
}

.logo-container {
    position: relative;
    z-index: 1001;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    color: #ffffff;
    transition: 0.3s;
    text-shadow: 0px 0px 10px rgba(0, 230, 230, 0.7);
}

.logo:hover {
    color: #00e6e6;
}

/* Navbar Styling - Now Transparent */
.nav-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.08); /* Subtle glass effect */
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Navigation Links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    padding: 10px 15px;
    transition: all 0.3s ease-in-out;
}

/* Futuristic Hover Glow */
.nav-links a:hover {
    color: #00e6e6;
    text-shadow: 0px 0px 10px rgba(0, 230, 230, 0.8);
}

/* Underline Effect on Hover */
.nav-links a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: #00e6e6;
    transition: width 0.3s ease, left 0.3s ease;
}

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

/* Language Switcher */
.language-switcher {
    margin-left: 20px;
}

#language-select {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

#language-select:focus {
    outline: none;
}

    /* Responsive Navigation */
    @media screen and (max-width: 900px) {
        header {
            flex-direction: column;
            align-items: center;
            padding: 10px 20px;
        }
    
        .logo-container {
            margin-bottom: 10px;
        }
    
        .nav-container {
            padding: 10px 20px;
        }
    
        .nav-links {
            gap: 20px;
        }
    }

    /* Hero Section */
    .hero{
      display:flex;
      align-items:center;
      /* leave the full height look, but add top padding so it doesn't sit under the fixed header */
      min-height:100vh;
      padding:120px 24px 40px; /* top accounts for fixed header */
      background:linear-gradient(to right,#0f0f0f,#1a1a1a);
      overflow:hidden; /* prevent any overflow */
    }
    
    .hero-inner{
      width:100%;
      max-width:1200px;
      margin:0 auto;
      display:grid;
      grid-template-columns:1.2fr 1fr;  /* text larger than image */
      align-items:center;
      gap:56px;
    }
    
    .hero-content{ text-align:left; }
    .hero-content h1{ font-size:48px; font-weight:700; }
    .hero-content h1 span{ color:#00e6e6; }
    .hero-content p{ font-size:18px; margin-top:10px; opacity:.8; }
    
    .hero-media { 
      display: flex; 
      justify-content: center; 
      align-items: center;
    }
    
    .hero-img {
    width: clamp(220px, 32vw, 380px);
    height: auto;
    object-fit: contain;
    display: block;
    border: none;
    background: transparent;
        filter: drop-shadow(0 6px 18px rgba(0,230,230,0.25))
              drop-shadow(0 0 12px rgba(0,230,230,0.35));
    }
    
    .btn {
        display: inline-block;
        margin-top: 20px;
        padding: 12px 30px;
        background: #00e6e6;
        color: #0f0f0f;
        font-weight: 600;
        border-radius: 5px;
        text-decoration: none;
        transition: 0.3s;
    }
    
    .btn:hover {
        background: #ffffff;
    }

/* About Me Section - White Contrast */
.about-me {
    padding: 100px 50px;
    text-align: center;
    background: #ffffff;
    color: #0a0a0a;
    position: relative;
}

/* Floating Gradient Glow */
.about-me::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 230, 230, 0.2) 0%, transparent 80%);
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.4;
    filter: blur(100px);
}

/* About Me Container */
.about-container {
    max-width: 800px;
    margin: auto;
}

/* Section Title */
.about-me h2 {
    font-size: 36px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #0a0a0a;
}

/* About Text */
.about-text {
    font-size: 20px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.8);
    line-height: 1.6;
    max-width: 700px;
    margin: auto;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-in-out forwards;
}

/* Smooth Fade-In Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .about-text {
        font-size: 16px;
    }
}


/* Timeline Section */
.timeline-section {
    padding: 80px 50px;
    text-align: center;
    background: #0f0f0f;
}

.timeline-section h2 {
    font-size: 32px;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Timeline Layout */
.timeline {
    position: relative;
    max-width: 800px;
    margin: auto;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 4px;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-50%);
}

/* Timeline Section */
.timeline-section {
    padding: 80px 50px;
    text-align: center;
    background: #0f0f0f;
}

.timeline-section h2 {
    font-size: 32px;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Timeline Layout */
.timeline {
    position: relative;
    max-width: 900px;
    margin: auto;
}

/* Vertical Line */
.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 4px;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-50%);
}

/* Timeline Item */
.timeline-item {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    position: relative;
    margin-bottom: 20px; /* Reduce gap between items */
    padding: 10px 0; /* Less padding */
}

/* Timeline Dot */
.timeline-dot {
    width: 12px;
    height: 12px;
    background: #00e6e6;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

/* Timeline Content */
.timeline-content {
    width: 42%;
    background: #1a1a1a;
    padding: 10px 15px; /* Reduce padding */
    border-radius: 8px;
    transition: 0.3s ease;
    position: relative;
}

/* Alternating Left & Right */
.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
    text-align: left;
}

.timeline-item:nth-child(even) {
    text-align: right;
}

/* Positioning the Content Boxes */
.timeline-item:nth-child(odd) .timeline-content {
    transform: translateX(-8%);
}

.timeline-item:nth-child(even) .timeline-content {
    transform: translateX(8%);
}

/* Hover Effect */
.timeline-content:hover {
    background: #00e6e6;
    color: #0f0f0f;
}

.timeline-content:hover h3 {
    color: #0f0f0f;
}

.timeline-content:hover p {
    color: #0f0f0f;
}

/* Responsive Fixes */
@media screen and (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 40px;
    }

    .timeline-dot {
        left: 20px;
    }

    .timeline-content {
        width: 90%;
        text-align: left;
        transform: none;
    }
}


/* Work Experience Section */
.work-section {
    padding: 80px 50px;
    text-align: center;
    background: #0f0f0f;
}

.work-section h2 {
    font-size: 32px;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Work Category */
.work-category {
    margin-bottom: 50px;
}

.work-category h3 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #00e6e6;
    text-transform: uppercase;
}

/* Work Grid Layout */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: auto;
}

/* Work Items - Clean Card Style */
.work-item {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
    transition: 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
}

/* Unique Hover Effect */
.work-item:hover {
    background: #00e6e6;
    color: #0f0f0f;
    transform: translateY(-5px);
}

/* Work Item Title */
.work-item h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

/* Work Item Description */
.work-item p {
    font-size: 14px;
    opacity: 0.8;
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .work-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}



/* Services Section */
.services-section {
    padding: 100px 50px;
    text-align: center;
    background: #0a0a0a;
    position: relative;
    overflow: hidden;
}

/* Floating Neon Glow Background */
.services-section::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 230, 230, 0.3) 0%, transparent 70%);
    top: -50px;
    left: -50px;
    opacity: 0.6;
    filter: blur(120px);
}

.services-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
}

.services-intro {
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 700px;
    margin: auto;
    color: rgba(255, 255, 255, 0.8);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: auto;
}

/* Individual Service Item */
.service-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 14px;
    text-align: center;
    transition: 0.4s ease-in-out;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transform: scale(1);
}

/* Glow Effect */
.service-glow {
    position: absolute;
    top: -30px;
    left: -30px;
    width: 100px;
    height: 100px;
    background: rgba(0, 230, 230, 0.2);
    border-radius: 50%;
    filter: blur(40px);
    transition: 0.3s ease-in-out;
    opacity: 0;
}

/* Service Icons */
.service-icon {
    font-size: 40px;
    margin-bottom: 15px;
    color: #00e6e6;
    transition: 0.3s ease-in-out;
}

/* Service Title */
.service-item h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
}

/* Service Description */
.service-item p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    transition: 0.3s ease-in-out;
}

/* Hover Effects */
.service-item:hover {
    background: rgba(0, 230, 230, 0.2);
    transform: scale(1.05);
}

.service-item:hover .service-glow {
    opacity: 1;
}

.service-item:hover h3,
.service-item:hover p {
    color: #00e6e6;
}

.service-item:hover .service-icon {
    color: #ffffff;
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* 🔹 Social Media Ad Section */
.social-ads-section {
    padding: 50px;
    background: white;
    color: #0f0f0f; /* Dark text for contrast */
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* 🔹 Ad Creation Wrapper */
.ad-creation-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 50px auto;
    padding: 40px;
    background: #0f0f0f; /* Black background */
    color: #ffffff; /* White text */
    border-radius: 20px;
    box-shadow: 0px 0px 25px rgba(0, 230, 230, 0.3);
}

/* 🔹 Left Side: Ad Elements */
.ad-elements {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 45%; /* Make sure it has 45% of the width */
}

.ad-item {
    font-size: 18px;
    background: #1a1a1a; /* Dark background */
    color: #ffffff; /* White text */
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    width: 100%;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}


/* 🔹 Ad Preview Box */
.ad-preview {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
}

.preview-label {
    font-size: 16px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.7);
}

/* 🔹 Make the Preview Box Ready for Animation */
.preview-box {
    width: 100%;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

/* 🔹 Text Animation Inside the Preview Box */
.creation-step {
    font-size: 18px;
    font-weight: bold;
    color: white;
    position: absolute;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}


.preview-text {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.preview-shape,
.preview-button {
    opacity: 1 !important;
    transform: none !important;
    display: block !important;
}


/* 🔹 Right Side: Final Ad Upload Box */
.ad-frame {
    width: 50%;
    height: 55vh;
    background: #1a1a1a; /* Dark background */
    color: #ffffff; /* White text */
    box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.2);    border-radius: 15px;
    position: relative;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

/* 🔹 Title & Description Styling */
.ad-title {
    font-size: 20px;
    font-weight: bold;
    color: white;
    margin-bottom: 10px;
}

.ad-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-bottom: 20px;
}

/* 🔹 Initially Dimmed Ad Image */
.final-ad-image {
    width: 95%;
    max-width: 380px;
    border-radius: 12px;
    box-shadow: 0px 6px 15px rgba(0, 230, 230, 0.5);
    opacity: 0.3; /* Start slightly invisible */
    filter: blur(8px); /* Start with blur */
    transition: opacity 1s ease-in-out, filter 1s ease-in-out, transform 0.8s ease-in-out;
}

/* 🔹 Fully Appear When Ready */
.final-ad-image.visible {
    opacity: 1;
    filter: blur(0px);
    transform: scale(1.05);
}

.final-ad-image:hover {
    transform: scale(1.05); /* Slight zoom on hover */
    box-shadow: 0px 8px 20px rgba(0, 230, 230, 0.8);
}

.ad-button {
    background: #00e6e6; /* Futuristic neon color */
    color: #0f0f0f; /* Dark text for readability */
    font-weight: bold;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.ad-button:hover {
    background: #ffffff;
}

/* 🔹 Inside the Ad Frame */
.ad-loading-text {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.6);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}


/* Footer Section */
.footer {
    background: #0a0a0a;
    padding: 20px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle Glowing Line */
.footer::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, #00e6e6, transparent);
    top: 0;
    left: 0;
}

/* Footer Container */
.footer-container {
    max-width: 1000px;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Footer Text */
.footer-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* Footer Links */
.footer-links {
    display: flex;
    gap: 15px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    text-decoration: none;
    transition: 0.3s ease-in-out;
}

/* Hover Effects */
.footer-links a:hover {
    color: #00e6e6;
    text-shadow: 0px 0px 10px rgba(0, 230, 230, 0.8);
}

/* ===========================
   MOBILE-ONLY OVERRIDES
   =========================== */
@media (max-width: 768px) {

  /* lock width; avoid side-scroll & bounce x */
  html, body {
    max-width: 100vw;
    overflow-x: hidden;
    overscroll-behavior-x: none;
    touch-action: manipulation;
  }

  /* Header is NOT fixed on mobile (so the logo scrolls) */
  header {
    position: static;
    padding: 14px 16px;
    background: transparent;
  }

  /* Floating menu toggle (follows scroll) */
  .nav-toggle {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 12px);
    right: calc(env(safe-area-inset-right, 0px) + 12px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(20,20,20,0.68);
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
    z-index: 1100;
  }
  .nav-toggle span {
    width: 20px; height: 2px; background:#fff;
    display:block; margin:3.8px 0;
    transition: transform .25s ease, opacity .25s ease;
  }
  .nav-toggle.is-open span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2){ opacity: 0; }
  .nav-toggle.is-open span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

  /* Off-canvas / drop panel */
  .nav-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    transform: translateY(-110%);
    transition: transform .28s ease;
    padding-top: calc(env(safe-area-inset-top, 0px) + 64px);
    padding-bottom: 16px;
    background: rgba(12,12,12,0.96);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 10px 30px rgba(0,0,0,0.45);
    z-index: 1099;
  }
  .nav-container.is-open { transform: translateY(0); }

  /* Stack links, large tap targets */
  .nav-links {
    list-style:none; margin:0; padding:0 16px 8px;
    display:flex; flex-direction:column; gap:10px;
  }
  .nav-links li a {
    display:block;
    padding:14px 16px;
    font-size:16px; line-height:1.2;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius:12px;
  }
  .nav-links a::after { display:none; } /* kill desktop underline effect */

  /* Language picker inside panel */
  .language-switcher { padding: 6px 16px 14px; }
  #language-select {
    width:100%;
    padding:10px 12px;
    font-size:15px;
    border-radius:10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color:#fff;
  }

  /* Prevent page scroll when menu open (JS toggles .menu-open) */
  body.menu-open {
    position: fixed;
    inset: 0;
    overflow: hidden;
  }

  /* Hero spacing now that header is not fixed */
  .hero {
    min-height: auto;
    padding: 28px 18px 28px;
  }
  .hero-inner { grid-template-columns: 1fr; gap: 20px; }
  .hero-content { text-align: center; }
  .hero-content h1 { font-size: 34px; line-height: 1.2; }
  .hero-content p { font-size: 16px; }
  .hero-img { width: clamp(180px, 55vw, 320px); }

  /* Sections tightening */
  .about-me { padding: 56px 18px; }
  .about-me h2 { font-size: 28px; }
  .about-text { font-size: 16px; }

  .timeline-section { padding: 56px 18px; }
  .timeline-content { padding: 12px 14px; }

  .work-section { padding: 56px 18px; }
  .work-grid { grid-template-columns: 1fr; gap: 14px; }

  .services-section { padding: 64px 18px; }
  .services-grid { grid-template-columns: 1fr; gap: 14px; }

  .social-ads-section { padding: 48px 18px; }
  .ad-creation-wrapper { flex-direction: column; gap: 18px; padding: 20px; }
  .ad-elements, .ad-frame { width: 100%; }
  .ad-frame { height: auto; padding: 18px; }

  .footer { padding: 20px 18px; }
  .footer-links { flex-direction: column; gap: 8px; }
}

/* ===========================
   TABLET OVERRIDES (769px–1024px)
   =========================== */
@media (min-width: 769px) and (max-width: 1024px) {
  
  header {
    padding: 16px 24px;
  }

  .logo {
    font-size: 20px;
  }

  .nav-container {
    padding: 10px 20px;
    gap: 16px;
  }

  .nav-links {
    gap: 18px;
  }

  .nav-links a {
    font-size: 15px;
    padding: 8px 12px;
  }

  .language-switcher {
    margin-left: 12px;
  }

  #language-select {
    font-size: 13px;
    padding: 4px 8px;
  }

  /* Hero adjustments for tablet */
  .hero {
    padding: 100px 20px 40px;
  }
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .hero-content h1 {
    font-size: 38px;
  }
  .hero-content p {
    font-size: 16px;
  }
  .hero-img {
    width: clamp(200px, 40vw, 320px);
  }

  /* Section paddings tightened slightly */
  .about-me,
  .timeline-section,
  .work-section,
  .services-section {
    padding: 70px 28px;
  }
}

