/* style.css */

/* Dark Sorcery Celestial Color Palette Variables */
:root {
    --bg-base: #020406;           
    --bg-surface: rgba(4, 7, 12, 0.65);        
    --bg-card: rgba(6, 12, 22, 0.75);          
    --primary: #cbb28b; /* Lunar Jade / Champagne Gold */          
    --primary-glow: rgba(203, 178, 139, 0.2);
    --accent-cyan: #00e5ff; /* Ethereal Astral Teal */
    --accent-cyan-glow: rgba(0, 229, 255, 0.15);
    --accent-magenta: #7055ff; /* Deep Cosmic Violet Pulse */
    --accent-magenta-glow: rgba(112, 85, 255, 0.15);
    --text-primary: #f8fafc;      
    --text-secondary: #8b92a5;    
    --border-subtle: rgba(203, 178, 139, 0.05);     
    --border-hover: rgba(203, 178, 139, 0.25);
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Foundations */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Custom Web Scrollbar System */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: #0d1226;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, var(--primary), var(--accent-cyan));
}

/* Selection State Glow */
::selection {
    background: rgba(203, 178, 139, 0.2);
    color: #ffffff;
    text-shadow: 0 0 8px var(--primary);
}

.container {
    width: 90%;
    max-width: 1100px; /* Squeezed slightly to naturally reduce unwanted empty space */
    margin: 0 auto;
}

/* Magic Ambient Particle Background Layer */
.space-void {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
    background: radial-gradient(circle at 50% 0%, #030616 0%, #010206 100%);
}

.stars-layer-1, .stars-layer-2 {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(1px 1px at 25px 35px, #fff, rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 55px 85px, rgba(203, 178, 139, 0.8), rgba(0,0,0,0)),
        radial-gradient(1px 1px at 110px 170px, rgba(0, 229, 255, 0.8), rgba(0,0,0,0)),
        radial-gradient(2px 2px at 180px 290px, rgba(112, 85, 255, 0.6), rgba(0,0,0,0));
    background-size: 350px 350px;
}

.stars-layer-1 {
    opacity: 0.35;
    animation: celestialFloat 140s linear infinite;
}

.stars-layer-2 {
    opacity: 0.2;
    background-size: 500px 500px;
    animation: celestialFloat 200s linear infinite reverse;
}

.nebula-purple {
    position: absolute;
    width: min(90vw, 800px);
    height: min(90vw, 800px);
    top: -10%;
    right: -10%;
    background: radial-gradient(circle, rgba(112, 85, 255, 0.06) 0%, rgba(0,0,0,0) 70%);
    filter: blur(80px);
}

.nebula-blue {
    position: absolute;
    width: min(80vw, 600px);
    height: min(80vw, 600px);
    bottom: 25%;
    left: -10%;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.04) 0%, rgba(0,0,0,0) 70%);
    filter: blur(60px);
}

.nebula-magenta {
    position: absolute;
    width: min(70vw, 500px);
    height: min(70vw, 500px);
    top: 40%;
    right: 15%;
    background: radial-gradient(circle, rgba(203, 178, 139, 0.04) 0%, rgba(0,0,0,0) 70%);
    filter: blur(70px);
}

@keyframes celestialFloat {
    from { transform: translateY(0); }
    to { transform: translateY(-1000px); }
}

/* Responsive Sticky Navigation Header */
.navbar {
    position: sticky;
    top: 0;
    background-color: rgba(1, 2, 6, 0.7);
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(14px, 2vw, 22px) 0;
}

.logo {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.logo span { 
    color: var(--primary); 
    text-shadow: 0 0 15px var(--primary-glow); 
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: clamp(20px, 4vw, 45px);
}

.nav-item {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition-smooth);
    position: relative;
    padding: 6px 0;
    cursor: pointer;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--primary), var(--accent-cyan));
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

