/* --- GLOBAL SETTINGS --- */
html { scroll-behavior: smooth; }

:root {
    --accent: #ff4c31;
    --glass-border: rgba(255, 255, 255, 0.4);
    --text-white: #ffffff;
    --text-gray: #a9a9b3;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }

body {

    background-size: cover;
    color: var(--text-white);
    overflow-x: hidden;
    line-height: 1.6;
    background-color: black;
}

/* --- ANIMATIONS --- */
@keyframes wave-animation {
    0%, 100% { transform: rotate(0deg); }
    10%, 30%, 50% { transform: rotate(14deg); }
    20%, 40% { transform: rotate(-8deg); }
}

.wave-emoji { display: inline-block; animation: wave-animation 2.5s infinite; transform-origin: 70% 70%; }

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

/* --- Scroll Reveal --- */
.js .reveal {
    opacity: 0;
    transform: translateX(0);
    transition: transform 0.9s ease, opacity 0.9s ease;
    will-change: transform, opacity;
}

.js .reveal.from-left { transform: translateX(-70px); }
.js .reveal.from-right { transform: translateX(70px); }

.js .reveal.in-view {
    opacity: 1;
    transform: translateX(0);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .js .reveal,
    .js .reveal.in-view {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}


/* --- LOGO STYLING --- */
.logo a { display: block; line-height: 0; }
.logo img { height: 60px; width: auto; display: block; transition: filter 0.3s ease; }
.logo a:hover img { filter: invert(43%) sepia(78%) saturate(3683%) hue-rotate(344deg) brightness(100%) contrast(101%); }

/* --- NAVIGATION --- */
nav {
    display: flex; justify-content: space-between; align-items: center; 
    padding: 10px 10%; position: fixed; width: 100%; top: 0;
    backdrop-filter: blur(15px); z-index: 1000;
}

.logo img { height: 80px; width: auto; display: block; }
.nav-links { list-style: none; display: flex; gap: 30px; }
.nav-links a { text-decoration: none; color: white; font-size: 1.1rem; font-weight: 600; transition: 0.3s; }
.nav-links a:hover { color: var(--accent); }

.hamburger { display: none; flex-direction: column; cursor: pointer; gap: 5px; z-index: 1100; }
.hamburger span { display: block; width: 30px; height: 3px; background: white; transition: 0.4s; border-radius: 10px; }
.hamburger.toggle span:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
.hamburger.toggle span:nth-child(2) { opacity: 0; }
.hamburger.toggle span:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }

.btn-hire {
    background: var(--accent); border: none; padding: 10px 25px; color: white;
    border-radius: 50px; font-weight: 600; cursor: pointer; transition: 0.3s ease;
}

.btn-hire:hover { transform: scale(1.05); filter: brightness(1.2); box-shadow: 0 0 15px rgba(255, 76, 49, 0.4); }

/* Typewriter cursor */
#typewriter {
  display: inline-block;
  white-space: nowrap;
}

#typewriter::after{
    content: " |";
    animation: tw-blink 0.9s steps(1) infinite;
}

@keyframes tw-blink{
  50% { opacity: 0; }
}


/* --- SECTIONS --- */
.hero { display: flex; align-items: center; justify-content: space-between; padding: 150px 10% 60px; min-height: 90vh; }
.hero-content { max-width: 500px; }
.hero-content h1 { font-size: 4.5rem; line-height: 1.1; margin-bottom: 20px; font-weight: 800; }
.hero-content span.accent { color: var(--accent); }
.hero-content p { color: var(--text-gray); margin-bottom: 30px; }
.hero-image img { width: 400px; border-radius: 20px; z-index: 2; }

.logo-banner {
    width: 100%; padding: 15px 0; background: transparent; 
    backdrop-filter: blur(10px); border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1); overflow: hidden; position: relative;
}
.banner-track { display: flex; width: max-content; animation: scroll-right-to-left 45s linear infinite; }
.banner-track img { height: auto; width: 100vw; display: block; }

.about-me { padding: 60px 10%; }
.about-content {
    background: transparent; border: 1px solid var(--text-white); padding: 30px;
    border-radius: 30px; backdrop-filter: blur(10px); margin: 0 auto; text-align: justify;
}
.accent { color: var(--accent);}
.expert-areas { padding: 60px 5%; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 3rem; font-weight: 800; }
.section-header span { color: var(--accent); }

.expert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 0 2%; }
.expert-card {
    background: transparent; border: 1px solid whitesmoke; padding: 40px 20px;
    border-radius: 30px; text-align: center; backdrop-filter: blur(10px);
    transition: 0.4s ease; display: flex; flex-direction: column; align-items: center;
}
.expert-card:hover { border-color: var(--accent); transform: translateY(-10px); background: rgba(255, 76, 49, 0.05); }
.expert-card img { width: 80px; height: 80px; margin-bottom: 20px; object-fit: contain; }

/* --- PORTFOLIO --- */
.portfolio { padding: 60px 10% 10px; }
.portfolio-category { margin-bottom: 40px; }
.portfolio-category h3 { color: whitesmoke; font-size: 1.8rem; margin: 40px 0 20px; text-align: center; font-weight: 600; letter-spacing: 2px; }

