/**
* Template Name: FolioOne
* Template URL: https://bootstrapmade.com/folioone-bootstrap-portfolio-website-template/
* Updated: Aug 23 2025 with Bootstrap v5.3.7
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
*/

/*--------------------------------------------------------------
# Font & Color Variables
# Help: https://bootstrapmade.com/color-system/
--------------------------------------------------------------*/
/* Fonts */
:root {
  --default-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "Inter", sans-serif;
  --nav-font: "Inter", sans-serif;
}

/* Global Colors - The following color variables are used throughout the website. Updating them here will change the color scheme of the entire website */
:root { 
  --background-color: #e8e8e8; /* Background color for the entire website, including individual sections - %18 Gray Card */
  --default-color: #2c2c2c; /* Default color used for the majority of the text content across the entire website - Koyu gri */
  --heading-color: #1a1a1a; /* Color for headings, subheadings and title throughout the website - Çok koyu gri */
  --accent-color: #ff6b35; /* Accent color that represents your brand on the website. It's used for buttons, links, and other elements that need to stand out - Turuncu */
  --surface-color: #e8e8e8; /* The surface color is used as a background of boxed elements within sections, such as cards, icon boxes, or other elements that require a visual separation from the global background. - %18 Gray Card */
  --contrast-color: #1a1a1a; /* Contrast color for text, ensuring readability against backgrounds of accent, heading, or default colors. - Çok koyu gri */
}


/* Nav Menu Colors - The following color variables are used specifically for the navigation menu. They are separate from the global colors to allow for more customization options */
:root {
  --nav-color: #ffffff;  /* BEYAZ - Home/Works/Contact */
  --nav-hover-color: #ff6b35; /* Applied to main navmenu links when they are hovered over or active - Turuncu */
  --nav-mobile-background-color: #e8e8e8; /* Used as the background color for mobile navigation menu - %18 Gray Card */
  --nav-dropdown-background-color: #e8e8e8; /* Used as the background color for dropdown items that appear when hovering over primary navigation items - %18 Gray Card */
  --nav-dropdown-color: #2c2c2c; /* Used for navigation links of the dropdown items in the navigation menu. - Koyu gri */
  --nav-dropdown-hover-color: #ff6b35; /* Similar to --nav-hover-color, this color is applied to dropdown navigation links when they are hovered over. */
}

/* Color Presets - These classes override global colors when applied to any section or element, providing reuse of the sam color scheme. */

.light-background {
  --background-color: #9a9a9a; /* koyu gri */
  --surface-color: #9a9a9a;
}

.dark-background {
  --background-color: #0b1419;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #252525;
  --contrast-color: #ffffff;
}

/* Smooth scroll */
:root {
  scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
  position: relative;
}

/* Anamorphic cinema mask overlay - header'ı atla */
body::after {
  content: none !important; /* 2:35 mask kapalı */
}

/* Homepage gets same background as other pages */
body.index-page {
  background: linear-gradient(to right, #f5e8dc 0%, #efe1d6 50%, #e7d6c8 100%) !important;
  overflow-y: hidden;
}

/* FORCE: Make Works/Contact identical to homepage */
body.portfolio-page,
body.contact-page {
  color: var(--default-color);
  background: linear-gradient(to right, #f5e8dc 0%, #efe1d6 50%, #e7d6c8 100%) !important;
  font-family: var(--default-font);
  position: relative;
}

body.portfolio-page::before,
body.contact-page::before {
  content: none !important;
}

/* Disable vertical scroll on the homepage to keep it full-screen */
body.index-page {
  overflow-y: hidden;
}

/* Hero section blur enhancement */
.hero {
  position: relative;
}

.hero::before { content: none !important; }

.hero .container {
  position: relative;
  z-index: 10000; /* Mask'ın üstünde olsun */
}

/* Typing Animation Styling */
.typed {
  font-weight: 500;
  line-height: 1.4;
  position: relative;
  z-index: 10001; /* Mask'ın üstünde olsun */
}

/* First line (Cinematographer & Visual Storyteller) special styling */
.typed br + * {
  font-weight: 700;
  font-size: 1.15em;
  letter-spacing: 0.8px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  color: var(--heading-color);
}

/* Showreel Modal Styles */
.showreel-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

.showreel-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 1200px;
  height: 80vh;
  max-height: 600px;
  background: var(--surface-color);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: slideIn 0.3s ease;
}

.showreel-close {
  position: absolute;
  top: 15px;
  right: 20px;
  color: var(--default-color);
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
  transition: color 0.3s ease;
}

.showreel-close:hover {
  color: var(--accent-color);
}

.showreel-video-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.showreel-video-container video,
.showreel-video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  background-color: black;
}

/* Modal Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { 
    opacity: 0;
    transform: translate(-50%, -60%);
  }
  to { 
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .showreel-modal-content {
    width: 95%;
    height: 70vh;
    max-height: 400px;
  }
  
  .showreel-close {
    top: 10px;
    right: 15px;
    font-size: 24px;
  }
}


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

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

/* PHP Email Form Messages
------------------------------*/
.php-email-form .error-message {
  display: none;
  background: #df1529;
  color: #ffffff;
  text-align: left;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .sent-message {
  display: none;
  color: #ffffff;
  background: #059652;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .loading {
  display: none;
  background: var(--surface-color);
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
}

.php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid var(--accent-color);
  border-top-color: var(--surface-color);
  animation: php-email-form-loading 1s linear infinite;
}

@keyframes php-email-form-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {
  --background-color: rgba(0, 0, 0, 0.75); /* MASK İLE AYNI RENK */
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 15px 0;
  transition: all 0.5s;
  z-index: 9999; /* mask'ın üstünde olsun */
  border-bottom: none !important; /* SİYAH ÇİZGİYİ KALDIR */
}

/* Header offset geri alındı */
/* (önceki kaydırma kaldırıldı) */

/* Force grey background specifically when header uses light-background */
.header.light-background {
  --background-color: rgba(0, 0, 0, 0.75) !important; /* MASK İLE AYNI RENK */
  --nav-color: #ffffff !important; /* BEYAZ navigation */
  --default-color: #ffffff !important; /* BEYAZ sosyal medya ikonları */
  background-color: var(--background-color) !important;
  border-bottom: none !important; /* SİYAH ŞERİDİ KALDIR */
}

/* TÜM NAVIGATION LİNKLERİ BEYAZ */
.header .navmenu a,
.header.light-background .navmenu a {
  color: #ffffff !important;
}

.header .navmenu a:hover,
.header .navmenu .active,
.header.light-background .navmenu a:hover,
.header.light-background .navmenu .active {
  color: #ffffff !important;
}

/* SOSYAL MEDYA İKONLARI BEYAZ - BACKGROUND KALDIR */
.header .header-social-links a,
.header.light-background .header-social-links a {
  color: #ffffff !important;
  background: none !important;
  background-color: transparent !important;
  border: none !important;
}

/* LANG TOGGLE BEYAZ */
.header .lang-toggle,
.header.light-background .lang-toggle {
  color: #ffffff !important; /* TR/Language metni beyaz */
  border-color: #ffffff !important;
}

/* SİYAH ÇİZGİYİ TAMAMEN KALDIR */
.header,
.header.light-background,
.header.sticky-top,
.header.d-flex {
  border-bottom: none !important;
  border: none !important;
  box-shadow: none !important;
}

.header .logo {
  line-height: 1;
}

.header .logo img {
  max-height: 36px;
  margin-right: 8px;
}

.header .logo h1 {
  font-size: 32px;
  margin: 0;
  font-weight: 400;
  color: var(--heading-color);
}

.header .header-social-links {
  display: none !important;
}

.header .header-social-links a {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  padding: 3px;
  display: inline-block;
  transition: 0.3s;
  font-size: 12px;
}

.header .header-social-links a:hover {
  color: var(--default-color);
}

.header .header-social-links a i {
  line-height: 0px;
}

/* Bottom header styling */
/* Bottom mask bar, same thickness as header - ALL PAGES */
.bottom-mask {
  display: none !important;
}


