/* White Apple Minimalist Theme Base */
body {
    background-color: #ffffff;
    color: #1d1d1f;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
}

.bg-apple-light {
    background-color: #f5f5f7;
}

/* Light Frosted Glass Sticky Navbar */
.apple-navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    z-index: 1030;
}

.apple-navbar .nav-link {
    color: #1d1d1f;
    font-size: 0.85rem;
    font-weight: 400;
    transition: color 0.2s ease;
}

.apple-navbar .nav-link:hover {
    color: #0071e3;
}

/* Apple Primary Button */
.btn-apple-primary {
    background-color: #0071e3;
    color: #ffffff;
    border: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-apple-primary:hover {
    background-color: #0077ed;
    color: #ffffff;
    transform: scale(1.02);
}

.btn-apple-outline {
    background-color: transparent;
    color: #0071e3;
    border: 1px solid #0071e3;
    font-weight: 500;
}

.btn-apple-outline:hover {
    background-color: #0071e3;
    color: #ffffff;
}

/* Apple Cards */
.apple-card, .apple-grid-card {
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 520px;
}

.apple-card:hover, .apple-grid-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* Hero Phone Mockup */
.hero-phone-mockup {
    max-width: 320px;
    width: 100%;
    min-height: 400px;
    border-radius: 36px;
    background: #ffffff;
    padding: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.hero-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Product Color Dots */
.color-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(0,0,0,0.15);
}

.color-dot:hover {
    transform: scale(1.2);
}

.color-dot.active {
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #0071e3;
    transform: scale(1.1);
}

/* Dynamic Phone Display Container */
.phone-img-container {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-display-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: opacity 0.25s ease-in-out, transform 0.25s ease-in-out;
}

.phone-display-img.fade-out {
    opacity: 0;
    transform: scale(0.95);
}

/* Card Image Wrappers & Aspect Ratio Fixes */
.card-img-wrapper {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.watch-card-height, 
.gift-card-height, 
.card-mockup-height {
    height: 240px;
}

.unity-card-height {
    height: 250px;
}

.shot-on-iphone-wrapper, 
.tv-card-height {
    height: 280px;
    border-radius: 14px;
    overflow: hidden;
}

/* Image Utilities */
.apple-contained-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.apple-covered-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.drop-shadow-img {
    filter: drop-shadow(0px 12px 20px rgba(0, 0, 0, 0.25));
}

.apple-grid-card:hover .apple-contained-img,
.apple-grid-card:hover .apple-covered-img {
    transform: scale(1.03);
}

/* Section Image Wrappers (MacBook, Watch, AirPods) */
/* MacBook Section Image Fix */
.macbook-img-box {
    width: 100%;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    overflow: hidden;
    background-color: #000000; /* Is se kaala background pooray dhabay ki jagah clean inner frame ban jayega */
}

.macbook-fit-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Black bg wali image ko seamless cover karega */
    object-position: center;
    transition: transform 0.4s ease;
}

.apple-card:hover .macbook-fit-img {
    transform: scale(1.04);
}
/* Apple Watch Circular Frame */
.watch-circle-wrapper {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background-color: #f5f5f7;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.watch-circle-wrapper:hover {
    transform: scale(1.03);
}

.watch-circle-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Official Apple Footer Styling */
.apple-footer {
    background-color: #f5f5f7;
    font-size: 11px;
    color: #6e6e73;
    line-height: 1.33337;
    letter-spacing: -0.01em;
}

.footer-footnotes p {
    margin-bottom: 0.8em;
}

.footer-title {
    font-size: 11px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 0.5rem;
}

.footer-links ul li {
    margin-bottom: 0.35rem;
}

.footer-links ul li a {
    color: #424245;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links ul li a:hover {
    color: #000000;
    text-decoration: underline;
}

.footer-more-ways {
    color: #6e6e73;
}

.footer-legal-links a {
    color: #424245;
    text-decoration: none;
    margin-right: 10px;
    position: relative;
}

.footer-legal-links a:not(:last-child)::after {
    content: "|";
    position: absolute;
    right: -7px;
    color: #d2d2d7;
}

.footer-legal-links a:hover {
    color: #000000;
    text-decoration: underline;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Mobile & Tablet Responsiveness Fixes */
@media (max-width: 768px) {
    .apple-card, .apple-grid-card {
        min-height: auto;
    }
    .watch-circle-wrapper {
        width: 220px;
        height: 220px;
    }
    .footer-legal-links {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    .footer-legal-links a:not(:last-child)::after {
        display: none;
    }
}
/* AirPods Section Clean Fit CSS */
.airpods-img-box {
    width: 100%;
    height: 220px; /* Specific height for images */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 10px;
}

.airpods-fit-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* Is se tasweer kabhi cut ya stretch nahi hogi */
    transition: transform 0.3s ease;
}
/* Container Box Alignment */
.card-3d-container {
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px; /* Enable 3D Depth */
}

/* 3D Floating Apple Titanium Card */
.apple-card-3d {
  width: 270px;
  height: 165px;
  background: linear-gradient(135deg, #f2f2f4 0%, #e3e3e8 50%, #d8d8de 100%);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.9);
  
  /* Exact Perspective Angle & Shadow like image */
  transform: rotateX(25deg) rotateY(-35deg) rotateZ(12deg) translateY(-10px);
  box-shadow: -20px 30px 35px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 1);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s ease;
}

/* Interactive Hover Effect */
.apple-grid-card:hover .apple-card-3d {
  transform: rotateX(15deg) rotateY(-20deg) rotateZ(5deg) scale(1.05);
  box-shadow: -25px 35px 45px rgba(0, 0, 0, 0.22);
}

/* Apple Logo on Card */
.apple-logo-card {
  font-size: 26px;
  color: #7d7d82;
}

/* EMV Chip Design */
.chip-card {
  width: 32px;
  height: 24px;
  background: linear-gradient(135deg, #dfc681, #c8a446);
  border-radius: 5px;
  border: 1px solid #a8852e;
}

/* Name engraved at bottom left */
.card-holder-text {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.2px;
  color: #6b6b70;
  text-transform: uppercase;
}
/* Hero Section Layout Base */
.hero-section {
  background-color: #fbfbfd;
  padding-bottom: 0 !important;
}

.hero-image-container {
  width: 100%;
  max-width: 980px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-top: 10px;
}

.hero-banner-img {
  width: 100%;
  height: auto;
  max-width: 850px;
  object-fit: contain;
  display: block;
}

/* Mobile Specific Fixes */
@media (max-width: 768px) {
  #iphone13-hero {
    padding-top: 5rem !important; /* Top navbar se space ke liye */
  }

  #iphone13-hero h1 {
    font-size: 2.2rem !important;
  }

  #iphone13-hero p {
    font-size: 1.1rem !important;
  }

  .hero-image-container {
    min-height: auto;
  }

  .hero-banner-img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    display: block !important;
  }
}