/* 3D Slider CSS */
.hero-3d-section {
    min-height: 100vh;
    padding-top: 120px;
    padding-bottom: 40px;
    background: #F2F2F7;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    perspective: 1200px;
}

.ios-hero-bg {
    background: radial-gradient(circle at 50% 0%, #ffffff 0%, #F2F2F7 100%);
}

.hero-glass-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(12px);
    z-index: 1;
    transition: all 0.6s ease;
    pointer-events: none;
}

.hero-3d-section:hover .hero-glass-overlay {
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0);
}

.slider-3d-container {
    position: relative;
    width: 100%;
    max-width: 1600px;
    height: 550px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
    z-index: 2;
    cursor: grab;
    padding: 0 20px;
}

.slider-3d-container:active {
    cursor: grabbing;
}

.slider-card {
    position: absolute;
    width: 55%;
    /* Default for standard desktop */
    max-width: 800px;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    /* Premium Glassmorphism */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 32px;
    box-shadow:
        0 5px 15px -5px rgba(0, 0, 0, 0.05),
        0 20px 40px -10px rgba(0, 0, 0, 0.1);
    transition: all 0.9s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    opacity: 0;
    z-index: 0;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transform-origin: center center;
    /* will-change ve backface-visibility kaldırıldı: Görsellerin bulanıklaşmasına neden olabiliyor */
    transform: translateZ(0); /* GPU hızlandırmayı netliği bozmadan tetikler */
}

/* Glossy Light Reflection Effect */
.slider-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at var(--mouse-x, 0%) var(--mouse-y, 0%), 
        rgba(255, 255, 255, 0.4) 0%, 
        rgba(255, 255, 255, 0.1) 30%, 
        transparent 70%
    );
    pointer-events: none;
    z-index: 3;
    transition: opacity 0.5s ease;
}

.slider-card.active::after {
    opacity: 1;
}

.slider-card:not(.active)::after {
    opacity: 0.5;
}

.slider-card.active {
    transform: translateX(0) scale(1);
    z-index: 20;
    opacity: 1;
    box-shadow:
        0 15px 30px -5px rgba(0, 0, 0, 0.1),
        0 30px 60px -15px rgba(0, 0, 0, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.8);
    animation: float-card 6s ease-in-out infinite;
}

/* Default Desktop Styles (1200px - 1600px) */
.slider-card.next {
    transform: translateX(60%) scale(0.85) rotateY(-15deg);
    z-index: 10;
    opacity: 0.7;
    filter: brightness(0.95);
    pointer-events: none;
    /* Prevent clicking on side cards */
}

.slider-card.prev {
    transform: translateX(-60%) scale(0.85) rotateY(15deg);
    z-index: 10;
    opacity: 0.7;
    filter: brightness(0.95);
    pointer-events: none;
}

.card-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: -webkit-optimize-contrast; /* Görsel netliği için */
    transition: transform 1.2s cubic-bezier(0.2, 1, 0.2, 1);
}

/* Parallax Hover Effect for Active Card */
.slider-card.active:hover .card-image img {
    transform: scale(1.1) translateX(10px);
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    color: white;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease 0.2s;
    z-index: 5;
}

.slider-card.active .card-content {
    transform: translateY(0);
    opacity: 1;
}

.card-content h2 {
    font-size: 2rem;
    margin-bottom: 8px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.card-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.slider-nav {
    margin-top: 20px;
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    z-index: 30;
}

.nav-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #1d1d1f;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.nav-btn:hover {
    background: #AF52DE;
    border-color: #AF52DE;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(175, 82, 222, 0.25);
}

/* Large Screens (> 1600px) */
@media (min-width: 1600px) {
    .slider-card {
        width: 60%;
        max-width: 1000px;
    }

    .slider-card.next {
        transform: translateX(70%) scale(0.85) rotateY(-20deg);
    }

    .slider-card.prev {
        transform: translateX(-70%) scale(0.85) rotateY(20deg);
    }
}

/* Small Desktop / Laptop (1024px - 1366px) */
@media (max-width: 1366px) {
    .slider-3d-container {
        height: 450px;
    }

    .slider-card {
        width: 50%;
        /* Narrower to fit side cards */
    }

    .slider-card.next {
        transform: translateX(60%) scale(0.85) rotateY(-15deg);
    }

    .slider-card.prev {
        transform: translateX(-60%) scale(0.85) rotateY(15deg);
    }

    .card-content h2 {
        font-size: 1.5rem;
    }

    .card-content p {
        font-size: 0.95rem;
    }
}

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
    .hero-3d-section {
        min-height: 80vh;
    }

    .slider-3d-container {
        height: 400px;
    }

    .slider-card {
        width: 70%;
    }

    .slider-card.next {
        transform: translateX(30%) scale(0.8) translateZ(-50px);
        opacity: 0.6;
    }

    .slider-card.prev {
        transform: translateX(-30%) scale(0.8) translateZ(-50px);
        opacity: 0.6;
    }

    .card-content {
        padding: 30px;
    }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
    .hero-3d-section {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: 60px;
    }

    .slider-3d-container {
        height: 380px;
    }

    .slider-card {
        width: 85%;
    }

    .slider-card.next {
        transform: translate3d(8%, 0, -80px) scale(0.9);
        opacity: 0.5;
    }

    .slider-card.prev {
        transform: translate3d(-8%, 0, -80px) scale(0.9);
        opacity: 0.5;
    }

    .card-content {
        padding: 20px;
    }

    .nav-btn {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
}

