:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #f59e0b;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-dark: #111827;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

.preloader-content {
    text-align: center;
    color: white;
}

.preloader-logo {
    margin-bottom: 2rem;
}

.preloader-logo img {
    height: 80px;
    width: auto;
    filter: brightness(0) invert(1);
}

.preloader-logo-text {
    font-size: 3rem;
    font-weight: 800;
    color: white;
}

.progress-container {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto 1rem;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0.8));
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s ease;
    animation: progressGlow 2s infinite;
}

@keyframes progressGlow {
    0%, 100% { box-shadow: 0 0 5px rgba(255, 255, 255, 0.5); }
    50% { box-shadow: 0 0 20px rgba(255, 255, 255, 0.8); }
}

.loading-text {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.9;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.9; }
    50% { opacity: 0.6; }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

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

.scroll-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.scroll-to-top span {
    display: block;
    line-height: 1;
}

/* Cursor Trail */
.cursor-trail {
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    mix-blend-mode: difference;
}

.cursor-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background-image: url('img/logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.7;
    border-radius: 50%;
    pointer-events: none;
    animation: cursorFade 0.8s ease-out forwards;
    filter: invert(1);
}

/* Fallback for when logo is not available */
.cursor-dot:empty::after {
    content: 'SB';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8px;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    line-height: 1;
}

.cursor-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: cursorGlow 0.8s ease-out forwards;
}

@keyframes cursorGlow {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
}

.logo img {
    height: 45px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    filter: brightness(0);
}

.logo:hover {
    transform: scale(1.05);
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* Hero Section */
.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
    padding: 2rem 0;
}

@media (max-width: 768px) {
    .hero {
        min-height: 60vh;
        padding: 1rem 0;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 70vh;
        padding: 1rem 0;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%" r="50%"><stop offset="0%" stop-color="rgba(255,255,255,0.1)"/><stop offset="100%" stop-color="rgba(255,255,255,0)"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="400" cy="700" r="120" fill="url(%23a)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

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

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    color: white;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: clamp(0.75rem, 2vw, 0.875rem);
    font-weight: 500;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    animation: slideInUp 0.8s ease 0.2s both;
    text-align: center;
}


.hero-title {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: slideInUp 0.8s ease 0.4s both;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    animation: slideInUp 0.8s ease 0.6s both;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: slideInUp 0.8s ease 0.8s both;
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .hero-cta .btn {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

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

/* Section Styles */
.section {
    padding: 6rem 0;
    position: relative;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    background: var(--bg-secondary);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-avatar {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    font-weight: 800;
    transition: transform 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.about-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.about-avatar:hover {
    transform: scale(1.05) rotate(2deg);
}

.about-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.about-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

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

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

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

.skill-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.skill-card:hover .skill-icon {
    transform: scale(1.1) rotate(5deg);
}

.skill-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.skill-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Consulting Services Section */
.consulting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.consulting-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.consulting-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.consulting-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.consulting-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease;
}

.consulting-card:hover .consulting-icon {
    transform: scale(1.1) rotate(5deg);
}

.consulting-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.consulting-description {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

.consulting-cta {
    background: var(--bg-secondary);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    border: 1px solid var(--border-color);
}

.cta-content {
    margin-bottom: 2rem;
}

.cta-highlight,
.cta-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.cta-highlight {
    color: var(--text-primary);
}

.cta-note {
    color: var(--text-secondary);
}

.cta-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

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

.cta-buttons .btn-primary {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.cta-buttons .btn-primary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.cta-buttons .btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.cta-buttons .btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    background: var(--bg-primary);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.portfolio-image {
    height: 250px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-content {
    padding: 2rem;
}

.portfolio-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.portfolio-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Experience Section - Tree Timeline */
.experience-timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary), var(--accent));
    border-radius: 2px;
    transform: translateX(-50%);
    z-index: 1;
}

/* Connection lines between cards */
.experience-timeline::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(99, 102, 241, 0.3);
    transform: translateX(-50%);
    z-index: 0;
}

.experience-item {
    position: relative;
    width: 45%;
    margin: 3rem 0;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.experience-item:nth-child(odd) {
    left: 0;
    padding-right: 3rem;
}

.experience-item:nth-child(even) {
    left: 55%;
    padding-left: 3rem;
}

.experience-item.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Tree branches */
.experience-item::before {
    content: '';
    position: absolute;
    top: 2rem;
    width: 3rem;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    z-index: 2;
}

.experience-item:nth-child(odd)::before {
    right: 0;
    background: linear-gradient(to right, var(--primary), rgba(99, 102, 241, 0.3));
}

.experience-item:nth-child(even)::before {
    left: 0;
    background: linear-gradient(to left, var(--primary), rgba(99, 102, 241, 0.3));
}

/* Connecting lines between cards */
.experience-item::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 100%;
    background: rgba(99, 102, 241, 0.2);
    z-index: 0;
}

.experience-item:nth-child(odd)::after {
    right: -1px;
    background: linear-gradient(to bottom, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
}

.experience-item:nth-child(even)::after {
    left: -1px;
    background: linear-gradient(to bottom, rgba(139, 92, 246, 0.2), rgba(245, 158, 11, 0.2));
}

/* Hide connecting line for the last item */
.experience-item:last-child::after {
    display: none;
}

.experience-dot {
    position: absolute;
    width: 24px;
    height: 24px;
    background: var(--primary);
    border-radius: 50%;
    top: 1.5rem;
    border: 5px solid var(--bg-secondary);
    box-shadow: 0 0 0 3px var(--primary);
    z-index: 3;
    animation: treePulse 3s infinite;
}

.experience-item:nth-child(odd) .experience-dot {
    right: -3.25rem;
}

.experience-item:nth-child(even) .experience-dot {
    left: -3.25rem;
}

@keyframes treePulse {
    0% {
        box-shadow: 0 0 0 3px var(--primary), 0 0 0 6px transparent;
    }
    50% {
        box-shadow: 0 0 0 3px var(--primary), 0 0 0 12px rgba(99, 102, 241, 0.2);
    }
    100% {
        box-shadow: 0 0 0 3px var(--primary), 0 0 0 6px transparent;
    }
}

.experience-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    overflow: hidden;
}

.experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 16px 16px 0 0;
}

.experience-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.2);
}

