/* ============================================================
   IFRIT MATINU — IMMERSIVE LUXURY PORTFOLIO STYLING SYSTEM
   Inspiration: Immersive Garden (immersive-g.com)
   ============================================================ */

:root {
    --bg-dark: #050208;
    --bg-soft: #10071c;
    --accent: #cfb1fa;
    --accent-glow: rgba(207, 177, 250, 0.32);
    --lavender-glow: rgba(185, 142, 234, 0.24);
    --gold-deep: #a67cde;
    --text-primary: #f5eefc;
    --text-muted: #958a9d;
    --font-serif: 'Cinzel', Georgia, serif;
    --font-sans: 'Outfit', sans-serif;
    --radius-lg: 32px;
    --radius-md: 16px;
    --radius-sm: 8px;
    --radius-pill: 999px;
    --ease: cubic-bezier(.16, 1, .3, 1);
    --transition-slow: 0.8s var(--ease);
    --transition-medium: 0.5s var(--ease);
    --transition-fast: 0.25s var(--ease);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-sans);
    overflow-x: hidden;
}

body {
    background: var(--bg-dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Custom Interactive Cursor (Hide default cursor on non-touch devices) */
@media (hover: hover) and (pointer: fine) {
    body, a, button, .work-item, .slider-btn {
        cursor: none !important;
    }
    
    .custom-cursor {
        width: 40px;
        height: 40px;
        border: 1px solid var(--accent);
        border-radius: 50%;
        position: fixed;
        transform: translate(-50%, -50%);
        pointer-events: none;
        z-index: 9999;
        transition: width 0.3s var(--ease), height 0.3s var(--ease), background 0.3s var(--ease);
        mix-blend-mode: difference;
    }

    .custom-cursor-dot {
        width: 6px;
        height: 6px;
        background: var(--accent);
        border-radius: 50%;
        position: fixed;
        transform: translate(-50%, -50%);
        pointer-events: none;
        z-index: 9999;
    }

    .custom-cursor.hovered {
        width: 70px;
        height: 70px;
        background: rgba(207, 177, 250, 0.16);
        border-color: var(--accent);
    }
}

/* Canvas background */
.interactive-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0.42;
}

/* Preloader */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 1s var(--ease), visibility 1s var(--ease);
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.preloader-title {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    letter-spacing: 0.3em;
    color: var(--accent);
    text-shadow: 0 0 15px var(--accent-glow);
    animation: preloader-pulse 2s infinite ease-in-out;
}

.preloader-bar {
    width: 240px;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.preloader-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}

.preloader-pct {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

@keyframes preloader-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Header Navigation */
.portfolio-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 900;
    background: rgba(8, 4, 10, 0.62);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    color: var(--text-primary);
    text-decoration: none;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
    transition: color var(--transition-fast);
}

.brand-logo:hover {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.2rem;
}

.nav-link {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
    position: relative;
    padding: 0.35rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width var(--transition-fast), left var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
}

.btn-reserve {
    border: 1.5px solid var(--accent);
    border-radius: var(--radius-pill);
    padding: 0.65rem 1.35rem;
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    text-decoration: none;
    background: transparent;
    transition: background var(--transition-medium), color var(--transition-medium), box-shadow var(--transition-medium);
}

.btn-reserve:hover {
    background: var(--accent);
    color: var(--bg-dark);
    box-shadow: 0 0 20px var(--accent-glow);
}

/* Sections Global Layout */
.portfolio-main {
    position: relative;
    z-index: 1;
}

section {
    padding: 8vw 0;
    position: relative;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-kicker {
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin-bottom: 0.85rem;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1.15;
    margin-bottom: 3.5rem;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 140px;
    padding-bottom: 60px;
}

.hero-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.hero-eyebrow {
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.5rem;
    animation: fade-in-up 0.8s var(--ease) both;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.8rem, 7.5vw, 5.8rem);
    font-weight: 400;
    letter-spacing: -0.025em;
    line-height: 1.04;
    color: var(--text-primary);
    margin-bottom: 2.2rem;
}

.hero-title span {
    display: block;
}

.hero-title .line-1 {
    animation: fade-in-up 1s var(--ease) both;
    animation-delay: 0.1s;
}

.hero-title .line-2 {
    color: transparent;
    -webkit-text-stroke: 1px var(--text-primary);
    animation: fade-in-up 1.2s var(--ease) both;
    animation-delay: 0.2s;
}

.hero-lead {
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    font-weight: 200;
    color: var(--text-muted);
    max-width: 58ch;
    line-height: 1.6;
    margin-bottom: 3rem;
    animation: fade-in-up 1.4s var(--ease) both;
    animation-delay: 0.3s;
}

.hero-cta-group {
    display: flex;
    gap: 1.25rem;
    animation: fade-in-up 1.6s var(--ease) both;
    animation-delay: 0.4s;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-dark);
    padding: 1.1rem 2.2rem;
    border-radius: var(--radius-pill);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 10px 30px var(--accent-glow);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px var(--accent-glow);
}

.btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    padding: 1.1rem 2.2rem;
    border-radius: var(--radius-pill);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    transition: border-color var(--transition-medium), background var(--transition-medium), transform var(--transition-medium);
}

.btn-secondary:hover {
    border-color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.65rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 800;
    opacity: 0.6;
}

.mouse-icon {
    width: 22px;
    height: 38px;
    border: 1.5px solid var(--text-muted);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.mouse-icon .wheel {
    width: 3px;
    height: 7px;
    background: var(--accent);
    border-radius: 2px;
    animation: scroll-wheel 1.6s infinite var(--ease);
}

@keyframes scroll-wheel {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(12px); opacity: 0; }
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

/* About / Biography Section */
.about-section {
    background: linear-gradient(180deg, var(--bg-dark), var(--bg-soft));
    border-block: 1px solid rgba(255, 255, 255, 0.03);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4.5rem;
    align-items: center;
}

.about-copy {
    display: grid;
    gap: 1.5rem;
}

.about-lead {
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 1.5;
    color: var(--text-primary);
    border-left: 3px solid var(--accent);
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
}

.about-copy p:not(.about-lead) {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 200;
}

.about-photo-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: visible;
}

.about-photo {
    width: 100%;
    aspect-ratio: 0.85;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    filter: grayscale(0.2) contrast(1.05);
    transition: transform var(--transition-slow);
}

.about-photo-wrapper:hover .about-photo {
    transform: scale(1.02);
}

.award-badge-card {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: rgba(20, 12, 22, 0.92);
    border: 1.5px solid var(--accent);
    border-radius: var(--radius-md);
    padding: 1.35rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 10;
}

.badge-icon {
    font-size: 1.5rem;
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent-glow);
    margin-bottom: 0.4rem;
}

.award-badge-card strong {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.award-badge-card small {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 800;
    margin-top: 0.2rem;
    letter-spacing: 0.1em;
}

/* Credentials / Certificate Slider Section */
.credentials-section {
    background: var(--bg-soft);
    overflow: hidden;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4.5rem;
}

.section-desc {
    max-width: 38ch;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 200;
}

.slider-container {
    position: relative;
    width: 100%;
}

.slider-track {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Hide scrollbar Firefox */
    padding-bottom: 2rem;
}

.slider-track::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

.credential-card {
    flex: 0 0 calc(33.333% - 1.35rem);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform var(--transition-slow), border-color var(--transition-slow), box-shadow var(--transition-slow);
}

.credential-card:hover {
    transform: translateY(-8px);
    border-color: rgba(242, 213, 141, 0.42);
    box-shadow: 0 16px 40px rgba(242, 213, 141, 0.08);
}

.credential-image {
    aspect-ratio: 1.4;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: #0d0611;
}

.credential-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9) contrast(1.02);
    transition: transform var(--transition-slow);
}

.credential-card:hover .credential-image img {
    transform: scale(1.04);
}

.credential-info {
    padding: 1.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.cert-date {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
}

.credential-info h3 {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--text-primary);
}

.credential-info p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
    font-weight: 200;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(8, 4, 10, 0.8);
    backdrop-filter: blur(8px);
    color: var(--text-primary);
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.slider-btn:hover {
    background: var(--accent);
    color: var(--bg-dark);
    border-color: var(--accent);
    transform: translateY(-50%) scale(1.05);
}

