/* 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 - 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;
    }
}


/* Portfolio Section */
/* 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;
    margin-top: 50px;
}

/* 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));
    }
}

/* Popup Overlay */
.project-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    backdrop-filter: blur(5px);
}

/* Popup Content */
.popup-content {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    width: 80%;
    max-width: 800px;
    position: relative;
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #ffffff;
    cursor: pointer;
}

/* Image Slider */
.slider {
    position: relative;
    max-width: 100%;
    overflow: hidden;
}

.slider-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider-container img {
    display: none;
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.slider-container img.active {
    display: block;
}

/* Navigation Buttons */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
}

.prev { left: 10px; }
.next { right: 10px; }

/* Logo Showcase Section */
.logo-showcase {
    padding: 120px 50px;
    text-align: center;
    background: white;
    color: #0f0f0f;
    position: relative;
    overflow: hidden;
}

/* Title */
.logo-showcase h2 {
    font-size: 42px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(to right, #00e6e6, #0f0f0f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

/* Subtitle */
.logo-subtitle {
    font-size: 18px;
    margin-bottom: 50px;
    color: rgba(0, 0, 0, 0.7);
}

/* Floating Logos Container */
.floating-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    margin: auto;
    position: relative;
}

/* Logo Bubbles */
.logo-bubble {
    width: 200px;  /* Increased size */
    height: 200px; /* Increased size */
    background: rgba(0, 230, 230, 0.15);
    border-radius: 50%;
    box-shadow: 0px 0px 30px rgba(0, 230, 230, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
    position: relative;
    animation: floatAnimation 6s infinite alternate ease-in-out;
}

/* Logo Images */
.logo-bubble img {
    width: 140px;  /* Increased size */
    transition: transform 0.5s ease-in-out;
}

/* Hover Effect - Tilt & Glow */
.logo-bubble:hover {
    transform: scale(1.1) rotateY(10deg);
    box-shadow: 0px 0px 40px rgba(0, 230, 230, 0.8);
}

.logo-bubble:hover img {
    transform: scale(1.2);
}

/* Floating Animation */
@keyframes floatAnimation {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-15px);
    }
}

/* Parallax Scroll Effect */
@media (prefers-reduced-motion: no-preference) {
    .floating-logos {
        will-change: transform;
        animation: parallaxMove 10s linear infinite alternate;
    }

    @keyframes parallaxMove {
        from {
            transform: translateY(-10px);
        }
        to {
            transform: translateY(10px);
        }
    }
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .logo-bubble {
        width: 160px;  /* Slightly smaller for mobile */
        height: 160px;
    }

    .logo-bubble img {
        width: 120px;
    }
}

/* AI Image Generation Section */
.ai-generation-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 100px;
    background: #0f0f0f;
    position: relative;
    margin-bottom: 0px; /* Pushes the text down properly */
}

/* AI Prompt (Left Side) */
.ai-prompt {
    font-size: 18px;
    color: #ffffff;
    font-family: 'Courier New', monospace;
    width: 40%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.05);
    min-height: 60px;
    display: flex;
    align-items: center;
}

/* Cursor Blinking Effect */
.cursor {
    animation: blinkCursor 0.8s infinite;
    color: #00e6e6;
}

@keyframes blinkCursor {
    50% { opacity: 0; }
}

/* Generate Button (Middle) */
.generate-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
}

#generate-btn {
    background: linear-gradient(45deg, #00e6e6, #0077ff);
    color: #0f0f0f;
    font-size: 18px;
    font-weight: bold;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

#generate-btn:hover {
    transform: scale(1.05);
    box-shadow: 0px 0px 15px rgba(0, 230, 230, 0.7);
}

/* Mouse Cursor Animation */
.mouse-cursor {
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    opacity: 0;
    transition: transform 0.5s ease-in-out;
}

/* AI Image Container (Right Side) */
.generated-image-container {
    position: relative;
    width: 40%;
    min-height: 200px;
}

/* Loading Effect */
#loading-effect {
    width: 100%;
    height: 200px;
    background: linear-gradient(45deg, rgba(0, 230, 230, 0.2), rgba(255, 255, 255, 0.1));
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

/* Glitchy Load Effect */
@keyframes glitchEffect {
    0% { opacity: 0.1; transform: scale(0.9); filter: blur(10px); }
    50% { opacity: 0.5; transform: scale(1.05); filter: blur(5px); }
    100% { opacity: 1; transform: scale(1); filter: blur(0); }
}

#generated-image {
    width: 100%;
    border-radius: 8px;
    opacity: 0;
    transform: scale(0.9);
}

/* AI Description - Full Width & Centered */
.ai-description {
    text-align: center;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-top: -35px;
    margin-bottom: 35px;
    width: 100%; /* Ensures it spans the full width */
    max-width: 1000px; /* Prevents it from being too stretched */
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    padding: 25px;
    font-weight: 400;
    border-radius: 10px;
}

