/* ==========================================================================
   Muhammad Usman Portfolio - INTERACTIVE AURORA SIMULATION THEME
   Theme: Pearlescent Frosted Glass / Cream Base / Soft Pastel Aurora Flow
   Fonts: Outfit (Headers) & Space Grotesk (Tech UI / Body)
   ========================================================================== */

/* Design Tokens & Variables (Light Theme / Aurora Cream - Default) */
:root {
    --bg-base: #f0f4f9;
    --bg-grad-dynamic: linear-gradient(135deg, #f0f4f9 0%, #fff1f6 25%, #e3f9fc 55%, #f6f3ff 80%, #f0f4f9 100%);
    --bg-surface: rgba(255, 255, 255, 0.6);
    --bg-surface-hover: rgba(255, 255, 255, 0.88);
    --bg-glass: rgba(255, 255, 255, 0.7);
    --bg-header: rgba(255, 255, 255, 0.55);
    --bg-nav-mobile: rgba(255, 255, 255, 0.98);
    --bg-btn-secondary: rgba(255, 255, 255, 0.8);
    --bg-dashboard: rgba(255, 255, 255, 0.7);
    --bg-card-info: rgba(255, 255, 255, 0.5);
    --bg-tag: rgba(238, 242, 255, 0.85);
    --bg-badge: rgba(224, 231, 255, 0.9);
    --bg-form-input: rgba(255, 255, 255, 0.7);
    
    --text-high: hsl(224, 71%, 15%);
    --text-mid: hsl(222, 25%, 35%);
    --text-low: hsl(222, 18%, 52%);
    
    --accent-purple: hsl(263, 85%, 55%);
    --accent-purple-glow: rgba(138, 43, 226, 0.15);
    --accent-cyan: hsl(190, 95%, 42%);
    --accent-cyan-glow: rgba(0, 206, 209, 0.20);
    --accent-peach: hsl(14, 100%, 60%);
    
    --grad-primary: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-cyan) 100%);
    --grad-aurora: linear-gradient(135deg, rgba(238, 130, 238, 0.45) 0%, rgba(135, 206, 250, 0.45) 50%, rgba(255, 218, 185, 0.45) 100%);
    --grad-card: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.55) 100%);
    
    --border-glass: rgba(138, 43, 226, 0.12);
    --border-glass-hover: rgba(138, 43, 226, 0.25);
    --border-glow: rgba(138, 43, 226, 0.18);
    
    --font-heading: 'Outfit', sans-serif;
    --font-mono: 'Space Grotesk', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    
    --transition-premium: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    
    --radius-sm: 10px;
    --radius-md: 20px;
    --radius-lg: 32px;
    
    --shadow-soft: 0 20px 50px rgba(99, 102, 241, 0.08);
    --shadow-elevated: 0 30px 60px rgba(99, 102, 241, 0.12);
    
    --glow-purple-color: rgba(221, 160, 221, 0.85);
    --glow-cyan-color: rgba(135, 206, 250, 0.85);
    --grid-color: rgba(99, 102, 241, 0.04);
}