/* Connecting lines from card to card */
.experience-item:not(:last-child) .experience-card::after {
    content: '';
    position: absolute;
    bottom: -1.5rem;
    width: 2px;
    height: 3rem;
    background: linear-gradient(to bottom, var(--primary), transparent);
    z-index: 5;
}

.experience-item:nth-child(odd):not(:last-child) .experience-card::after {
    right: -1px;
    background: linear-gradient(to bottom, var(--primary), rgba(99, 102, 241, 0.3));
}

.experience-item:nth-child(even):not(:last-child) .experience-card::after {
    left: -1px;
    background: linear-gradient(to bottom, var(--secondary), rgba(139, 92, 246, 0.3));
}

/* Arrow pointing to timeline */
.experience-item:nth-child(odd) .experience-card .experience-period::after {
    content: '';
    position: absolute;
    right: -25px;
    top: 50%;
    width: 0;
    height: 0;
    border: 12px solid transparent;
    border-left-color: rgba(99, 102, 241, 0.1);
    transform: translateY(-50%);
    z-index: 2;
}

.experience-item:nth-child(even) .experience-card .experience-period::after {
    content: '';
    position: absolute;
    left: -25px;
    top: 50%;
    width: 0;
    height: 0;
    border: 12px solid transparent;
    border-right-color: rgba(99, 102, 241, 0.1);
    transform: translateY(-50%);
    z-index: 2;
}

.experience-period {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 25px;
    display: inline-block;
    border: 2px solid rgba(99, 102, 241, 0.2);
}