/* Highlighting Important Words */
.ai-description strong {
    color: #00e6e6;
    font-weight: 700;
}

/* Optional Glow Effect for Emphasis */
.ai-description strong:hover {
    text-shadow: 0px 0px 10px rgba(0, 230, 230, 0.8);
}

/* 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 (≤768px) — Portfolio
   =========================== */
@media (max-width: 768px) {
  /* lock width; avoid side-scroll */
  html, body { max-width: 100vw; overflow-x: hidden; overscroll-behavior-x: none; touch-action: manipulation; }

  /* Header is NOT fixed; logo scrolls with page */
  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,.18);
    background: rgba(20,20,20,.68); backdrop-filter: blur(10px);
    box-shadow:0 6px 20px rgba(0,0,0,.35);
    z-index:1100;
  }
  .nav-toggle span{ display:block; width:20px; height:2px; background:#fff; 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 menu */
  .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,.96);
    border-bottom:1px solid rgba(255,255,255,.08);
    box-shadow:0 10px 30px rgba(0,0,0,.45);
    z-index:1099;
    /* override desktop glass for mobile */
    border-radius:0; backdrop-filter:none; border:none; box-shadow:none;
  }
  .nav-container.is-open{ transform: translateY(0); }

  .nav-links{
    list-style:none; margin:0; padding:0 16px 8px;
    display:flex; flex-direction:column; gap:10px;
  }
  .nav-links a{
    display:block; padding:14px 16px; font-size:16px; line-height:1.2;
    background: rgba(255,255,255,.06);
    border:1px solid rgba(255,255,255,.12);
    border-radius:12px;
  }
  .nav-links a::after{ display:none; }
  .language-switcher{ padding:6px 16px 14px; }
  #language-select{
    width:100%; padding:10px 12px; font-size:15px; color:#fff;
    background: rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12); border-radius:10px;
  }
  body.menu-open{ position: fixed; inset:0; overflow:hidden; }

  /* Timeline */
  .timeline-section{ padding: 56px 18px; }
  .timeline-section h2{ margin-top: 0; font-size: 28px; }
  .timeline::before{ left: 20px; }
  .timeline-item{ flex-direction: column; align-items: flex-start; padding-left: 40px; }
  .timeline-dot{ left: 20px; }
  .timeline-content{ width: 90%; transform:none; padding: 12px 14px; text-align: left; }

  /* Work grid: single column, tidy spacing */
  .work-section{ padding: 56px 18px; }
  .work-grid{ grid-template-columns: 1fr; gap: 14px; }
  .work-item{ padding: 16px; }

  /* Logo showcase */
  .logo-showcase{ padding: 56px 18px; }
  .logo-showcase h2{ font-size: 32px; letter-spacing: 1px; }
  .logo-subtitle{ font-size: 16px; margin-bottom: 28px; }
  .floating-logos{ gap: 18px; }
  .logo-bubble{ width: 150px; height: 150px; }
  .logo-bubble img{ width: 110px; }

  /* AI generator section: stack vertically */
  .ai-generation-section{
    flex-direction: column; gap: 16px;
    padding: 28px 18px;
  }
  .ai-prompt, .generated-image-container{ width: 100%; }
  .ai-prompt{ font-size: 16px; min-height: 56px; }
  .generate-container{ width: 100%; padding: 8px 0; }
  #generate-btn{ width: 100%; }
  .generated-image-container{ min-height: 180px; }
  #loading-effect{ height: 180px; }
  .ai-description{
    margin: 18px auto 32px; font-size: 16px; line-height: 1.7;
    padding: 18px; max-width: 760px;
  }

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

/* ===========================
   TABLET (769px–1024px) — Portfolio
   =========================== */
@media (min-width: 769px) and (max-width: 1024px) {
  header{ padding: 16px 24px; }
  .logo{ font-size: 20px; }
  .nav-container{ padding: 10px 20px; }
  .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; }
  .nav-toggle{ display:none; } /* keep inline nav on tablets */

  .timeline-section{ padding: 72px 28px; }
  .timeline-section h2{ font-size: 30px; }
  .timeline-content{ padding: 14px 16px; }

  .work-section{ padding: 72px 28px; }
  .work-grid{ grid-template-columns: repeat(2, minmax(260px, 1fr)); gap: 18px; }

  .logo-showcase{ padding: 80px 28px; }
  .floating-logos{ gap: 28px; }
  .logo-bubble{ width: 180px; height: 180px; }
  .logo-bubble img{ width: 130px; }

  .ai-generation-section{
    padding: 56px 28px; gap: 22px;
  }
  .ai-prompt{ width: 45%; font-size: 17px; }
  .generated-image-container{ width: 45%; }
  .ai-description{ font-size: 18px; max-width: 900px; padding: 20px; }
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

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