/* -------------------------------------------------------------
 * DESIGN SYSTEM & ROOT VARIABLES
 * ------------------------------------------------------------- */
:root {
    --bg-dark: #070810;
    --bg-card: rgba(15, 17, 33, 0.7);
    --border-color: rgba(255, 255, 255, 0.06);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    /* Harmonic Accent Colors */
    --primary: #5865f2;       /* Indigo */
    --secondary: #a855f7;     /* Purple */
    --info: #06b6d4;          /* Cyan */
    --success: #10b981;       /* Emerald */
    --warning: #f59e0b;       /* Amber */
    --danger: #f43f5e;        /* Rose */
    
    /* Gradients */
    --gradient-brand: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-text: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    --gradient-glow: radial-gradient(circle, rgba(88, 101, 242, 0.1) 0%, rgba(168, 85, 247, 0.05) 50%, transparent 100%);
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

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

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

/* Background Glow Elements */
.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: var(--gradient-glow);
    filter: blur(100px);
    z-index: -1;
    pointer-events: none;
}

.bg-glow-1 {
    top: -150px;
    right: -100px;
}

.bg-glow-2 {
    bottom: -150px;
    left: -100px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.08) 0%, rgba(6, 182, 212, 0.04) 50%, transparent 100%);
}

/* -------------------------------------------------------------
 * PREMIUM GLASSMORPHIC CARD
 * ------------------------------------------------------------- */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 15px 35px rgba(88, 101, 242, 0.05);
}

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

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

/* -------------------------------------------------------------
 * BUTTONS
 * ------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    border: none;
}

.btn-primary {
    background: var(--gradient-brand);
    color: #fff;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.45);
    filter: brightness(1.1);
}

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

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

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 8px;
}

/* -------------------------------------------------------------
 * NAVBAR
 * ------------------------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 76px;
    background: rgba(7, 8, 16, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
}

.nav-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 22px;
    color: #fff;
    text-decoration: none;
}

.logo-icon {
    font-size: 24px;
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-smooth);
}

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

/* -------------------------------------------------------------
 * HERO SECTION & TERMINAL VISUAL
 * ------------------------------------------------------------- */
.hero-section {
    padding: 160px 0 80px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 48px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 6px 14px;
    border-radius: 100px;
    color: #818cf8;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 48px;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 580px;
}

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

.hero-visual {
    display: flex;
    justify-content: center;
}

.visual-card {
    width: 100%;
    max-width: 460px;
    background: #090a15;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.visual-header {
    background: #111326;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.visual-path {
    margin-left: auto;
    font-family: monospace;
    font-size: 11px;
    color: var(--text-muted);
}

.terminal-body {
    padding: 24px;
    font-family: monospace;
    font-size: 13px;
    line-height: 1.8;
    color: #a5b4fc;
}

.cli-line {
    color: #fff;
    margin-bottom: 4px;
}

.cli-prompt {
    color: #38bdf8;
    margin-right: 8px;
}

.cli-output {
    margin-bottom: 16px;
    color: #94a3b8;
}

.cli-num {
    color: #f43f5e;
    font-weight: 700;
}

.text-success {
    color: var(--success);
}

.text-success i {
    margin-right: 4px;
}

/* -------------------------------------------------------------
 * SERVICES SECTION
 * ------------------------------------------------------------- */
.services-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 56px;
}

.section-title {
    font-size: 36px;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
}

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

.service-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.service-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-icon {
    font-size: 20px;
}

.service-card h3 {
    font-size: 20px;
}

.service-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.service-link {
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    margin-top: 8px;
}

.service-link:hover {
    text-decoration: underline;
}

/* -------------------------------------------------------------
 * FEATURED PROJECT (LANDSCAPE CARD)
 * ------------------------------------------------------------- */
.featured-project-section {
    padding: 80px 0;
}

.featured-project-card {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.08) 0%, rgba(168, 85, 247, 0.04) 100%);
    border-color: rgba(88, 101, 242, 0.2);
}

.project-tag {
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 12px;
}

.featured-project-card h2 {
    font-size: 32px;
    margin-bottom: 16px;
}

.featured-project-card p {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 24px;
}

.project-features-list {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.project-features-list span {
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-primary);
}

/* Pinned Phone UI Visual */
.featured-mockup {
    display: flex;
    justify-content: center;
}

.phone-frame {
    width: 200px;
    height: 360px;
    background: #1e1e2f;
    border: 4px solid #2d2d44;
    border-radius: 24px;
    padding: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    overflow: hidden;
}

.screen {
    width: 100%;
    height: 100%;
    background: #182533;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.mock-tg-header {
    background: #202b36;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    color: #fff;
}

.mock-tg-messages {
    flex: 1;
    padding: 10px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    flex-direction: column;
}

.msg-bubble {
    background: #182533;
    border: 1px solid #2b394a;
    border-radius: 8px;
    padding: 8px;
    font-size: 9px;
    line-height: 1.3;
}

.msg-bubble h4 {
    font-size: 9px;
}

.msg-bubble p {
    margin: 4px 0;
    font-size: 9px;
}

.bot-badge {
    background: rgba(168, 85, 247, 0.2);
    color: #c084fc;
    font-size: 8px;
    padding: 2px 6px;
    border-radius: 50px;
    display: inline-block;
}

/* -------------------------------------------------------------
 * DYNAMIC PROJECTS SECTION & GITHUB INTEGRATION
 * ------------------------------------------------------------- */
.projects-section {
    padding: 80px 0;
}

.github-profile-card {
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 650px;
    margin: 0 auto 48px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
}

.profile-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #fff;
    overflow: hidden;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info h3 {
    font-size: 18px;
}

.profile-info p {
    font-size: 13px;
    color: var(--text-secondary);
}

.profile-stats {
    display: flex;
    gap: 16px;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.profile-stats strong {
    color: #fff;
}

.github-profile-card .btn {
    margin-left: auto;
}

/* Projects grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    min-height: 200px;
    position: relative;
}

.loading-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 60px 0;
    color: var(--text-secondary);
}

.loading-state i {
    font-size: 36px;
    color: var(--primary);
}

/* Single Project Card */
.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.12);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.card-top {
    margin-bottom: 24px;
}

.repo-icon-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 16px;
}

.repo-icon-wrapper a {
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.repo-icon-wrapper a:hover {
    color: #fff;
}

.project-card h4 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 8px;
}

.project-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
}

.lang-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
}

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

.repo-stats {
    display: flex;
    gap: 12px;
    color: var(--text-muted);
}

/* -------------------------------------------------------------
 * CONTACT / CALL TO ACTION
 * ------------------------------------------------------------- */
.contact-section {
    padding: 80px 0 120px;
}

.contact-card {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.05) 0%, rgba(6, 182, 212, 0.02) 100%);
    border-color: rgba(168, 85, 247, 0.15);
}

.contact-header h2 {
    font-size: 32px;
    margin-bottom: 16px;
}

.contact-header p {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto 36px;
}

.contact-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* -------------------------------------------------------------
 * FOOTER
 * ------------------------------------------------------------- */
.footer-section {
    background: #030408;
    border-top: 1px solid var(--border-color);
    padding: 32px 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: #fff;
}

/* -------------------------------------------------------------
 * RESPONSIVENESS
 * ------------------------------------------------------------- */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-visual {
        margin-top: 40px;
    }
    
    .featured-project-card {
        grid-template-columns: 1fr;
    }
    
    .featured-mockup {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .github-profile-card {
        flex-direction: column;
        text-align: center;
    }
    
    .github-profile-card .btn {
        margin-left: 0;
        width: 100%;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
