/**
 * Premium Portfolio CSS
 * Developer: Ferman Dadashev
 * Dark mode inspired, glassmorphism, animations
 */

/* ==========================================
   CSS Variables / Design Tokens
   ========================================== */
:root {
    /* Primary palette */
    --primary: #6c5ce7;
    --primary-light: #a29bfe;
    --primary-dark: #5241c5;
    --primary-glow: rgba(108, 92, 231, 0.3);

    /* Accent colors */
    --accent: #00cec9;
    --accent-light: #81ecec;
    --accent-glow: rgba(0, 206, 201, 0.3);

    /* Gradient */
    --gradient-primary: linear-gradient(135deg, #6c5ce7, #00cec9);
    --gradient-dark: linear-gradient(135deg, #0c0c1d, #1a1a3e);
    --gradient-card: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    --gradient-hero: linear-gradient(160deg, #0a0a1a 0%, #1a1a3e 50%, #0f0f2d 100%);

    /* Background */
    --bg-dark: #0a0a1a;
    --bg-section: #0f0f2d;
    --bg-section-alt: #0c0c22;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-glass: rgba(255, 255, 255, 0.05);

    /* Text */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);

    /* Borders */
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(108, 92, 231, 0.3);

    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px rgba(108, 92, 231, 0.15);

    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

/* ==========================================
   Reset & Base
   ========================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--primary);
    color: #fff;
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

a {
    text-decoration: none;
    color: var(--primary-light);
    transition: var(--transition);
}
a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================
   Section Base
   ========================================== */
.section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.section-alt {
    background-color: var(--bg-section-alt);
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-subtitle {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 500;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
    display: inline-block;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 20px;
    position: relative;
}

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

.section-line {
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    margin: 0 auto;
}

/* Section decorations */
.section-decoration {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    pointer-events: none;
}

.decoration-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -200px;
    right: -200px;
}

.decoration-2 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    bottom: -150px;
    left: -150px;
}

/* ==========================================
   Navbar
   ========================================== */
.navbar {
    padding: 20px 0;
    transition: var(--transition);
    z-index: 1000;
    background: transparent;
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(10, 10, 26, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    box-shadow: var(--shadow-md);
}

.navbar-brand .brand-text {
    font-family: var(--font-mono);
    font-size: 24px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: 15px;
    padding: 8px 18px !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}

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

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 20px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 1px;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    margin-left: 8px;
    font-size: 14px;
    transition: var(--transition);
}

.nav-social a:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(108, 92, 231, 0.1);
}

.toggler-icon {
    color: var(--text-primary);
    font-size: 22px;
}

.navbar-toggler {
    border: 1px solid var(--border-glass);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ==========================================
   Hero Section
   ========================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.hero-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-light);
    border-radius: 50%;
    opacity: 0.3;
    animation: float-particle 15s infinite linear;
}

.hero-particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; animation-duration: 20s; }
.hero-particle:nth-child(2) { left: 30%; top: 60%; animation-delay: 2s; animation-duration: 18s; width: 6px; height: 6px; }
.hero-particle:nth-child(3) { left: 50%; top: 30%; animation-delay: 4s; animation-duration: 22s; }
.hero-particle:nth-child(4) { left: 70%; top: 70%; animation-delay: 1s; animation-duration: 16s; width: 5px; height: 5px; }
.hero-particle:nth-child(5) { left: 85%; top: 40%; animation-delay: 3s; animation-duration: 19s; }
.hero-particle:nth-child(6) { left: 20%; top: 80%; animation-delay: 5s; animation-duration: 21s; width: 3px; height: 3px; }
.hero-particle:nth-child(7) { left: 60%; top: 15%; animation-delay: 7s; animation-duration: 17s; }
.hero-particle:nth-child(8) { left: 90%; top: 85%; animation-delay: 6s; animation-duration: 23s; width: 4px; height: 4px; }

