/* ===== VARIABLES ===== */
:root {
    /* Color Scheme - White Theme */
    --primary-color: #4f46e5;
    --primary-color-dark: #3730a3;
    --primary-color-light: #6366f1;
    --secondary-color: #06b6d4;
    --secondary-color-dark: #0891b2;
    --background-color: #ffffff;
    --surface-color: #f8fafc;
    --surface-color-light: #f1f5f9;
    --text-color: #0f172a;
    --text-color-secondary: #334155;
    --text-color-tertiary: #64748b;
    --error-color: #ef4444;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --border-color: #e2e8f0;
    --shadow-color: rgba(15, 23, 42, 0.08);

    /* Typography */
    --font-family: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --fs-xl: 4.5rem;
    --fs-heading-1: 3.5rem;
    --fs-heading-2: 2.5rem;
    --fs-heading-3: 2rem;
    --fs-heading-4: 1.5rem;
    --fs-body: 1rem;
    --fs-small: 0.875rem;
    --fs-xs: 0.75rem;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
    --spacing-xxxl: 5rem;

    /* Border Radius */
    --border-radius-sm: 6px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    --border-radius-circle: 50%;

    /* Shadows */
    --shadow-sm: 0 1px 3px var(--shadow-color), 0 1px 2px var(--shadow-color);
    --shadow-md: 0 4px 6px var(--shadow-color), 0 2px 4px var(--shadow-color);
    --shadow-lg: 0 10px 15px var(--shadow-color), 0 4px 6px var(--shadow-color);
    --shadow-xl: 0 20px 25px var(--shadow-color), 0 10px 10px var(--shadow-color);

    /* Transitions */
    --transition-fast: 0.15s ease-out;
    --transition-normal: 0.2s ease-out;
    --transition-slow: 0.3s ease-out;

    /* Container */
    --container-width: 1300px;
    --container-padding: 1.5rem;
}

/* ===== ANIMATIONS REMOVED ===== */

/* Scroll animation delays removed */

/* ===== RESET & BASE STYLES ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

body {
    font-family: var(--font-family);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
}

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

h1 {
    font-size: var(--fs-heading-1);
}

h2 {
    font-size: var(--fs-heading-2);
}

h3 {
    font-size: var(--fs-heading-3);
}

h4 {
    font-size: var(--fs-heading-4);
}

p {
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--primary-color-light);
}

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

ul, ol {
    list-style-position: inside;
}

button {
    cursor: pointer;
    font-family: var(--font-family);
}

input, textarea, button {
    font-family: inherit;
}

/* ===== UTILITY CLASSES ===== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-normal);
    border: none;
    outline: none;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-color);
    box-shadow: 0 4px 20px rgba(126, 87, 194, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-color-dark);
    box-shadow: 0 6px 24px rgba(126, 87, 194, 0.5);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--text-color);
    transform: translateY(-2px);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

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

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

.preloader.hide {
    opacity: 0;
    visibility: hidden;
}

.loader {
    display: flex;
    align-items: center;
}

.loader .circle {
    display: block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin: 0 10px;
    background-color: var(--primary-color);
    animation: pulse 1.5s ease-in-out infinite;
}

.loader .circle:nth-child(2) {
    animation-delay: 0.2s;
}

.loader .circle:nth-child(3) {
    animation-delay: 0.4s;
}

.loader .circle:nth-child(4) {
    animation-delay: 0.6s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* ===== CUSTOM CURSOR ===== */
.cursor {
    position: fixed;
    width: 12px;
    height: 12px;
    background-color: var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, opacity 0.2s;
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: 0.1s ease-out;
}

body:hover .cursor,
body:hover .cursor-follower {
    opacity: 1;
}

/* Small devices don't need custom cursor */
@media (max-width: 768px) {
    .cursor, .cursor-follower {
        display: none;
    }
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(255,255,255,0.9);
    transition: background-color var(--transition-normal), padding var(--transition-normal);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.header.scrolled {
    background-color: #ffffff;
    backdrop-filter: blur(6px);
    box-shadow: var(--shadow-md);
    padding: 0.8rem 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    position: relative;
}

.logo a {
    display: flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
}

.logo-text {
    z-index: 1;
    position: relative;
}

.logo-dot {
    position: relative;
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 50%;
    margin-left: 5px;
    display: inline-block;
}

.logo-dot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 50%;
    animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
    opacity: 0.6;
}

