:root {
    /* Color Palette */
    --bg-dark: #0a0a0c;
    --bg-card: rgba(20, 20, 24, 0.6);
    --text-main: #f0f0f5;
    --text-muted: #9ca3af;
    --accent-primary: #7c3aed;
    --accent-secondary: #ec4899;
    --accent-gradient: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --container-width: 1200px;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(16px);
    
    /* Premium Easing Tokens */
    --ease-out-quad: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1);
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-in-out-quart: cubic-bezier(0.77, 0, 0.175, 1);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.6s var(--ease-out-expo);
    --transition-move: 0.5s var(--ease-in-out-quart);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none; /* Hide default cursor for custom cursor */
}

/* Custom Cursor */
.cursor {
    width: 8px;
    height: 8px;
    background: var(--text-main);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease, background 0.2s ease;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.15s var(--ease-out-quad);
}

.cursor.active {
    width: 12px;
    height: 12px;
    background: var(--accent-primary);
}
.cursor-follower.active {
    transform: translate(-50%, -50%) scale(1.5);
    border-color: var(--accent-primary);
    background: rgba(124, 58, 237, 0.1);
}

/* Typography */
h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

/* Glassmorphism Utilities */
.glassmorphism {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--accent-gradient);
    color: white;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 500;
    transition: var(--transition-smooth);
    border: none;
    cursor: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
    opacity: 0;
    z-index: -1;
    transition: var(--transition-smooth);
}
.btn-primary:hover::before {
    opacity: 1;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.3);
}

.btn-outline {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    transition: var(--transition-smooth);
    backdrop-filter: var(--glass-blur);
}
.btn-outline:hover {
    background: var(--text-main);
    color: var(--bg-dark);
}

.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: var(--transition-fast);
}
.btn-text:hover {
    color: var(--accent-secondary);
}
.btn-text span {
    transition: var(--transition-fast);
}
.btn-text:hover span {
    transform: translateX(5px);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
    padding: 1.5rem 0;
}
.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}
.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.logo span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    list-style: none;
}
.nav-links a:not(.btn-outline) {
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
}
.nav-links a:not(.btn-outline):hover {
    color: var(--text-main);
}
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: none;
}
.hamburger span {
    width: 30px;
    height: 2px;
    background: var(--text-main);
    transition: var(--transition-fast);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    z-index: -1;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(10,10,12,0.3) 0%, rgba(10,10,12,1) 100%);
}
.hero-content {
    text-align: center;
    max-width: 800px;
    padding: 0 var(--spacing-md);
    z-index: 1;
}
.subtitle {
    color: var(--accent-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.headline {
    font-size: clamp(3rem, 5vw, 5.5rem);
    letter-spacing: -1.5px;
    margin-bottom: 1.5rem;
}
.headline span {
    font-style: italic;
    font-weight: 300;
    color: var(--text-muted);
}
.hero-content .description {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.hero-cta {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
}
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.6;
}
.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--text-main);
    border-radius: 15px;
    position: relative;
}
.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--text-main);
    border-radius: 50%;
    animation: scroll 2s infinite;
}
@keyframes scroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.about-image-wrapper {
    position: relative;
}
.glass-frame {
    padding: 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    transform: rotate(-3deg);
    transition: var(--transition-smooth);
}
.glass-frame:hover {
    transform: rotate(0deg) scale(1.02);
}
.about-image {
    width: 100%;
    border-radius: 16px;
    display: block;
    filter: grayscale(20%) contrast(1.1);
}
.section-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}
.section-title span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.about-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}
.skills-container {
    margin-top: 3rem;
}
.skills-container h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}
.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}
.tag {
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}
.tag:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}

/* Portfolio Section */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}
.portfolio-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    cursor: none;
    transition: var(--transition-smooth);
}
.portfolio-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out-expo);
}
.portfolio-card:hover .card-image img {
    transform: scale(1.05);
}
.card-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(124, 58, 237, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
}
.portfolio-card:hover .card-overlay {
    opacity: 1;
}
.card-overlay span {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.2rem;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}
.portfolio-card:hover .card-overlay span {
    transform: translateY(0);
}
.card-content {
    padding: 1.5rem;
}
.card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}
.card-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Testimonials */
.testimonial-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.testimonial-card {
    padding: 2.5rem;
    position: relative;
}
.quote-icon {
    font-family: serif;
    font-size: 4rem;
    color: var(--accent-primary);
    opacity: 0.2;
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    line-height: 1;
}
.quote {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}
.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.client-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-primary);
}
.client-info h4 {
    font-size: 1rem;
}
.client-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Contact & Footer */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 4rem;
}
.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.contact-info p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}
.contact-details {
    margin-bottom: 3rem;
}
.contact-item {
    margin-bottom: 1.5rem;
}
.contact-item .label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--accent-secondary);
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}
.contact-item a, .contact-item span {
    font-size: 1.2rem;
    font-family: var(--font-heading);
}
.social-links {
    display: flex;
    gap: 1.5rem;
}
.social-links a {
    color: var(--text-muted);
    transition: var(--transition-fast);
}
.social-links a:hover {
    color: var(--text-main);
}
.input-group {
    margin-bottom: 1.5rem;
}
.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.input-group input, .input-group textarea {
    width: 100%;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 1rem;
    color: var(--text-main);
    font-family: var(--font-body);
    transition: var(--transition-fast);
}
.input-group input:focus, .input-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(0,0,0,0.4);
}

