/* ============================================
   MALIK HOLDINGS INC. - STYLES
   Premium Asset Holding Company Website
   ============================================ */

/* CSS Variables */
:root {
    /* Color Palette - Clean Swiss/Minimalist Light Theme */
    --color-bg: #ffffff;
    --color-bg-elevated: #f8fafc; /* Slate-50 */
    --color-bg-card: #ffffff;
    --color-bg-hover: #f1f5f9;    /* Slate-100 */
    
    --color-text: #0f172a;        /* Slate-900 */
    --color-text-muted: #475569;  /* Slate-600 */
    --color-text-subtle: #94a3b8; /* Slate-400 */
    
    /* Accents - Deep Navy & Silver */
    --color-accent: #0f172a;      /* Slate-900: Primary Brand Color */
    --color-accent-light: #334155; /* Slate-700 */
    --color-accent-dark: #020617;  /* Slate-950 */
    
    --color-blue: #0ea5e9;        /* Sky-500: Tech Accent */
    --color-blue-muted: #38bdf8;
    
    --color-border: rgba(15, 23, 42, 0.08);
    --color-border-strong: rgba(15, 23, 42, 0.15);
    
    --color-border: rgba(255, 255, 255, 0.06);
    --color-border-strong: rgba(255, 255, 255, 0.12);
    
    /* Typography */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 10rem;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    
    /* Container */
    --container-max: 1280px;
    --container-padding: 2rem;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    font-weight: 400;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* Global Noise Texture - Darker noise for light bg */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.5'/%3E%3C/svg%3E");
    mix-blend-mode: multiply;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

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

/* Typography */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em; /* Increased from 0.15em */
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em; /* Tightened */
    color: var(--color-text);
    margin-bottom: var(--space-lg);
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: var(--space-md) 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    transition: var(--transition-base);
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
    color: var(--color-bg);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 8px;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    gap: var(--space-lg);
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width var(--transition-base);
}

.nav-links a:hover {
    color: var(--color-text);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: var(--transition-fast);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg);
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
}

.mobile-menu-links a {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 500;
    color: var(--color-text);
    transition: color var(--transition-fast);
}

.mobile-menu-links a:hover {
    color: var(--color-accent);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-3xl) 0 var(--space-xl);
    overflow: hidden;
    background: linear-gradient(to bottom, #f1f5f9, #e2e8f0);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(14, 165, 233, 0.1), transparent),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(15, 23, 42, 0.08), transparent),
        radial-gradient(ellipse 50% 30% at 20% 80%, rgba(14, 165, 233, 0.06), transparent);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    /* Aurora / Flow abstract pattern - Light Mode */
    background: 
        radial-gradient(circle at 15% 50%, rgba(14, 165, 233, 0.06), transparent 35%),
        radial-gradient(circle at 85% 30%, rgba(15, 23, 42, 0.03), transparent 35%);
    filter: blur(80px);
    opacity: 1;
}

/* Abstract flow lines overlay - Dark lines for light bg */
.hero-pattern::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,100 Q250,150 500,100 T1000,100' stroke='rgba(15,23,42,0.05)' fill='none' stroke-width='1'/%3E%3Cpath d='M0,120 Q250,170 500,120 T1000,120' stroke='rgba(15,23,42,0.03)' fill='none' stroke-width='1'/%3E%3Cpath d='M0,80 Q250,130 500,80 T1000,80' stroke='rgba(15,23,42,0.03)' fill='none' stroke-width='1'/%3E%3C/svg%3E");
    background-size: cover;
    opacity: 1;
}

.hero-content {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.hero-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-strong);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em; /* Increased from 0.1em */
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 10vw, 8rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.04em; /* Tightened from -0.02em */
    margin-bottom: var(--space-lg);
}

.title-line {
    display: block;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.title-line:nth-child(1) {
    animation-delay: 0.1s;
}

.title-line:nth-child(2) {
    animation-delay: 0.2s;
}

.title-line.accent {
    color: var(--color-accent);
}

.hero-subtitle {
    max-width: 540px;
    font-size: 1.125rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.3s forwards;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.875rem 1.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all var(--transition-fast);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
    color: var(--color-bg);
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(226, 232, 240, 0.25);
}

.btn-secondary {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-strong);
    color: var(--color-text);
}