/* Language Flag Dropdown */
.lang-dropdown { position: relative; display: inline-block; margin-left: 8px; }
.lang-flag-btn {
  width: 28px; height: 28px; border-radius: 50%; background: none; border: 2px solid #ffffff;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
  transition: transform 0.2s ease;
}
.lang-flag-btn:hover { transform: scale(1.05); }
.flag-icon { display: inline-block; width: 16px; height: 16px; border-radius: 2px; background-size: cover; background-position: center; }
/* CSS-only simple flags */
.flag-icon-en { background-image: linear-gradient(0deg, #00247d 0 33%, #ffffff 33% 66%, #cf142b 66% 100%); }
.flag-icon-tr { background-image: radial-gradient(circle at 55% 50%, #ffffff 12%, transparent 13%), radial-gradient(circle at 62% 50%, #e30a17 12%, transparent 13%), linear-gradient(#e30a17,#e30a17); }
/* Germany flag: black-red-gold */
.flag-icon-de { background-image: linear-gradient(0deg, #000000 0 33%, #dd0000 33% 66%, #ffce00 66% 100%); }
/* China flag: red base with star hint */
.flag-icon-zh { background-image: radial-gradient(circle at 30% 30%, #ffd700 10%, transparent 11%), linear-gradient(#de2910,#de2910); }
.lang-menu {
  position: fixed; right: 12px; top: 64px; background: rgba(0,0,0,0.88);
  border: 1px solid rgba(255,255,255,0.3); border-radius: 8px; padding: 6px; min-width: 150px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.35); display: none; z-index: 20000; pointer-events: auto;
}
.lang-menu.open { display: block; }
.lang-item { width: 100%; background: transparent; border: none; color: #ffffff; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 6px; cursor: pointer; }
.lang-item:hover { background: rgba(255,255,255,0.08); }

@media (max-width: 1200px) {
  .header .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
  }

  .header .logo {
    order: 1;
    display: none; /* Logo'yu mobilde gizle */
  }

  .header .navmenu {
    order: 2;
    width: auto;
    justify-content: center;
  }

  .header .header-social-links {
    order: 3;
    justify-content: flex-end;
  }
}

/* Global Header on Scroll
------------------------------*/
.scrolled .header {
  --background-color: rgba(0, 0, 0, 0.9);
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/* Desktop Navigation */
@media (min-width: 1200px) {
  .navmenu {
    padding: 0;
  }

  .navmenu ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
  }

  .navmenu li {
    position: relative;
  }

  .navmenu>ul>li {
    white-space: nowrap;
    padding: 15px 28px 15px 0;
  }

  .navmenu>ul>li:last-child {
    padding-right: 0;
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-color);
    font-size: 15px;
    padding: 0 2px;
    font-family: var(--nav-font);
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
    position: relative;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    transition: 0.3s;
  }

  .navmenu>ul>li>a:before {
    content: "";
    position: absolute;
    height: 2px;
    bottom: -6px;
    left: 0;
    background-color: var(--nav-hover-color);
    visibility: hidden;
    width: 0px;
    transition: all 0.3s ease-in-out 0s;
  }

  .navmenu a:hover:before,
  .navmenu li:hover>a:before,
  .navmenu .active:before {
    visibility: visible;
    width: 25px;
  }

  .navmenu li:hover>a,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-hover-color);
  }

  .navmenu .dropdown ul {
    margin: 0;
    padding: 10px 0;
    background: var(--nav-dropdown-background-color);
    display: block;
    position: absolute;
    visibility: hidden;
    left: -5px;
    top: 130%;
    opacity: 0;
    transition: 0.3s;
    border-radius: 4px;
    z-index: 99;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
  }

  .navmenu .dropdown ul li {
    min-width: 200px;
  }

  .navmenu .dropdown ul a {
    padding: 10px 20px;
    font-size: 15px;
    text-transform: none;
    color: var(--nav-dropdown-color);
  }

  .navmenu .dropdown ul a i {
    font-size: 12px;
  }

  .navmenu .dropdown ul a:hover,
  .navmenu .dropdown ul .active:hover,
  .navmenu .dropdown ul li:hover>a {
    color: var(--nav-dropdown-hover-color);
  }

  .navmenu .dropdown:hover>ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
  }

  .navmenu .dropdown .dropdown ul {
    top: 0;
    left: -90%;
    visibility: hidden;
  }

  .navmenu .dropdown .dropdown:hover>ul {
    opacity: 1;
    top: 0;
    left: -100%;
    visibility: visible;
  }
}

/* Mobile Navigation */
@media (max-width: 1199px) {
  .mobile-nav-toggle {
    display: none !important; /* Hamburger menüyü gizle */
  }

  .navmenu {
    padding: 0;
    z-index: 9997;
  }

  .navmenu ul {
    display: flex !important; /* Menüyü her zaman göster */
    list-style: none;
    position: static;
    padding: 0;
    margin: 0;
    background: none;
    border: none;
    box-shadow: none;
    overflow: visible;
    flex-direction: row;
    gap: 20px;
    justify-content: center;
    align-items: center;
  }

  .navmenu a,
  .navmenu a:focus {
    color: #ffffff;
    padding: 8px 12px;
    font-family: var(--nav-font);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    transition: 0.3s;
    min-height: 36px;
    border-radius: 6px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  }

  .navmenu a i:hover,
  .navmenu a:focus i:hover {
    background-color: var(--accent-color);
    color: var(--contrast-color);
  }

  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus {
    color: #ffffff;
    background-color: rgba(255, 107, 53, 0.3);
    transform: translateY(-2px);
  }

  .navmenu .active i,
  .navmenu .active:focus i {
    background-color: var(--accent-color);
    color: var(--contrast-color);
    transform: rotate(180deg);
  }

  .navmenu .dropdown ul {
    position: static;
    display: none;
    z-index: 99;
    padding: 10px 0;
    margin: 10px 20px;
    background-color: var(--nav-dropdown-background-color);
    transition: all 0.5s ease-in-out;
  }

  .navmenu .dropdown ul ul {
    background-color: rgba(33, 37, 41, 0.1);
  }

  .navmenu .dropdown>.dropdown-active {
    display: block;
    background-color: rgba(33, 37, 41, 0.03);
  }

  .mobile-nav-active {
    overflow: hidden;
  }

  .mobile-nav-active .mobile-nav-toggle {
    color: #fff;
    position: absolute;
    font-size: 32px;
    top: 15px;
    right: 15px;
    margin-right: 0;
    z-index: 9999;
  }

  .mobile-nav-active .navmenu {
    position: fixed;
    overflow: hidden;
    inset: 0;
    background: rgba(33, 37, 41, 0.8);
    transition: 0.3s;
  }

  .mobile-nav-active .navmenu>ul {
    display: block;
  }
}

/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
  color: var(--default-color);
  background-color: var(--background-color);
  font-size: 14px;
  padding: 40px 0 160px 0; /* bottom padding increased more to clear mask */
  position: relative;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 92%);
}

.footer .copyright p {
  margin-bottom: 0;
}

.footer .social-links {
  margin-top: 20px;
}

.footer .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 50%);
  font-size: 16px;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  margin: 0 5px;
  transition: 0.3s;
}

.footer .social-links a:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
}

/* Works sayfasında footer'ı gizle */
.portfolio-page .footer {
  display: none !important;
}

/* Portfolio açıklama yazılarını gizle */
.portfolio-page .episode-count {
  display: none !important;
}

/* Desktop'ta portfolio filter'ları eski haline getir - mobile override'ları iptal et */
@media screen and (min-width: 769px) {
  .portfolio .portfolio-filters {
    gap: 40px !important;
    padding: 0 !important;
    overflow-x: visible !important;
    justify-content: center !important;
  }
  
  .portfolio .portfolio-filters li {
    font-size: 0.9em !important;
    padding: 0 !important;
    min-height: auto !important;
    white-space: normal !important;
    flex-shrink: initial !important;
  }
}


/* Contact sayfası - SADECE MOBİLE İÇİN */
@media screen and (max-width: 768px) {
  .contact-page {
    height: 100vh !important;
    overflow: hidden !important;
  }

  .contact-page .contact.section {
    padding: 0 !important;
    height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding-top: 90px !important;
  }

  .contact-page .container {
    margin: 0 auto !important;
    max-width: 600px !important;
    width: 100% !important;
  }

  .contact-page .contact-form {
    margin: 0 !important;
    text-align: center !important;
    padding: 0 20px !important;
  }

  .contact-page .contact-form h3 {
    margin-bottom: 1.5rem !important;
    font-size: 2rem !important;
  }

  /* Form elemanları arasındaki boşlukları minimal yap - SADECE MOBİLE */
  .contact-page .contact-form .form-control {
    padding: 0.75rem !important;
    margin-bottom: 1rem !important;
    font-size: 0.9rem !important;
    height: 50px !important;
  }

  .contact-page .contact-form textarea {
    height: 100px !important;
    resize: none !important;
  }

  .contact-page .contact-form .btn {
    padding: 0.75rem 1.5rem !important;
    font-size: 1rem !important;
    margin-top: 1rem !important;
  }

  .contact-page .contact-form .row {
    margin-bottom: 0 !important;
  }

  .contact-page .contact-form .col-md-6,
  .contact-page .contact-form .col-12 {
    margin-bottom: 0.5rem !important;
  }
}

.footer .credits {
  margin-top: 10px;
  font-size: 13px;
  text-align: center;
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  background-color: var(--background-color);
  transition: all 0.6s ease-out;
  width: 100%;
  height: 100vh;
}

#preloader:before,
#preloader:after {
  content: "";
  position: absolute;
  border: 4px solid var(--accent-color);
  border-radius: 50%;
  animation: animate-preloader 2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

#preloader:after {
  animation-delay: -0.5s;
}

@keyframes animate-preloader {
  0% {
    width: 10px;
    height: 10px;
    top: calc(50% - 5px);
    left: calc(50% - 5px);
    opacity: 1;
  }

  100% {
    width: 72px;
    height: 72px;
    top: calc(50% - 36px);
    left: calc(50% - 36px);
    opacity: 0;
  }
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: -15px;
  z-index: 99999;
  background-color: var(--accent-color);
  width: 44px;
  height: 44px;
  border-radius: 50px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: var(--contrast-color);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
  bottom: 15px;
}

/*--------------------------------------------------------------
# Mobile & Tablet Optimizations
--------------------------------------------------------------*/

/* iPad Optimizations */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .hero .hero-content h1 {
    font-size: 2.8rem !important;
  }
  
  .hero .hero-content h2 {
    font-size: 1.3rem !important;
  }
  
  .hero .hero-actions {
    margin-top: 200px !important;
  }
  
  /* Hero section padding for fixed header */
  .hero {
    padding-top: 80px !important;
  }
  
  .hero .social-links a {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }
  
  .section-title h2 {
    font-size: 3rem;
  }
  
  /* iPad Header Layout */
  .header .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 12px 30px;
  }
  
  .header .navmenu {
    order: 1;
    width: auto;
    display: block !important;
  }
  
  .header .navmenu ul {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .mobile-nav-toggle {
    display: none !important;
  }
  
  /* iPad Header - Always visible */
  .header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    background-color: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(10px) !important;
  }
  
  .header .header-social-links {
    order: 2;
    justify-content: flex-end;
    padding-right: 0;
    display: flex;
    flex-direction: row;
    gap: 0px;
    align-items: center;
  }
  
  .navmenu ul {
    gap: 25px;
  }
  
  .navmenu a {
    padding: 10px 15px;
    font-size: 15px;
    min-height: 40px;
  }
}

/* iPhone Optimizations */
@media screen and (max-width: 767px) {
  /* Typography adjustments */
  .hero .hero-content h1 {
    font-size: 1.8rem !important;
    margin-top: 10px !important;
  }
  
  .hero .hero-content h2 {
    font-size: 1rem !important;
    min-height: 150px !important;
    margin-top: 10px !important;
  }
  
  .hero .hero-actions {
    margin-top: 180px !important;
  }
}