/* Design Tokens & Variables (Dark Theme / Aurora Obsidian) */
body.dark-theme {
    --bg-base: hsl(222, 47%, 7%);
    --bg-grad-dynamic: linear-gradient(135deg, hsl(222, 47%, 7%) 0%, hsl(225, 40%, 11%) 50%, hsl(222, 47%, 7%) 100%);
    --bg-surface: rgba(15, 23, 42, 0.45);
    --bg-surface-hover: rgba(30, 41, 59, 0.7);
    --bg-glass: rgba(15, 23, 42, 0.55);
    --bg-header: rgba(15, 23, 42, 0.4);
    --bg-nav-mobile: rgba(15, 23, 42, 0.95);
    --bg-btn-secondary: rgba(15, 23, 42, 0.6);
    --bg-dashboard: rgba(15, 23, 42, 0.55);
    --bg-card-info: rgba(15, 23, 42, 0.35);
    --bg-tag: rgba(15, 23, 42, 0.75);
    --bg-badge: rgba(15, 23, 42, 0.75);
    --bg-form-input: rgba(15, 23, 42, 0.4);
    
    --text-high: hsl(210, 40%, 96%);
    --text-mid: hsl(215, 20%, 75%);
    --text-low: hsl(215, 16%, 55%);
    
    --accent-purple: hsl(263, 100%, 70%);
    --accent-purple-glow: rgba(168, 85, 247, 0.15);
    --accent-cyan: hsl(190, 100%, 45%);
    --accent-cyan-glow: rgba(6, 182, 212, 0.2);
    --accent-peach: hsl(14, 100%, 65%);
    
    --grad-primary: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-cyan) 100%);
    --grad-aurora: linear-gradient(135deg, rgba(88, 28, 135, 0.2) 0%, rgba(15, 118, 110, 0.2) 50%, rgba(127, 29, 29, 0.2) 100%);
    --grad-card: linear-gradient(180deg, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.3) 100%);
    
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-hover: rgba(255, 255, 255, 0.15);
    --border-glow: rgba(168, 85, 247, 0.2);
    
    --shadow-soft: 0 20px 50px rgba(0, 0, 0, 0.3);
    --shadow-elevated: 0 30px 60px rgba(0, 0, 0, 0.4);
    
    --glow-purple-color: rgba(168, 85, 247, 0.4);
    --glow-cyan-color: rgba(6, 182, 212, 0.4);
    --grid-color: rgba(255, 255, 255, 0.04);
}

/* Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: default;
}

a, button, select, input, textarea, .filter-btn, .btn {
    cursor: pointer;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-base);
    background-image: var(--bg-grad-dynamic);
    background-size: 400% 400%;
    animation: aurora-flow 22s ease infinite alternate;
    color: var(--text-high);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    letter-spacing: -0.01em;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* Custom Interactive Simulation Canvas */
#interactive-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -4;
    pointer-events: none;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.08);
    border-radius: 5px;
    border: 2px solid var(--bg-base);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-purple);
}

/* Aurora Backdrop Grid & Flowing blobs */
.grid-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -2;
    pointer-events: none;
}

.glow-bg {
    position: fixed;
    width: 65vw;
    height: 65vh;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -3;
    pointer-events: none;
    opacity: 0.65;
    animation: drift 20s ease-in-out infinite alternate;
}

.glow-purple {
    top: -15%;
    left: -5%;
    background: radial-gradient(circle, var(--glow-purple-color) 0%, transparent 70%);
}

.glow-cyan {
    bottom: -15%;
    right: -5%;
    background: radial-gradient(circle, var(--glow-cyan-color) 0%, transparent 70%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--text-high);
}

/* Glass Header / Navbar */
.main-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1200px;
    z-index: 100;
    background: var(--bg-header);
    backdrop-filter: blur(28px) saturate(190%);
    border: 1px solid var(--border-glass);
    border-radius: 100px;
    transition: var(--transition-premium);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.02);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 0 32px !important;
}

.nav-logo {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.04em;
    font-family: var(--font-heading);
}

.logo-bracket {
    color: var(--accent-purple);
}

.logo-text {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-mid);
    position: relative;
    padding: 8px 0;
}

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

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--grad-primary);
    border-radius: 50px;
}

.cv-link-nav {
    color: var(--accent-purple) !important;
    font-weight: 700 !important;
}

.nav-btn {
    background: var(--grad-primary);
    color: white !important;
    padding: 11px 26px !important;
    border-radius: var(--radius-sm);
    font-weight: 700 !important;
    box-shadow: 0 8px 20px rgba(138, 43, 226, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(138, 43, 226, 0.25);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-high);
    font-size: 24px;
}

/* Hero Section */
.hero-section {
    padding-top: 200px;
    padding-bottom: 100px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 54px;
    align-items: center;
    min-height: 100vh;
}