.slider-btn.prev {
    left: -26px;
}

.slider-btn.next {
    right: -26px;
}

/* Works Gallery Section */
.works-section {
    background: linear-gradient(180deg, var(--bg-soft), var(--bg-dark));
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.work-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    aspect-ratio: 0.85;
    background: #0d0611;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.88) contrast(1.02);
    transition: transform var(--transition-slow), filter var(--transition-slow);
}

.work-item:hover img {
    transform: scale(1.04);
    filter: brightness(0.95) contrast(1.05);
}

.work-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(8, 4, 10, 0.88) 100%);
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.work-item:hover .work-overlay {
    opacity: 1;
}

.work-overlay span {
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.4rem;
    transform: translateY(10px);
    transition: transform 0.4s var(--ease);
}

.work-overlay h3 {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    font-weight: 400;
    color: var(--text-primary);
    transform: translateY(10px);
    transition: transform 0.5s var(--ease);
}

.work-item:hover .work-overlay span,
.work-item:hover .work-overlay h3 {
    transform: translateY(0);
}

/* Video Reel Section */
.reel-section {
    background: var(--bg-dark);
}

.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
}

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

.video-controls {
    position: absolute;
    inset: 0;
    background: rgba(8, 4, 10, 0.42);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity var(--transition-medium);
}

.video-container:hover .video-controls {
    opacity: 1;
}

.btn-play-pause {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    border: 1.5px solid var(--accent);
    background: rgba(8, 4, 10, 0.72);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px var(--accent-glow);
    transition: transform var(--transition-medium), background var(--transition-medium), border-color var(--transition-medium);
}

.btn-play-pause:hover {
    transform: scale(1.1);
    background: var(--accent);
    color: var(--bg-dark);
    border-color: var(--accent);
}

.btn-play-pause svg {
    width: 28px;
    height: 28px;
}

.hidden {
    display: none;
}

/* Booking CTA Section */
.booking-cta-section {
    background: var(--bg-dark);
    padding-bottom: 12vw;
}

.cta-card {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(18, 9, 23, 0.82) 0%, rgba(8, 4, 10, 0.95) 100%);
    border: 1.5px solid rgba(199, 164, 101, 0.32);
    border-radius: var(--radius-lg);
    padding: 5rem 3rem;
    text-align: center;
    box-shadow: 0 20px 50px rgba(185, 142, 234, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.8rem;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(185, 142, 234, 0.08), transparent 70%);
    pointer-events: none;
}

.cta-card h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 400;
    color: var(--text-primary);
}

.cta-card p {
    color: var(--text-muted);
    max-width: 58ch;
    font-size: 1.05rem;
    line-height: 1.6;
    font-weight: 200;
}

.btn-reserve-large {
    background: var(--accent);
    color: var(--bg-dark);
    padding: 1.25rem 2.8rem;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 10px 30px var(--accent-glow);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.btn-reserve-large:hover {
    transform: scale(1.025);
    box-shadow: 0 14px 40px var(--accent-glow);
}

/* Footer Section */
.portfolio-footer {
    background: #050206;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding: 2.5rem 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 300;
}

.footer-socials {
    display: flex;
    gap: 2rem;
}

.footer-socials a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color var(--transition-fast);
}

.footer-socials a:hover {
    color: var(--accent);
}

/* Media Queries for Responsiveness */
@media (max-width: 1100px) {
    .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .credential-card {
        flex: 0 0 calc(50% - 1rem);
    }
    
    .slider-btn.prev {
        left: -15px;
    }
    
    .slider-btn.next {
        right: -15px;
    }
}

@media (max-width: 860px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-photo-wrapper {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

@media (max-width: 720px) {
    .nav-links {
        display: none; /* Mobile overlays or nav links hidden for minimal touch UX */
    }
    
    section {
        padding: 12vw 0;
    }
    
    .works-grid, .credential-card {
        grid-template-columns: 1fr;
    }
    
    .credential-card {
        flex: 0 0 100%;
    }
    
    .cta-card {
        padding: 3.5rem 1.5rem;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
