/* ========================================
   PORTFOLIO MAIN STYLES
   Extracted from inline styles for better organization
   ======================================== */

/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --secondary: #10b981;
    --dark: #1f2937;
    --light: #f9fafb;
}

/* ========================================
   BASE STYLES
   ======================================== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #0f172a;
    color: #e2e8f0;
    overflow-x: hidden;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.glow {
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.7);
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

.page-transition {
    transition: all 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.counter {
    font-variant-numeric: tabular-nums;
}

/* Width utilities */
.width-75 {
    width: 75%;
}

.width-80 {
    width: 80%;
}

.width-85 {
    width: 85%;
}

.width-90 {
    width: 90%;
}

.width-95::after {
    width: 95%;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes particle-float {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.8;
    }

    50% {
        transform: translateY(-20px) scale(1.2);
        opacity: 1;
    }

    100% {
        transform: translateY(0) scale(1);
        opacity: 0.8;
    }
}

/* ========================================
   NEON & HOLOGRAPHIC EFFECTS
   ======================================== */
.neon-border {
    position: relative;
    border: 1px solid transparent;
    background-clip: padding-box;
    border-radius: 0.5rem;
}

.neon-border::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    margin: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, #3b82f6, #10b981);
    opacity: 0.7;
}

.holographic-card {
    background: rgba(15, 23, 42, 0.7);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

.holographic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.5);
}

/* ========================================
   PARTICLES & CURSOR EFFECTS
   ======================================== */
.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.3);
    pointer-events: none;
    z-index: -1;
    animation: particle-float 4s ease-in-out infinite;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 5px rgba(59, 130, 246, 0.5));
}

.cursor-trail {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(59, 130, 246, 0.3);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    mix-blend-mode: screen;
    transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease;
}

.cursor-trail-follower {
    position: fixed;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(59, 130, 246, 0.2);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9998;
    transition: transform 0.2s ease, width 0.4s ease, height 0.4s ease;
    mix-blend-mode: overlay;
}

/* ========================================
   NAVIGATION
   ======================================== */
.nav-link {
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

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

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

.nav-link.active {
    color: var(--primary);
    font-weight: 600;
}

.nav-link.active::before {
    width: 100%;
}

/* ========================================
   SOCIAL ICONS
   ======================================== */
.social-icon {
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.1);
    color: var(--primary);
}

/* ========================================
   CARDS & COMPONENTS
   ======================================== */
.project-card {
    transition: all 0.3s ease;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 0.5rem;
    overflow: hidden;
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.5);
}

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

.stats-card {
    transition: all 0.3s ease;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 0.75rem;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.5);
}

.certification-item {
    transition: all 0.3s ease;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.certification-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.5);
}

/* ========================================
   SKILLS & TAGS
   ======================================== */
.skill-tag {
    transition: all 0.3s ease;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.skill-tag:hover {
    transform: translateY(-2px);
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ========================================
   PROGRESS BARS
   ======================================== */
.progress-bar {
    background-color: #1e293b;
    height: 0.5rem;
    border-radius: 9999px;
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 1.5s ease;
}

.animate-progress .progress-bar::after {
    transform: scaleX(1);
}

.width-90::after {
    width: 90%;
}

.width-75::after {
    width: 75%;
}

/* ========================================
   TIMELINE
   ======================================== */
.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 20px;
    top: 32px;
    height: calc(100% - 32px);
    width: 2px;
    background-color: #334155;
}

/* ========================================
   FORMS & INPUTS
   ======================================== */
.contact-input {
    transition: all 0.3s ease;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid #334155;
    color: #e2e8f0;
}

.contact-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    outline: none;
}

/* ========================================
   BUTTONS
   ======================================== */
.submit-btn {
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.learn-more-btn {
    background: linear-gradient(90deg, #3b82f6, #10b981);
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.learn-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

/* ========================================
   HOME PAGE
   ======================================== */
.home-container {
    background: radial-gradient(circle at 50% 50%, #0f172a, #020617);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.home-title {
    font-size: 4rem;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
}

.home-subtitle {
    font-size: 1.5rem;
    color: #94a3b8;
    margin-bottom: 2rem;
    max-width: 800px;
}

.home-description {
    color: #94a3b8;
    margin-bottom: 3rem;
    max-width: 600px;
}

.home-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.home-link {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
    color: #e2e8f0;
    text-decoration: none;
}

.home-link:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-3px);
}

.home-source {
    color: #94a3b8;
    font-size: 0.875rem;
}

.home-source a {
    color: #60a5fa;
    text-decoration: none;
}

.home-source a:hover {
    text-decoration: underline;
}

/* ========================================
   PAGE STATES
   ======================================== */
.page.active {
    display: block;
    opacity: 1;
}

.page:not(.active) {
    display: none;
    opacity: 0;
}

/* ========================================
   STATS & MISC
   ======================================== */
.stat-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #1e293b;
}

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

.view-credential {
    transition: all 0.3s ease;
}

.view-credential:hover {
    letter-spacing: 0.5px;
}

/* ========================================
   FOOTER
   ======================================== */
.copyright {
    background-color: #020617;
    color: #94a3b8;
    padding: 1rem;
    text-align: center;
    font-size: 0.875rem;
    border-top: 1px solid #1e293b;
}

.copyright a {
    color: #60a5fa;
    transition: color 0.3s ease;
}

.copyright a:hover {
    color: #3b82f6;
}