/* Concentric Orbit Circles Portrait on the Right */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    min-height: 500px;
}

.profile-orbit-visual {
    position: relative;
    width: 500px;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-circle-center {
    position: relative;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    overflow: hidden;
    background: radial-gradient(circle, var(--accent-cyan) 0%, hsl(222, 47%, 15%) 100%);
    border: 8px solid var(--bg-glass);
    box-shadow: var(--shadow-elevated), 0 0 50px rgba(0, 206, 209, 0.25);
    z-index: 10;
    transition: var(--transition-premium);
}

body.dark-theme .profile-circle-center {
    background: radial-gradient(circle, var(--accent-cyan) 0%, hsl(222, 47%, 8%) 100%);
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-elevated), 0 0 50px rgba(6, 182, 212, 0.35);
}

.profile-circle-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 10%;
    display: block;
    transform: scale(1.02);
    transition: var(--transition-premium);
}

.profile-circle-center:hover .profile-circle-img {
    transform: scale(1.08);
}

/* Concentric Orbit Rings */
.orbit-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(0, 206, 209, 0.15);
    pointer-events: none;
    z-index: 1;
}

.ring-1 {
    width: 420px;
    height: 420px;
    border: 2px dashed rgba(138, 43, 226, 0.25);
    animation: rotate-clockwise 25s linear infinite;
}

.ring-2 {
    width: 460px;
    height: 460px;
    border: 1px solid rgba(0, 206, 209, 0.15);
    animation: rotate-counter-clockwise 30s linear infinite;
}

.ring-3 {
    width: 500px;
    height: 500px;
    border: 1.5px dotted rgba(138, 43, 226, 0.2);
    animation: rotate-clockwise 35s linear infinite;
}

@media (max-width: 1200px) {
    .profile-orbit-visual {
        width: 360px;
        height: 360px;
    }
    .profile-circle-center {
        width: 260px;
        height: 260px;
        border-width: 6px;
    }
    .ring-1 {
        width: 300px;
        height: 300px;
    }
    .ring-2 {
        width: 330px;
        height: 330px;
    }
    .ring-3 {
        width: 360px;
        height: 360px;
    }
}

@media (max-width: 480px) {
    .nav-logo {
        font-size: 17px;
    }
    .profile-orbit-visual {
        width: 300px;
        height: 300px;
    }
    .profile-circle-center {
        width: 220px;
        height: 220px;
        border-width: 4px;
    }
    .ring-1 {
        width: 240px;
        height: 240px;
    }
    .ring-2 {
        width: 270px;
        height: 270px;
    }
    .ring-3 {
        width: 300px;
        height: 300px;
    }
}

.hero-title {
    font-size: 68px;
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 16px;
    letter-spacing: -0.04em;
}

.gradient-text {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 28px;
    color: var(--text-mid);
    margin-bottom: 24px;
    font-weight: 600;
    height: 40px;
}

.typing-text {
    color: var(--accent-purple);
    border-right: 2px solid var(--accent-purple);
    padding-right: 5px;
}

.hero-description {
    font-size: 18px;
    color: var(--text-mid);
    margin-bottom: 40px;
    max-width: 580px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 32px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 700;
    transition: var(--transition-premium);
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--grad-primary);
    color: white;
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(138, 43, 226, 0.25);
}

.btn-secondary {
    background: var(--bg-btn-secondary);
    color: var(--text-high);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-soft);
}

.btn-secondary:hover {
    background: var(--bg-surface-hover);
    transform: translateY(-3px);
    border-color: var(--accent-purple);
}

/* Pearlescent Glass Terminal Dashboard */
.dashboard-mockup {
    width: 100%;
    max-width: 460px;
    background: var(--bg-dashboard);
    backdrop-filter: blur(32px) saturate(190%);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-elevated);
    position: relative;
    padding: 24px;
}

.mockup-header {
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 14px;
    margin-bottom: 18px;
}