@keyframes float-particle {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 0.4; }
    50% { opacity: 0.2; }
    90% { opacity: 0.3; }
    100% { transform: translateY(-100vh) translateX(50px); opacity: 0; }
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(108,92,231,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(108,92,231,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108,92,231,0.12) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    font-size: 14px;
    color: var(--accent);
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero-badge .pulse-dot {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-greeting {
    font-family: var(--font-mono);
    font-size: 18px;
    color: var(--primary-light);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 72px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -2px;
}

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

.hero-typing {
    font-size: 24px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    min-height: 36px;
}

.hero-typing .typing-text {
    color: var(--accent);
    font-weight: 600;
    border-right: 2px solid var(--accent);
    padding-right: 5px;
    animation: blink-cursor 0.8s infinite;
}

@keyframes blink-cursor {
    0%, 50% { border-color: var(--accent); }
    51%, 100% { border-color: transparent; }
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 550px;
    line-height: 1.8;
    margin-bottom: 40px;
}

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

/* ==========================================
   Buttons
   ========================================== */
.btn-primary-custom {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn-primary-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: 0.5s;
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--primary-glow);
    color: #fff;
}

.btn-primary-custom:hover::before {
    left: 100%;
}

.btn-outline-custom {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-glass);
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    cursor: pointer;
}

.btn-outline-custom:hover {
    border-color: var(--primary);
    background: rgba(108, 92, 231, 0.1);
    color: var(--primary-light);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-glass);
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-size: 36px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat-label {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.hero-image-glow {
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.15;
    filter: blur(60px);
    animation: hero-glow-pulse 4s ease-in-out infinite;
}

@keyframes hero-glow-pulse {
    0%, 100% { transform: scale(1); opacity: 0.15; }
    50% { transform: scale(1.1); opacity: 0.2; }
}

.hero-image-frame {
    width: 380px;
    height: 380px;
    border-radius: 50%;
    border: 3px solid var(--border-glass);
    padding: 6px;
    position: relative;
    z-index: 2;
    background: var(--gradient-card);
}

.hero-image-frame img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.hero-orbit {
    position: absolute;
    width: 450px;
    height: 450px;
    border: 1px dashed var(--border-glass);
    border-radius: 50%;
    animation: orbit-rotate 20s linear infinite;
    z-index: 1;
}

.hero-orbit-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 20px var(--primary-glow);
}

@keyframes orbit-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==========================================
   About Section
   ========================================== */
.about-section {
    background: var(--bg-section);
}

.about-image-wrapper {
    position: relative;
}

.about-image-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-glass);
    position: relative;
}

.about-image-card img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.about-image-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    text-align: center;
}

.about-image-badge .number {
    font-size: 32px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.about-image-badge .label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-content h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
}

.about-content p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 16px;
}

.about-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 30px 0;
}

.about-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
}

.about-info-item i {
    color: var(--primary-light);
    font-size: 16px;
}

.about-info-item span {
    color: var(--text-secondary);
    font-size: 14px;
}

.about-info-item strong {
    color: var(--text-primary);
}

/* ==========================================
   Skills Section
   ========================================== */
.skills-section {
    background: var(--bg-section-alt);
}

.skill-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 28px;
    transition: var(--transition);
    height: 100%;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

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

.skill-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(108, 92, 231, 0.1);
    border-radius: var(--radius-sm);
    font-size: 22px;
    color: var(--primary-light);
}

.skill-card-percentage {
    font-size: 28px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.skill-card-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 12px;
}

.skill-progress {
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
}

.skill-progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.skills-category-title {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-glass);
}

/* ==========================================
   Projects Section
   ========================================== */
.projects-section {
    background: var(--bg-section);
}

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

.filter-btn {
    padding: 8px 24px;
    border: 1px solid var(--border-glass);
    background: transparent;
    color: var(--text-secondary);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #fff;
}

.project-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(108, 92, 231, 0.3);
    box-shadow: var(--shadow-glow);
}

