/* ==========================================================================
   Custom Properties (CSS Variables)
   ========================================================================== */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --accent-color: #00d4ff;
    --success-color: #198754;
    --dark-bg: #0a0e27;
    --darker-bg: #060917;
    --light-bg: #f8f9fa;
    --text-light: #ffffff;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #00d4ff 0%, #0099ff 100%);
    --gradient-dark: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.3);
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-padding-top: 96px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-tap-highlight-color: rgba(0, 212, 255, 0.18);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    transition: var(--transition-base);
}

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

section {
    position: relative;
    overflow: hidden;
    scroll-margin-top: 96px;
}

.section-padding {
    padding: 100px 0;
}

#skills.section-padding,
#certifications.section-padding,
#projects.section-padding {
    min-height: calc(100vh - 80px);
    padding-top: 16px;
    padding-bottom: 16px;
    display: flex;
    align-items: center;
}

#skills .section-header,
#certifications .section-header,
#projects .section-header {
    margin-bottom: 0.75rem;
}

#skills .section-title,
#certifications .section-title,
#projects .section-title {
    font-size: 1.75rem;
    margin-bottom: 0.4rem;
}

#skills .section-divider,
#certifications .section-divider,
#projects .section-divider {
    margin-bottom: 0.5rem;
}

#skills .section-subtitle,
#certifications .section-subtitle,
#projects .section-subtitle {
    font-size: 0.9rem;
    margin-bottom: 0;
}

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

.navbar.scrolled {
    background: rgba(10, 14, 39, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
    padding: 15px 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light) !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-icon {
    color: var(--accent-color);
    font-size: 1.8rem;
}

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

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: var(--transition-base);
}

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

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

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

.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    min-width: 44px;
    min-height: 44px;
    padding: 0.5rem 0.65rem;
    flex-shrink: 0;
    z-index: 1041;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 212, 255, 0.45);
}

.navbar-toggler i {
    font-size: 1.35rem;
    color: #ffffff;
    line-height: 1;
    display: block;
}

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

.particles-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 90%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Matrix Canvas Background */
#matrix-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    z-index: 1;
}

/* Floating Shapes */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.shape {
    position: absolute;
    opacity: 0.1;
    filter: blur(2px);
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--gradient-accent);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: 10%;
    left: 10%;
    animation: morphing 15s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
    top: 60%;
    right: 15%;
    animation: morphing 20s ease-in-out infinite reverse;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: var(--gradient-accent);
    border-radius: 50%;
    bottom: 20%;
    left: 20%;
    animation: float 10s ease-in-out infinite, pulse 3s ease-in-out infinite;
}

.shape-4 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #00d4ff 0%, #667eea 100%);
    border-radius: 30% 70% 53% 47% / 44% 48% 52% 56%;
    top: 30%;
    right: 25%;
    animation: morphing 18s ease-in-out infinite;
}

.shape-5 {
    width: 180px;
    height: 180px;
    background: var(--gradient-primary);
    border-radius: 41% 59% 41% 59% / 57% 44% 56% 43%;
    bottom: 30%;
    right: 10%;
    animation: morphing 22s ease-in-out infinite reverse;
}

@keyframes morphing {
    0%, 100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
        transform: translate(10px, -10px) rotate(90deg);
    }
    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
        transform: translate(-10px, 10px) rotate(180deg);
    }
    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
        transform: translate(10px, 10px) rotate(270deg);
    }
}

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

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--text-light);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

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

.hero-subtitle {
    font-size: 2rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    min-height: 60px;
}

#typed-text {
    color: var(--accent-color);
}

.cursor {
    display: inline-block;
    animation: blink 1s infinite;
    color: var(--accent-color);
    font-weight: 400;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.hero-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--gradient-accent);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition-base);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 25px rgba(0, 212, 255, 0.5), 0 0 30px rgba(0, 212, 255, 0.3);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--text-light);
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition-base);
}

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

.hero-social {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.2rem;
    transition: var(--transition-base);
}

.social-link:hover {
    background: var(--gradient-accent);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
}

.scroll-indicator {
    margin-top: 3rem;
}