.nav-item:hover::after, .nav-item.active-nav::after { width: 100%; }
.nav-item:hover, .nav-item.active-nav { color: #fff; text-shadow: 0 0 8px var(--primary-glow); }

.nav-btn {
    background: rgba(255, 255, 255, 0.01);
    color: var(--text-primary);
    border: 1px solid rgba(203, 178, 139, 0.2);
    padding: 10px 22px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.nav-btn:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(203, 178, 139, 0.15);
    transform: translateY(-1px);
    color: #fff;
}

/* Multi-Page Visibility Layer */
.luxury-page {
    display: none;
    opacity: 0;
    width: 100%;
    transform: translateY(12px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.luxury-page.active-view {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Fluid Hero Segment Layout */
.hero-section { 
    padding: clamp(60px, 10vw, 120px) 0;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: clamp(30px, 5vw, 60px);
    align-items: center;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(6, 12, 24, 0.8);
    border: 1px solid rgba(255,255,255,0.03);
    padding: 6px 18px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: var(--primary);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 10px var(--primary);
}

.pulse-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--primary);
    border-radius: 50%;
    animation: pulseGlow 3s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(4); opacity: 0; }
}

.hero-text h1 {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 400;
    line-height: 1.25;
    margin-bottom: 25px;
}

.gradient-text {
    background: linear-gradient(90deg, #ffffff 0%, var(--primary) 35%, var(--accent-cyan) 70%, #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shineText 8s linear infinite;
}

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

.hero-lead {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 640px;
    font-weight: 300;
    line-height: 1.7;
}

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

.action-btn {
    padding: 12px 26px;
    border-radius: 4px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.action-btn.primary {
    background: linear-gradient(135deg, #16130e 0%, #0a0906 100%);
    color: var(--primary);
    border: 1px solid rgba(203, 178, 139, 0.25);
}

.action-btn.primary:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(203, 178, 139, 0.12);
    color: #fff;
}

.action-btn.secondary {
    background-color: rgba(255,255,255,0.005);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(10px);
}

.action-btn.secondary:hover {
    color: #fff;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.1);
    transform: translateY(-2px);
}

/* Profile / Graphic Frame */
.hero-image-container {
    display: flex;
    justify-content: center;
}

.profile-frame {
    width: min(100%, 280px);
    aspect-ratio: 1 / 1.15;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.02);
    box-shadow: 0 40px 80px rgba(0,0,0,0.7);
    transition: var(--transition-smooth);
    position: relative;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: var(--transition-smooth);
    filter: grayscale(10%) brightness(90%);
}

.frame-glow-line {
    position: absolute;
    inset: 0;
    border-radius: 8px;
    padding: 1px;
    background: linear-gradient(to bottom, var(--primary), rgba(255,255,255,0.05), var(--accent-cyan));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.3;
    transition: var(--transition-smooth);
}

.profile-frame:hover {
    transform: translateY(-4px);
    box-shadow: 0 40px 80px rgba(203, 178, 139, 0.05);
}

.profile-frame:hover .frame-glow-line { opacity: 0.7; }
.profile-frame:hover .profile-img { transform: scale(1.02); filter: brightness(100%); }

/* Component Content Section Blocks */
.about-section, .projects-section {
    padding: clamp(40px, 6vw, 80px) 0;
}

.section-header { margin-bottom: 40px; }

.section-tag {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--primary);
    font-weight: 500;
    display: block;
    margin-bottom: 8px;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 500;
    letter-spacing: -0.5px;
}

/* About Grid Layout Adjustment */
.about-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    align-items: start;
}

.about-text p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-weight: 300;
    line-height: 1.8;
}