.grid-reels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-ads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-promo { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.portfolio-item {
    background: #000; border-radius: 20px; cursor: pointer;
    transition: 0.4s ease; box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    border: 1px solid var(--glass-border); overflow: hidden; position: relative;
}

.portfolio-item iframe { width: 100%; height: 100%; border: none; border-radius: 20px; }
.portfolio-item:hover { transform: translateY(-10px); border-color: var(--accent); }

.tall { height: 480px; width: 100%; }
.square { aspect-ratio: 1/1; width: 100%; }
.wide { height: 260px; width: 100%; }

#backToTop {
    position: fixed; bottom: 40px; right: 40px; width: 50px; height: 50px;
    background: transparent; border: 2px solid var(--accent); color: white;
    border-radius: 50%; display: flex; justify-content: center; align-items: center;
    text-decoration: none; font-size: 24px; z-index: 2000; opacity: 0;
    visibility: hidden; transition: 0.3s; backdrop-filter: blur(10px);
}
#backToTop.show { opacity: 1; visibility: visible; }
/* ===== Back To Top: Mobile Fix ===== */
.is-mobile #backToTop {
  bottom: 20px;
  right: 16px;
  width: 44px;
  height: 44px;
  font-size: 20px;
  border-width: 1.5px;
}

/* --- EXPLORE MORE SECTION --- */
.explore-more { padding: 10px 10% 60px; text-align: center; }
.explore-btns { display: flex; justify-content: center; gap: 25px; }
.explore-btn { background: transparent; border: 1px solid var(--glass-border); color: var(--text-white); padding: 14px 45px;
                border-radius: 50px; font-size: 1.1rem; font-weight: 600; cursor: pointer; transition: all 0.4s ease; backdrop-filter: blur(10px); }
.explore-btn:hover { background: var(--accent); border-color: var(--accent); color: white; transform: translateY(-5px); box-shadow: 0 10px 20px rgba(255, 76, 49, 0.3); }

/* --- CONTACT ME --- */
.contact-me { padding: 60px 10% 60px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; }
.contact-info h2 { font-size: 3rem; font-weight: 800; margin-bottom: 20px; }
.contact-info h2 span { color: var(--accent); }
.contact-info p { color: var(--text-gray); margin-bottom: 5px; max-width: 400px; }
.contact-details { margin-bottom: 40px; }
.detail-item { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.contact-icon { width: 30px; height: 30px; object-fit: contain; }
.detail-item h4 { font-size: 1.1rem; font-weight: 600; margin-top: 5px; margin-bottom: 5px; }
.detail-item p { color: var(--text-gray); }
.social-links a img { margin-left: -12px; height: 30px; margin-top: 5px;}
.social-links a:hover img { filter: invert(43%) sepia(78%) saturate(3683%) hue-rotate(344deg) brightness(100%) contrast(101%); }

.contact-form-container { background: transparent; border: 1px solid var(--glass-border); padding: 40px; border-radius: 30px; backdrop-filter: blur(10px); }
.contact-form-container h3 { font-size: 1.8rem; font-weight: 700; margin-bottom: 30px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--text-white); }
.form-group input, .form-group textarea {
    width: 100%; padding: 15px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--glass-border);
    border-radius: 12px; color: var(--text-white); font-size: 1rem; outline: none; transition: 0.3s;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent); }
.btn-submit {
    background: var(--accent); color: var(--text-white); border: none; padding: 15px 30px; font-size: 1.1rem;
    font-weight: 600; border-radius: 50px; cursor: pointer; transition: 0.3s; width: 100%;
}

/* --- FOOTER --- */
footer { text-align: center; padding: 20px 10%; color: var(--text-gray);border-top: 1px solid var(--glass-border); background: transparent}

/* --- RESPONSIVENESS --- */
@media (max-width: 900px) {
    .hamburger { display: flex; }
    .nav-links {
        position: fixed; right: -100%; top: 0; height: 100vh; width: 100%;
        background: rgba(13, 6, 23, 0.98); backdrop-filter: blur(20px);
        flex-direction: column; align-items: center; justify-content: center;
        transition: 0.5s ease; z-index: 1050;
    }
    .nav-links.active { right: 0; }
    .hero { flex-direction: column; text-align: center; }
    .hero-image img { width: 300px; margin-top: 50px; }
    .expert-grid, .grid-reels, .grid-ads, .grid-promo, .contact-grid { grid-template-columns: 1fr; }
}

/* --- Explore More --- */
@media (max-width: 768px) {
    .explore-btns { flex-direction: column; align-items: center; gap: 15px; }
    .explore-btn { width: 100%; max-width: 300px; }
}

/* ===== Portfolio Carousel (mobile) ===== */
.is-mobile .grid-reels,
.is-mobile .grid-ads,
.is-mobile .grid-promo {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 10px 6px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.is-mobile .grid-reels::-webkit-scrollbar,
.is-mobile .grid-ads::-webkit-scrollbar,
.is-mobile .grid-promo::-webkit-scrollbar {
  height: 6px;
}

.is-mobile .portfolio-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

/* Responsive slide sizes (avoid fixed px widths on mobile) */
.is-mobile .tall   { width: 82vw; aspect-ratio: 9 / 16; height: auto; }
.is-mobile .square { width: 82vw; aspect-ratio: 1 / 1;  height: auto; }
.is-mobile .wide   { width: 92vw; aspect-ratio: 16 / 9; height: auto; }

/* ===== Carousel Controls injected by JS ===== */
.carousel-wrap {
  position: relative;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: rgba(13, 6, 23, 0.65);
  backdrop-filter: blur(10px);
  color: var(--text-white);
  cursor: pointer;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  opacity: 0.95;
}

.carousel-btn:hover {
  border-color: var(--accent);
}

.carousel-btn.prev { left: -6px; }
.carousel-btn.next { right: -6px; }

/* Only show buttons on mobile (still swipeable) */
.is-desktop .carousel-btn,
.is-tablet .carousel-btn {
  display: none;
}