@keyframes ping {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
    padding: 0.5rem 0;
}

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

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

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

.nav-toggle {
    display: none;
    cursor: pointer;
}

.hamburger {
    width: 30px;
    height: 24px;
    position: relative;
    transform: rotate(0deg);
    transition: 0.5s ease-in-out;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--text-color);
    border-radius: 9px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: 0.25s ease-in-out;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 10px;
}

.hamburger span:nth-child(3) {
    top: 20px;
}

.hamburger.open span:nth-child(1) {
    top: 10px;
    transform: rotate(135deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.hamburger.open span:nth-child(3) {
    top: 10px;
    transform: rotate(-135deg);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 6rem 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 30%, #e2e8f0 60%, #ffffff 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: 
        radial-gradient(circle at 20% 50%, rgba(79, 70, 229, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(6, 182, 212, 0.03) 0%, transparent 50%);
}

.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
    z-index: 1;
}

.hero-text {
    max-width: 700px;
}

.hero-socials {
    position: absolute;
    right: 50px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.social-link:hover {
    background-color: var(--primary-color);
    color: var(--text-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(126, 87, 194, 0.3);
}

.animate-text {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
}

.greeting {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-color-secondary);
    margin-bottom: 10px;
}

.name {
    font-size: var(--fs-xl);
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradient 8s ease infinite;
    background-size: 200% auto;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-color-secondary);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-color-secondary);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.hero-tech-stack {
    margin-top: 2rem;
}

.hero-tech-label {
    font-size: 0.9rem;
    color: var(--text-color-secondary);
    margin-bottom: 1rem;
    font-weight: 500;
}

.hero-tech-icons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.hero-tech-icons i {
    font-size: 2.5rem;
    transition: all var(--transition-normal);
    opacity: 0.8;
}

.hero-tech-icons i:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* ===== HERO IMAGE SECTION ===== */
.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.profile-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-image {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: all var(--transition-normal);
}

.profile-image:hover .profile-img {
    transform: scale(1.02);
}

.profile-border {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    background-size: 400% 400%;
    animation: gradient 3s ease infinite;
    z-index: -1;
}

@keyframes gradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.floating-elements {
    position: absolute;
    width: 400px;
    height: 400px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--background-color);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    animation: none;
}

.floating-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.floating-icon:nth-child(1) {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.floating-icon:nth-child(2) {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}

.floating-icon:nth-child(3) {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.floating-icon:nth-child(4) {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

/* Floating orbit animation removed */

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.mouse {
    width: 28px;
    height: 50px;
    border: 2px solid var(--text-color-secondary);
    border-radius: 20px;
    position: relative;
}

.wheel {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--text-color);
    border-radius: 50%;
    animation: wheel 2s infinite;
}

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

.arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.arrow span {
    display: block;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid var(--text-color-secondary);
    border-right: 2px solid var(--text-color-secondary);
    transform: rotate(45deg);
    animation: arrow 2s infinite;
}

.arrow span:nth-child(2) {
    animation-delay: -0.2s;
}

.arrow span:nth-child(3) {
    animation-delay: -0.4s;
}

@keyframes arrow {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-20px, -20px);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: rotate(45deg) translate(20px, 20px);
    }
}

/* ===== RESPONSIVE STYLES FOR HEADER & HERO ===== */
@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-socials {
        position: static;
        flex-direction: row;
        margin-top: 2rem;
        justify-content: center;
    }

    .name {
        font-size: 3.5rem;
    }

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

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        flex-direction: column;
        background-color: var(--surface-color);
        width: 80%;
        height: 100vh;
        z-index: 1000;
        padding-top: 100px;
        transition: right 0.3s ease-in-out;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
        align-items: center;
        gap: 2rem;
    }

    .nav-menu.active {
        right: 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    .profile-image {
        width: 250px;
        height: 250px;
    }
    
    .floating-elements {
        width: 300px;
        height: 300px;
    }
    
    .floating-icon {
        width: 50px;
        height: 50px;
    }
    
    .floating-icon i {
        font-size: 1.2rem;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .name {
        font-size: 2.8rem;
    }

    .title {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-tech-icons {
        gap: 1rem;
        justify-content: center;
    }
    
    .hero-tech-icons i {
        font-size: 2rem;
    }

    .animate-text {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: 2.2rem;
    }

    .title {
        font-size: 1.3rem;
    }

    .greeting {
        font-size: 1.2rem;
    }
    
    .profile-image {
        width: 200px;
        height: 200px;
    }
    
    .floating-elements {
        width: 250px;
        height: 250px;
    }
    
    .floating-icon {
        width: 40px;
        height: 40px;
    }
    
    .floating-icon i {
        font-size: 1rem;
    }
    
    .hero-tech-icons {
        gap: 0.8rem;
    }
    
    .hero-tech-icons i {
        font-size: 1.8rem;
    }

    .scroll-indicator {
        display: none;
    }

    .btn {
        width: 100%;
    }
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(126, 87, 194, 0.1) 0%, rgba(126, 87, 194, 0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}

.about-description {
    font-size: 1.1rem;
    color: var(--text-color-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

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

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

.stat-title {
    font-size: 0.9rem;
    color: var(--text-color-secondary);
}

.about-cta {
    margin-top: 2rem;
}

.about-skills {
    background-color: var(--surface-color);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.about-skills::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.skills-title {
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    position: relative;
    display: inline-block;
}

.skills-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.skill-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.skill-tab {
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    background-color: var(--surface-color-light);
    color: var(--text-color-secondary);
}

.skill-tab.active {
    background-color: var(--primary-color);
    color: var(--text-color);
}

.skill-content {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.skill-content.active {
    display: grid;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
    background: var(--background-color);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

/* Animation delays removed */

.skill-item:hover {
    background: var(--primary-color);
    border-color: var(--primary-color-light);
    box-shadow: var(--shadow-lg);
    color: white;
}

.skill-item i {
    font-size: 2.5rem;
    transition: all var(--transition-normal);
}

.skill-item:hover i {
    filter: brightness(1.2);
}

.skill-item span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color-secondary);
    text-align: center;
    transition: all var(--transition-normal);
}

.skill-item:hover span {
    color: white;
    font-weight: 600;
}

/* Legacy skill-tag styles for backward compatibility */
.skill-tag {
    padding: 0.5rem 1rem;
    background-color: var(--surface-color-light);
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color-secondary);
    transition: all var(--transition-normal);
}

.skill-tag:hover {
    transform: translateY(-3px);
    background-color: var(--primary-color);
    color: var(--text-color);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.2);
}

/* ===== EXPERIENCE SECTION ===== */
.experience {
    padding: 8rem 0;
    background-color: var(--surface-color-light);
    position: relative;
    overflow: hidden;
}

.experience::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(var(--primary-color-dark) 1px, transparent 1px),
        radial-gradient(var(--primary-color-dark) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: 0 0, 25px 25px;
    opacity: 0.03;
    z-index: 0;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    z-index: 1;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background-color: rgba(255, 255, 255, 0.1);
    top: 0;
    bottom: 0;
    left: 20px;
    margin-left: -1px;
}

.timeline-item {
    padding-left: 60px;
    position: relative;
    margin-bottom: 50px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 12px;
    background-color: var(--primary-color);
    border: 4px solid var(--surface-color);
    top: 0;
    border-radius: 50%;
    z-index: 1;
}

.timeline-content {
    background-color: var(--surface-color);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--surface-color);
    transform: rotate(45deg);
    top: 15px;
    left: -10px;
    z-index: -1;
}

.time-period {
    display: inline-block;
    padding: 0.3rem 1rem;
    background-color: var(--primary-color);
    color: var(--text-color);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.timeline-title {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}

.timeline-company {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    font-weight: 500;
}

.timeline-description {
    list-style-type: none;
    margin-bottom: 1.5rem;
}

.timeline-description li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    color: var(--text-color-secondary);
}

.timeline-description li::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    left: 0;
    top: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.timeline-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background-color: var(--surface-color);
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-color-secondary);
    transition: all var(--transition-normal);
}

.timeline-tag:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color-light);
    color: var(--text-color);
    transform: translateY(-2px);
}