.scroll-down {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-header {
    margin-bottom: 3rem;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: var(--gradient-accent);
    margin: 0 auto 1.5rem;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.bg-dark .section-title {
    color: var(--text-light);
}

.bg-dark .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-image {
    position: relative;
}

.profile-wrapper {
    position: relative;
    width: min(300px, 72vw);
    height: min(300px, 72vw);
    margin: 0 auto;
}

.profile-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 5px solid var(--accent-color);
    box-shadow: var(--shadow-xl);
    transition: var(--transition-base);
    position: relative;
    z-index: 2;
}

.profile-ring,
.profile-ring-2 {
    position: absolute;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--accent-color);
    border-right-color: var(--accent-color);
}

.profile-ring {
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    top: -10px;
    left: -10px;
    animation: rotate 3s linear infinite;
}

.profile-ring-2 {
    width: calc(100% + 40px);
    height: calc(100% + 40px);
    top: -20px;
    left: -20px;
    animation: rotate 4s linear infinite reverse;
    opacity: 0.5;
}

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

.profile-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 50px;
    height: 50px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.5);
    z-index: 3;
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); box-shadow: 0 4px 20px rgba(0, 212, 255, 0.7); }
}

.profile-wrapper:hover img {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.4);
}

.about-content {
    padding: 2rem;
}

.about-content .lead {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.about-stats {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 15px;
}

.stat-item {
    padding: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0;
}

/* ==========================================================================
   Skills Section
   ========================================================================== */
.skill-category {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.9rem 1.1rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

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

.skill-category:hover::before {
    left: 100%;
}

.skill-category:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px) rotateX(2deg);
    box-shadow: var(--shadow-xl), 0 0 30px rgba(0, 212, 255, 0.2);
    border-color: var(--accent-color);
}

.category-title {
    color: var(--accent-color);
    font-size: 1rem;
    margin-bottom: 0.65rem;
}

.skill-item {
    margin-bottom: 0.55rem;
}

.skill-item:last-child {
    margin-bottom: 0;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.85rem;
}

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

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

.progress-bar {
    background: var(--gradient-accent);
    transition: width 1.5s ease;
    border-radius: 10px;
}

.tech-icons {
    margin-top: 0.75rem;
}

.tech-icon-item {
    padding: 0.35rem 0.25rem;
    background: transparent;
    border-radius: 8px;
    transition: var(--transition-base);
    border: none;
}

.tech-icon-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: none;
    border-color: transparent;
}

.tech-icon-item i {
    font-size: 1.35rem;
    color: var(--accent-color);
    margin-bottom: 0.15rem;
}

.tech-icon-item p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 500;
    font-size: 0.7rem;
}

/* ==========================================================================
   Experience Timeline
   ========================================================================== */
.timeline {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--gradient-accent);
}

.timeline-item {
    position: relative;
    margin-bottom: 1.25rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-icon {
    position: absolute;
    left: -47px;
    top: 10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.8rem;
    z-index: 2;
    box-shadow: 0 0 0 3px var(--dark-bg), 0 0 0 5px var(--accent-color);
}

.timeline-content {
    background: var(--light-bg);
    padding: 0.9rem 1.1rem;
    border-radius: 10px;
    border-left: 3px solid var(--accent-color);
    transition: var(--transition-base);
}

.timeline-content:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-md);
}

.timeline-date {
    display: inline-block;
    background: var(--gradient-accent);
    color: var(--text-light);
    padding: 0.15rem 0.65rem;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.timeline-content h4 {
    font-size: 1.05rem;
    color: var(--text-dark);
    margin-bottom: 0.15rem;
}

.timeline-content h5 {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.timeline-content p {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.35rem;
}

.tag {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary-color);
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 500;
}

/* ==========================================================================
   Certifications
   ========================================================================== */
.cert-card {
    background: var(--light-bg);
    padding: 1rem 0.9rem;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition-base);
    border: 2px solid transparent;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.cert-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, var(--accent-color), transparent 30%);
    animation: rotate-gradient 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

.cert-card::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--light-bg);
    border-radius: 13px;
}

.cert-card > * {
    position: relative;
    z-index: 1;
}

.cert-card:hover::before {
    opacity: 1;
}

.cert-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md), 0 0 16px rgba(0, 212, 255, 0.25);
    border-color: transparent;
}

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

.cert-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 0.55rem;
    border-radius: 50%;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.2rem;
}