/* iPhone 12/13/14 Specific (390x844) */
@media screen and (max-width: 390px) {
  .hero { 
    padding-top: 280px !important; 
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
  }
  
  /* Contact page specific for iPhone 12/13/14 */
  .contact-page .contact.section {
    padding-top: 100px !important;
    align-items: center !important;
  }
  .hero .hero-content { 
    margin-top: 0 !important; 
    padding-top: 0 !important; 
  }
  .hero .hero-content h1 { 
    margin-top: -10px !important; 
    margin-bottom: 20px !important;
    position: static !important;
    font-size: 1.7rem !important;
  }
  
  .hero .hero-content h2 { 
    margin-top: 0 !important; 
    margin-bottom: 20px !important;
    position: static !important;
    font-size: 0.95rem !important;
  }
  
  .hero .hero-actions {
    margin-top: 0 !important; /* Margin'i kaldır */
  }
  
  /* Social links inside hero-actions for mobile */
  .hero .hero-actions .social-links {
    margin-top: 10px !important;
    justify-content: center !important;
    gap: 12px !important;
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }
  
  .hero .hero-actions .social-links a {
    width: 32px !important;
    height: 32px !important;
    font-size: 14px !important;
  }
  
  /* Hide footer on mobile home page */
  .footer {
    display: none !important;
  }
  
  /* Full screen home page for mobile */
  .hero {
    height: 100vh !important;
    min-height: 100vh !important;
    min-height: -webkit-fill-available !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    padding-top: 250px !important;
    padding-bottom: 20px !important;
  }
  
  .hero .hero-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
  
  /* Better spacing for mobile */
  .hero .hero-content {
    padding: 0 1.5rem;
  }
}
  
  .hero .hero-actions .btn {
    padding: 14px 24px;
    font-size: 0.95rem;
  }
  
  .hero .social-links {
    gap: 0.75rem;
    margin-top: 0.25rem;
  }
  
  .hero .social-links a {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .section-title p {
    font-size: 1rem;
  }
  
  /* Navigation improvements */
  .header {
    padding: 8px 0;
  }
  
  .header .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 8px 15px;
  }
  
  .header .navmenu {
    order: 1;
    width: auto;
  }
  
  .header .header-social-links {
    order: 2;
    width: auto;
    display: flex;
    flex-direction: row;
    gap: 0px;
    align-items: center;
  }
  
  .navmenu ul {
    gap: 15px;
  }
  
  .navmenu a {
    padding: 6px 10px;
    font-size: 13px;
    min-height: 32px;
  }
  
  /* Touch targets optimization */
  .btn, .hero-actions .btn {
    min-height: 44px;
    min-width: 44px;
    padding: 12px 20px;
  }
  
  .social-links a, .header-social-links a {
    min-height: 44px;
    min-width: 44px;
    padding: 8px;
  }
  
  /* Portfolio filter touch targets */
  .portfolio .portfolio-filters li {
    padding: 12px 16px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  /* Contact form touch targets */
  .contact .contact-form .btn {
    min-height: 50px;
    padding: 15px 25px;
  }
  
  /* Scroll top button */
  .scroll-top {
    width: 50px;
    height: 50px;
  }
  
  /* Footer adjustments */
  .footer {
    padding: 30px 0 140px 0;
  }
  
  
  /* Portfolio adjustments */
  .portfolio .portfolio-filters {
    gap: 2px !important;
    margin-bottom: 20px;
    flex-wrap: nowrap;
    overflow-x: hidden;
    padding: 0 5px !important;
    justify-content: flex-start;
  }
  
  .portfolio .portfolio-filters li {
    font-size: 0.68em !important;
    padding: 5px 7px !important;
    min-height: 31px !important;
    white-space: nowrap;
    flex-shrink: 0;
  }
  
  /* Contact form improvements */
  .contact .contact-form {
    padding: 2rem 1rem;
  }
  
  .contact .contact-form .form-control,
  .contact .contact-form .form-select {
    padding: 1rem 1.25rem;
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

/* Small phones (but bigger than iPhone 12/13/14) */
@media screen and (min-width: 391px) and (max-width: 480px) {
  .hero .hero-content h1 {
    font-size: 1.6rem !important;
    margin-top: 40px !important;
    margin-bottom: 12px !important;
  }
  
  /* Contact page specific for small phones */
  .contact-page .contact.section {
    padding-top: 95px !important;
    align-items: center !important;
  }
  
  .hero .hero-content h2 {
    font-size: 0.7rem !important;
    max-height: 160px !important;
    overflow: visible !important;
    display: block !important;
    line-height: 1.1 !important;
    padding: 0 !important;
    margin-bottom: 15px !important;
    margin-top: 30px !important;
    text-align: center !important;
    border: none !important;
    background: none !important;
    position: relative !important;
    z-index: 10002 !important;
  }
  
  .hero .hero-actions {
    margin-top: 0 !important;
  }
  
  /* Social links inside hero-actions for small phones */
  .hero .hero-actions .social-links {
    margin-top: 8px !important;
    justify-content: center !important;
    gap: 10px !important;
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }
  
  .hero .hero-actions .social-links a {
    width: 30px !important;
    height: 30px !important;
    font-size: 13px !important;
  }
  
  /* Hide footer on small phones home page */
  .footer {
    display: none !important;
  }
  
  /* Full screen home page for small phones */
  .hero {
    height: 100vh !important;
    min-height: 100vh !important;
    min-height: -webkit-fill-available !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    padding-top: 210px !important;
    padding-bottom: 20px !important;
  }
}
  
  .section-title h2 {
    font-size: 1.8rem;
  }
  
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .navmenu ul {
    inset: 45px 10px 10px 10px;
  }
  
  /* Extra small phones - Portfolio filters */
  .portfolio .portfolio-filters {
    gap: 2px;
    padding: 0 8px;
  }
  
  .portfolio .portfolio-filters li {
    font-size: 0.62em !important;
    padding: 4px 5px !important;
    min-height: 27px !important;
  }
}

/* Mobile Performance Optimizations */
@media screen and (max-width: 768px) {
  /* Disable aos animation delay on mobile devices */
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
  
  /* Reduce animations for better performance */
  .hero .hero-image .image-wrapper img {
    transition: transform 0.2s ease;
  }
  
  .hero .hero-image .image-wrapper img:hover {
    transform: scale(1.01);
  }
  
  /* Optimize backdrop filters for mobile */
  .navmenu ul {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
  }
  
  /* Reduce box shadows for better performance */
  .portfolio .portfolio-card {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  }
  
  .portfolio .portfolio-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  }
  
  /* Optimize floating cards for mobile */
  .hero .hero-image .floating-elements .floating-card {
    animation: none;
    transform: translateY(0);
  }
  
  /* Reduce complex gradients on mobile */
  body {
    background: linear-gradient(to right, #f5e8dc 0%, #e7d6c8 100%) !important;
  }
}

/*--------------------------------------------------------------
# Global Page Titles & Breadcrumbs
--------------------------------------------------------------*/
.page-title {
  color: var(--default-color);
  background-color: var(--background-color);
  position: relative;
}

.page-title .heading {
  padding: 80px 0;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.page-title .heading h1 {
  font-size: 38px;
  font-weight: 700;
}

.page-title nav {
  background-color: color-mix(in srgb, var(--default-color), transparent 96%);
  padding: 20px 0;
}

.page-title nav ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 16px;
  font-weight: 400;
}

.page-title nav ol li+li {
  padding-left: 10px;
}

.page-title nav ol li+li::before {
  content: "/";
  display: inline-block;
  padding-right: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 60px 0;
  scroll-margin-top: 100px;
  overflow: clip;
}

@media (max-width: 1199px) {

  section,
  .section {
    scroll-margin-top: 66px;
  }
}

/* Force all sections transparent so single global gradient shows through */
section,
.section { background: transparent !important; }

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
  text-align: center;
  padding-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 3.5rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--heading-color);
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

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

.section-title p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  max-width: 900px;
  margin: 0 auto;
  text-wrap: balance;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  padding: 20px 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* Remove bg slideshow styles (revert) */
.hero-bg, .hero-bg-overlay { display: none !important; }

/* Video Modal Styles */
.video-modal {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
}

.video-modal-close {
  position: absolute;
  top: 10px;
  right: 20px;
  color: white;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
}

.video-modal-close:hover {
  color: #ccc;
}

.video-container {
  width: 100%;
  height: 100%;
}

.video-container video {
  width: 100%;
  height: auto;
  max-height: 80vh;
}

/* Header Title Styling */
.header-title h3 {
  font-family: 'Courier New', monospace !important;
  font-weight: bold !important;
  color: #90ee90 !important;
  text-shadow: 0 0 3px #90ee90 !important;
  letter-spacing: 2px !important;
  margin: 0 !important;
  font-size: 1.2rem !important;
  position: relative !important;
  /* animation: vhs-flicker 0.15s infinite linear !important; */
  filter: contrast(1.2) brightness(1.1) !important;
}

/* Header Layout */
.header .container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.header-title {
  order: 1 !important;
}

.navmenu {
  order: 2 !important;
}

.header-social-links {
  order: 3 !important;
}

/* Place name heading near the top */
.index-page .hero .hero-content { padding-top: 0px !important; }
.index-page .hero .hero-content h1 { 
  margin-top: -120px !important; 
  font-family: 'Courier New', monospace !important;
  font-weight: bold !important;
  color: #90ee90 !important;
  text-shadow: 0 0 3px #90ee90 !important;
  letter-spacing: 2px !important;
  position: relative !important;
  /* animation: vhs-flicker 0.15s infinite linear !important; */
  filter: contrast(1.2) brightness(1.1) !important;
}

/* Clean Modern Style for h1 - No Effects */
.index-page .hero .hero-content h1::before {
  display: none;
}

.index-page .hero .hero-content h1::after {
  display: none;
}

/* Push subtitle, buttons, and social links downward to create spacing */
.index-page .hero .hero-content h2 { 
  margin-top: 2rem !important; 
  min-height: 200px !important;
  font-family: 'Courier New', monospace !important;
  font-weight: bold !important;
  color: #90ee90 !important;
  text-shadow: 0 0 3px #90ee90 !important;
  letter-spacing: 2px !important;
  line-height: 1.4 !important;
  position: relative !important;
  /* animation: vhs-flicker 0.15s infinite linear !important; */
  filter: contrast(1.2) brightness(1.1) !important;
}

/* VHS Flicker Effect */
@keyframes vhs-flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.98; }
}

/* Düz Beyazdan Açık Griye Geçiş Background */
body {
  background: linear-gradient(to right, #f5e8dc 0%, #efe1d6 50%, #e7d6c8 100%) !important;
  background-image: none !important;
  position: relative !important;
}

/* Grain texture kaldırıldı */

@keyframes dirtyGrain {
  0%, 100% { 
    transform: translate(0, 0) rotate(0deg) scale(1);
    opacity: 1;
  }
  15% { 
    transform: translate(-3px, 2px) rotate(1deg) scale(1.03);
    opacity: 0.8;
  }
  30% { 
    transform: translate(2px, -3px) rotate(-0.8deg) scale(0.97);
    opacity: 0.9;
  }
  45% { 
    transform: translate(-2px, 3px) rotate(0.5deg) scale(1.02);
    opacity: 0.85;
  }
  60% { 
    transform: translate(3px, -2px) rotate(-1.2deg) scale(0.98);
    opacity: 0.92;
  }
  75% { 
    transform: translate(-1px, 4px) rotate(0.7deg) scale(1.01);
    opacity: 0.88;
  }
  90% { 
    transform: translate(4px, -1px) rotate(-0.5deg) scale(0.99);
    opacity: 0.95;
  }
}

@keyframes organicGrain {
  0%, 100% { 
    transform: translate(0, 0) rotate(0deg) scale(1);
    opacity: 1;
  }
  20% { 
    transform: translate(-2px, 1px) rotate(0.5deg) scale(1.02);
    opacity: 0.9;
  }
  40% { 
    transform: translate(1px, -2px) rotate(-0.3deg) scale(0.98);
    opacity: 0.85;
  }
  60% { 
    transform: translate(-1px, 2px) rotate(0.2deg) scale(1.01);
    opacity: 0.95;
  }
  80% { 
    transform: translate(2px, -1px) rotate(-0.4deg) scale(0.99);
    opacity: 0.88;
  }
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-5%, -10%); }
  20% { transform: translate(-15%, 5%); }
  30% { transform: translate(7%, -25%); }
  40% { transform: translate(-5%, 25%); }
  50% { transform: translate(-15%, 10%); }
  60% { transform: translate(15%, 0%); }
  70% { transform: translate(0%, 15%); }
  80% { transform: translate(3%, 35%); }
  90% { transform: translate(-10%, 10%); }
}

/* Modern Serif Font Style - Alternative Fonts */
body, h1, h2, h3, h4, h5, h6, p, a, span, div, li, ul, ol, button, input, textarea, label {
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  letter-spacing: -0.01em !important;
}