.experience-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.experience-company {
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.experience-company::before {
    content: '🏢';
    font-size: 1.2rem;
}

.experience-description {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
    margin-top: 1rem;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 3rem;
}

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

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.contact-form {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-primary);
    font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-input.error,
.form-textarea.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.error-message::before {
    content: '⚠️';
    font-size: 0.8rem;
}

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

.form-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.form-submit:active {
    transform: translateY(0);
}

.form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.spinner {
    animation: spin 1s linear infinite;
}

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

.g-recaptcha {
    margin: 1rem 0;
    display: flex;
    justify-content: center;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

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

.footer-logo img {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-menu {
        display: none;
    }
    
    .nav-container {
        padding: 0 1rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

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

    .experience-timeline {
        padding: 1rem 0;
    }
    
    .experience-timeline::before {
        left: 2rem;
        width: 3px;
    }
    
    .experience-timeline::after {
        left: 2rem;
        width: 1px;
    }
    
    .experience-item {
        width: 100%;
        left: 0 !important;
        padding-left: 4rem !important;
        padding-right: 1rem !important;
        margin: 2rem 0;
    }
    
    .experience-item::before {
        left: 1rem !important;
        width: 2rem !important;
        right: auto !important;
        top: 1.5rem;
    }
    
    .experience-item::after {
        left: 1.9rem !important;
        width: 1px !important;
        right: auto !important;
    }
    
    .experience-dot {
        left: 1.125rem !important;
        right: auto !important;
        top: 1.25rem !important;
        width: 18px;
        height: 18px;
    }
    
    .experience-card {
        padding: 1.5rem;
        margin-left: 0;
    }
    
    .experience-card::after {
        left: -2rem !important;
        right: auto !important;
        bottom: -1.5rem !important;
        width: 1px !important;
    }
    
    .experience-card .experience-period::after {
        display: none !important;
    }
    
    .experience-title {
        font-size: 1.2rem;
    }
    
    .experience-company {
        font-size: 1rem;
    }
    
    .experience-description {
        font-size: 0.9rem;
    }
    
    .experience-period {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        position: relative;
    }
}

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

    .section-container {
        padding: 0 1rem;
    }

    .hero-container {
        padding: 0 1rem;
    }

    .nav-container {
        padding: 0 1rem;
        height: 70px;
    }
    
    .logo {
        font-size: 1.25rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .consulting-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .consulting-card {
        padding: 2rem;
    }

    .consulting-cta {
        padding: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .about-content h3 {
        font-size: 1.25rem;
    }
    
    .about-content p {
        font-size: 1rem;
    }
    
    .skill-card {
        padding: 1.5rem;
    }
    
    .consulting-card {
        padding: 1.5rem;
    }
    
    .consulting-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 3rem 0;
    }
    
    .section-container {
        padding: 0 0.75rem;
    }
    
    .hero-container {
        padding: 0 0.75rem;
    }
    
    .nav-container {
        height: 60px;
        padding: 0 0.75rem;
    }
    
    .logo {
        font-size: 1rem;
    }
    
    .hero-badge {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .hero-badge span:first-child {
        font-size: 1.25rem;
    }
    
    .about-avatar {
        max-width: 250px;
    }
    
    .stats-grid {
        gap: 0.75rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .skill-card,
    .consulting-card {
        padding: 1.25rem;
    }
    
    .skill-icon,
    .consulting-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .consulting-title {
        font-size: 1.1rem;
    }
    
    .consulting-description {
        font-size: 0.9rem;
    }
    
    .portfolio-item {
        margin-bottom: 1rem;
    }
    
    .portfolio-image {
        height: 200px;
        font-size: 2rem;
    }
    
    .portfolio-content {
        padding: 1.5rem;
    }
    
    .experience-card {
        padding: 1.25rem;
    }
    
    .experience-item {
        min-width: auto;
        width: 100%;
    }
    
    .experience-timeline {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-info,
    .contact-form {
        padding: 2rem;
    }
    
    .g-recaptcha {
        transform: scale(0.9);
        transform-origin: center;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
    
    .footer {
        padding: 2rem 0;
    }
    
    .cta-highlight,
    .cta-note {
        font-size: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Keyframes for cursor animation */
@keyframes cursorFade {
    to {
        opacity: 0;
        transform: scale(2);
    }
}

/* Mobile Responsive for Preloader and Scroll Button */
@media (max-width: 768px) {
    .preloader-logo img {
        height: 60px;
    }
    
    .preloader-logo-text {
        font-size: 2rem;
    }
    
    .progress-container {
        width: 250px;
    }
    
    .scroll-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    /* Hide cursor trail on mobile */
    .cursor-trail {
        display: none;
    }
}

@media (max-width: 480px) {
    .preloader-logo img {
        height: 50px;
    }
    
    .preloader-logo-text {
        font-size: 1.5rem;
    }
    
    .progress-container {
        width: 200px;
    }
    
    .loading-text {
        font-size: 1rem;
    }
    
    .scroll-to-top {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}