.mockup-header .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.mockup-header .red { background-color: #ff5f56; }
.mockup-header .yellow { background-color: #ffbd2e; }
.mockup-header .green { background-color: #27c93f; }

.mockup-title {
    font-family: var(--font-heading);
    font-size: 12px;
    color: var(--text-low);
    margin-left: auto;
    font-weight: 600;
}

.mockup-body {
    font-family: 'Space Grotesk', Courier, monospace;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 250px;
}

.console-line {
    color: var(--text-mid);
    font-weight: 500;
}

.c-accent {
    color: var(--accent-purple);
    font-weight: 700;
}

.c-output {
    color: var(--text-high);
    border-left: 3px solid var(--accent-cyan);
    padding-left: 10px;
    font-size: 12px;
    font-weight: 600;
}

/* Floating Glass Badges */
.floating-badge {
    position: absolute;
    background: var(--bg-badge);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border-glass);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(31,38,135,0.06);
    animation: float 4s ease-in-out infinite alternate;
}

.badge-1 {
    top: -10%;
    right: -8%;
    color: var(--accent-cyan);
    animation-delay: 0s;
}

.badge-2 {
    bottom: 25%;
    left: -20%;
    color: var(--accent-purple);
    animation-delay: 1.5s;
}

.badge-3 {
    bottom: -8%;
    right: 5%;
    color: #e5a900;
    animation-delay: 3s;
}

/* About Section styling */
.about-section {
    padding: 110px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.about-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 44px;
    transition: var(--transition-premium);
    position: relative;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--grad-card);
    z-index: 1;
    pointer-events: none;
}

.about-card:hover {
    border-color: var(--accent-purple);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(138, 43, 226, 0.08);
}

.card-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
    position: relative;
}

.card-title i {
    color: var(--accent-purple);
}

.about-card p {
    color: var(--text-mid);
    margin-bottom: 20px;
    font-size: 15px;
    z-index: 2;
    position: relative;
}

.info-list {
    margin-top: 32px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    z-index: 2;
    position: relative;
}

.info-item {
    display: flex;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    padding-bottom: 8px;
    font-size: 14px;
}

.info-label {
    width: 140px;
    color: var(--text-low);
    font-weight: 700;
}

.info-val {
    color: var(--text-high);
    font-weight: 700;
}

.principle-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    z-index: 2;
    position: relative;
}

.principle-item {
    display: flex;
    gap: 16px;
}

.principle-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-purple-glow);
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent-purple);
    font-size: 20px;
    flex-shrink: 0;
}

.principle-desc h4 {
    font-size: 16px;
    margin-bottom: 4px;
    font-weight: 700;
}

.principle-desc p {
    font-size: 13px;
    color: var(--text-mid);
    margin: 0;
}

/* Skills Matrix Section */
.skills-section {
    padding: 110px 0;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.skill-category {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: var(--transition-premium);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--grad-card);
    z-index: 1;
    pointer-events: none;
}

.skill-category:hover {
    border-color: var(--accent-purple);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(138, 43, 226, 0.08);
}

.skill-category h3 {
    font-size: 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-high);
    position: relative;
    z-index: 2;
}

.skill-category h3 i {
    color: var(--accent-purple);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.skill-tag {
    background: var(--bg-tag);
    border: 1px solid var(--border-glass);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-mid);
    font-weight: 700;
    transition: var(--transition-premium);
}

.skill-tag:hover {
    background: var(--grad-primary);
    color: white;
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.2);
    transform: scale(1.05);
}

/* Projects Showcase */
.projects-section {
    padding: 110px 0;
}

.project-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 50px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--border-glass);
    padding: 10px 24px;
    border-radius: 50px;
    color: var(--text-mid);
    font-size: 14px;
    font-weight: 700;
    transition: var(--transition-premium);
    box-shadow: var(--shadow-soft);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--grad-primary);
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(138, 43, 226, 0.2);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
}