/* Modern Font Style for Headers - Montserrat */
h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color) !important;
  text-shadow: none !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em !important;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  font-style: normal !important;
}

/* Modern Font Style for Body Text - Montserrat */
p, span, div, li, a {
  color: var(--default-color) !important;
  text-shadow: none !important;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  font-weight: 400 !important;
}

/* Typed text links styling */
.typed a {
  color: #000000 !important;
  text-decoration: none !important;
  font-family: 'Cormorant Garamond', 'Merriweather', serif !important;
  font-style: italic !important;
  font-weight: 400 !important;
  letter-spacing: 0.8px !important;
}

.typed a:hover {
  color: #666666 !important;
  text-decoration: underline !important;
}

/* Modern Siyah Font Style for Navigation - Clean Serif */
.navmenu ul li a {
  color: #000000 !important;
  text-shadow: none !important;
  font-weight: 400 !important;
  letter-spacing: 0.5px !important;
  font-family: 'Source Serif Pro', 'Merriweather', serif !important;
  text-transform: uppercase !important;
  font-size: 0.9em !important;
}

/* Modern Siyah Font Style for Buttons - Elegant Serif */
.btn, .hero-actions .btn {
  font-family: 'Cormorant Garamond', 'Merriweather', serif !important;
  color: #000000 !important;
  text-shadow: none !important;
  letter-spacing: 0.8px !important;
  font-weight: 400 !important;
  font-style: italic !important;
  border: 1px solid #000000 !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  text-transform: uppercase !important;
}

/* Button hover effects */
.btn:hover, .hero-actions .btn:hover {
  background: #000000 !important;
  color: #ffffff !important;
  border: 1px solid #000000 !important;
}

/* Modern Siyah Font Style for Social Links */
.social-links a, .header-social-links a {
  color: #000000 !important;
  text-shadow: none !important;
}

/* Ensure content is above VHS overlays */
.hero, .header, .main, .footer, .container, .row, .col {
  position: relative !important;
  z-index: 10 !important;
}

/* Force simple linear gradient background with grain on all pages */
html, body, .page, .main, .hero, .header, .footer {
  background: linear-gradient(to right, #f5e8dc 0%, #efe1d6 50%, #e7d6c8 100%) !important;
  background-image: none !important;
}

/* Make Works and Contact pages match homepage background */
.portfolio-page,
.contact-page {
  background: linear-gradient(to right, #f5e8dc 0%, #efe1d6 50%, #e7d6c8 100%) !important;
}

/* Match homepage subtle radial overlay on other pages */
/* Apply the exact same subtle overlay as homepage at page root */
/* Removed conflicting overlay rules */

.portfolio-page .header,
.portfolio-page .main,
.portfolio-page .footer,
.contact-page .header,
.contact-page .main,
.contact-page .footer { position: relative; z-index: 1; }

.portfolio-page section,
.portfolio-page .section,
.contact-page section,
.contact-page .section {
  background: transparent !important;
}

/* Set hero background image on homepage */


/* Portfolio filters yukarı kaydır */
.portfolio-page .section-title {
  margin-bottom: 20px !important;
}

.portfolio-page .portfolio-filters {
  margin-top: -20px !important;
  margin-bottom: 40px !important;
}

/* Floating cards aynı boyut ve yukarıda */
.floating-card {
  width: 200px !important;
  height: 50px !important;
  padding: 10px 15px !important;
  right: 20px !important;
  left: auto !important;
  transform: none !important;
}

.floating-card.design {
  top: 20px !important;
}

.floating-card.code {
  top: 80px !important;
}

.floating-card.creativity {
  top: 140px !important;
}

.floating-card.realtime {
  top: 200px !important;
}


/* Clean Modern Style - No Effects */
.index-page .hero .hero-content h2::before {
  display: none;
}

.index-page .hero .hero-content h2::after {
  display: none;
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-1px, -1px); }
  20% { transform: translate(1px, 0px); }
  30% { transform: translate(-1px, 1px); }
  40% { transform: translate(1px, -1px); }
  50% { transform: translate(-1px, 0px); }
  60% { transform: translate(1px, 1px); }
  70% { transform: translate(0px, -1px); }
  80% { transform: translate(-1px, -1px); }
  90% { transform: translate(1px, 0px); }
}

.index-page .hero .hero-actions { 
  margin-top: 15px !important; 
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.index-page .hero .social-links {
  margin-top: 0.5rem !important; /* spacing below buttons */
  position: relative !important;
  z-index: 10 !important;
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.hero .hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero .hero-content h1 .highlight {
  color: var(--heading-color);
  position: relative;
}

.hero .hero-content h1 .highlight::after {
  content: none;
}

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

.hero .hero-content h2 {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 2rem;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.hero .hero-content h2 .typed {
  color: var(--accent-color);
  font-weight: 600;
}

@media (max-width: 768px) {
  .hero .hero-content h2 {
    font-size: 1.25rem;
  }
}

.index-page .hero .hero-content h1,
.index-page .hero .hero-content h2,
.index-page .hero .hero-content .typed,
.index-page .hero .hero-content .typed *,
.index-page .hero .hero-content .typed a {
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  font-style: normal !important;
}

/* Modernize only the hero name and subtitle visuals */
.index-page .hero .hero-content h1 {
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  color: var(--heading-color) !important;
  text-shadow: none !important;
}

.index-page .hero .hero-content h2 {
  font-weight: 500 !important;
  letter-spacing: -0.01em !important;
  text-shadow: none !important;
}

/* Typed links inherit color and use Inter */
.index-page .hero .hero-content .typed a {
  color: inherit !important;
  font-weight: 600 !important;
}

/* Uniform font size for name and all role lines */
.index-page .hero .hero-content h1,
.index-page .hero .hero-content h2,
.index-page .hero .hero-content .typed,
.index-page .hero .hero-content .typed * {
  font-size: 2rem !important;
  line-height: 1.25 !important;
}

/* Mobile typography improvements */
@media (max-width: 767px) {
  /* Better line height for mobile readability */
  .index-page .hero .hero-content h1,
  .index-page .hero .hero-content h2,
  .index-page .hero .hero-content .typed,
  .index-page .hero .hero-content .typed * {
    line-height: 1.3 !important;
  }
  
  /* Improve text contrast on mobile */
  .hero .hero-content h1,
  .hero .hero-content h2 {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }
  
  /* Better spacing for mobile */
  .hero .hero-content {
    padding: 0 1rem;
  }
}

/* Remove special styling from the first typed line so all look identical */
.index-page .hero .hero-content .typed br + * {
  font-weight: inherit !important;
  font-size: inherit !important;
  letter-spacing: inherit !important;
  text-shadow: none !important;
  color: inherit !important;
}

/* Match name font with subtitle and make it larger */
.index-page .hero .hero-content h1 {
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em !important;
  font-size: 2.6rem !important;
}

.hero .hero-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

.hero .hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  margin-top: 4rem;
}

.hero .hero-actions .btn {
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid;
}

.hero .hero-actions .btn.btn-primary {
  background: var(--accent-color);
  color: var(--contrast-color);
  border-color: var(--accent-color);
}

.hero .hero-actions .btn.btn-primary:hover {
  background: color-mix(in srgb, var(--accent-color), black 15%);
  border-color: color-mix(in srgb, var(--accent-color), black 15%);
  transform: translateY(-2px);
}

.hero .hero-actions .btn.btn-outline {
  background: transparent;
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.hero .hero-actions .btn.btn-outline:hover {
  transform: translateY(-2px);
}

/* iPhone 15 Pro Max and larger iPhones */
@media screen and (max-width: 430px) and (max-height: 932px), 
       screen and (max-width: 428px) and (max-height: 926px), 
       screen and (max-width: 414px) and (max-height: 896px) {
  
  /* Ensure header is always visible */
  .header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 997 !important;
    height: 60px !important;
  }
  
  /* Contact page specific for large iPhones */
  .contact-page .contact.section {
    padding-top: 105px !important;
    align-items: center !important;
  }
  
  /* Hero section accounting for header */
  .hero {
    height: 100vh !important;
    min-height: 100vh !important;
    min-height: -webkit-fill-available !important;
    padding-top: 80px !important;
    padding-bottom: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  .hero .hero-content h1 {
    font-size: 1.9rem !important;
    margin-top: -50px !important;
    margin-bottom: 12px !important;
  }
  
  .hero .hero-content h2 {
    font-size: 0.8rem !important;
    max-height: 180px !important;
    margin-bottom: 12px !important;
    line-height: 1.3 !important;
  }
  
  .hero .hero-actions {
    margin-top: 0 !important;
  }
  
  .hero .hero-actions .social-links {
    margin-top: 8px !important;
  }
}

@media (max-width: 576px) {
  .hero .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero .hero-actions .btn {
    text-align: center;
  }
  
  .hero .hero-actions .social-links {
    margin-top: 12px !important;
    display: flex !important;
    justify-content: center !important;
  }
}

.hero .social-links {
  display: flex;
  gap: 1rem;
}

.hero .social-links a {
  width: 45px;
  height: 45px;
  background: transparent !important; /* beyaz iç dolgu kaldır */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000000 !important;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  border: 1px solid #000000 !important;
  font-family: 'Cormorant Garamond', 'Merriweather', serif !important;
  font-style: italic !important;
  text-transform: uppercase !important;
}

.hero .social-links a:hover {
  background: #000000 !important;
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border: 1px solid #000000 !important;
}

.hero .hero-image {
  position: relative;
}

/* Push the photo block further down only on the homepage */
.index-page .hero .hero-image { 
  margin-top: 2rem !important; 
}

/* Mobile hero image adjustments */
@media (max-width: 767px) {
  .index-page .hero .hero-image { 
    margin-top: 1rem !important; 
  }
  
  .hero .hero-image .image-wrapper {
    max-width: 280px;
  }
  
  .hero .hero-image .image-wrapper img {
    border-radius: 15px;
  }
}

.hero .hero-image .image-wrapper {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
}

.hero .hero-image .image-wrapper img {
  border-radius: 20px;
  box-shadow: 0 5px 15px color-mix(in srgb, var(--default-color), transparent 95%);
  transition: transform 0.3s ease;
}

/* Hero right-side slider */
.hero-swiper {
  border-radius: 20px;
  overflow: hidden;
}

.hero-swiper .swiper-slide img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

/* TV slider replaces thumb grid */
.hero-grid, .hero-grid .thumb { display: none !important; }

/* On hover, tiny directional nudge for each pattern */
/* Hover'da çakışmadan büyüyebilmesi için gap artırıldı ve z-index verildi */

/* Selected Works tag above slider */
.hero-tag {
  position: absolute;
  top: -12px;
  left: 8px;
  transform: translateY(-100%);
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 3;
}

.hero .hero-image .image-wrapper img:hover {
  transform: scale(1.02);
}

/* Embedded TV slider */
.hero-tv {
  position: relative;
  width: 600px; /* 4:3 oranı */
  height: 450px; /* 4:3 oranı */
  margin-left: -200px; /* daha da sola kaydır */
  border-radius: 22px;
  /* arkaplana gömülü hissi için arkaplanla harmanlanan gölgeler */
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.06));
  box-shadow:
    inset 0 1px 2px rgba(255,255,255,0.06),
    0 30px 70px rgba(0,0,0,0.18),
    0 8px 20px rgba(0,0,0,0.10);
  backdrop-filter: blur(2.5px) saturate(108%);
  -webkit-backdrop-filter: blur(2.5px) saturate(108%);
  overflow: hidden;
}

.hero-tv::before { /* subtle glass edge */
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0) 35%);
  pointer-events: none;
}