.cert-card h4 {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.cert-level {
    font-size: 0.8rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.cert-issuer {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-bottom: 0;
}

/* ==========================================================================
   Projects Section
   ========================================================================== */
.project-filter {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--text-muted);
    color: var(--text-dark);
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition-base);
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-accent);
    border-color: var(--accent-color);
    color: var(--text-light);
}

.project-grid {
    margin-top: 0.75rem;
}

.project-item {
    transition: var(--transition-base);
}

.project-item.hide {
    display: none;
}

.project-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    height: 100%;
    position: relative;
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity 0.3s;
    mix-blend-mode: overlay;
    pointer-events: none;
}

.project-card:hover::after {
    opacity: 0.1;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md), 0 0 20px rgba(0, 212, 255, 0.25);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 72px;
}

.project-visual {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
    color: var(--accent-color);
    font-size: 1.35rem;
    transition: var(--transition-base);
}

.project-card:hover .project-visual {
    transform: scale(1.04);
    color: #7dd3fc;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-base);
}

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

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

.project-link {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.85rem;
    transition: var(--transition-base);
}

.project-link:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.5);
}

.project-content {
    padding: 0.75rem 0.85rem 0.9rem;
}

.project-content h4 {
    font-size: 0.92rem;
    margin-bottom: 0.35rem;
    line-height: 1.25;
}

.project-content p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-tech {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.project-tech span {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary-color);
    padding: 0.15rem 0.45rem;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 600;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-info {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 50%;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.2rem;
    margin-right: 1rem;
}

.contact-text h5 {
    color: var(--text-light);
    margin-bottom: 0.3rem;
}

.contact-text p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    overflow-wrap: anywhere;
}

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

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.1rem;
    transition: var(--transition-base);
}

.social-icon:hover {
    background: var(--gradient-accent);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-form .form-control {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    transition: var(--transition-base);
    font-size: 16px;
}

.contact-form .form-control:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 212, 255, 0.25);
    color: var(--text-light);
}

.contact-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: var(--darker-bg);
    color: rgba(255, 255, 255, 0.7);
    padding: 2rem 0;
}

.footer .col-md-6.text-md-end {
    padding-right: 5.5rem;
}

.footer .text-danger {
    animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ==========================================================================
   Scroll to Top Button
   ========================================================================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    z-index: 999;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px) scale(1.1);
}

.scroll-progress-circle {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(-90deg);
}

.scroll-progress-circle circle {
    fill: none;
    stroke: var(--accent-color);
    stroke-width: 3;
    stroke-dasharray: 138;
    stroke-dashoffset: 138;
    transition: stroke-dashoffset 0.1s linear;
}

.scroll-to-top i {
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 991px) {
    .navbar,
    .navbar.scrolled {
        background: rgba(10, 14, 39, 0.98);
        padding: 12px 0;
    }

    .navbar .container {
        flex-wrap: nowrap;
    }

    .navbar-brand {
        min-width: 0;
        font-size: 1.15rem;
        margin-right: 0.5rem;
    }

    .navbar-collapse {
        background: rgba(6, 9, 23, 0.98);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 12px;
        margin-top: 0.5rem;
        padding: 0.5rem 0.75rem 0.75rem;
    }

    .navbar-nav .nav-link {
        padding: 0.7rem 0.6rem !important;
    }

    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .timeline {
        padding-left: 28px;
        max-width: 100%;
    }
    
    .timeline-icon {
        left: -35px;
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }
}