.btn-secondary:hover {
    background: var(--color-bg-hover);
    border-color: var(--color-accent);
}

/* Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: var(--space-xl);
    left: var(--container-padding);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    opacity: 0;
    animation: fadeIn 0.8s ease 0.6s forwards;
}

.hero-scroll span {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-subtle);
}

.scroll-line {
    width: 40px;
    height: 1px;
    background: var(--color-border-strong);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 100%;
    background: var(--color-accent);
    animation: scrollLine 2s ease infinite;
}

@keyframes scrollLine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    padding: var(--space-2xl) 0;
    background: var(--color-bg);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-border-strong), transparent);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.about-text {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    padding: var(--space-xl);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 600;
    color: var(--color-accent);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
}

/* ============================================
   PORTFOLIO SECTION
   ============================================ */
.portfolio {
    padding: var(--space-2xl) 0;
    background: linear-gradient(to bottom, #f1f5f9, #e2e8f0);
    position: relative;
}

.portfolio::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 50% 30% at 20% 30%, rgba(226, 232, 240, 0.04), transparent),
        radial-gradient(ellipse 40% 40% at 80% 70%, rgba(56, 189, 248, 0.05), transparent);
    pointer-events: none;
}

.portfolio-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
    position: relative;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    position: relative;
}

.portfolio-card {
    position: relative;
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.08) 0%, 
        rgba(255, 255, 255, 0.02) 50%,
        rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    transition: all var(--transition-base);
    box-shadow: 
        0 4px 24px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Gradient border effect */
.portfolio-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(145deg, 
        rgba(226, 232, 240, 0.3), 
        rgba(56, 189, 248, 0.1),
        rgba(226, 232, 240, 0.05));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.portfolio-card:hover {
    transform: translateY(-6px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(226, 232, 240, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.portfolio-card:hover::before {
    background: linear-gradient(145deg, 
        rgba(226, 232, 240, 0.5), 
        rgba(56, 189, 248, 0.3),
        rgba(226, 232, 240, 0.2));
}

.portfolio-card.featured {
    grid-column: span 2;
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.08) 0%, 
        rgba(226, 232, 240, 0.02) 50%,
        rgba(255, 255, 255, 0.05) 100%);
}

.card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--color-accent), 
        var(--color-blue), 
        var(--color-accent));
    background-size: 200% 100%;
    animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) var(--space-lg) 0;
}

.card-logo {
    max-width: 200px;
    max-height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-logo img {
    max-height: 65px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    display: block;
}

.card-logo-text {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.card-logo-img {
    width: 65px;
    height: 65px;
    border-radius: 14px;
    overflow: hidden;
}

.card-logo-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-icon {
    font-size: 1.75rem;
}

.logo-initials {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-accent);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.card-category {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-blue);
    padding: 8px 14px;
    background: linear-gradient(135deg, rgba(91, 141, 201, 0.2), rgba(91, 141, 201, 0.1));
    border: 1px solid rgba(91, 141, 201, 0.3);
    border-radius: 100px;
    box-shadow: 0 2px 8px rgba(91, 141, 201, 0.15);
}

.card-content {
    padding: var(--space-lg);
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.875rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.card-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.75;
    margin-bottom: var(--space-md);
}

.card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.card-features li {
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    padding: 8px 14px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    transition: all var(--transition-fast);
}

.card-features li:hover {
    background: linear-gradient(135deg, rgba(226, 232, 240, 0.2), rgba(226, 232, 240, 0.1));
    border-color: rgba(226, 232, 240, 0.3);
}

.card-footer {
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.15);
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-accent);
    transition: all var(--transition-fast);
    padding: 8px 16px;
    border-radius: 8px;
    background: transparent;
}

.card-link:hover {
    gap: var(--space-sm);
    background: rgba(226, 232, 240, 0.15);
}

.card-link svg {
    transition: transform var(--transition-fast);
}

.card-link:hover svg {
    transform: translate(2px, -2px);
}

