/* ==========================================
   DESIGN SYSTEM & VARIABLES
   ========================================== */
:root {
    --bg-dark: #07080e;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-color-hover: rgba(255, 255, 255, 0.12);
    
    --color-primary: #8b5cf6; /* Neon Purple */
    --color-secondary: #06b6d4; /* Cyan */
    --color-text-main: #f3f4f6; /* White/Light Gray */
    --color-text-sub: #9ca3af; /* Gray */
    --color-glow: rgba(139, 92, 246, 0.25);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    background-color: var(--bg-dark);
    color: var(--color-text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ==========================================
   TYPOGRAPHY
   ========================================== */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* ==========================================
   COMMON COMPONENTS (Buttons, Badges)
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: #fff;
    box-shadow: 0 4px 20px var(--color-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: #c084fc;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-family: var(--font-heading);
    margin-bottom: 2rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ==========================================
   NAVIGATION
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(7, 8, 14, 0.75);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
}

.nav-logo span {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text-sub);
    position: relative;
    padding: 0.2rem 0;
    transition: var(--transition-smooth);
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transition: var(--transition-smooth);
}

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

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 8rem 2rem 4rem 2rem;
    background-image: url('images/hero_bg.png');
    background-size: cover;
    background-position: center;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(7, 8, 14, 0.4), rgba(7, 8, 14, 0.95) 80%);
    z-index: 1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
}

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

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 40%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--color-text-sub);
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
    color: var(--color-text-sub);
    font-size: 0.75rem;
    font-family: var(--font-heading);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.mouse-wheel {
    width: 24px;
    height: 40px;
    border: 2px solid var(--color-text-sub);
    border-radius: 12px;
    position: relative;
}

.mouse-wheel::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background-color: var(--color-text-sub);
    border-radius: 2px;
    animation: scroll-anim 1.5s infinite;
}

@keyframes scroll-anim {
    0% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, 15px); }
}

/* ==========================================
   SECTION COMMON STYLES
   ========================================== */
section {
    padding: 8rem 2rem;
    position: relative;
}

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

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

.section-tag {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.about-avatar-container {
    position: relative;
    width: 320px;
    height: 320px;
    justify-self: center;
}

.about-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 2;
    background-color: #0d0f19;
}

.avatar-glow {
    position: absolute;
    top: -15px;
    left: -15px;
    width: calc(100% + 30px);
    height: calc(100% + 30px);
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 35px;
    filter: blur(25px);
    opacity: 0.35;
    z-index: 1;
    transition: var(--transition-smooth);
}

.about-avatar-container:hover .avatar-glow {
    opacity: 0.55;
    filter: blur(35px);
}

.about-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff, #9ca3af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-lead {
    font-size: 1.2rem;
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.about-text {
    color: var(--color-text-sub);
    margin-bottom: 2.5rem;
}

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

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1.5rem 1rem;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition-smooth);
}

.stat-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color-hover);
    transform: translateY(-5px);
}

.stat-num {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--color-text-sub);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================
   SKILLS SECTION
   ========================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 24px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.skill-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(7, 8, 14, 0.5);
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.skill-card:hover::before {
    transform: scaleX(1);
}

.skill-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.skill-icon-wrapper i {
    width: 28px;
    height: 28px;
}

.skill-icon-wrapper.purple {
    background: rgba(139, 92, 246, 0.1);
    color: #c084fc;
}

.skill-icon-wrapper.blue {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
}

.skill-icon-wrapper.cyan {
    background: rgba(6, 182, 212, 0.1);
    color: #22d3ee;
}

.skill-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #fff;
}

.skill-card p {
    color: var(--color-text-sub);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.skill-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tags li {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--color-text-sub);
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 4rem;
}

.contact-info-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 3rem;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
}

.contact-info-panel h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.contact-info-panel p {
    color: var(--color-text-sub);
    margin-bottom: 2.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: auto;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--color-text-sub);
}

.contact-item i {
    color: var(--color-secondary);
}

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

.social-links a {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-sub);
    transition: var(--transition-smooth);
}

.social-links a:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px var(--color-glow);
}

.contact-form-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 3rem;
    border-radius: 24px;
    backdrop-filter: blur(10px);
}

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

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--color-text-sub);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.15);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 2rem;
    text-align: center;
    background-color: #05060b;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-text-sub);
    font-size: 0.9rem;
}

.footer-domain {
    font-family: var(--font-heading);
    font-weight: 600;
    color: #fff;
}

/* ==========================================
   SPOTLIGHT EFFECT
   ========================================== */
.skill-card::after, 
.stat-card::after, 
.contact-info-panel::after, 
.contact-form-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: radial-gradient(350px circle at var(--mouse-x, 0px) var(--mouse-y, 0px), rgba(139, 92, 246, 0.12), transparent 80%);
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.skill-card:hover::after, 
.stat-card:hover::after, 
.contact-info-panel:hover::after, 
.contact-form-panel:hover::after {
    opacity: 1;
}

/* Ensure contents sit above spotlight */
.skill-card > *, 
.stat-card > *, 
.contact-info-panel > *, 
.contact-form-panel > * {
    position: relative;
    z-index: 2;
}

/* ==========================================
   ANIMATIONS & REVEAL CLASSES
   ========================================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 992px) {
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-avatar-container {
        width: 260px;
        height: 260px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none; /* Can add hamburger menu logic in JS if needed */
    }
    
    .nav-toggle {
        display: block;
    }
    
    .hero-section {
        padding-top: 6rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 1rem;
    }
}
