/* ============================================
   Custom Styles - Portfolio Multimedia CMS
   ============================================ */

/* Font Import */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS Variables */
:root {
    /* Pure Dark Mode (Fixed Theme) */
    --bg-primary: #0a0a0a;
    --bg-secondary: #0f172a;
    --bg-card: #141414;
    --bg-card-hover: #1a1a1a;
    --accent: #E8552D;
    --accent-hover: #D44820;
    --accent-light: rgba(232, 85, 45, 0.15);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: #222222;
    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

/* Dark mode specific overrides (if ever toggled) */
.dark {
    --bg-primary: #0a0a0a;
    --bg-secondary: #0f172a;
    --bg-card: #141414;
    --accent-light: rgba(232, 85, 45, 0.2);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--bg-secondary);
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
}

/* Typography */
.font-display {
    font-family: var(--font-display);
}
.font-body {
    font-family: var(--font-body);
}

/* ============================================
   Navigation
   ============================================ */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}
.nav-link:hover {
    color: var(--accent);
}

/* Navbar scroll effect */
.navbar-scroll {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}
.dark .navbar-scroll {
    background: rgba(10, 10, 10, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Hero Section
   ============================================ */
.hero-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.hero-subtitle {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: clamp(0.85rem, 1.5vw, 1.1rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.8;
}

/* Polaroid style image */
.polaroid {
    background: #fff;
    padding: 8px 8px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    transform: rotate(-5deg);
    transition: transform 0.5s ease;
    max-width: 100%;
}
.polaroid:hover {
    transform: rotate(0deg) scale(1.05);
}
.polaroid-2 {
    transform: rotate(3deg);
}
.polaroid-2:hover {
    transform: rotate(0deg) scale(1.05);
}

/* ============================================
   Section Titles
   ============================================ */
.section-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(2rem, 5vw, 3.5rem);
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}
.section-title {
    color: var(--text-primary);
}

/* ============================================
   Cards
   ============================================ */
.portfolio-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}
.portfolio-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 20px 60px rgba(232, 85, 45, 0.15);
}
.portfolio-card .card-image {
    overflow: hidden;
    aspect-ratio: 4/3;
}
.portfolio-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.portfolio-card:hover .card-image img {
    transform: scale(1.1);
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    background: var(--bg-card-hover);
}
.service-card:hover::before {
    transform: scaleX(1);
}

/* ============================================
   Buttons
   ============================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: #fff;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
}
.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(232, 85, 45, 0.35);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--accent);
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 2px solid var(--accent);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}
.btn-outline:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}

/* ============================================
   Filter Tabs
   ============================================ */
.filter-btn {
    padding: 8px 20px;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}
.filter-btn:hover,
.filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* ============================================
   Animations
   ============================================ */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease;
}
.fade-in.visible {
    opacity: 1;
}

.slide-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger animation delay */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ============================================
   About Section Image
   ============================================ */
.about-image-wrapper {
    position: relative;
}
.about-image-wrapper::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: 15px;
    bottom: 15px;
    border: 2px solid var(--accent);
    border-radius: 8px;
    z-index: 0;
}
.about-image-wrapper img {
    position: relative;
    z-index: 1;
    border-radius: 8px;
}

/* ============================================
   Footer
   ============================================ */
.footer-gradient {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

/* Social Icon */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    text-decoration: none;
}
.social-icon:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .section-padding {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .polaroid, .polaroid-2 {
        transform: rotate(0deg) !important;
        padding: 5px 5px 15px;
        margin: 0 auto;
    }
}

/* ============================================
   Portfolio Modal / Lightbox
   ============================================ */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.lightbox.active {
    display: flex;
}
.lightbox-content {
    max-width: 900px;
    width: 100%;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    animation: lightboxIn 0.3s ease;
}
@keyframes lightboxIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* ============================================
   No Image Placeholder
   ============================================ */
.no-image {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 2rem;
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}
.mobile-menu.open {
    transform: translateX(0);
}

/* ============================================
   Ambient Cursor Glow
   ============================================ */
#cursor-glow {
    background: radial-gradient(
        circle 500px at var(--mouse-x, 50vw) var(--mouse-y, 50vh),
        rgba(232, 85, 45, 0.1),
        transparent 80%
    );
}

body:hover #cursor-glow {
    opacity: 1;
}