/* Small Mobile (< 480px) */
@media (max-width: 480px) {
    .slider-3d-container {
        height: 320px;
    }

    .slider-card {
        width: 90%;
    }

    .slider-card.next {
        transform: translate3d(5%, 0, -100px) scale(0.9);
        opacity: 0;
        /* Hide side cards completely */
    }

    .slider-card.prev {
        transform: translate3d(-5%, 0, -100px) scale(0.9);
        opacity: 0;
    }

    .card-content h2 {
        font-size: 1.3rem;
    }
}

/* Navigation Transition Animation */
.slider-card.navigating {
    transform: scale(10) !important;
    opacity: 0 !important;
    transition: all 0.8s ease-in !important;
    z-index: 9999 !important;
}

/* Masonry Portfolio */
.portfolio-masonry-grid {
    column-count: 3;
    column-gap: 30px;
}

.portfolio-masonry-card {
    break-inside: avoid;
    margin-bottom: 30px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: #fff;
}

.portfolio-masonry-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.portfolio-masonry-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

.portfolio-masonry-card .portfolio-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0) 100%);
    justify-content: flex-end;
    align-items: flex-start;
    text-align: left;
    padding: 30px;
}

.portfolio-masonry-card .portfolio-overlay h3 {
    transform: translateY(20px);
    transition: transform 0.3s ease 0.1s;
}

.portfolio-masonry-card .portfolio-overlay p {
    transform: translateY(20px);
    transition: transform 0.3s ease 0.2s;
    opacity: 0.9;
}

.portfolio-masonry-card .portfolio-overlay .btn {
    transform: translateY(20px);
    transition: transform 0.3s ease 0.3s;
}

.portfolio-masonry-card:hover .portfolio-overlay h3,
.portfolio-masonry-card:hover .portfolio-overlay p,
.portfolio-masonry-card:hover .portfolio-overlay .btn {
    transform: translateY(0);
}

/* iOS Style Contact Section (Custom Implementation of Tailwind Design) */
.ios-contact-section {
    padding: 100px 0;
    background: #FFFFFF;
    position: relative;
    overflow: hidden;
}

.ios-contact-wrapper {
    position: relative;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.ios-contact-card {
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 25px 90px rgba(15, 23, 42, 0.15);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .ios-contact-card {
        flex-direction: row;
        text-align: left;
        padding: 2.5rem;
    }
}

@media (min-width: 1024px) and (max-width: 1279px) {
    .ios-contact-card {
        padding: 1.75rem;
    }

    .premium-title {
        font-size: 1.35rem;
    }

    .contact-icon-box {
        width: 2.75rem;
        height: 2.75rem;
        font-size: 1.1rem;
    }

    .btn-ios-primary,
    .btn-ios-whatsapp {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        margin-top: 1rem;
    }
}

@media (min-width: 1280px) {
    .ios-contact-card {
        padding: 4rem;
    }
}

/* Background Effects */
.card-bg-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.card-bg-effects .effect-1 {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.7), transparent 55%);
    animation: pulse-slow 6s ease-in-out infinite;
}

.card-bg-effects .effect-2 {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at bottom, rgba(255, 255, 255, 0.6), transparent 65%);
}

.glow-orb {
    position: absolute;
    width: 9rem;
    height: 9rem;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.65;
    animation: pulse-slow 8s ease-in-out infinite;
    z-index: 0;
}

.orb-1 {
    top: 1.5rem;
    left: -2.5rem;
    background: rgba(96, 165, 250, 0.45);
}

.orb-2 {
    bottom: 0.5rem;
    right: -2rem;
    background: rgba(34, 211, 238, 0.45);
}

/* Content Styling */
.contact-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: white;
    font-size: 1.25rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

@media (min-width: 1280px) {
    .contact-icon-box {
        width: 3.5rem;
        height: 3.5rem;
        font-size: 1.5rem;
    }
}

.contact-content {
    flex: 1;
    position: relative;
    z-index: 10;
    text-align: center;
}