.timeline-tag i {
    font-size: 0.9rem;
}

/* Legacy tag styles */
.tag {
    padding: 0.3rem 0.8rem;
    background-color: var(--surface-color-light);
    border-radius: var(--border-radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-color-secondary);
}

/* ===== PROJECTS SECTION ===== */
.projects {
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.project-filters {
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    background-color: var(--surface-color);
    color: var(--text-color-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--primary-color);
    color: var(--text-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(126, 87, 194, 0.2);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background-color: var(--surface-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.project-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

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

.project-info {
    padding: 1.5rem;
}

.project-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background-color: var(--primary-color);
    color: var(--text-color);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

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

.project-features {
    margin-bottom: 1.5rem;
}

.project-features h4 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    color: var(--text-color);
}

.project-features ul {
    list-style-type: none;
}

.project-features li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-color-secondary);
}

.project-features li::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    left: 0;
    top: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.2rem;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background-color: var(--surface-color-light);
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-color-secondary);
    transition: all var(--transition-normal);
}

.tech-item:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color-light);
    color: var(--text-color);
    transform: translateY(-2px);
}

.tech-item i {
    font-size: 1rem;
}

/* Legacy tech-tag styles */
.tech-tag {
    padding: 0.3rem 0.8rem;
    background-color: var(--surface-color-light);
    border-radius: var(--border-radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-color-secondary);
}

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

