/* ========================================
   ROOT VARIABLES & THEME CONFIGURATION
======================================== */

/* Profile Image */
.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    border-radius: var(--border-radius);
}

.about-image {
    aspect-ratio: 1;
    overflow: hidden;
}

/* Profile Placeholder */
.profile-placeholder {
    width: 100%;
    height: 100%;
    min-height: 350px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
}

.profile-placeholder i {
    font-size: 10rem;
    color: rgba(255, 255, 255, 0.3);
}

/* Project Images */
.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

:root {
    /* Dark Theme (Default) */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a2e;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6b6b80;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --accent-blue: #667eea;
    --accent-purple: #764ba2;
    --accent-pink: #f093fb;
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 40px rgba(102, 126, 234, 0.3);
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
    --bg-primary: #f8f9fc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #eef1f8;
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a6a;
    --text-muted: #8a8aa0;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.1);
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* ========================================
   BASE STYLES & TYPOGRAPHY
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: var(--transition);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

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

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

/* ========================================
   PRELOADER
======================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loader-inner {
    width: 60px;
    height: 60px;
    position: relative;
    animation: rotate 2s linear infinite;
}

.loader-inner::before,
.loader-inner::after {
    content: '';
    position: absolute;
    border-radius: 50%;
}

.loader-inner::before {
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    animation: pulse 1s ease-in-out infinite;
}

.loader-inner::after {
    width: 70%;
    height: 70%;
    background: var(--bg-primary);
    top: 15%;
    left: 15%;
}

.loader-text {
    color: var(--text-secondary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

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

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* ========================================
   3D CANVAS BACKGROUND
======================================== */
#hero-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* ========================================
   GLASS MORPHISM COMPONENTS
======================================== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

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

/* ========================================
   NAVIGATION
======================================== */
.glass-nav {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
    transition: var(--transition);
}

.glass-nav.scrolled {
    background: var(--bg-secondary);
    box-shadow: var(--shadow-soft);
}

.navbar-brand {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
}

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

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 8px 16px !important;
    margin: 0 4px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
    transform: translateX(-50%);
}

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

.nav-link:hover::before,
.nav-link.active::before {
    width: 60%;
}

.theme-toggle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
}

.theme-toggle:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    transform: rotate(180deg);
}

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

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