footer {
    padding: 2rem 0;
    border-top: 1px solid var(--glass-border);
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.footer-nav {
    display: flex;
    gap: 1.5rem;
}

/* Modal */
.modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out-quad);
}
.modal.active {
    opacity: 1;
    pointer-events: auto;
}
.modal-backdrop {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
}
.modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--bg-dark); /* Solidify behind glass */
    transform: scale(0.95) translateY(20px);
    transition: var(--transition-smooth);
}
.modal.active .modal-content {
    transform: scale(1) translateY(0);
}
.close-btn {
    position: absolute;
    top: 1.5rem; right: 1.5rem;
    background: rgba(255,255,255,0.1);
    border: none;
    width: 40px; height: 40px;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    z-index: 10;
}
.close-btn:hover {
    background: rgba(255,255,255,0.2);
}
.modal-body {
    display: grid;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .modal-body {
        grid-template-columns: 1.2fr 1fr;
    }
}
.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.modal-info {
    padding: 3rem;
}
.modal-category {
    color: var(--accent-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0.5rem 0 1.5rem 0;
}
.modal-desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
}
.modal-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.is-visible {
    opacity: 1;
    transform: translate(0);
}

/* Responsive */
@media (max-width: 992px) {
    .about-grid, .contact-wrapper {
        grid-template-columns: 1fr;
    }
    .contact-wrapper {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: 70%; height: 100vh;
        background: rgba(10, 10, 12, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        transition: right 0.5s var(--ease-out-quart);
    }
    .nav-links.active {
        right: 0;
    }
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    .modal-info {
        padding: 1.5rem;
    }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .fade-in-up, .fade-in-left, .fade-in-right {
        transform: none;
        opacity: 1;
        transition: none;
    }
    
    .cursor, .cursor-follower {
        display: none !important;
    }
    
    body {
        cursor: auto;
    }
}

/* Client Verification Badge */
.client-badge {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 1001;
    padding: 1.25rem;
    max-width: 320px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(16, 185, 129, 0.25);
    background: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    transition: transform 0.5s var(--ease-out-expo), opacity 0.5s var(--ease-out-expo);
    animation: slideIn 0.8s var(--ease-out-expo) 1s both;
}
.client-badge.hide {
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    pointer-events: none;
}
@keyframes slideIn {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.badge-close {
    position: absolute;
    top: 0.5rem;
    right: 0.8rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: none;
}
.badge-close:hover {
    color: var(--text-main);
}
.badge-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}
.pulse-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.badge-header h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #10b981;
    font-family: var(--font-heading);
}
.badge-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.1rem;
}
.badge-client {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.6rem;
}
.badge-divider {
    border: 0;
    height: 1px;
    background: var(--glass-border);
    margin-bottom: 0.6rem;
}
.badge-spec strong, .badge-pages strong {
    display: block;
    font-size: 0.75rem;
    color: var(--text-main);
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-spec p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 0.5rem;
}
.badge-pages ul {
    list-style: none;
    font-size: 0.8rem;
    color: var(--text-muted);
    padding-left: 0;
}
.badge-pages li {
    position: relative;
    padding-left: 0.8rem;
    margin-bottom: 0.2rem;
}
.badge-pages li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

@media (max-width: 480px) {
    .client-badge {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        max-width: none;
    }
}


.portfolio-float {
  position: fixed;
  z-index: 9999;
  bottom: 24px;
  left: 24px;
  display: flex;
  width: 280px;
  min-height: 92px;
  overflow: hidden;
  border: 1px solid rgba(20, 45, 37, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
  color: #16362b;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.portfolio-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.3);
}

.portfolio-float__photo {
  width: 80px;
  flex: 0 0 80px;
  overflow: hidden;
  background: #fff;
  border-right: 1px solid #e7e4de;
}

.portfolio-float__photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.portfolio-float__content {
  padding: 11px 13px;
}

.portfolio-float__eyebrow {
  display: block;
  margin-bottom: 3px;
  color: #9a7543;
  font: 700 8px/1.2 Arial, sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.portfolio-float strong {
  display: block;
  font: 600 16px/0.95 Georgia, serif;
}

.portfolio-float__link {
  display: block;
  margin-top: 8px;
  font: 700 10px/1.2 Arial, sans-serif;
}

@media (max-width: 600px) {
  .portfolio-float {
    bottom: 14px;
    left: 14px;
    width: 250px;
  }
}