/* Arka plana gömülme hissini arttır: çevresel yumuşak halation */
.hero-tv::after {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 28px;
  background: radial-gradient(60% 90% at 50% 100%, rgba(0,0,0,0.25), transparent 65%);
  filter: blur(14px);
  z-index: -1;
}

.hero-tv-swiper,
.hero-tv-swiper .swiper-wrapper,
.hero-tv-swiper .swiper-slide { width: 100%; height: 100%; }

.hero-tv-swiper .swiper-slide img {
  width: 100%; height: 100%; object-fit: cover;
  filter: contrast(1.02) saturate(1.03);
}

/* pagination kaldırıldı */

.hero .hero-image .floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.hero .hero-image .floating-elements .floating-card {
  position: absolute;
  background: var(--surface-color);
  padding: 15px 20px;
  border-radius: 15px;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--default-color), transparent 90%);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  animation: float 3s ease-in-out infinite;
}

.hero .hero-image .floating-elements .floating-card i {
  font-size: 1.5rem;
  color: var(--accent-color);
}

.hero .hero-image .floating-elements .floating-card.design {
  top: 10%;
  right: -10%;
  animation-delay: 0s;
}

.hero .hero-image .floating-elements .floating-card.code {
  bottom: 30%;
  left: -15%;
  animation-delay: 1s;
}

.hero .hero-image .floating-elements .floating-card.creativity {
  top: 60%;
  right: -5%;
  animation-delay: 2s;
}

@media (max-width: 992px) {
  .hero .hero-image .floating-elements .floating-card {
    display: none;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 992px) {
  .hero .hero-content {
    text-align: center;
    margin-bottom: 3rem;
  }
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about .intro-content .eyebrow {
  display: inline-block;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  margin-bottom: 16px;
}

.about .intro-content .headline {
  font-family: var(--heading-font);
  font-weight: 300;
  line-height: 1.2;
  font-size: clamp(28px, 4vw, 44px);
  margin: 0 0 24px 0;
}

.about .intro-content .lead {
  font-size: 18px;
  line-height: 1.8;
  color: color-mix(in srgb, var(--default-color), transparent 10%);
  margin-bottom: 24px;
}

.about .intro-content p {
  line-height: 1.8;
  margin-bottom: 24px;
  color: color-mix(in srgb, var(--default-color), transparent 5%);
}

.about .intro-content .cta-group {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-top: 24px;
}

.about .intro-content .cta-group .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 6px;
  color: var(--accent-color);
  background: color-mix(in srgb, var(--accent-color), transparent 92%);
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 70%);
  transition: 0.3s ease-in-out;
}

.about .intro-content .cta-group .btn-ghost:hover,
.about .intro-content .cta-group .btn-ghost:focus {
  color: var(--contrast-color);
  background: var(--accent-color);
  border-color: var(--accent-color);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-color), transparent 70%);
}

.about .intro-content .cta-group .link-underline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  color: var(--accent-color);
  padding-bottom: 4px;
  transition: 0.3s ease-in-out;
}

.about .intro-content .cta-group .link-underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: color-mix(in srgb, var(--accent-color), transparent 40%);
  transform: scaleX(0.4);
  transform-origin: left;
  transition: 0.3s ease-in-out;
}

.about .intro-content .cta-group .link-underline:hover,
.about .intro-content .cta-group .link-underline:focus {
  color: color-mix(in srgb, var(--accent-color), transparent 10%);
  outline: none;
}

.about .intro-content .cta-group .link-underline:hover::after,
.about .intro-content .cta-group .link-underline:focus::after {
  transform: scaleX(1);
}

.about .profile-figure {
  margin: 0;
}

.about .profile-figure .profile-photo {
  width: 88%;
  max-width: 440px;
  border-radius: 18px;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--default-color), transparent 92%);
  transform: translateY(0);
  transition: transform 0.3s ease-in-out;
}

.about .profile-figure .profile-caption {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about .profile-figure .profile-caption .meta {
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.about .profile-figure .profile-caption .meta .funfact {
  font-size: 13px;
  margin-top: 4px;
  color: color-mix(in srgb, var(--default-color), transparent 35%);
}

.about .profile-figure:hover .profile-photo {
  transform: translateY(-4px);
}

.about .skill-item {
  padding: 24px;
  border-radius: 6px;
  transition: 0.3s ease-in-out;
  background: color-mix(in srgb, var(--surface-color), var(--accent-color) 2%);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
  height: 100%;
}

.about .skill-item i {
  font-size: 24px;
  color: var(--accent-color);
  margin-bottom: 16px;
  display: inline-block;
}

.about .skill-item h3 {
  font-size: 16px;
  margin-bottom: 6px;
  font-weight: 500;
}

.about .skill-item p {
  margin: 0;
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
}

.about .skill-item:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent-color), transparent 60%);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--default-color), transparent 92%);
}

.about .timeline-item {
  position: relative;
  padding-left: 26px;
}

.about .timeline-item time {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--default-color), transparent 45%);
  margin-bottom: 6px;
}

.about .timeline-item h4 {
  font-size: 18px;
  font-weight: 400;
  margin: 0 0 6px;
}

.about .timeline-item p {
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  margin: 0;
}

.about .timeline-item .dot {
  position: absolute;
  left: 0;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-color);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent-color), transparent 80%);
}

.about .personal-quote {
  padding: 24px 0;
}

.about .personal-quote p {
  font-family: var(--heading-font);
  font-weight: 300;
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.5;
  color: color-mix(in srgb, var(--default-color), transparent 5%);
  margin: 0 auto;
  max-width: 800px;
}

.about .fact-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  background: var(--surface-color);
  color: color-mix(in srgb, var(--default-color), transparent 10%);
  transition: 0.3s ease-in-out;
}

.about .fact-pill i {
  color: var(--accent-color);
}

.about .fact-pill span {
  font-size: 14px;
}

.about .fact-pill:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent-color), transparent 60%);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--default-color), transparent 92%);
}

.about .fact-pill:focus-within {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-color), transparent 70%);
}

@media (max-width: 992px) {
  .about .profile-figure {
    text-align: center !important;
  }

  .about .profile-figure .profile-photo {
    width: 72%;
  }

  .about .intro-content .cta-group {
    flex-wrap: wrap;
  }
}

@media (max-width: 576px) {
  .about .profile-figure .profile-photo {
    width: 100%;
  }
}

/*--------------------------------------------------------------
# Skills Section
--------------------------------------------------------------*/
.skills .skill-box {
  background-color: var(--surface-color);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

.skills .skill-box h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.skills .skill-box p {
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
  opacity: 0.6;
}

.skills .skill-box .progress {
  background-color: color-mix(in srgb, var(--accent-color), transparent 85%);
  border-radius: 50px;
  height: 8px;
  margin-top: 5px;
  overflow: hidden;
}

.skills .skill-box .progress .progress-bar {
  background-color: var(--accent-color);
  height: 100%;
  position: relative;
  border-radius: 50px;
  transition: 0.9s;
  width: 1px;
}

/*--------------------------------------------------------------
# Stats Section
--------------------------------------------------------------*/
.stats .avatars {
  position: relative;
}

.stats .avatars img {
  width: 60px;
  height: 60px;
  border: 3px solid var(--accent-color);
  margin-right: -15px;
  transition: transform 0.3s ease;
}

.stats .avatars img:hover {
  transform: translateY(-5px);
  z-index: 2;
}

.stats .counters h2 {
  color: var(--heading-color);
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 10px;
}

.stats .counters h2 span {
  display: inline-block;
}

.stats .counters p {
  color: var(--default-color);
  font-size: 18px;
  margin: 0;
  opacity: 0.9;
}

@media (max-width: 991px) {
  .stats .row {
    text-align: center;
  }

  .stats .avatars {
    justify-content: center;
    margin-bottom: 40px;
  }

  .stats .counters h2 {
    font-size: 36px;
  }

  .stats .counters p {
    font-size: 16px;
  }

  .stats .counters .col-md-4 {
    margin-bottom: 30px;
  }

  .stats .counters .col-md-4:last-child {
    margin-bottom: 0;
  }
}

@media (max-width: 576px) {
  .stats {
    padding: 60px 0;
  }

  .stats .avatars {
    flex-wrap: wrap;
    justify-content: center;
  }

  .stats .avatars img {
    margin: 0 -8px;
  }
}

/*--------------------------------------------------------------
# Testimonials Section
--------------------------------------------------------------*/
.testimonials .testimonials-carousel,
.testimonials .testimonials-slider {
  overflow: hidden;
}

.testimonials .testimonial-item .testimonial-content {
  border-left: 3px solid var(--accent-color);
  padding-left: 30px;
}

.testimonials .testimonial-item .testimonial-img {
  border-radius: 50%;
  border: 4px solid var(--background-color);
  margin: 0 auto;
}

.testimonials .testimonial-item h3 {
  font-size: 20px;
  font-weight: bold;
  margin: 10px 0 5px 0;
}

.testimonials .testimonial-item h4 {
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  margin: 0 0 10px 0;
}

.testimonials .testimonial-item .stars i {
  color: #ffc107;
  margin: 0 1px;
}

.testimonials .testimonial-item .quote-icon-left,
.testimonials .testimonial-item .quote-icon-right {
  color: color-mix(in srgb, var(--accent-color), transparent 50%);
  font-size: 26px;
  line-height: 0;
}

.testimonials .testimonial-item .quote-icon-left {
  display: inline-block;
  left: -5px;
  position: relative;
}

.testimonials .testimonial-item .quote-icon-right {
  display: inline-block;
  right: -5px;
  position: relative;
  top: 10px;
  transform: scale(-1, -1);
}

.testimonials .testimonial-item p {
  font-style: italic;
}

.testimonials .swiper-wrapper {
  height: auto;
}

.testimonials .swiper-pagination {
  margin-top: 30px;
  position: relative;
}

.testimonials .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: color-mix(in srgb, var(--default-color), transparent 85%);
  opacity: 1;
}

.testimonials .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--accent-color);
}

/*--------------------------------------------------------------
# Resume Section
--------------------------------------------------------------*/
.resume .resume-item {
  margin-bottom: 3rem;
}

.resume .resume-item .resume-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  position: relative;
  color: var(--heading-color);
}

.resume .resume-item .resume-title::after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent-color);
  bottom: 0;
  left: 0;
}