/* Private / Coming Soon Cards - Unified Dark Theme */
.portfolio-card:not(.featured) {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.portfolio-card:not(.featured)::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.5;
}

.card-status {
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    padding: 6px 16px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 100px;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.card-status::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background-color: #94a3b8;
    border-radius: 50%;
    opacity: 0.5;
}

/* Featured card specific - Dark "Private Opportunity" Style */
.portfolio-card.featured {
    grid-column: span 2;
    background: #1e293b; /* Slate-800 */
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.2), 
        0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

.portfolio-card.featured .card-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.portfolio-card.featured .card-title {
    font-size: 2rem;
    color: #f8fafc; /* White text for dark card */
}

.portfolio-card.featured .card-description {
    grid-column: 1;
    color: #94a3b8; /* Light grey for dark card */
}

.portfolio-card.featured .card-features {
    grid-column: 2;
    align-content: start;
}

.portfolio-card.featured .card-features li {
    background: #334155; /* Dark pill bg */
    color: #e2e8f0; /* Light pill text */
    border: 1px solid #475569;
}

.portfolio-card.featured .card-features li:hover {
    background: #475569;
    border-color: #38bdf8;
    color: #38bdf8;
}

.portfolio-card.featured .card-category {
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
    box-shadow: none;
}

.portfolio-card.featured .card-footer {
    background: #0f172a; /* Darker footer */
    border-top: 1px solid #334155;
}

.portfolio-card.featured .card-link {
    color: #38bdf8;
}

.portfolio-card.featured .card-link:hover {
    background: rgba(56, 189, 248, 0.1);
    color: #7dd3fc;
}

.portfolio-card.featured .card-logo {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px;
    width: fit-content;
}

.portfolio-card.featured .card-logo img {
    /* filter: brightness(0) invert(1); Removed to show original logo colors */
    opacity: 1;
}

/* ============================================
   EXITED INVESTMENTS SECTION
   ============================================ */
.exited {
    padding: var(--space-2xl) 0;
    background: var(--color-bg);
    position: relative;
}

.exited::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 40% at 50% 50%, rgba(74, 144, 164, 0.05), transparent);
    pointer-events: none;
}

.exited-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    position: relative;
}

/* Exited Card - Premium Split Design */
.exited-card {
    position: relative;
    background: #1e293b; /* Dark slate to match other cards */
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.2), 
        0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

/* Refined gradient border - Clean Light */
.exited-card::before {
    display: none;
}

.exited-card:hover {
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(15, 23, 42, 0.08);
}

.exited-card:hover::before {
    display: none;
}

/* Top accent bar with animated shimmer */
.exited-accent {
    height: 4px !important;
    background: linear-gradient(90deg, 
        #0ea5e9 0%,
        #38bdf8 50%,
        #0ea5e9 100%) !important;
}

/* Logo area enhancement */
.exited-card .card-logo {
    position: relative;
    padding: 16px 20px;
    background: #ffffff !important;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.15);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.exited-card .card-logo img {
    filter: none;
    mix-blend-mode: normal;
}

/* Badge styling */
.exited-badge-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.exited-badge {
    padding: 10px 18px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #0284c7;
    box-shadow: none;
}

.exited-card .card-category {
    color: #0369a1;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    box-shadow: none;
}

/* Content refinements */
.exited-card .card-title {
    color: var(--color-text);
    text-shadow: none;
}

.exited-card .card-description {
    color: var(--color-text-muted);
}

.exited-card .card-features li {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
}

.exited-card .card-features li:hover {
    background: #fff;
    border-color: #0ea5e9;
    color: #0ea5e9;
}

/* Footer */
.exited-card .card-footer {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.exited-card .card-link {
    color: #0284c7;
    font-weight: 600;
}

.exited-card .card-link:hover {
    background: #f0f9ff;
    color: #0ea5e9;
}

/* ============================================
   PHILOSOPHY SECTION
   ============================================ */
.philosophy {
    padding: var(--space-2xl) 0;
    background: var(--color-bg);
    position: relative;
}

.philosophy-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.philosophy-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-size: clamp(10rem, 30vw, 25rem);
    font-weight: 700;
    color: var(--color-accent);
    opacity: 0.03;
    pointer-events: none;
    line-height: 1;
    z-index: 0;
}

.philosophy-quote {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 400;
    font-style: italic;
    color: var(--color-text-muted);
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.philosophy-quote::before {
    content: '"';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 8rem;
    font-style: normal;
    color: var(--color-accent);
    opacity: 0.15;
    line-height: 1;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    padding: var(--space-2xl) 0;
    background: #1e293b;
}

.contact .section-label {
    color: #38bdf8;
}

.contact .section-title {
    color: #f8fafc;
}

.contact .contact-text {
    color: #94a3b8;
}

.contact .contact-label {
    color: #64748b;
}

.contact .contact-value {
    color: #e2e8f0;
}

.contact .contact-link {
    color: #38bdf8;
}

.contact .contact-link:hover {
    color: #7dd3fc;
}

.contact .contact-card-inner {
    background: transparent;
    border: none;
    padding: 0;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.contact-card-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.contact-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-lg);
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.7) 60%, transparent);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-card-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: #f8fafc;
}