@media (min-width: 768px) {
    .contact-content {
        text-align: left;
    }
}

.contact-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .contact-meta {
        justify-content: flex-start;
    }
}

.meta-label {
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.65rem;
    color: #64748b;
    margin: 0;
}

.premium-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    background-image: linear-gradient(120deg, #fb923c, #f97316, #a855f7);
    color: #fff;
    box-shadow: 0 4px 6px -1px rgba(249, 115, 22, 0.3);
}

.premium-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0.5rem 0;
    line-height: 1.2;
}

@media (min-width: 1280px) {
    .premium-title {
        font-size: 1.875rem;
    }
}

.micro-divider {
    width: 120px;
    height: 1px;
    position: relative;
    background-image: linear-gradient(90deg, rgba(251, 146, 60, 0), rgba(251, 146, 60, 0.8), rgba(139, 92, 246, 0.8), rgba(59, 130, 246, 0));
    margin: 1rem auto;
}

@media (min-width: 768px) {
    .micro-divider {
        margin: 1rem 0;
    }
}

.micro-divider::after {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    transform: translateX(-50%);
    background: #fff;
    box-shadow: 0 0 15px rgba(147, 51, 234, 0.8);
}

.contact-desc {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 0;
}

.divider-vertical {
    display: none;
    width: 1px;
    height: 4rem;
    background: linear-gradient(to bottom, #60a5fa, #22d3ee, #a855f7);
    opacity: 0.6;
}

@media (min-width: 768px) {
    .divider-vertical {
        display: block;
    }
}

.contact-stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-left: 0.25rem;
    position: relative;
    z-index: 10;
}

.stat-icon {
    font-size: 2.25rem;
    color: #0f172a;
    filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.07));
}

.stat-text {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.2;
    text-align: left;
}

.btn-ios-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #0f172a;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-top: 1.5rem;
}

.btn-ios-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    background: #1e293b;
    color: white;
}

.btn-ios-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #075E54;
    /* Daha yüksek kontrast için koyu yeşil */
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(37, 211, 102, 0.25);
    margin-top: 1.5rem;
    margin-left: 10px;
}

.btn-ios-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 211, 102, 0.35);
    background: #128C7E;
    color: white;
}

@media (max-width: 992px) {
    .portfolio-masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 576px) {
    .portfolio-masonry-grid {
        column-count: 1;
    }
}

/* iOS-Style Section Components (Matching CTA Design) */
.ios-section {
    padding: 100px 0;
}

.ios-section-title {
    text-align: center;
    margin-bottom: 60px;
}

.ios-section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 15px;
}

.ios-section-title p {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
}

/* iOS Grid System */
.ios-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