.resume .resume-item .resume-content {
  padding-left: 1.25rem;
  border-left: 2px solid color-mix(in srgb, var(--accent-color), transparent 85%);
}

.resume .resume-item article {
  position: relative;
  margin-bottom: 2.5rem;
}

.resume .resume-item article::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  left: -1.8rem;
  top: 0.25rem;
  background: var(--background-color);
  border: 2px solid var(--accent-color);
}

.resume .resume-item article h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--heading-color);
}

.resume .resume-item article h5 {
  font-size: 1rem;
  background: color-mix(in srgb, var(--accent-color), transparent 92%);
  padding: 0.375rem 0.75rem;
  display: inline-block;
  font-weight: 600;
  margin: 0.5rem 0;
  color: var(--accent-color);
  border-radius: 4px;
}

.resume .resume-item article .institution,
.resume .resume-item article .company {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
}

.resume .resume-item article p {
  margin-bottom: 1rem;
}

.resume .resume-item article ul {
  padding-left: 1.25rem;
  margin-bottom: 0;
}

.resume .resume-item article ul li {
  padding-bottom: 0.75rem;
  position: relative;
}

.resume .resume-item article ul li:last-child {
  padding-bottom: 0;
}

.resume .skill-item {
  margin-bottom: 2rem;
}

.resume .skill-item h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--heading-color);
}

.resume .skill-item .progress {
  height: 0.75rem;
  background-color: color-mix(in srgb, var(--accent-color), transparent 92%);
  border-radius: 1rem;
  overflow: visible;
}

.resume .skill-item .progress .progress-bar {
  background-color: var(--accent-color);
  position: relative;
  border-radius: 1rem;
  width: 0;
  transition: width 1s ease;
}

.resume .skill-item .progress .progress-bar::after {
  content: attr(aria-valuenow) "%";
  position: absolute;
  right: 0;
  top: -1.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-color);
}

@media (max-width: 991.98px) {
  .resume .resume-item {
    margin-bottom: 2rem;
  }
}

@media (max-width: 767.98px) {
  .resume .resume-content {
    padding-left: 1rem !important;
  }

  .resume article::before {
    left: -2rem !important;
  }
}

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.services .service-item {
  display: flex;
  background-color: var(--surface-color);
  border-radius: 12px;
  padding: 2rem;
  height: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
  transition: all 0.4s ease;
}

.services .service-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background-color: var(--accent-color);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.services .service-item:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-5px);
}

.services .service-item:hover::before {
  transform: scaleY(1);
}

.services .service-item:hover .service-icon {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  transform: rotateY(180deg);
}

.services .service-item:hover .service-icon i {
  transform: rotateY(180deg);
}

.services .service-item:hover .service-link i {
  transform: translateX(5px);
}

.services .service-icon {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  border-radius: 12px;
  background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.5rem;
  transition: all 0.5s ease;
}

.services .service-icon i {
  font-size: 2rem;
  transition: transform 0.5s ease;
}

.services .service-content {
  flex-grow: 1;
}

.services .service-content h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--heading-color);
}

.services .service-content p {
  margin-bottom: 1.25rem;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.services .service-link {
  display: inline-flex;
  align-items: center;
  color: var(--accent-color);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.services .service-link span {
  margin-right: 0.5rem;
}

.services .service-link i {
  transition: transform 0.3s ease;
}

.services .service-link:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
}

@media (max-width: 767.98px) {
  .services .service-item {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }

  .services .service-icon {
    width: 60px;
    height: 60px;
    margin-right: 1rem;
  }

  .services .service-icon i {
    font-size: 1.5rem;
  }

  .services .service-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
  }

  .services .service-content p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 575.98px) {
  .services .service-item {
    flex-direction: column;
    text-align: center;
  }

  .services .service-item::before {
    width: 100%;
    height: 4px;
    transform: scaleX(0);
    transform-origin: left;
  }

  .services .service-item:hover::before {
    transform: scaleX(1);
  }

  .services .service-icon {
    margin-right: 0;
    margin-bottom: 1.25rem;
  }

  .services .service-link {
    justify-content: center;
  }
}

/*--------------------------------------------------------------
# Service Details Section
--------------------------------------------------------------*/
.service-details .service-hero {
  margin-bottom: 4rem;
}

.service-details .service-hero .service-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.service-details .service-hero .service-meta .service-category {
  background: color-mix(in srgb, var(--accent-color), transparent 85%);
  color: var(--accent-color);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.service-details .service-hero .service-meta .reading-time {
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  font-size: 0.9rem;
  font-weight: 300;
}

.service-details .service-hero h1 {
  font-size: 3.5rem;
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--heading-color);
  letter-spacing: -0.02em;
}

.service-details .service-hero .service-description {
  font-size: 1.25rem;
  line-height: 1.7;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  font-weight: 300;
  margin: 0;
}

.service-details .service-visual {
  margin-bottom: 4rem;
  overflow: hidden;
  border-radius: 4px;
}

.service-details .service-visual img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-details .service-visual img:hover {
  transform: scale(1.02);
}

.service-details .service-narrative {
  margin-bottom: 5rem;
}

.service-details .service-narrative h3 {
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 2rem;
  color: var(--heading-color);
  letter-spacing: -0.01em;
}

.service-details .service-narrative p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: var(--default-color);
  font-weight: 300;
}

.service-details .benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.service-details .benefits-grid .benefit-card {
  text-align: center;
  padding: 0;
}

.service-details .benefits-grid .benefit-card .benefit-icon {
  width: 60px;
  height: 60px;
  background: color-mix(in srgb, var(--accent-color), transparent 90%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: all 0.3s ease;
}

.service-details .benefits-grid .benefit-card .benefit-icon i {
  font-size: 1.5rem;
  color: var(--accent-color);
}

.service-details .benefits-grid .benefit-card:hover .benefit-icon {
  background: var(--accent-color);
  transform: translateY(-2px);
}

.service-details .benefits-grid .benefit-card:hover .benefit-icon i {
  color: var(--contrast-color);
}

.service-details .benefits-grid .benefit-card h4 {
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--heading-color);
}

.service-details .benefits-grid .benefit-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  margin: 0;
}

.service-details .timeline-section {
  margin-bottom: 4rem;
}

.service-details .timeline-section h3 {
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 3rem;
  color: var(--heading-color);
  letter-spacing: -0.01em;
}

.service-details .timeline-section .timeline {
  position: relative;
}

.service-details .timeline-section .timeline::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: color-mix(in srgb, var(--default-color), transparent 85%);
}

.service-details .timeline-section .timeline .timeline-item {
  position: relative;
  padding-left: 80px;
  margin-bottom: 3rem;
}

.service-details .timeline-section .timeline .timeline-item:last-child {
  margin-bottom: 0;
}

.service-details .timeline-section .timeline .timeline-item .timeline-marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 60px;
  height: 60px;
  background: var(--surface-color);
  border: 2px solid color-mix(in srgb, var(--accent-color), transparent 70%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.service-details .timeline-section .timeline .timeline-item .timeline-marker span {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--accent-color);
}

.service-details .timeline-section .timeline .timeline-item .timeline-content h4 {
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  color: var(--heading-color);
}

.service-details .timeline-section .timeline .timeline-item .timeline-content p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
  color: var(--default-color);
}

.service-details .timeline-section .timeline .timeline-item .timeline-content small {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  font-size: 0.9rem;
  font-weight: 500;
}

.service-details .service-sidebar {
  padding-left: 2rem;
}

@media (max-width: 992px) {
  .service-details .service-sidebar {
    padding-left: 0;
    margin-top: 4rem;
  }
}

.service-details .overview-card,
.service-details .success-story,
.service-details .consultation-form {
  background: var(--surface-color);
  border-radius: 8px;
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 93%);
  transition: all 0.3s ease;
}

.service-details .overview-card:hover,
.service-details .success-story:hover,
.service-details .consultation-form:hover {
  border-color: color-mix(in srgb, var(--accent-color), transparent 80%);
}

.service-details .overview-card .overview-header h4 {
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 2rem;
  color: var(--heading-color);
}

.service-details .overview-card .overview-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.service-details .overview-card .overview-stats .stat-item {
  text-align: center;
}

.service-details .overview-card .overview-stats .stat-item .stat-number {
  font-size: 2rem;
  font-weight: 300;
  color: var(--accent-color);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.service-details .overview-card .overview-stats .stat-item .stat-label {
  font-size: 0.85rem;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.service-details .overview-card .overview-details {
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  padding-top: 1.5rem;
}

.service-details .overview-card .overview-details .detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.service-details .overview-card .overview-details .detail-row:last-child {
  margin-bottom: 0;
}

.service-details .overview-card .overview-details .detail-row .detail-label {
  font-size: 0.95rem;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  font-weight: 400;
}

.service-details .overview-card .overview-details .detail-row .detail-value {
  font-size: 0.95rem;
  color: var(--heading-color);
  font-weight: 500;
}

.service-details .success-story .story-quote p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  font-style: italic;
  margin-bottom: 2rem;
}

.service-details .success-story .story-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.service-details .success-story .story-author .author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.service-details .success-story .story-author .author-details h5 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: var(--heading-color);
}

.service-details .success-story .story-author .author-details span {
  display: block;
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  margin-bottom: 0.25rem;
}

.service-details .success-story .story-author .author-details small {
  font-size: 0.8rem;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}

.service-details .success-story .story-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.service-details .success-story .story-metrics .metric {
  text-align: center;
}

.service-details .success-story .story-metrics .metric .metric-value {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--accent-color);
  display: block;
  margin-bottom: 0.25rem;
}

.service-details .success-story .story-metrics .metric .metric-label {
  font-size: 0.8rem;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.service-details .consultation-form .form-header {
  margin-bottom: 2rem;
}

.service-details .consultation-form .form-header h4 {
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  color: var(--heading-color);
}

.service-details .consultation-form .form-header p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  margin: 0;
}

.service-details .consultation-form .form-group {
  margin-bottom: 1.5rem;
}

.service-details .consultation-form .form-input {
  width: 100%;
  padding: 1rem;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  border-radius: 4px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: transparent;
}

.service-details .consultation-form .form-input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-color), transparent 90%);
}

.service-details .consultation-form input[type=text],
.service-details .consultation-form input[type=email],
.service-details .consultation-form input[type=tel],
.service-details .consultation-form select,
.service-details .consultation-form textarea {
  color: var(--default-color);
  background-color: var(--surface-color);
  font-size: 14px;
  border-color: color-mix(in srgb, var(--default-color), transparent 80%);
}

.service-details .consultation-form input[type=text]:focus,
.service-details .consultation-form input[type=email]:focus,
.service-details .consultation-form input[type=tel]:focus,
.service-details .consultation-form select:focus,
.service-details .consultation-form textarea:focus {
  border-color: var(--accent-color);
}

.service-details .consultation-form input[type=text]::placeholder,
.service-details .consultation-form input[type=email]::placeholder,
.service-details .consultation-form input[type=tel]::placeholder,
.service-details .consultation-form select::placeholder,
.service-details .consultation-form textarea::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