/* Glassmorphic Bento Boxes */
.skills-wrapper, .portfolio-card, .contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.skills-wrapper {
    padding: 30px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

.skills-title {
    font-size: 14px;
    margin-bottom: 25px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.skills-title i { color: var(--primary); }
.skills-grid { display: flex; flex-direction: column; gap: 20px; }

.skill-category {
    padding-left: 15px;
    border-left: 1px solid rgba(255,255,255,0.03);
    transition: var(--transition-smooth);
}

.skill-category:hover { border-left-color: var(--primary); transform: translateX(2px); }
.skill-category.data-color:hover { border-left-color: var(--accent-cyan); }
.skill-category.arch-color:hover { border-left-color: var(--accent-magenta); }

.skill-category h4 {
    font-size: 11px;
    color: #fff;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.skill-category h4 i { font-size: 9px; opacity: 0.6; }
.skill-category.stack-color h4 i { color: var(--primary); }
.skill-category.data-color h4 i { color: var(--accent-cyan); }
.skill-category.arch-color h4 i { color: var(--accent-magenta); }

.skill-category p { color: var(--text-secondary); font-size: 13px; font-weight: 300; line-height: 1.6; }

/* Dynamic Portfolio Layout */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.portfolio-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.project-img-wrapper {
    width: 100%;
    height: 190px; 
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,0.01);
    position: relative;
}

.project-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: var(--transition-smooth);
    filter: brightness(85%);
}

.portfolio-card:hover {
    border-color: rgba(203, 178, 139, 0.25);
    box-shadow: 0 35px 70px rgba(203, 178, 139, 0.04);
    transform: translateY(-4px);
}

.portfolio-card.design-card:hover { border-color: rgba(0, 229, 255, 0.2); }

.portfolio-card:hover .project-screenshot {
    transform: scale(1.02);
    filter: brightness(95%);
}

.card-content { 
    padding: 30px; 
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-header-flex { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; gap: 10px; }

.tech-badge {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--primary);
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.live-link {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
}
.live-link:hover { color: #fff; text-shadow: 0 0 10px var(--primary-glow); }

.portfolio-card h3 { font-size: 1.3rem; margin-bottom: 10px; font-weight: 400; color: #fff; }
.portfolio-card p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 25px; flex-grow: 1; font-weight: 300; line-height: 1.6; }

.tech-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tech-list span {
    font-size: 11px;
    font-weight: 400;
    background-color: rgba(6, 12, 24, 0.4);
    border: 1px solid rgba(255,255,255,0.02);
    padding: 4px 10px;
    border-radius: 4px;
    color: var(--text-secondary);
}

.portfolio-card:hover .tech-list span.badge-purple { border-color: rgba(203,178,139,0.2); color: #fff; background-color: rgba(203,178,139,0.04); }
.portfolio-card:hover .tech-list span.badge-cyan { border-color: rgba(0,229,255,0.15); color: #fff; background-color: rgba(0,229,255,0.04); }
.portfolio-card:hover .tech-list span.badge-magenta { border-color: rgba(112,85,255,0.15); color: #fff; background-color: rgba(112,85,255,0.04); }

/* Dashboard Interactive Form Control Sets */
form input, form textarea {
    width: 100%;
    background: rgba(2, 4, 6, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 12px;
    border-radius: 4px;
    font-size: 13px;
    color: #fff;
    outline: none;
    transition: var(--transition-smooth);
}

form input:focus, form textarea:focus {
    background: rgba(4, 8, 16, 0.6);
    box-shadow: 0 0 15px rgba(203, 178, 139, 0.05);
}

.mail-action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    background: linear-gradient(135deg, #16130e 0%, #0a0906 100%);
    border: 1px solid rgba(203, 178, 139, 0.25);
    text-decoration: none;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.mail-action:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(203, 178, 139, 0.15);
}

/* Minimal Footer Framework */
.footer { border-top: 1px solid rgba(255,255,255,0.01); padding: 40px 0; font-size: 13px; color: var(--text-secondary); margin-top: 40px; }
.footer-content { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.footer-meta { display: flex; gap: 25px; }
.footer-meta a { color: var(--text-secondary); text-decoration: none; transition: var(--transition-smooth); display: inline-flex; align-items: center; gap: 6px; }
.footer-meta a:hover { color: var(--primary); text-shadow: 0 0 10px var(--primary-glow); }

/* Responsive Adaptation Layout Matrix Rules */
@media (max-width: 992px) {
    .hero-layout { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .hero-text { max-width: 100%; }
    .hero-image-container { order: -1; }
    .hero-actions { justify-content: center; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-sidebar { padding-left: 0; border-left: none; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .nav-links { display: none; }
    .hero-actions .action-btn { width: 100%; justify-content: center; }
}

/* Custom Dashboard Form Inputs System */
.skills-wrapper form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skills-wrapper form div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.skills-wrapper label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Translucent Obsidian Input Deck */
.skills-wrapper input,
.skills-wrapper textarea {
    width: 100%;
    background: rgba(2, 4, 6, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 6px;
    font-size: 13px;
    color: #ffffff;
    outline: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: border-color 0.4s ease, box-shadow 0.4s ease, background-color 0.4s ease;
}

/* Fluid Hover Matrix */
.skills-wrapper input:hover,
.skills-wrapper textarea:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background-color: rgba(6, 12, 24, 0.3);
}

/* Majestic Accent Line Transitions on Focus State */
.skills-wrapper input:focus {
    background-color: rgba(8, 14, 28, 0.5);
    border-color: var(--primary); /* Lunar Jade Gold */
    box-shadow: 0 0 15px rgba(203, 178, 139, 0.1);
}

.skills-wrapper textarea:focus {
    background-color: rgba(8, 14, 28, 0.5);
    border-color: var(--accent-cyan); /* Celestial Teal */
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.1);
}

/* Form Action Trigger Adaptations */
.skills-wrapper .mail-action {
    width: 100%;
    justify-content: center;
    border: 1px solid rgba(203, 178, 139, 0.25);
    background: linear-gradient(135deg, #16130e 0%, #0a0906 100%);
    color: var(--primary);
    padding: 14px;
    border-radius: 6px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-smooth);
}

.skills-wrapper .mail-action:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(203, 178, 139, 0.15);
}

/* Ensure placeholder texts blend elegantly into the background */
.skills-wrapper input::placeholder,
.skills-wrapper textarea::placeholder {
    color: rgba(139, 146, 165, 0.4);
    font-weight: 300;
}