.project-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--gradient-card);
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.project-card:hover .project-card-image img {
    transform: scale(1.05);
}

.project-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 26, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-card-overlay {
    opacity: 1;
}

.project-overlay-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.project-overlay-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: scale(1.1);
}

.project-card-body {
    padding: 28px;
}

.project-card-category {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.project-card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.project-card-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.project-card-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-badge {
    padding: 4px 12px;
    background: rgba(108, 92, 231, 0.1);
    border: 1px solid rgba(108, 92, 231, 0.2);
    border-radius: 50px;
    font-size: 12px;
    color: var(--primary-light);
    font-weight: 500;
}

.project-placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(108,92,231,0.15), rgba(0,206,201,0.1));
    font-size: 48px;
    color: var(--primary-light);
    opacity: 0.5;
}

/* ==========================================
   Services Section
   ========================================== */
.services-section {
    background: var(--bg-section-alt);
}

.service-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

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

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(108, 92, 231, 0.2);
    box-shadow: var(--shadow-glow);
}

.service-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    background: rgba(108, 92, 231, 0.08);
    border: 1px solid rgba(108, 92, 231, 0.15);
    border-radius: var(--radius-md);
    font-size: 32px;
    color: var(--primary-light);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
    transform: rotateY(180deg);
}

.service-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.service-description {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

/* ==========================================
   Experience / Timeline
   ========================================== */
.experience-section {
    background: var(--bg-section);
}

.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--accent), var(--primary));
    top: 0;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 50px;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-dot {
    position: absolute;
    width: 18px;
    height: 18px;
    background: var(--primary);
    border: 4px solid var(--bg-section);
    border-radius: 50%;
    top: 30px;
    z-index: 2;
    box-shadow: 0 0 20px var(--primary-glow);
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -9px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -9px;
}

.timeline-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 28px;
    transition: var(--transition);
}

.timeline-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.timeline-date {
    display: inline-block;
    padding: 4px 16px;
    background: rgba(108, 92, 231, 0.1);
    border: 1px solid rgba(108, 92, 231, 0.2);
    border-radius: 50px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--primary-light);
    margin-bottom: 12px;
}

.timeline-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
}

.timeline-company {
    font-size: 14px;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 12px;
}

.timeline-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

.timeline-type-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.badge-work {
    background: rgba(108, 92, 231, 0.15);
    color: var(--primary-light);
}

.badge-education {
    background: rgba(0, 206, 201, 0.15);
    color: var(--accent);
}

/* ==========================================
   Testimonials
   ========================================== */
.testimonials-section {
    background: var(--bg-section-alt);
}

.testimonial-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: var(--transition);
    height: 100%;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(108, 92, 231, 0.2);
    box-shadow: var(--shadow-glow);
}

.testimonial-quote-icon {
    font-size: 40px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    opacity: 0.5;
}

.testimonial-text {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-rating {
    margin-bottom: 20px;
}

.testimonial-rating i {
    color: #f9ca24;
    font-size: 14px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    border-top: 1px solid var(--border-glass);
    padding-top: 20px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: #fff;
}

.testimonial-name {
    font-weight: 600;
    font-size: 16px;
}

.testimonial-position {
    font-size: 13px;
    color: var(--text-muted);
}

/* ==========================================
   Statistics / Counters
   ========================================== */
.stats-section {
    padding: 80px 0;
    background: var(--gradient-primary);
    position: relative;
}

.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
}

.stat-card {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 20px;
}

.stat-icon {
    font-size: 36px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 16px;
}

.stat-number {
    font-size: 48px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

/* ==========================================
   Contact Section
   ========================================== */
.contact-section {
    background: var(--bg-section);
}

.contact-info-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 36px;
    height: 100%;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-glass);
}