.project-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-premium);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-soft);
}

.project-card:hover {
    border-color: var(--accent-purple);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(31,38,135,0.08);
}

/* Immersive 3D Simulated Mesh Viewports */
.project-view-3d {
    height: 190px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mesh-grid {
    position: absolute;
    width: 200%;
    height: 200%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 20px 20px;
    transform: perspective(300px) rotateX(60deg) translateY(-20%);
    animation: scroll-mesh 20s linear infinite;
    pointer-events: none;
    z-index: 1;
}

.view-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 2;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.font-icon-3d {
    font-size: 54px;
    color: white;
}

.tech-accent-title {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.85);
    background: rgba(0, 0, 0, 0.2);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Fallback Card 3D Accent gradients */
.pos-color-3d { background: linear-gradient(135deg, #10264b 0%, #1c3d75 100%); border-bottom: 3px solid var(--accent-cyan); }
.ai-color-3d { background: linear-gradient(135deg, #2c0e4c 0%, #461875 100%); border-bottom: 3px solid var(--accent-purple); }
.bot-color-3d { background: linear-gradient(135deg, #092029 0%, #153f4e 100%); border-bottom: 3px solid #00d9b2; }
.mam-color-3d { background: linear-gradient(135deg, #3d1b04 0%, #5d2b07 100%); border-bottom: 3px solid var(--accent-peach); }
.pdf-color-3d { background: linear-gradient(135deg, #38070e 0%, #5a111a 100%); border-bottom: 3px solid #ff0055; }
.marquee-color-3d { background: linear-gradient(135deg, #052c1b 0%, #0d4b30 100%); border-bottom: 3px solid #00cc66; }
.seo-color-3d { background: linear-gradient(135deg, #380922 0%, #571337 100%); border-bottom: 3px solid #ff007f; }
.trading-color-3d { background: linear-gradient(135deg, #092444 0%, #123d6b 100%); border-bottom: 3px solid #3366ff; }
.grocery-color-3d { background: linear-gradient(135deg, #0d281a 0%, #16462e 100%); border-bottom: 3px solid #33cc66; }
.crm-color-3d { background: linear-gradient(135deg, #17224f 0%, #29397c 100%); border-bottom: 3px solid #6633ff; }

.project-info {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    background: var(--bg-card-info);
}

.project-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-tag);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-purple);
    width: fit-content;
    margin-bottom: 12px;
    border: 1px solid var(--border-glass);
}

.project-info h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.3;
}

.project-info p {
    color: var(--text-mid);
    font-size: 14px;
    margin-bottom: 24px;
    flex-grow: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.project-tech span {
    font-size: 11px;
    background: var(--bg-tag);
    border: 1px solid var(--border-glass);
    color: var(--text-mid);
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 700;
    transition: var(--transition-premium);
}

.project-tech span:hover {
    transform: translateY(-2px) scale(1.05);
    background: var(--accent-purple-glow);
    border-color: var(--accent-purple);
    color: var(--accent-purple);
    box-shadow: 0 4px 12px var(--accent-purple-glow);
}

/* Contact Grid */
.contact-section {
    padding: 110px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
}

.contact-info-card h3 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 16px;
}

.contact-info-card p {
    color: var(--text-mid);
    font-size: 15px;
    margin-bottom: 32px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-detail-item {
    display: flex;
    gap: 16px;
}

.detail-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-purple-glow);
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent-purple);
    font-size: 20px;
}

.contact-detail-item h4 {
    font-size: 16px;
    margin-bottom: 4px;
    font-weight: 700;
}

.contact-detail-item p {
    font-size: 14px;
    margin: 0;
}

.contact-detail-item a:hover {
    color: var(--accent-purple);
}

.contact-form-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-soft);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-mid);
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--bg-form-input);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: var(--text-high);
    font-family: var(--font-body);
    font-size: 14px;
    transition: var(--transition-premium);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-purple);
    background: var(--bg-surface-hover);
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.1);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Footer Section */
.main-footer {
    background: var(--bg-base);
    border-top: 1px solid var(--border-glass);
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-content p {
    font-size: 14px;
    color: var(--text-low);
}

.footer-links {
    display: flex;
    gap: 24px;
    font-size: 14px;
    color: var(--text-mid);
}

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

/* Responsive Overrides */
@media (max-width: 992px) {
    .hero-section {
        grid-template-columns: 1fr;
        padding-top: 170px;
        text-align: center;
        gap: 40px;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .navbar {
        padding: 0 24px !important;
    }
    
    .nav-logo {
        font-size: 20px;
    }
    
    .theme-toggle-btn {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    
    .nav-controls {
        gap: 10px;
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 10px;
        width: calc(100% - 20px);
        background: var(--bg-nav-mobile);
        padding: 24px;
        border: 1px solid var(--border-glass);
        border-radius: 24px;
        box-shadow: var(--shadow-soft);
        z-index: 99;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .section-title {
        font-size: 30px;
    }
    
    .dashboard-mockup {
        max-width: 100%;
    }
    
    .floating-badge {
        display: none;
    }
}

/* Keyframes & Animations */
@keyframes aurora-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(5%, 5%) scale(1.05); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.4; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes float {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-10px); }
}

@keyframes rotate-clockwise {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes rotate-counter-clockwise {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

@keyframes scroll-mesh {
    0% { background-position: 0 0; }
    100% { background-position: 0 -400px; }
}

/* ==========================================
   Theme Toggle & Controls Styling
   ========================================== */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    color: var(--text-high);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    transition: var(--transition-premium);
    box-shadow: var(--shadow-soft);
}

.theme-toggle-btn:hover {
    transform: rotate(45deg) scale(1.1);
    border-color: var(--accent-purple);
    color: var(--accent-purple);
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.15);
}

body.dark-theme .theme-toggle-btn {
    color: #f59e0b; /* Golden Sun glow in Dark Theme */
    border-color: rgba(245, 158, 11, 0.3);
}

body.dark-theme .theme-toggle-btn:hover {
    border-color: #f59e0b;
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.25);
}

/* ==========================================
   Quick Connect Channels Card
   ========================================== */
.quick-connect-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
}

.connect-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-high);
}

.connect-title i {
    color: var(--accent-purple);
}

.connect-subtitle {
    font-size: 14px;
    color: var(--text-mid);
    margin-bottom: 32px;
}

.connect-grid-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.connect-btn-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-high);
    transition: var(--transition-premium);
    position: relative;
    overflow: hidden;
}

.connect-btn-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), transparent);
    z-index: 1;
}

.connect-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    flex-shrink: 0;
    transition: var(--transition-premium);
}

.connect-info {
    flex-grow: 1;
}

.connect-info h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
    font-family: var(--font-heading);
}

.connect-info p {
    font-size: 12px;
    color: var(--text-low);
    margin: 0;
}

.connect-arrow {
    font-size: 13px;
    color: var(--text-low);
    transition: var(--transition-premium);
    opacity: 0.5;
}

/* Brand specific colors and glowing states */
.whatsapp-btn:hover {
    border-color: #25D366;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.15);
    transform: translateY(-3px);
}
.whatsapp-btn .connect-icon {
    background: rgba(37, 211, 102, 0.1);
    color: #25D366;
}
.whatsapp-btn:hover .connect-icon {
    background: #25D366;
    color: white;
}

.linkedin-btn:hover {
    border-color: #0077B5;
    box-shadow: 0 10px 25px rgba(0, 119, 181, 0.15);
    transform: translateY(-3px);
}
.linkedin-btn .connect-icon {
    background: rgba(0, 119, 181, 0.1);
    color: #0077B5;
}
.linkedin-btn:hover .connect-icon {
    background: #0077B5;
    color: white;
}

.fiverr-btn:hover {
    border-color: #1dbf73;
    box-shadow: 0 10px 25px rgba(29, 191, 115, 0.15);
    transform: translateY(-3px);
}
.fiverr-btn .connect-icon {
    background: rgba(29, 191, 115, 0.1);
    color: #1dbf73;
}
.fiverr-btn:hover .connect-icon {
    background: #1dbf73;
    color: white;
}

.freelancer-btn:hover {
    border-color: #29b2fe;
    box-shadow: 0 10px 25px rgba(41, 178, 254, 0.15);
    transform: translateY(-3px);
}
.freelancer-btn .connect-icon {
    background: rgba(41, 178, 254, 0.1);
    color: #29b2fe;
}
.freelancer-btn:hover .connect-icon {
    background: #29b2fe;
    color: white;
}

.connect-btn-item:hover .connect-arrow {
    transform: translate(2px, -2px);
    opacity: 1;
    color: var(--text-high);
}

@media (max-width: 500px) {
    .connect-grid-buttons {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   Project Detail Pages Shared Styles
   ========================================== */
.project-detail-body {
    padding-top: 150px;
    padding-bottom: 80px;
}

.btn-back-portfolio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-mid);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 30px;
    transition: var(--transition-premium);
}

.btn-back-portfolio:hover {
    color: var(--accent-purple);
    transform: translateX(-4px);
}

.project-detail-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 40px;
    align-items: start;
}

