/* 
  Mj Media - Core Design System 
  Theme: Dark, cinematic, tech-meets-creative studio 
*/

:root {
    /* Color Palette */
    --bg-dark: #0D0D0D;
    --bg-card: #141414;
    --primary-neon: #6C63FF;
    --accent-cyan: #00F0FF;
    --accent-pink: #FF0055;
    --text-main: #EAEAEA;
    --text-muted: #A0A0A0;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-neon), var(--accent-cyan));
    --gradient-glow: linear-gradient(90deg, var(--accent-pink), var(--primary-neon), var(--accent-cyan));

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    background-color: var(--primary-neon);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.custom-cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(108, 99, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.1s;
}

/* Hover effect for cursor */
.cursor-hover .custom-cursor {
    width: 60px;
    height: 60px;
    background-color: rgba(108, 99, 255, 0.1);
    border: 1px solid var(--primary-neon);
    mix-blend-mode: difference;
}

.cursor-hover .custom-cursor-follower {
    opacity: 0;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--transition-smooth);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(13, 13, 13, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.5px;
}

.brand-logo .dot {
    color: var(--primary-neon);
}

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

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: #fff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.btn-nav {
    background: var(--gradient-primary);
    color: #fff !important;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
}

.btn-nav::after {
    display: none;
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.3);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, rgba(108, 99, 255, 0.1) 0%, rgba(13, 13, 13, 1) 70%);
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
}

.hero-content {
    max-width: 900px;
}

.hero-badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--accent-cyan);
    backdrop-filter: blur(5px);
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: shine 5s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-neon);
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 0 20px rgba(108, 99, 255, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(108, 99, 255, 0.6);
    transform: translateY(-3px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Glassmorphism Cards */
.section-padding {
    padding: 6rem 0;
}

.section-header {
    margin-bottom: 4rem;
    text-align: center;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

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

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

.glass-card {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2.5rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(108, 99, 255, 0.1), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    z-index: 0;
    pointer-events: none;
}

.glass-card:hover::before {
    opacity: 1;
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: rgba(108, 99, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-neon);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.glass-card h3, .glass-card p {
    position: relative;
    z-index: 1;
}

.glass-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.glass-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.card-link {
    position: relative;
    z-index: 1;
    color: var(--accent-cyan);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

.card-link:hover i {
    transform: translateX(5px);
}

/* Portfolio Work */
.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.work-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    group: work-item;
}

.work-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.work-item:hover .work-img {
    transform: scale(1.05);
}

.work-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 3rem 2rem 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition-smooth);
}

.work-item:hover .work-overlay {
    transform: translateY(0);
    opacity: 1;
}

.work-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.work-tag {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(4px);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    color: #fff;
}

.work-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

/* Process Timeline */
.process-timeline {
    position: relative;
    padding-left: 2rem;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
}

.process-step {
    position: relative;
    padding-bottom: 3rem;
}

.process-step::before {
    content: '';
    position: absolute;
    top: 5px;
    left: -2.4rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 2px solid var(--primary-neon);
    z-index: 1;
    transition: var(--transition-smooth);
}

.process-step:hover::before {
    background: var(--primary-neon);
    box-shadow: 0 0 15px var(--primary-neon);
}

.process-step h3 {
    color: var(--primary-neon);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.process-step h4 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

/* Tech Stack */
.tech-scroll {
    overflow: hidden;
    white-space: nowrap;
    padding: 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.tech-track {
    display: inline-block;
    animation: scroll 30s linear infinite;
}

.tech-item {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: rgba(255,255,255,0.4);
    margin-right: 4rem;
    transition: color 0.3s;
}

.tech-item:hover {
    color: #fff;
}

.tech-item i {
    font-size: 2.5rem;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Footer */
.footer {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 6rem 0 2rem;
    background: rgba(10, 10, 10, 1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.footer-brand span {
    color: var(--primary-neon);
}

.footer-brand p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.social-icon:hover {
    background: var(--primary-neon);
    color: #fff;
    transform: translateY(-3px);
}

.footer-links h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

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

.footer-links ul li a {
    color: var(--text-muted);
}

.footer-links ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-form input {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    color: #fff;
    flex: 1;
    outline: none;
}

.newsletter-form input:focus {
    border-color: var(--primary-neon);
}

.newsletter-form button {
    background: var(--primary-neon);
    color: #fff;
    border: none;
    width: 45px;
    border-radius: 8px;
    cursor: pointer;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Page Headers (for inner pages) */
.page-header {
    padding: 150px 0 80px;
    text-align: center;
    background: radial-gradient(circle at 50% 0%, rgba(108, 99, 255, 0.15) 0%, rgba(13, 13, 13, 1) 70%);
}

.page-title {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* Forms */
.contact-form {
    background: rgba(20, 20, 20, 0.6);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-body);
    transition: var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-neon);
    background: rgba(0, 0, 0, 0.8);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Responsive */
@media (max-width: 992px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-title { font-size: 3.5rem; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(13, 13, 13, 0.98);
        flex-direction: column;
        justify-content: center;
        transition: 0.5s;
    }
    
    .nav-links.show {
        right: 0;
    }
    
    .mobile-menu-btn {
        display: block;
        z-index: 1001;
    }
    
    .grid-3, .grid-2, .work-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title { font-size: 2.5rem; }
    .section-title { font-size: 2.5rem; }
    
    /* Disable custom cursor on mobile */
    .custom-cursor, .custom-cursor-follower {
        display: none;
    }
    body { cursor: auto; }
}