[data-theme="light"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2826, 26, 46, 0.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ========================================
   HERO SECTION
======================================== */
.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-greeting {
    display: inline-block;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    margin-bottom: 16px;
    animation: fadeInUp 0.6s ease 0.2s backwards;
}

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

.hero-subtitle {
    font-size: clamp(1.2rem, 4vw, 2rem);
    color: var(--text-secondary);
    margin-bottom: 24px;
    min-height: 3rem;
    animation: fadeInUp 0.6s ease 0.4s backwards;
}

.typing-text {
    color: var(--accent-blue);
}

.cursor {
    animation: blink 1s infinite;
    color: var(--accent-purple);
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 32px;
    animation: fadeInUp 0.6s ease 0.6s backwards;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease 0.8s backwards;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    color: white;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-glow {
    position: relative;
    overflow: hidden;
}

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

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

.btn-outline-primary {
    border: 2px solid var(--accent-blue);
    background: transparent;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    color: var(--accent-blue);
}

.btn-outline-primary:hover {
    background: var(--accent-blue);
    color: white;
    transform: translateY(-3px);
}

.hero-socials {
    display: flex;
    gap: 16px;
    animation: fadeInUp 0.6s ease 1s backwards;
}

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

.social-link:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    transform: translateY(-5px) rotate(360deg);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: float 2s ease-in-out infinite;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--accent-blue);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        top: 8px;
        opacity: 1;
    }

    100% {
        top: 20px;
        opacity: 0;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

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

.scroll-indicator span {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* ========================================
   SECTIONS COMMON STYLES
======================================== */
.section {
    padding: 100px 0;
    position: relative;
}

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

.section-subtitle {
    display: inline-block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
}

/* ========================================
   ABOUT SECTION
======================================== */
.about-section {
    background: var(--bg-secondary);
}

.about-image-wrapper {
    position: relative;
    padding: 20px;
}

.about-image {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.image-placeholder {
    font-size: 8rem;
    color: var(--accent-blue);
    opacity: 0.5;
}

.floating-badge {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: var(--shadow-glow);
    animation: float 3s ease-in-out infinite;
}

.badge-1 {
    top: 0;
    right: 0;
    animation-delay: 0s;
}

.badge-2 {
    bottom: 40px;
    left: 0;
    animation-delay: 1.5s;
}

.about-heading {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.about-text {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
    padding: 24px 16px;
}

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

.stat-suffix {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-purple);
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* ========================================
   SKILLS SECTION
======================================== */
.skill-category {
    padding: 30px;
    height: 100%;
}

.skill-category-title {
    font-size: 1.2rem;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.skill-item {
    margin-bottom: 20px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.skill-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.skill-icon {
    font-size: 1.2rem;
}

.skill-icon.html {
    color: #e34f26;
}

.skill-icon.css {
    color: #1572b6;
}

.skill-icon.bootstrap {
    color: #7952b3;
}

.skill-icon.js {
    color: #f7df1e;
}

.skill-icon.flutter {
    color: #02569b;
}

.skill-icon.dart {
    color: #0175c2;
}

.skill-icon.firebase {
    color: #ffca28;
}

.skill-percent {
    color: var(--accent-blue);
    font-weight: 600;
}

.progress {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    transition: width 1.5s ease-in-out;
}

.tech-stack {
    margin-top: 60px;
    text-align: center;
}

.tech-stack-title {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.tech-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.tech-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--text-secondary);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.tech-icon:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    transform: translateY(-10px) scale(1.1);
}

.tech-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -30px;
    font-size: 0.75rem;
    background: var(--bg-tertiary);
    padding: 4px 8px;
    border-radius: 4px;
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.tech-icon:hover::after {
    opacity: 1;
}

/* ========================================
   EXPERIENCE SECTION
======================================== */
.experience-section {
    background: var(--bg-secondary);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 80px;
}

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

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-marker {
    position: absolute;
    left: -80px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 3px solid var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent-blue);
    z-index: 1;
    transition: var(--transition);
}

.timeline-marker.current {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    box-shadow: var(--shadow-glow);
}

.timeline-content {
    padding: 30px;
}

.timeline-date {
    display: inline-block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.timeline-title {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.timeline-company {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 16px;
}

.timeline-description {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: var(--bg-tertiary);
    color: var(--accent-blue);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.tag:hover {
    background: var(--accent-blue);
    color: white;
}

/* ========================================
   PROJECTS SECTION
======================================== */
.project-card {
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.project-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    opacity: 0.8;
}

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

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

.project-links {
    display: flex;
    gap: 16px;
}

.project-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    transition: var(--transition);
    transform: translateY(20px);
}

.project-card:hover .project-link {
    transform: translateY(0);
}

.project-link:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    transform: scale(1.1);
}

.project-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.project-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 16px;
    flex: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.project-buttons {
    display: flex;
    gap: 12px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* ========================================
   SERVICES SECTION
======================================== */
.services-section {
    background: var(--bg-secondary);
}

.service-card {
    padding: 40px 24px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin: 0 auto 24px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: rotateY(180deg);
}

.service-title {
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.service-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-top: auto;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.service-features li i {
    color: var(--accent-blue);
}

/* ========================================
   TESTIMONIALS SECTION
======================================== */
.testimonial-card {
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-card.featured {
    background: var(--gradient-primary);
    border-color: transparent;
}

.testimonial-card.featured .testimonial-text,
.testimonial-card.featured .author-title {
    color: rgba(255, 255, 255, 0.9);
}

.testimonial-card.featured .testimonial-rating i,
.testimonial-card.featured .author-name {
    color: white;
}

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

.testimonial-rating i {
    color: #ffc107;
    font-size: 1rem;
    margin-right: 4px;
}

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

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-muted);
}

.testimonial-card.featured .author-avatar {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.author-name {
    font-weight: 600;
    margin-bottom: 2px;
}

.author-title {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ========================================
   CONTACT SECTION
======================================== */
.contact-section {
    background: var(--bg-secondary);
}

.contact-heading {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.contact-text {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
}

.contact-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.contact-content a,
.contact-content span {
    color: var(--text-primary);
    font-weight: 500;
}

.contact-content a:hover {
    color: var(--accent-blue);
}

.contact-socials {
    display: flex;
    gap: 12px;
}

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

.social-btn:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    transform: translateY(-5px);
}

.contact-form {
    padding: 40px;
}

.form-label {
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-control {
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 14px 18px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    background: var(--bg-tertiary);
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    color: var(--text-primary);
}

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

textarea.form-control {
    resize: none;
}

/* ========================================
   FOOTER
======================================== */
.footer {
    background: var(--bg-tertiary);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--glass-border);
}

.footer-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 8px;
}

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

.footer-links a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-blue);
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-socials a:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
}

.footer-bottom {
    padding-top: 30px;
    text-align: center;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ========================================
   BACK TO TOP BUTTON
======================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-glow);
}

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

.back-to-top:hover {
    transform: translateY(-5px);
}

/* ========================================
   RESPONSIVE STYLES
======================================== */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: var(--bg-secondary);
        padding: 20px;
        border-radius: var(--border-radius);
        margin-top: 15px;
        border: 1px solid var(--glass-border);
        box-shadow: var(--shadow-soft);
    }

    .nav-link {
        padding: 12px 16px !important;
        margin: 5px 0;
    }

    .nav-link::before {
        display: none;
    }

    .theme-toggle {
        margin-top: 15px;
        margin-left: 10px !important;
    }

    .hero-section {
        padding-top: 100px;
        padding-bottom: 60px;
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
        padding: 0 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
        width: 100%;
    }

    .hero-socials {
        justify-content: center;
    }

    .timeline {
        padding-left: 60px;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-marker {
        left: -60px;
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 767.98px) {
    .section {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.4rem;
        min-height: 4.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .timeline {
        padding-left: 45px;
    }

    .timeline::before {
        left: 12px;
    }

    .timeline-marker {
        left: -48px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 0px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .scroll-indicator {
        display: none;
    }

    .contact-form {
        padding: 20px;
    }

    .about-image-wrapper {
        max-width: 280px;
        margin: 0 auto 30px;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-greeting {
        font-size: 0.8rem;
        padding: 5px 12px;
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        min-height: 4rem;
    }

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

    .tech-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .hero-buttons .btn {
        padding: 12px 24px;
    }
}

/* ========================================
   UTILITY CLASSES
======================================== */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.parallax {
    transform: translateZ(0);
    will-change: transform;
}

/* Fix global overflow issue often caused by AOS */
body,
html {
    overflow-x: hidden;
    width: 100%;
}