.project-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--surface-color-light);
    color: var(--text-color-secondary);
    transition: all var(--transition-normal);
}

.project-link:hover {
    background-color: var(--primary-color);
    color: var(--text-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(126, 87, 194, 0.2);
}

/* ===== RESPONSIVE STYLES FOR ABOUT, EXPERIENCE, PROJECTS ===== */
@media (max-width: 991px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-stats {
        justify-content: space-around;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .about {
        padding: 6rem 0;
    }

    .experience {
        padding: 6rem 0;
    }

    .projects {
        padding: 6rem 0;
    }

    .about-stats {
        flex-wrap: wrap;
    }

    .skill-tabs {
        justify-content: center;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .about {
        padding: 5rem 0;
    }

    .experience {
        padding: 5rem 0;
    }

    .projects {
        padding: 5rem 0;
    }

    .timeline-content {
        padding: 20px;
    }

    .timeline-title {
        font-size: 1.3rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* ===== EDUCATION SECTION ===== */
.education {
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.education::before {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(126, 87, 194, 0.1) 0%, rgba(126, 87, 194, 0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.education-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.education-card {
    background-color: var(--surface-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-normal);
}

.education-card:hover {
    transform: translateY(-5px);
}

.education-header {
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.education-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    border-radius: 50%;
    font-size: 1.8rem;
    color: var(--text-color);
}

.education-title h3 {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}

.education-title p {
    color: var(--text-color-secondary);
    font-size: 1rem;
    margin-bottom: 0;
}

.education-body {
    padding: 2rem;
    flex: 1;
}

.education-details {
    margin-bottom: 1.5rem;
}

.education-institution {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.education-location {
    color: var(--primary-color);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.education-years {
    font-size: 0.9rem;
    color: var(--text-color-secondary);
}

.education-achievements h4 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
}

.education-achievements ul {
    list-style-type: none;
}

.education-achievements li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-color-secondary);
}

.education-achievements li::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    left: 0;
    top: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.certifications {
    background-color: var(--surface-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.certifications-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.certifications-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.certification-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.certification-card {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.2rem;
    background-color: var(--surface-color-light);
    border-radius: var(--border-radius-md);
    transition: all var(--transition-normal);
}

.certification-card:hover {
    transform: translateX(10px);
    background-color: var(--primary-color);
}

.certification-card:hover .certification-info h4,
.certification-card:hover .certification-info p {
    color: var(--text-color);
}

.certification-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--surface-color);
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: all var(--transition-normal);
}

.certification-card:hover .certification-icon {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--text-color);
}

.certification-info h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    transition: color var(--transition-normal);
}

.certification-info p {
    font-size: 0.9rem;
    color: var(--text-color-secondary);
    margin-bottom: 0;
    transition: color var(--transition-normal);
}

.cert-credential {
    color: var(--primary-color) !important;
    font-weight: 500;
    font-size: 0.85rem !important;
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: 8rem 0;
    background-color: var(--surface-color-light);
    position: relative;
    overflow: hidden;
}

.contact::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(var(--primary-color-dark) 1px, transparent 1px),
        radial-gradient(var(--primary-color-dark) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: 0 0, 25px 25px;
    opacity: 0.03;
    z-index: 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    z-index: 1;
    position: relative;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-card {
    display: flex;
    gap: 1.5rem;
    background-color: var(--surface-color);
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    transition: transform var(--transition-normal);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(126, 87, 194, 0.1);
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.contact-card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-card-content p,
.contact-card-content a {
    color: var(--text-color-secondary);
    font-size: 1rem;
    transition: color var(--transition-normal);
}

.contact-card-content a:hover {
    color: var(--primary-color);
}

.contact-socials {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.contact-social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--surface-color);
    color: var(--text-color-secondary);
    font-size: 1.2rem;
    transition: all var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-social-link:hover {
    background-color: var(--primary-color);
    color: var(--text-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(126, 87, 194, 0.3);
}

.contact-form-container {
    background-color: var(--surface-color);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    background-color: var(--surface-color-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    color: var(--text-color);
    font-size: 1rem;
    transition: all var(--transition-normal);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(126, 87, 194, 0.25);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-color-tertiary);
}

/* ===== FOOTER ===== */
.footer {
    padding: 3rem 0 1.5rem;
    background-color: var(--surface-color);
    position: relative;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 2rem;
}

.footer-logo {
    margin-bottom: 1.5rem;
    font-size: 2rem;
    font-weight: 700;
}

.footer-text {
    max-width: 500px;
    margin-bottom: 2rem;
    color: var(--text-color-secondary);
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--surface-color-light);
    color: var(--text-color-secondary);
    font-size: 1.1rem;
    transition: all var(--transition-normal);
}

.footer-social-link:hover {
    background-color: var(--primary-color);
    color: var(--text-color);
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.9rem;
    color: var(--text-color-tertiary);
    margin-bottom: 0;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--text-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-normal);
}

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

.back-to-top:hover {
    background-color: var(--primary-color-dark);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(126, 87, 194, 0.4);
}

/* ===== RESPONSIVE STYLES FOR EDUCATION, CONTACT, FOOTER ===== */
@media (max-width: 991px) {
    .education-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .education {
        padding: 6rem 0;
    }

    .contact {
        padding: 6rem 0;
    }

    .contact-info {
        order: 2;
    }

    .contact-form-container {
        order: 1;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .education {
        padding: 5rem 0;
    }

    .contact {
        padding: 5rem 0;
    }

    .contact-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.2rem;
    }

    .education-header {
        padding: 1.5rem;
    }

    .education-body {
        padding: 1.5rem;
    }

    .contact-form-container {
        padding: 1.5rem;
    }

    .footer {
        padding: 2rem 0 1rem;
    }
}

/* ===== RESPONSIVE SKILLS AND TECH ITEMS ===== */
@media (max-width: 768px) {
    .skill-content {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.75rem;
    }
    
    .skill-item {
        padding: 1rem 0.5rem;
    }
    
    .skill-item i {
        font-size: 2rem;
    }
    
    .skill-item span {
        font-size: 0.8rem;
    }
    
    .tech-item {
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
        gap: 0.4rem;
    }
    
    .timeline-tag {
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
        gap: 0.4rem;
    }
}

@media (max-width: 480px) {
    .skill-content {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 0.5rem;
    }
    
    .skill-item {
        padding: 0.8rem 0.4rem;
    }
    
    .skill-item i {
        font-size: 1.8rem;
    }
    
    .skill-item span {
        font-size: 0.75rem;
    }
}