@media (max-width: 767px) {
    html {
        scroll-padding-top: 72px;
    }

    section {
        scroll-margin-top: 72px;
    }

    #skills.section-padding,
    #certifications.section-padding,
    #projects.section-padding {
        min-height: 0;
        display: block;
        padding-top: 72px;
        padding-bottom: 32px;
    }

    .footer {
        padding-bottom: 5.5rem;
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }

    .footer .col-md-6.text-md-end {
        padding-right: 0;
    }

    .hero-section {
        padding-top: 72px;
        align-items: flex-start;
    }

    .hero-section .row.min-vh-100 {
        min-height: 0 !important;
        padding-top: 1.25rem;
        padding-bottom: 2.5rem;
    }

    .hero-title {
        font-size: 1.85rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        min-height: 2.4rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem !important;
    }

    .hero-social.mt-5 {
        margin-top: 2rem !important;
    }
    
    .section-padding {
        padding: 72px 0 40px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .hero-buttons .btn.me-3 {
        margin-right: 0 !important;
        margin-bottom: 0.75rem;
    }
    
    .about-image img {
        width: 100%;
        height: 100%;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .scroll-to-top {
        right: 16px;
        bottom: max(16px, env(safe-area-inset-bottom));
    }

    .filter-btn {
        min-height: 44px;
        padding: 0.45rem 0.85rem;
    }

    .project-image {
        height: 96px;
    }

    .project-content h4 {
        font-size: 1rem;
    }

    .project-content p {
        font-size: 0.85rem;
        -webkit-line-clamp: 3;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .brand-icon {
        font-size: 1.4rem;
    }

    .contact-info {
        padding: 1.25rem;
    }

    .contact-item {
        margin-bottom: 1.25rem;
    }
}

@media (hover: none), (pointer: coarse) {
    .custom-cursor,
    .custom-cursor-dot {
        display: none !important;
    }

    .project-overlay {
        opacity: 1;
        background: rgba(0, 0, 0, 0.4);
    }

    .project-link {
        width: 40px;
        height: 40px;
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.text-gradient {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient {
    background: var(--gradient-dark);
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease;
}

/* ==========================================================================
   Loading Screen
   ========================================================================== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--darker-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s, visibility 0.5s;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
}

.loading-logo {
    font-size: 5rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    animation: logoFloat 2s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.1); }
}

.loading-text {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.loading-letter {
    font-size: 1.5rem;
    color: var(--text-light);
    font-weight: 700;
    animation: letterBounce 1s ease-in-out infinite;
    opacity: 0;
}

.loading-letter:nth-child(1) { animation-delay: 0s; }
.loading-letter:nth-child(2) { animation-delay: 0.1s; }
.loading-letter:nth-child(3) { animation-delay: 0.2s; }
.loading-letter:nth-child(4) { animation-delay: 0.3s; }
.loading-letter:nth-child(5) { animation-delay: 0.4s; }
.loading-letter:nth-child(6) { animation-delay: 0.5s; }
.loading-letter:nth-child(7) { animation-delay: 0.6s; }

@keyframes letterBounce {
    0%, 100% { transform: translateY(0); opacity: 0.3; }
    50% { transform: translateY(-10px); opacity: 1; }
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loading-bar-fill {
    height: 100%;
    background: var(--gradient-accent);
    width: 0%;
    animation: loadingFill 2s ease-in-out infinite;
}

@keyframes loadingFill {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* ==========================================================================
   Achievement Badges
   ========================================================================== */
.achievement-badge {
    position: relative;
    transition: var(--transition-base);
}

.achievement-badge.unlocked {
    animation: achievementUnlock 0.6s ease-out;
}

@keyframes achievementUnlock {
    0% { transform: scale(0.5) rotate(-180deg); opacity: 0; }
    50% { transform: scale(1.2) rotate(10deg); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.achievement-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.4), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.achievement-badge.unlocked .achievement-glow {
    opacity: 1;
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.4; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.7; }
}

.achievement-icon {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 1.5rem;
    color: var(--accent-color);
    opacity: 0;
    transform: scale(0) rotate(-180deg);
    transition: all 0.5s ease-out;
}

.achievement-badge.unlocked .achievement-icon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    animation: iconSpin 0.6s ease-out;
}

@keyframes iconSpin {
    0% { transform: scale(0) rotate(-180deg); }
    50% { transform: scale(1.2) rotate(20deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* ==========================================================================
   Text Reveal Animation
   ========================================================================== */
.reveal-text {
    overflow: hidden;
    position: relative;
}

.reveal-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--accent-color);
    animation: revealText 1.5s ease-out forwards;
}

.reveal-text span {
    opacity: 0;
    animation: fadeInText 0.5s ease-out 1s forwards;
}

@keyframes revealText {
    0% { left: 0; width: 0%; }
    50% { left: 0; width: 100%; }
    100% { left: 100%; width: 0%; }
}

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

/* ==========================================================================
   Enhanced Stat Items
   ========================================================================== */
.stat-item {
    position: relative;
    padding: 1rem;
    transition: var(--transition-base);
}

.stat-item:hover {
    transform: translateY(-5px) scale(1.05);
}

.stat-number {
    position: relative;
    z-index: 2;
}