.contact-card-role {
    font-size: 0.9rem;
    color: #94a3b8;
    letter-spacing: 0.05em;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.contact-text {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: var(--space-xl);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-subtle);
}

.contact-value {
    font-size: 1rem;
    color: var(--color-text);
}

.contact-link {
    color: var(--color-accent);
    transition: color var(--transition-fast);
}

.contact-link:hover {
    color: var(--color-accent-light);
}

.contact-card {
    display: flex;
    justify-content: center;
}

.contact-card-inner {
    padding: var(--space-2xl);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
    text-align: center;
}

.contact-card-logo {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent);
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    border-radius: 16px;
}

.contact-card-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-card-text span:first-child {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
}

.contact-card-text span:last-child {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: var(--space-xl) 0;
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer-logo {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent);
    color: var(--color-bg);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    border-radius: 6px;
}

.footer-name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
}

.footer-links {
    display: flex;
    gap: var(--space-lg);
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

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

.footer-legal {
    font-size: 0.8125rem;
    color: var(--color-text-subtle);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet and below */
@media (max-width: 1024px) {
    :root {
        --space-lg: 2rem;
        --space-xl: 3rem;
        --space-2xl: 4rem;
        --space-3xl: 6rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .about-stats {
        flex-direction: row;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-card.featured {
        grid-column: 1;
    }
    
    .portfolio-card.featured .card-content {
        grid-template-columns: 1fr;
    }
    
    .portfolio-card.featured .card-features {
        grid-column: 1;
    }
    
    .exited-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
}

/* Mobile - Large (768px and below) */
@media (max-width: 768px) {
    :root {
        --container-padding: 1.5rem;
        --space-md: 1.25rem;
        --space-lg: 1.5rem;
        --space-xl: 2.5rem;
        --space-2xl: 3rem;
        --space-3xl: 5rem;
    }
    
    /* Navigation */
    .nav {
        padding: 1rem 0;
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    /* Hero Section */
    .hero {
        min-height: 90vh;
        padding: calc(var(--space-3xl) + 60px) 0 var(--space-xl);
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 12vw, 4rem);
        margin-bottom: var(--space-md);
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: var(--space-lg);
    }
    
    .hero-cta {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.75rem;
        font-size: 0.9375rem;
    }
    
    .hero-scroll {
        display: none;
    }
    
    /* About Section */
    .about {
        padding: var(--space-2xl) 0;
    }
    
    .about-stats {
        flex-direction: column;
        gap: var(--space-md);
        padding: var(--space-lg);
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* Portfolio Cards */
    .portfolio {
        padding: var(--space-2xl) 0;
    }
    
    .portfolio-header {
        margin-bottom: var(--space-xl);
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
        padding: var(--space-md) var(--space-md) 0;
    }
    
    .card-logo {
        max-width: 100%;
        width: 100%;
    }
    
    .card-content {
        padding: var(--space-md);
    }
    
    .card-title {
        font-size: 1.5rem;
    }
    
    .portfolio-card.featured .card-title {
        font-size: 1.75rem;
    }
    
    .card-description {
        font-size: 0.9375rem;
    }
    
    .card-features {
        gap: 0.5rem;
    }
    
    .card-features li {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
    
    .card-footer {
        padding: var(--space-sm) var(--space-md);
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }
    
    .card-link {
        width: 100%;
        justify-content: center;
    }
    
    /* Exited Section */
    .exited {
        padding: var(--space-2xl) 0;
    }
    
    /* Philosophy */
    .philosophy {
        padding: var(--space-2xl) 0;
    }
    
    .philosophy-quote {
        font-size: clamp(1.25rem, 5vw, 1.75rem);
        padding: 0 var(--space-md);
    }
    
    /* Contact */
    .contact {
        padding: var(--space-2xl) 0;
    }
    
    /* Footer */
    .footer {
        padding: var(--space-lg) 0;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: var(--space-md);
    }
    
    .footer-links {
        flex-direction: column;
        gap: var(--space-sm);
    }
}

/* Mobile - Small (480px and below) */
@media (max-width: 480px) {
    :root {
        --container-padding: 1rem;
        --space-xs: 0.375rem;
        --space-sm: 0.75rem;
        --space-md: 1rem;
        --space-lg: 1.25rem;
        --space-xl: 2rem;
        --space-2xl: 2.5rem;
        --space-3xl: 4rem;
    }
    
    /* Navigation */
    .nav {
        padding: 0.75rem 0;
    }
    
    .logo-mark {
        width: 36px;
        height: 36px;
        font-size: 1.25rem;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    /* Hero */
    .hero {
        padding-top: calc(var(--space-2xl) + 50px);
        min-height: 85vh;
    }
    
    .hero-badge {
        font-size: 0.6875rem;
        padding: 0.375rem 0.75rem;
    }
    
    .hero-title {
        font-size: clamp(2rem, 15vw, 3rem);
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 0.9375rem;
    }
    
    /* Sections */
    .section-label {
        font-size: 0.6875rem;
        margin-bottom: var(--space-sm);
    }
    
    .section-title {
        font-size: clamp(1.75rem, 8vw, 2.25rem);
        margin-bottom: var(--space-md);
    }
    
    .about-text {
        font-size: 1rem;
    }
    
    /* Cards */
    .portfolio-card {
        border-radius: 16px;
    }
    
    .card-header {
        padding: var(--space-sm) var(--space-sm) 0;
    }
    
    .card-logo {
        max-height: 50px;
        padding: 8px;
    }
    
    .card-logo img {
        max-height: 50px;
    }
    
    .card-logo-text {
        width: 50px;
        height: 50px;
    }
    
    .logo-initials {
        font-size: 1.25rem;
    }
    
    .card-category {
        font-size: 0.625rem;
        padding: 6px 12px;
    }
    
    .card-content {
        padding: var(--space-sm);
    }
    
    .card-title {
        font-size: 1.25rem;
        margin-bottom: var(--space-xs);
    }
    
    .portfolio-card.featured .card-title {
        font-size: 1.5rem;
    }
    
    .card-description {
        font-size: 0.875rem;
        margin-bottom: var(--space-sm);
    }
    
    .card-features {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .card-features li {
        width: 100%;
        text-align: center;
        font-size: 0.6875rem;
        padding: 8px 12px;
    }
    
    .card-footer {
        padding: var(--space-sm);
    }
    
    .card-link {
        font-size: 0.8125rem;
        padding: 10px 16px;
    }
    
    .card-status {
        font-size: 0.6875rem;
        padding: 6px 12px;
    }
    
    /* Stats */
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.8125rem;
    }
    
    /* Contact */
    .contact-card-inner {
        padding: var(--space-lg);
    }
    
    .contact-card-logo {
        width: 64px;
        height: 64px;
        font-size: 2rem;
    }
    
    /* Mobile Menu */
    .mobile-menu-links a {
        font-size: 1.75rem;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px; /* iOS recommended touch target */
    }
    
    .nav-links a,
    .card-link {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    
    .nav-toggle {
        min-width: 44px;
        min-height: 44px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

