/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    /* Color Palette */
    --color-bg-dark: #07090e;
    --color-bg-deep: #0a0e17;
    --color-bg-card: rgba(13, 20, 35, 0.45);
    --color-bg-nav: rgba(7, 9, 14, 0.75);
    
    /* Neon Accents */
    --color-cyan-glow: #00f2fe;
    --color-purple-glow: #9b51e0;
    --color-pink-glow: #ff007f;
    --color-text-primary: #f1f5f9;
    --color-text-secondary: #94a3b8;
    --color-text-muted: #64748b;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-cyan-glow) 0%, var(--color-purple-glow) 100%);
    --gradient-accent: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    
    /* Glassmorphism Specs */
    --glass-border: rgba(255, 255, 255, 0.07);
    --glass-border-hover: rgba(0, 242, 254, 0.3);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --glass-blur: blur(16px);
    
    /* Fonts */
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    /* Durations */
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: all 0.2s ease;
}

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

body {
    background-color: var(--color-bg-dark);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--color-bg-card);
    border-radius: 4px;
    border: 1px solid var(--glass-border);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-cyan-glow);
    box-shadow: 0 0 10px var(--color-cyan-glow);
}

/* ==========================================================================
   PARTICLE CANVAS BACKGROUND
   ========================================================================== */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

/* Background Ambient Lighting */
body::before {
    content: '';
    position: fixed;
    top: 20%;
    left: 10%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.08) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    filter: blur(80px);
}

body::after {
    content: '';
    position: fixed;
    bottom: 10%;
    right: 5%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(155, 81, 224, 0.08) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    filter: blur(80px);
}

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

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

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

.text-neon-cyan {
    color: var(--color-cyan-glow);
    text-shadow: 0 0 15px rgba(0, 242, 254, 0.5);
}

.text-neon-purple {
    color: var(--color-purple-glow);
    text-shadow: 0 0 15px rgba(155, 81, 224, 0.5);
}

.glass-card {
    background: var(--color-bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: var(--glass-border-hover);
    box-shadow: 0 10px 40px -10px rgba(0, 242, 254, 0.15);
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: var(--color-bg-nav);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    padding: 1.2rem 0;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    padding: 0.8rem 0;
    background: var(--color-bg-dark);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.logo {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-text-primary);
}

.logo-accent {
    color: var(--color-cyan-glow);
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.6);
}

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

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link i {
    font-size: 0.85rem;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-text-primary);
}

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

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #000;
    border: none;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.7);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
}

.btn-secondary:hover {
    border-color: var(--color-cyan-glow);
    background: rgba(0, 242, 254, 0.05);
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

.btn-block {
    width: 100%;
}

/* ==========================================================================
   SECTION STANDARD LAYOUT
   ========================================================================== */
section {
    padding: 8rem 5% 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

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

.section-subtitle {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-cyan-glow);
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
    margin-bottom: 0.5rem;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    color: var(--color-text-primary);
    margin-bottom: 1rem;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    padding-top: 8rem;
}

.badge-glow {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.2);
    color: var(--color-cyan-glow);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.1);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.8rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
}

.cursor-blink {
    font-weight: 300;
    color: var(--color-cyan-glow);
    animation: blink 0.8s infinite;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: 2.5rem;
    max-width: 550px;
}

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

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glow-sphere {
    position: absolute;
    width: 250px;
    height: 250px;
    background: var(--gradient-primary);
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.35;
    animation: pulse 6s infinite alternate;
}

.avatar-card {
    position: relative;
    padding: 1.2rem;
    border-radius: 24px;
    max-width: 320px;
    width: 100%;
}

.avatar-card img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 16px;
    object-fit: cover;
    background: var(--color-bg-dark);
    border: 1px solid var(--glass-border);
}

.avatar-status {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 1rem;
    justify-content: center;
    color: var(--color-text-secondary);
}

.status-dot {
    width: 10px;
    height: 10px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 10px #22c55e;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.about-info, .about-timeline {
    padding: 2.5rem;
}

.about-info h3, .about-timeline h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--color-text-primary);
}

.about-info p {
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
}

.info-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.8rem;
}

.info-label {
    font-weight: 600;
    width: 100px;
    color: var(--color-text-muted);
}

.info-val a:hover {
    color: var(--color-cyan-glow);
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
}

/* Timeline component */
.timeline {
    position: relative;
    border-left: 2px solid rgba(255, 255, 255, 0.08);
    padding-left: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
}

.timeline-item {
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: calc(-1.8rem - 7px);
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gradient-primary);
    box-shadow: 0 0 8px var(--color-cyan-glow);
}

.timeline-date {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-cyan-glow);
    margin-bottom: 0.4rem;
}

.timeline-item h4 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.timeline-item p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

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

.skill-card {
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.skill-icon-container {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    margin-bottom: 1.8rem;
}

.skill-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    list-style: none;
}

.skill-list li {
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
}

.skill-percentage {
    color: var(--color-cyan-glow);
}

.skill-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    border-radius: 10px;
    background: var(--gradient-primary);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.5s cubic-bezier(0.1, 1, 0.1, 1);
}

.skill-card.animated .skill-progress {
    transform: scaleX(1);
}

/* ==========================================================================
   PROJECTS SECTION
   ========================================================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.project-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-img-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.project-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-img-container img {
    transform: scale(1.1);
}

.project-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.3rem 0.9rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    background: var(--gradient-primary);
    color: #000;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
}

.project-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-body h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

.project-body p {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.8rem;
}

.tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.7rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    color: var(--color-text-secondary);
}

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

.project-link-btn {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-cyan-glow);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.project-link-btn:hover {
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
    transform: translateX(3px);
}

.project-link-disabled {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3rem;
}

.contact-card, .contact-form-container {
    padding: 3rem;
}

.contact-card h3, .contact-form-container h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.contact-card p {
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    margin-bottom: 2.5rem;
}

.contact-method-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.method-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: var(--color-cyan-glow);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.1);
}

.contact-method-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.contact-method-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: var(--color-text-secondary);
}

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

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    color: var(--color-text-secondary);
}

.social-icon:hover {
    color: #000;
    background: var(--gradient-primary);
    border-color: transparent;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.5);
    transform: scale(1.1);
}

/* Contact Form Styling */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.form-group input, .form-group textarea {
    padding: 0.9rem 1.2rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--color-cyan-glow);
    background: rgba(0, 242, 254, 0.02);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.15);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    border-top: 1px solid var(--glass-border);
    background-color: #04060a;
    padding: 3rem 0;
    text-align: center;
}

.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-container p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
}

.footer-sub {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
#toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.toast {
    background: rgba(10, 14, 23, 0.85);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-left: 4px solid var(--color-cyan-glow);
    border-top: 1px solid var(--glass-border);
    border-right: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: var(--glass-shadow);
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-success {
    border-left-color: #22c55e;
}

.toast-success i {
    color: #22c55e;
}

/* ==========================================================================
   ANIMATIONS & RESPONSIVE
   ========================================================================== */
@keyframes blink {
    50% { opacity: 0; }
}

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

/* Scroll reveal classes */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Entry Animations */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.animate-slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

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

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

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-section {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
        padding-top: 10rem;
    }
    
    .hero-description {
        margin: 0 auto 2.5rem auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    section {
        padding: 5rem 5% 3rem 5%;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background: rgba(7, 9, 14, 0.98);
        backdrop-filter: var(--glass-blur);
        flex-direction: column;
        padding: 6rem 2rem 2rem 2rem;
        transition: var(--transition-smooth);
        border-left: 1px solid var(--glass-border);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