@media (min-width: 768px) {
    .ios-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .ios-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* iOS Service Cards */
.ios-card-hover {
    background: white;
    border-radius: 24px;
    padding: 40px 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    opacity: 0;
    animation: fadeInUpCard 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.ios-card-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #fb923c, #f97316, #a855f7);
}

.ios-card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.ios-icon-box {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.ios-card-hover:hover .ios-icon-box {
    transform: scale(1.1) translateY(-5px) rotate(15deg);
}

.ios-card-hover:hover .ios-icon-box i {
    transform: rotate(-25deg);
}

.ios-icon-box i {
    font-size: 2rem;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    z-index: 2;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* iOS Icon Variants */
.ios-icon-variant-1 {
    background: linear-gradient(135deg, #FF3B30, #FF9500);
    box-shadow: 0 10px 20px -5px rgba(255, 59, 48, 0.4);
}

.ios-icon-variant-2 {
    background: linear-gradient(135deg, #007AFF, #5AC8FA);
    box-shadow: 0 10px 20px -5px rgba(0, 122, 255, 0.4);
}

.ios-icon-variant-3 {
    background: linear-gradient(135deg, #34C759, #30D158);
    box-shadow: 0 10px 20px -5px rgba(52, 199, 89, 0.4);
}

.ios-icon-variant-4 {
    background: linear-gradient(135deg, #5856D6, #AF52DE);
    box-shadow: 0 10px 20px -5px rgba(88, 86, 214, 0.4);
}

.ios-icon-variant-5 {
    background: linear-gradient(135deg, #FF2D55, #FF375F);
    box-shadow: 0 10px 20px -5px rgba(255, 45, 85, 0.4);
}

.ios-icon-variant-6 {
    background: linear-gradient(135deg, #FF9500, #FFCC00);
    box-shadow: 0 10px 20px -5px rgba(255, 149, 0, 0.4);
}

/* Card Hover Background Variants */
.ios-card-variant-1:hover {
    background-color: rgba(255, 59, 48, 0.1);
    border-color: rgba(255, 59, 48, 0.3);
}

.ios-card-variant-2:hover {
    background-color: rgba(0, 122, 255, 0.1);
    border-color: rgba(0, 122, 255, 0.3);
}

.ios-card-variant-3:hover {
    background-color: rgba(52, 199, 89, 0.1);
    border-color: rgba(52, 199, 89, 0.3);
}

.ios-card-variant-4:hover {
    background-color: rgba(88, 86, 214, 0.1);
    border-color: rgba(88, 86, 214, 0.3);
}

.ios-card-variant-5:hover {
    background-color: rgba(255, 45, 85, 0.1);
    border-color: rgba(255, 45, 85, 0.3);
}

.ios-card-variant-6:hover {
    background-color: rgba(255, 149, 0, 0.1);
    border-color: rgba(255, 149, 0, 0.3);
}

/* Icon Hover Glow Expansion */
.ios-card-hover:hover .ios-icon-variant-1 {
    box-shadow: 0 20px 40px -5px rgba(255, 59, 48, 0.6);
}

.ios-card-hover:hover .ios-icon-variant-2 {
    box-shadow: 0 20px 40px -5px rgba(0, 122, 255, 0.6);
}

.ios-card-hover:hover .ios-icon-variant-3 {
    box-shadow: 0 20px 40px -5px rgba(52, 199, 89, 0.6);
}

.ios-card-hover:hover .ios-icon-variant-4 {
    box-shadow: 0 20px 40px -5px rgba(88, 86, 214, 0.6);
}

.ios-card-hover:hover .ios-icon-variant-5 {
    box-shadow: 0 20px 40px -5px rgba(255, 45, 85, 0.6);
}

.ios-card-hover:hover .ios-icon-variant-6 {
    box-shadow: 0 20px 40px -5px rgba(255, 149, 0, 0.6);
}

/* Card Entrance Animation */
@keyframes fadeInUpCard {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ios-icon-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.ios-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 15px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
}

.ios-card-hover:hover .ios-card-title {
    color: #ff6600ff;
}

.ios-card-desc {
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.6;
    margin-bottom: 20px;
    font-weight: 500;
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.05);
}

.ios-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #a855f7;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ios-link:hover {
    color: #f97316;
    gap: 12px;
}

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

.ios-link:hover i {
    transform: translateX(4px);
}

/* iOS Portfolio Cards */
.ios-portfolio-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 260px;
}

.ios-portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.ios-portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

.ios-portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.ios-portfolio-overlay h3 {
    transform: translateY(20px);
    transition: transform 0.3s ease 0.1s;
}

.ios-portfolio-overlay .premium-chip {
    transform: translateY(20px);
    transition: transform 0.3s ease 0.05s;
}

.ios-portfolio-overlay .btn-ios-primary {
    transform: translateY(20px);
    transition: transform 0.3s ease 0.15s;
}

.ios-portfolio-card:hover .ios-portfolio-overlay h3,
.ios-portfolio-card:hover .ios-portfolio-overlay .premium-chip,
.ios-portfolio-card:hover .ios-portfolio-overlay .btn-ios-primary {
    transform: translateY(0);
}

/* iOS Section Header Styles */
.ios-section-header {
    max-width: 800px;
    margin: 0 auto;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.ios-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border-radius: 9999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
}

.ios-header-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007AFF, #5AC8FA);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}

.ios-header-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #8e8e93;
}

.ios-section-desc {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
}

.section-stat-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.65rem;
    font-weight: 600;
    background: rgba(15, 23, 42, 0.05);
    color: #475569;
    border: 1px solid rgba(15, 23, 42, 0.05);
}

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

    .ios-portfolio-card {
        height: 240px;
    }
}

/* Floating Animation */
@keyframes float-img {
    0% {
        transform: translateY(0px);
        filter: drop-shadow(0 10px 5px rgba(0, 0, 0, 0.08));
    }

    50% {
        transform: translateY(-15px);
        filter: drop-shadow(0 25px 15px rgba(0, 0, 0, 0.12));
    }

    100% {
        transform: translateY(0px);
        filter: drop-shadow(0 10px 5px rgba(0, 0, 0, 0.08));
    }
}

.floating-image {
    animation: float-img 4s ease-in-out infinite;
}

/* Mail Shake Animation */
@keyframes shake-mail {
    0% {
        transform: rotate(0deg);
    }

    5% {
        transform: rotate(12deg);
    }

    10% {
        transform: rotate(-12deg);
    }

    15% {
        transform: rotate(12deg);
    }

    20% {
        transform: rotate(0deg);
    }

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

.shaking-mail {
    animation: shake-mail 2s infinite ease-in-out;
    transform-origin: center bottom;
}

/* Button Loading State */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    margin-left: -10px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: btn-spin 0.8s linear infinite;
}

@keyframes btn-spin {
    to {
        transform: rotate(360deg);
    }
}