.detail-main-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 44px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.detail-main-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--grad-card);
    z-index: -1;
}

.project-detail-header {
    margin-bottom: 32px;
}

.project-detail-header .project-category-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--accent-purple-glow);
    border: 1px solid rgba(138, 43, 226, 0.15);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-purple);
    margin-bottom: 16px;
}

.project-detail-header h1 {
    font-size: 42px;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
    color: var(--text-high);
}

.project-tech-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding-bottom: 24px;
    margin-bottom: 24px;
}

body.dark-theme .project-tech-bar {
    border-color: rgba(255,255,255,0.05);
}

.project-tech-bar span {
    font-size: 12px;
    background: var(--bg-tag);
    border: 1px solid var(--border-glass);
    color: var(--text-mid);
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 700;
    transition: var(--transition-premium);
}

.project-tech-bar span:hover {
    transform: translateY(-2px) scale(1.05);
    background: var(--accent-purple-glow);
    border-color: var(--accent-purple);
    color: var(--accent-purple);
    box-shadow: 0 4px 12px var(--accent-purple-glow);
}

.detail-section {
    margin-bottom: 36px;
}

.detail-section h2 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-high);
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-section h2 i {
    color: var(--accent-purple);
}

.detail-section p {
    color: var(--text-mid);
    font-size: 15px;
    margin-bottom: 16px;
    line-height: 1.6;
}

.detail-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 16px;
}

.detail-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    color: var(--text-mid);
    font-size: 14.5px;
}

.detail-list li::before {
    content: "✦";
    color: var(--accent-cyan);
    font-weight: bold;
    position: absolute;
    left: 4px;
    top: 0px;
}

/* Sidebar Info Cards */
.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-info-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-soft);
}

.sidebar-info-card h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-high);
}

.sidebar-info-card h3 i {
    color: var(--accent-purple);
}

.sidebar-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    padding-bottom: 10px;
    font-size: 13.5px;
}

body.dark-theme .sidebar-item {
    border-color: rgba(255,255,255,0.05);
}

.sidebar-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-label {
    color: var(--text-low);
    font-weight: 700;
}

.sidebar-value {
    color: var(--text-high);
    font-weight: 700;
    text-align: right;
}

/* Action button for detailed project details */
.project-footer-actions {
    margin-top: 20px;
}

.btn-view-details {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-purple);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-premium);
}

.btn-view-details:hover {
    color: var(--accent-cyan);
    transform: translateX(4px);
}

@media (max-width: 992px) {
    .project-detail-grid {
        grid-template-columns: 1fr;
    }
}