.service-details .consultation-form .btn-consultation {
  background: var(--accent-color);
  color: var(--contrast-color);
  border: none;
  padding: 1rem 2rem;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 500;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  text-transform: none;
}

.service-details .consultation-form .btn-consultation:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 10%);
  transform: translateY(-1px);
}

.service-details .consultation-form .btn-consultation i {
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .service-details .service-hero h1 {
    font-size: 2.5rem;
  }

  .service-details .service-hero .service-description {
    font-size: 1.1rem;
  }

  .service-details .service-visual img {
    height: 250px;
  }

  .service-details .benefits-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .service-details .timeline-section .timeline::before {
    left: 20px;
  }

  .service-details .timeline-section .timeline .timeline-item {
    padding-left: 60px;
  }

  .service-details .timeline-section .timeline .timeline-item .timeline-marker {
    width: 40px;
    height: 40px;
  }

  .service-details .timeline-section .timeline .timeline-item .timeline-marker span {
    font-size: 1rem;
  }

  .service-details .overview-card .overview-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/*--------------------------------------------------------------
# Portfolio Section
--------------------------------------------------------------*/
.portfolio {
  padding-top: 100px !important;
}

.portfolio .portfolio-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 30px;
  padding: 0;
  list-style: none;
}

@media (max-width: 768px) {
  .portfolio {
    padding-top: 92px !important; /* header + filter spacing */
  }
  
  .portfolio .portfolio-filters {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: hidden;
    gap: 8px;
    margin-bottom: 20px;
    padding: 0 15px;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Mobile hover effects for portfolio filters */
  .portfolio .portfolio-filters li {
    transition: all 0.3s ease !important;
  }
  
  .portfolio .portfolio-filters li:hover,
  .portfolio .portfolio-filters li:active,
  .portfolio .portfolio-filters li:focus {
    color: var(--accent-color) !important;
    transform: translateY(-2px) !important;
  }
}

.portfolio .portfolio-filters li {
  padding: 0;
  font-size: 0.9em;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
  background: none;
  border: none;
  border-radius: 0;
  color: var(--default-color);
  font-family: 'Source Serif Pro', 'Merriweather', serif !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
}

.portfolio .portfolio-filters li:before {
  content: "";
  position: absolute;
  height: 2px;
  bottom: -6px;
  left: 0;
  background-color: var(--accent-color);
  visibility: hidden;
  width: 0px;
  transition: all 0.3s ease-in-out 0s;
}

.portfolio .portfolio-filters li:hover:before,
.portfolio .portfolio-filters li.filter-active:before {
  visibility: visible;
  width: 100%;
}

.portfolio .portfolio-filters li:hover {
  color: var(--accent-color);
}

.portfolio .portfolio-filters li.filter-active {
  color: var(--accent-color);
}

.portfolio .portfolio-card {
  background-color: var(--surface-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  transition: all 0.3s ease;
}

.portfolio .portfolio-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.portfolio .portfolio-card:hover .portfolio-img .portfolio-overlay {
  opacity: 1;
}

.portfolio .portfolio-card:hover .portfolio-img img {
  transform: scale(1.1);
}

.portfolio .portfolio-card .portfolio-img,
.portfolio .portfolio-item {
  position: relative;
  overflow: hidden;
}

.portfolio .portfolio-card .portfolio-img img,
.portfolio .portfolio-item img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.portfolio .portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio .portfolio-card .portfolio-img .portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  opacity: 0;
  transition: all 0.3s ease;
}

.portfolio .portfolio-card .portfolio-img .portfolio-overlay a {
  width: 45px;
  height: 45px;
  background-color: var(--accent-color);
  color: var(--contrast-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.portfolio .portfolio-card .portfolio-img .portfolio-overlay a:hover {
  background-color: color-mix(in srgb, var(--accent-color), #fff 20%);
  transform: translateY(-5px);
}

.portfolio .portfolio-card .portfolio-info,
.portfolio .portfolio-item .portfolio-info {
  padding: 20px;
  text-align: center;
}

.portfolio .portfolio-card .portfolio-info h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--heading-color);
}

.portfolio .portfolio-card .portfolio-info p {
  font-size: 0.9rem;
  color: var(--default-color);
  margin-bottom: 10px;
}

.portfolio .portfolio-card .portfolio-info .portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portfolio .portfolio-card .portfolio-info .portfolio-tags span {
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 20px;
  background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  color: var(--accent-color);
}

.portfolio .btn-primary {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--contrast-color);
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.portfolio .btn-primary:hover {
  background-color: color-mix(in srgb, var(--accent-color), #000 10%);
  border-color: color-mix(in srgb, var(--accent-color), #000 10%);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/*--------------------------------------------------------------
# Portfolio Details Section
--------------------------------------------------------------*/
.portfolio-details {
  --section-spacing: 2.5rem;
}

.portfolio-details .portfolio-details-media {
  position: relative;
}

.portfolio-details .portfolio-details-media .main-image {
  margin-bottom: 1rem;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.portfolio-details .portfolio-details-media .main-image .portfolio-details-slider {
  position: relative;
}

.portfolio-details .portfolio-details-media .main-image .portfolio-details-slider .swiper-wrapper {
  height: auto !important;
}

.portfolio-details .portfolio-details-media .main-image .portfolio-details-slider .swiper-slide img {
  aspect-ratio: 3/2;
  object-fit: cover;
  width: 100%;
}

.portfolio-details .portfolio-details-media .main-image .portfolio-details-slider .swiper-button-next,
.portfolio-details .portfolio-details-media .main-image .portfolio-details-slider .swiper-button-prev {
  background-color: var(--contrast-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.portfolio-details .portfolio-details-media .main-image .portfolio-details-slider .swiper-button-next:after,
.portfolio-details .portfolio-details-media .main-image .portfolio-details-slider .swiper-button-prev:after {
  font-size: 16px;
  color: var(--accent-color);
  font-weight: bold;
}

.portfolio-details .portfolio-details-media .main-image .portfolio-details-slider .swiper-button-next:hover,
.portfolio-details .portfolio-details-media .main-image .portfolio-details-slider .swiper-button-prev:hover {
  background-color: var(--accent-color);
}

.portfolio-details .portfolio-details-media .main-image .portfolio-details-slider .swiper-button-next:hover:after,
.portfolio-details .portfolio-details-media .main-image .portfolio-details-slider .swiper-button-prev:hover:after {
  color: var(--contrast-color);
}

.portfolio-details .portfolio-details-media .thumbnail-grid img {
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.portfolio-details .portfolio-details-media .thumbnail-grid img:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.portfolio-details .portfolio-details-media .tech-stack-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1.5rem;
}

.portfolio-details .portfolio-details-media .tech-stack-badges span {
  display: inline-block;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 20px;
  background-color: color-mix(in srgb, var(--heading-color), transparent 85%);
  color: var(--heading-color);
  transition: all 0.3s ease;
}

.portfolio-details .portfolio-details-media .tech-stack-badges span:hover {
  background-color: color-mix(in srgb, var(--heading-color), transparent 70%);
  transform: translateY(-2px);
}

.portfolio-details .portfolio-details-content {
  padding: 0 0 0 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.portfolio-details .portfolio-details-content .project-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.portfolio-details .portfolio-details-content .project-meta .badge-wrapper .project-badge {
  display: inline-block;
  padding: 8px 16px;
  background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  color: var(--accent-color);
  border-radius: 30px;
  font-weight: 600;
  font-size: 14px;
}

.portfolio-details .portfolio-details-content .project-meta .date-client {
  display: flex;
  gap: 1.5rem;
}

.portfolio-details .portfolio-details-content .project-meta .date-client .meta-item {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

.portfolio-details .portfolio-details-content .project-meta .date-client .meta-item i {
  margin-right: 6px;
  color: var(--accent-color);
}

.portfolio-details .portfolio-details-content .project-title {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--heading-color);
}

.portfolio-details .portfolio-details-content .project-website {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.portfolio-details .portfolio-details-content .project-website i {
  font-size: 22px;
  color: var(--accent-color);
  margin-right: 8px;
}

.portfolio-details .portfolio-details-content .project-website a {
  font-weight: 500;
  transition: all 0.3s;
}

.portfolio-details .portfolio-details-content .project-website a:hover {
  letter-spacing: 0.5px;
}

.portfolio-details .portfolio-details-content .project-overview {
  margin-bottom: var(--section-spacing);
}

.portfolio-details .portfolio-details-content .project-overview .lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: color-mix(in srgb, var(--default-color), transparent 15%);
  margin-bottom: 1.5rem;
}

.portfolio-details .portfolio-details-content .project-overview .project-accordion .accordion-item {
  border: none;
  background: none;
  margin-bottom: 10px;
}

.portfolio-details .portfolio-details-content .project-overview .project-accordion .accordion-item .accordion-header .accordion-button {
  padding: 1rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--heading-color);
  background-color: color-mix(in srgb, var(--surface-color), transparent 70%);
  border-radius: 8px !important;
  box-shadow: none;
}

.portfolio-details .portfolio-details-content .project-overview .project-accordion .accordion-item .accordion-header .accordion-button:not(.collapsed) {
  background-color: var(--surface-color);
  color: var(--accent-color);
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.portfolio-details .portfolio-details-content .project-overview .project-accordion .accordion-item .accordion-header .accordion-button:not(.collapsed) i {
  color: var(--accent-color);
}

.portfolio-details .portfolio-details-content .project-overview .project-accordion .accordion-item .accordion-header .accordion-button::after {
  background-size: 14px;
  width: 14px;
  height: 14px;
}

.portfolio-details .portfolio-details-content .project-overview .project-accordion .accordion-item .accordion-header .accordion-button i {
  font-size: 1.1rem;
}

.portfolio-details .portfolio-details-content .project-overview .project-accordion .accordion-item .accordion-body {
  padding: 1rem;
  background-color: var(--surface-color);
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.portfolio-details .portfolio-details-content .project-overview .project-accordion .accordion-item .accordion-body p {
  margin-bottom: 0;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  line-height: 1.6;
}

.portfolio-details .portfolio-details-content .project-features {
  margin-bottom: var(--section-spacing);
}

.portfolio-details .portfolio-details-content .project-features h3 {
  display: flex;
  align-items: center;
  font-size: 1.25rem;
  margin-bottom: 1.2rem;
}

.portfolio-details .portfolio-details-content .project-features h3 i {
  margin-right: 10px;
  color: var(--accent-color);
  font-size: 1.1em;
}

.portfolio-details .portfolio-details-content .project-features .feature-list {
  list-style: none;
  padding-left: 0;
}

.portfolio-details .portfolio-details-content .project-features .feature-list li {
  display: flex;
  align-items: center;
  padding: 8px 0;
  font-size: 15px;
  color: color-mix(in srgb, var(--default-color), transparent 15%);
}

.portfolio-details .portfolio-details-content .project-features .feature-list li i {
  color: var(--accent-color);
  margin-right: 10px;
  font-size: 1.1em;
}

.portfolio-details .portfolio-details-content .cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: auto;
}

.portfolio-details .portfolio-details-content .cta-buttons .btn-view-project {
  padding: 12px 28px;
  background-color: var(--accent-color);
  color: var(--contrast-color);
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.portfolio-details .portfolio-details-content .cta-buttons .btn-view-project:hover {
  background-color: color-mix(in srgb, var(--accent-color), black 15%);
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.portfolio-details .portfolio-details-content .cta-buttons .btn-next-project {
  padding: 12px 28px;
  background-color: color-mix(in srgb, var(--heading-color), transparent 90%);
  color: var(--heading-color);
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.portfolio-details .portfolio-details-content .cta-buttons .btn-next-project i {
  transition: transform 0.3s ease;
}

.portfolio-details .portfolio-details-content .cta-buttons .btn-next-project:hover {
  background-color: color-mix(in srgb, var(--heading-color), transparent 80%);
}

.portfolio-details .portfolio-details-content .cta-buttons .btn-next-project:hover i {
  transform: translateX(3px);
}

@media (max-width: 1199.98px) {
  .portfolio-details .portfolio-details-content {
    padding-left: 1rem;
  }
}

@media (max-width: 991.98px) {
  .portfolio-details .portfolio-details-content {
    padding: 2rem 0 0 0;
  }

  .portfolio-details .portfolio-details-content .cta-buttons {
    margin-top: 2rem;
  }
}

@media (max-width: 767.98px) {
  .portfolio-details .project-meta {
    flex-direction: column;
    gap: 1rem;
  }

  .portfolio-details .project-meta .date-client {
    flex-direction: column;
    gap: 0.5rem;
  }

  .portfolio-details .cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .portfolio-details .cta-buttons a {
    width: 100%;
    text-align: center;
  }
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact .info-box {
  background-color: transparent;
  padding: 3rem;
  border-radius: 1rem;
  height: 100%;
}

.contact .info-box h3 {
  color: var(--contrast-color);
  font-size: 2rem;
  margin-bottom: 1rem;
}

@media (max-width: 767.98px) {
  .contact .info-box h3 {
    font-size: 1.75rem;
  }
}

.contact .info-box p {
  opacity: 0.8;
  margin-bottom: 2rem;
}

.contact .info-box a {
  color: var(--contrast-color);
}

@media (max-width: 992px) {
  .contact .info-box {
    padding: 1.5rem;
  }
}

/* Contact Options Styles */
.contact-options {
  text-align: center;
}

.contact-method {
  margin-bottom: 2rem;
}

.contact-method h4 {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 1rem;
}

.contact-method p {
  color: var(--default-color);
  margin-bottom: 1.5rem;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  color: var(--default-color);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
}

.contact-link:hover {
  background: var(--accent-color);
  color: white;
  transform: translateY(-2px);
}

.contact .info-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact .info-item:last-child {
  margin-bottom: 0;
}

.contact .info-item .icon-box {
  width: 3.5rem;
  height: 3.5rem;
  background-color: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: 0.3s;
}

.contact .info-item .icon-box i {
  font-size: 1.5rem;
  color: var(--default-color);
}

.contact .info-item:hover .icon-box {
  background-color: var(--accent-color);
}

/* WhatsApp link styling */
.contact .info-item a.icon-box {
  text-decoration: none;
  cursor: pointer;
}

.contact .info-item a.icon-box:hover {
  background-color: #25D366; /* WhatsApp green */
}

.contact .info-item a.icon-box:hover i {
  color: white;
}

/* Video thumbnail styling */
.video-thumbnail {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.video-thumbnail:hover .play-button {
  background: rgba(255, 107, 53, 1) !important;
  transform: translate(-50%, -50%) scale(1.1);
}

.video-thumbnail .play-button {
  transition: all 0.3s ease;
}

/* Modern thumbnail grid with text overlay on hover */
.video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 4px;
  background: #f5f5f5;
  cursor: pointer;
  transition: all 0.2s ease; /* Reduced from 0.3s to 0.2s */
  will-change: transform; /* Optimize for animations */
}

/* Apply background image directly to video-embed */
.video-embed {
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: #f5f5f5;
}

/* Lazy loading for video thumbnails - DISABLED for now */
.video-embed[data-loaded="false"] {
  /* background-image: none !important; */
}

.video-embed[data-loaded="true"] {
  /* background-image: var(--bg-image) !important; */
}

/* Remove the ::before pseudo-element for background */
.video-embed::before {
  display: none;
}

/* Dark overlay on hover */
.video-embed::after {
  content: attr(data-title);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  opacity: 0;
  z-index: 3;
  transition: opacity 0.3s ease;
  text-align: center;
  padding: 1rem;
}

.video-embed:hover::after {
  opacity: 1;
}

/* Disable hover effects on mobile */
@media (max-width: 768px) {
  .video-embed:hover::after {
    opacity: 1 !important;
  }
}

/* Hide iframe completely - pure thumbnail approach */
.video-embed iframe {
  display: none;
}

/* Clean portfolio grid layout */
.portfolio .row.gy-4 { 
  --bs-gutter-y: 2rem; 
  --bs-gutter-x: 2rem;
}

/* Performance optimizations for Works page */
.portfolio-page .video-embed {
  will-change: transform;
  transform: translateZ(0); /* Force hardware acceleration */
}

.portfolio-page .portfolio-item {
  contain: layout style paint; /* CSS containment for better performance */
}

/* Reduce animations on slower devices */
@media (prefers-reduced-motion: reduce) {
  .video-embed {
    transition: none !important;
  }
  
  .portfolio-item {
    transition: none !important;
  }
}

.portfolio .portfolio-item {
  background: transparent;
  box-shadow: none;
  border: 0;
  padding: 0;
  margin-bottom: 2rem;
}

/* Episode count styling */
.portfolio-info {
  margin-top: 0.75rem;
  text-align: center;
}

.episode-count {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--default-color);
  margin: 0;
  opacity: 0.8;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.portfolio .portfolio-item .portfolio-info {
  padding: 1rem 0;
  text-align: center;
}

.portfolio .portfolio-item .portfolio-info h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--heading-color);
  margin: 0;
  letter-spacing: -0.01em;
}

.contact .info-item .content h4 {
  color: var(--contrast-color);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.contact .info-item .content p {
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.contact .info-item .content p:last-child {
  margin-bottom: 0;
}

.contact .contact-form {
  background-color: transparent;
  padding: 3rem;
  border-radius: 1rem;
  height: 100%;
  box-shadow: none;
}

@media (max-width: 992px) {
  .contact .contact-form {
    padding: 1.5rem;
  }
}

.contact .contact-form h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .contact .contact-form h3 {
    font-size: 1.75rem;
  }
}

.contact .contact-form p {
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  margin-bottom: 2rem;
}

.contact .contact-form .form-control,
.contact .contact-form .form-select {
  padding: 0.875rem 1.25rem;
  border-color: color-mix(in srgb, var(--default-color), transparent 90%);
  border-radius: 0.5rem;
  background-color: transparent;
  color: var(--default-color);
}

.contact .contact-form .form-control:focus,
.contact .contact-form .form-select:focus {
  box-shadow: none;
  border-color: var(--accent-color);
}

.contact .contact-form .form-control::placeholder,
.contact .contact-form .form-select::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}

.contact .contact-form .btn {
  background-color: color-mix(in srgb, var(--surface-color), transparent 80%);
  color: var(--contrast-color);
  padding: 1rem 2rem;
  border-radius: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: 0.3s;
}

.contact .contact-form .btn i {
  font-size: 1.25rem;
}

.contact .contact-form .btn:hover {
  background-color: color-mix(in srgb, var(--surface-color), transparent 70%);
}

/*--------------------------------------------------------------
# Starter Section Section
--------------------------------------------------------------*/
.starter-section {
  /* Add your styles here */
}

/* Desktop-only: enlarge Works (portfolio) filter text; keep mobile untouched */
@media screen and (min-width: 1025px) {
  .portfolio .portfolio-filters {
    gap: 40px !important;
    padding: 0 !important;
    overflow: visible !important;
    justify-content: center !important;
  }
  .portfolio .portfolio-filters li {
    font-size: 1.15em !important;
    font-weight: 500 !important;
    letter-spacing: 0.5px !important;
    padding: 0 !important;
  }
  /* If a stray fixed icon appears (e.g., scroll-top), hide it on portfolio page desktop */
  .portfolio-page #scroll-top {
    display: none !important;
  }
}

/* Mobile video titles - Always visible overlay */
@media (max-width: 768px) {
  .portfolio .portfolio-item {
    position: relative;
  }
  
  .portfolio .portfolio-item .portfolio-info {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.3)) !important;
    color: white !important;
    padding: 15px 10px !important;
    text-align: center !important;
    margin: 0 !important;
    border-radius: 0 !important;
  }
  
  .portfolio .portfolio-item .portfolio-info h4 {
    color: white !important;
  }
  
  /* Video embed titles - Scroll-triggered animation */
  .video-embed::after {
    opacity: 0 !important;
    background: rgba(0, 0, 0, 0.7) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    margin: 10px !important;
    width: auto !important;
    height: auto !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.4s ease !important;
    backdrop-filter: blur(5px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
  }
  
  /* Show title when video is in center of viewport */
  .video-embed.in-view::after {
    opacity: 1 !important;
    transform: translate(-50%, -50%) scale(1.05) !important;
  }
  
  .portfolio .portfolio-item img {
    border-radius: 8px !important;
  }
}

/* FINAL OVERRIDE - MOBILE TITLE POSITIONING */
@media screen and (max-width: 767px) {
  body.index-page .hero,
  .index-page .hero,
  .hero {
    padding-top: 15vh !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

/* MAX PHONES - iPhone 15 Pro Max, iPhone 16 Pro Max etc. */
@media screen and (min-width: 430px) and (max-width: 767px) {
  body.index-page .hero,
  .index-page .hero,
  .hero {
    padding-top: 10vh !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  body.index-page .hero .hero-content h1,
  .index-page .hero .hero-content h1,
  .hero .hero-content h1 {
    margin-top: -20px !important;
    margin-bottom: 10px !important;
  }
  
  body.index-page .hero .hero-content h2,
  .index-page .hero .hero-content h2,
  .hero .hero-content h2 {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
  }
  
  body.index-page .hero .hero-content,
  .index-page .hero .hero-content,
  .hero .hero-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
    transform: translateY(0px) !important;
  }
  
  body.index-page .hero .hero-content h1,
  .index-page .hero .hero-content h1,
  .hero .hero-content h1 {
    margin-top: 0 !important;
    margin-bottom: 15px !important;
    transform: none !important;
  }
  
  body.index-page .hero .hero-content h2,
  .index-page .hero .hero-content h2,
  .hero .hero-content h2 {
    margin-top: 0 !important;
    margin-bottom: 15px !important;
    transform: none !important;
  }
}