.contact-info-item:last-child {
    border-bottom: none;
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(108, 92, 231, 0.1);
    border: 1px solid rgba(108, 92, 231, 0.15);
    border-radius: var(--radius-sm);
    font-size: 20px;
    color: var(--primary-light);
}

.contact-info-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.contact-info-value {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

.contact-social {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.contact-social a {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 18px;
    transition: var(--transition);
}

.contact-social a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-3px);
}

.contact-form-wrapper {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 40px;
}

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

.contact-form .form-control,
.contact-form .form-select {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    font-size: 15px;
    transition: var(--transition);
}

.contact-form .form-control:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
    color: var(--text-primary);
}

.contact-form .form-control::placeholder {
    color: var(--text-muted);
}

.contact-form label {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
}

.contact-form textarea {
    resize: none;
    min-height: 140px;
}

.form-message {
    display: none;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    margin-top: 16px;
    font-size: 14px;
}

.form-message.success {
    display: block;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.2);
    color: #00ff88;
}

.form-message.error {
    display: block;
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.2);
    color: #ff4757;
}

/* ==========================================
   Footer
   ========================================== */
.site-footer {
    padding: 40px 0;
    background: var(--bg-dark);
    border-top: 1px solid var(--border-glass);
    position: relative;
}

.footer-brand .brand-text {
    font-family: var(--font-mono);
    font-size: 22px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-tagline {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 14px;
}

.footer-social .social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 16px;
    transition: var(--transition);
}

.footer-social .social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.footer-copy {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

/* ==========================================
   Scroll to Top
   ========================================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: 0 4px 20px var(--primary-glow);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px var(--primary-glow);
}

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 1200px) {
    .hero-title { font-size: 56px; }
    .section-title { font-size: 36px; }
}

@media (max-width: 992px) {
    .hero-title { font-size: 48px; }
    .hero-image-frame { width: 300px; height: 300px; }
    .hero-orbit { width: 370px; height: 370px; }
    .hero-stats { gap: 24px; }
    .section { padding: 80px 0; }

    .timeline::before { left: 30px; }
    .timeline-item { width: 100%; left: 0 !important; padding-left: 70px; padding-right: 20px; text-align: left !important; }
    .timeline-item .timeline-dot { left: 21px !important; right: auto !important; }

    .navbar-collapse {
        background: rgba(10, 10, 26, 0.98);
        backdrop-filter: blur(20px);
        border-radius: var(--radius-md);
        padding: 20px;
        margin-top: 10px;
        border: 1px solid var(--border-glass);
    }

    .navbar-nav .nav-link {
        text-align: center;
    }

    .nav-social {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .hero-title { font-size: 38px; letter-spacing: -1px; }
    .hero-typing { font-size: 18px; }
    .hero-description { font-size: 16px; }
    .hero-image-wrapper { margin-top: 50px; }
    .hero-image-frame { width: 250px; height: 250px; }
    .hero-orbit { width: 310px; height: 310px; }
    .hero-stats { flex-wrap: wrap; gap: 20px; }
    .hero-stat { flex: 1; min-width: 100px; }
    .section-title { font-size: 30px; }
    .section-header { margin-bottom: 50px; }
    .about-info-grid { grid-template-columns: 1fr; }
    .about-image-card img { height: 300px; }
    .stat-number { font-size: 36px; }
    .contact-form-wrapper { padding: 24px; }
}

@media (max-width: 576px) {
    .hero-title { font-size: 32px; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons a, .hero-buttons button { width: 100%; justify-content: center; }
    .section { padding: 60px 0; }
    .section-title { font-size: 26px; }
    .hero-stat-number { font-size: 28px; }
}

/* ==========================================
   Animations
   ========================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.animate-fadeInUp { animation: fadeInUp 0.8s ease forwards; }
.animate-fadeInLeft { animation: fadeInLeft 0.8s ease forwards; }
.animate-fadeInRight { animation: fadeInRight 0.8s ease forwards; }

/* Loader */
.page-loader {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border-glass);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
