/* ==========================================
   RAJESH GUJARATI - PORTFOLIO STYLES
   Premium 3D Animated Portfolio
   ========================================== */

/* CSS Variables */
:root {
    /* Colors */
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --secondary: #06b6d4;
    --accent: #f472b6;
    --success: #10b981;

    /* Neutrals */
    --bg-dark: #0a0a0f;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a25;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: rgba(255, 255, 255, 0.1);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #06b6d4 50%, #f472b6 100%);
    --gradient-text: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
    --gradient-card: linear-gradient(145deg, rgba(99, 102, 241, 0.1), rgba(6, 182, 212, 0.05));

    /* Spacing */
    --section-padding: 120px;
    --container-width: 1200px;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', sans-serif;

    /* Animations */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

/* Container */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================
   ANIMATED BACKGROUND
   ========================================== */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
    overflow: hidden;
}

/* Star Animation */
.stars,
.stars2,
.stars3 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.stars {
    background-image:
        radial-gradient(2px 2px at 20px 30px, #eee, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 160px 120px, #fff, transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: twinkle 5s ease-in-out infinite;
}

.stars2 {
    background-image:
        radial-gradient(1px 1px at 25px 5px, #fff, transparent),
        radial-gradient(1px 1px at 50px 25px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 100px 50px, #fff, transparent),
        radial-gradient(1.5px 1.5px at 125px 90px, rgba(255, 255, 255, 0.8), transparent);
    background-repeat: repeat;
    background-size: 150px 150px;
    animation: twinkle 7s ease-in-out infinite;
    animation-delay: 1s;
}

.stars3 {
    background-image:
        radial-gradient(1.5px 1.5px at 10px 10px, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 70px 120px, #fff, transparent),
        radial-gradient(1.5px 1.5px at 150px 30px, rgba(255, 255, 255, 0.7), transparent);
    background-repeat: repeat;
    background-size: 250px 250px;
    animation: twinkle 9s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

/* ==========================================
   FLOATING 3D SHAPES
   ========================================== */
.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    top: 60%;
    right: 10%;
    animation-delay: -5s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: var(--accent);
    bottom: 20%;
    left: 30%;
    animation-delay: -10s;
}

.shape-4 {
    width: 200px;
    height: 200px;
    background: var(--primary-light);
    top: 40%;
    right: 30%;
    animation-delay: -15s;
}

.shape-5 {
    width: 350px;
    height: 350px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    bottom: 40%;
    left: 60%;
    animation-delay: -7s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    25% {
        transform: translate(50px, -30px) rotate(90deg) scale(1.1);
    }

    50% {
        transform: translate(-30px, 50px) rotate(180deg) scale(0.9);
    }

    75% {
        transform: translate(-50px, -20px) rotate(270deg) scale(1.05);
    }
}

/* ==========================================
   NAVIGATION
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-normal);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    padding: 15px 40px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-logo .logo-text {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
}

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

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

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

.nav-cta {
    display: flex;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: var(--transition-normal);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 15, 0.98);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: 999;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
}

.mobile-nav-link {
    display: block;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: 20px;
    transition: var(--transition-normal);
}

.mobile-nav-link:hover {
    color: var(--primary);
    transform: scale(1.1);
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1.1rem;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 40px 60px;
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--primary-light);
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease forwards;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

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

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.hero-title {
    margin-bottom: 20px;
}

.title-line {
    display: block;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 10px;
    animation: fadeInUp 0.6s ease 0.1s forwards;
    opacity: 0;
}

.title-name {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    animation: fadeInUp 0.6s ease 0.2s forwards;
    opacity: 0;
}

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

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease 0.3s forwards;
    opacity: 0;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 540px;
    animation: fadeInUp 0.6s ease 0.4s forwards;
    opacity: 0;
}

.hero-description .highlight {
    color: var(--primary-light);
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
    animation: fadeInUp 0.6s ease 0.5s forwards;
    opacity: 0;
}

.hero-stats {
    display: flex;
    gap: 50px;
    animation: fadeInUp 0.6s ease 0.6s forwards;
    opacity: 0;
}

.stat {
    text-align: left;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-number::after {
    content: '+';
    color: var(--primary);
}

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

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

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

/* ==========================================
   3D CUBE ANIMATION
   ========================================== */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.hero-3d-container {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cube-container {
    width: 180px;
    height: 180px;
    perspective: 800px;
    transform-style: preserve-3d;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 15s linear infinite;
}

@keyframes rotateCube {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }

    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

.cube-face {
    position: absolute;
    width: 180px;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(5px);
}

.cube-front {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.8), rgba(99, 102, 241, 0.4));
    transform: translateZ(90px);
}

.cube-back {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.8), rgba(6, 182, 212, 0.4));
    transform: rotateY(180deg) translateZ(90px);
}

.cube-right {
    background: linear-gradient(135deg, rgba(244, 114, 182, 0.8), rgba(244, 114, 182, 0.4));
    transform: rotateY(90deg) translateZ(90px);
}

.cube-left {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.8), rgba(16, 185, 129, 0.4));
    transform: rotateY(-90deg) translateZ(90px);
}

.cube-top {
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.8), rgba(129, 140, 248, 0.4));
    transform: rotateX(90deg) translateZ(90px);
}

.cube-bottom {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.8), rgba(79, 70, 229, 0.4));
    transform: rotateX(-90deg) translateZ(90px);
}

/* Orbit Rings */
.orbit-rings {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.orbit-1 {
    width: 250px;
    height: 250px;
    animation: rotateOrbit 10s linear infinite;
}

.orbit-2 {
    width: 320px;
    height: 320px;
    animation: rotateOrbit 15s linear infinite reverse;
    border-color: rgba(6, 182, 212, 0.2);
}

.orbit-3 {
    width: 390px;
    height: 390px;
    animation: rotateOrbit 20s linear infinite;
    border-color: rgba(244, 114, 182, 0.15);
}

@keyframes rotateOrbit {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Floating Icons */
.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.icon-bubble {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    backdrop-filter: blur(5px);
    animation: floatIcon 6s ease-in-out infinite;
}

.icon-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.icon-2 {
    top: 15%;
    right: 10%;
    animation-delay: -1.5s;
}

.icon-3 {
    bottom: 15%;
    left: 5%;
    animation-delay: -3s;
}

.icon-4 {
    bottom: 10%;
    right: 15%;
    animation-delay: -4.5s;
}

@keyframes floatIcon {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.85rem;
    animation: fadeIn 1s ease 1s forwards;
    opacity: 0;
}

.scroll-arrow {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    transform: translateX(-50%);
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(15px);
    }
}

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

/* ==========================================
   SECTION HEADERS
   ========================================== */
.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about {
    padding: var(--section-padding) 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-lead {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.highlight-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: var(--transition-normal);
}

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

.highlight-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.highlight-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.highlight-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
}

/* Profile Card */
.about-visual {
    display: flex;
    justify-content: center;
}

.profile-card {
    position: relative;
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    text-align: center;
    overflow: hidden;
}

.profile-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, var(--primary), transparent 30%);
    animation: rotateGlow 4s linear infinite;
    opacity: 0.3;
}

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

    to {
        transform: rotate(360deg);
    }
}

.profile-image {
    position: relative;
    z-index: 1;
    margin-bottom: 24px;
}

.profile-placeholder {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.4);
}

.profile-photo {
    width: 180px;
    height: 180px;
    margin: 0 auto;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 4px solid transparent;
    background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
        var(--gradient-primary) border-box;
    box-shadow:
        0 10px 40px rgba(99, 102, 241, 0.4),
        0 0 0 4px rgba(99, 102, 241, 0.1),
        0 0 60px rgba(99, 102, 241, 0.2);
    transition: var(--transition-normal);
    animation: profilePulse 3s ease-in-out infinite;
}

.profile-photo:hover {
    transform: scale(1.05);
    box-shadow:
        0 15px 50px rgba(99, 102, 241, 0.5),
        0 0 0 6px rgba(99, 102, 241, 0.2),
        0 0 80px rgba(99, 102, 241, 0.3);
}

@keyframes profilePulse {

    0%,
    100% {
        box-shadow:
            0 10px 40px rgba(99, 102, 241, 0.4),
            0 0 0 4px rgba(99, 102, 241, 0.1),
            0 0 60px rgba(99, 102, 241, 0.2);
    }

    50% {
        box-shadow:
            0 12px 45px rgba(99, 102, 241, 0.45),
            0 0 0 6px rgba(99, 102, 241, 0.15),
            0 0 70px rgba(99, 102, 241, 0.25);
    }
}

.profile-info {
    position: relative;
    z-index: 1;
}

.profile-info h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.profile-info>p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.profile-location {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================================
   EXPERIENCE SECTION
   ========================================== */
.experience {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.03), transparent);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary), var(--accent));
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    padding-bottom: 50px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.timeline-item:nth-child(1) {
    animation-delay: 0.1s;
}

.timeline-item:nth-child(2) {
    animation-delay: 0.2s;
}

.timeline-item:nth-child(3) {
    animation-delay: 0.3s;
}

.timeline-item:nth-child(4) {
    animation-delay: 0.4s;
}

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

.timeline-marker {
    position: absolute;
    left: 20px;
    top: 5px;
}

.marker-dot {
    width: 22px;
    height: 22px;
    background: var(--bg-dark);
    border: 3px solid var(--primary);
    border-radius: 50%;
    position: relative;
}

.marker-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    transition: var(--transition-normal);
}

.timeline-content:hover {
    transform: translateX(10px);
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.1);
}

.timeline-header {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.company-logo {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.timeline-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.timeline-info h4 {
    font-size: 1rem;
    color: var(--primary-light);
    font-weight: 500;
    margin-bottom: 5px;
}

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

.timeline-content>p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

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

.tag {
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary-light);
}

/* ==========================================
   PROJECTS SECTION
   ========================================== */
.projects {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, transparent, rgba(6, 182, 212, 0.03), transparent);
}

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

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition-normal);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.project-card:nth-child(1) {
    animation-delay: 0.1s;
}

.project-card:nth-child(2) {
    animation-delay: 0.2s;
}

.project-card:nth-child(3) {
    animation-delay: 0.3s;
}

.project-card:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.2);
}

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

.project-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-card);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.project-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
    transition: var(--transition-normal);
}

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

.project-icon {
    font-size: 4rem;
    opacity: 0.8;
    transition: var(--transition-normal);
}

.project-card:hover .project-icon {
    transform: scale(1.2);
    opacity: 1;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9), rgba(6, 182, 212, 0.9));
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition-normal);
    z-index: 2;
}

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

.project-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: white;
    color: var(--primary-dark);
    border-radius: 50px;
    font-weight: 600;
    transform: translateY(20px);
    transition: var(--transition-normal);
}

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

.project-link:hover {
    background: var(--bg-dark);
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.project-content {
    padding: 25px;
}

.project-content h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
    transition: var(--transition-normal);
}

.project-card:hover .project-content h3 {
    color: var(--primary-light);
}

.project-content>p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

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

/* ==========================================
   SKILLS SECTION
   ========================================== */
.skills {
    padding: var(--section-padding) 0;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 35px;
    transition: var(--transition-normal);
}

.skill-category:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.1);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.category-icon {
    font-size: 2rem;
}

.category-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skill-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.skill-icon-small {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.tag-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    margin-right: 6px;
    vertical-align: middle;
}

.skill-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.skill-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    width: 0;
    transition: width 1.5s ease;
}

/* Industry Tags */
.industry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.industry-tag {
    padding: 12px 20px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: var(--transition-normal);
}

.industry-tag:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.05);
}

/* AI & Emerging Tech Category */
.ai-category {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(6, 182, 212, 0.05));
}

.ai-category .category-header {
    flex-wrap: wrap;
}

.learning-badge {
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--success), #059669);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
}

.ai-skills-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 20px;
}

.ai-skills-group h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.ai-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ai-tag {
    padding: 10px 18px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: var(--transition-normal);
    cursor: default;
}

.ai-tag:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.ai-note {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(99, 102, 241, 0.08);
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-style: italic;
}

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

/* Trust Section */
.trust-section {
    padding: 60px 0;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.client-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
    align-items: center;
    justify-items: center;
}

.client-logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    opacity: 0.6;
    transition: var(--transition-normal);
    filter: grayscale(1);
}

.client-logo-item:hover {
    opacity: 1;
    filter: grayscale(0);
    transform: translateY(-5px);
}

.client-logo-item img {
    height: 45px;
    max-width: 150px;
    object-fit: contain;
}

.client-logo-item span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 992px) {
    .client-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .client-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, transparent, rgba(6, 182, 212, 0.03), transparent);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: var(--transition-normal);
}

.contact-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-light);
}

.contact-details h4 {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-details a,
.contact-details span {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

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

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    font-weight: 500;
    transition: var(--transition-normal);
}

.social-link.linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 119, 181, 0.3);
}

.social-link.email:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    padding: 60px 0 40px;
    border-top: 1px solid var(--border);
}

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

.footer-logo {
    text-align: center;
}

.footer-logo .logo-text {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-logo p {
    color: var(--text-muted);
    margin-top: 8px;
}

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

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

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

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

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        order: 2;
    }

    .hero-visual {
        order: 1;
    }

    .hero-3d-container {
        width: 300px;
        height: 300px;
    }

    .cube-container {
        width: 140px;
        height: 140px;
    }

    .cube-face {
        width: 140px;
        height: 140px;
        font-size: 1.2rem;
    }

    .cube-front {
        transform: translateZ(70px);
    }

    .cube-back {
        transform: rotateY(180deg) translateZ(70px);
    }

    .cube-right {
        transform: rotateY(90deg) translateZ(70px);
    }

    .cube-left {
        transform: rotateY(-90deg) translateZ(70px);
    }

    .cube-top {
        transform: rotateX(90deg) translateZ(70px);
    }

    .cube-bottom {
        transform: rotateX(-90deg) translateZ(70px);
    }

    .orbit-1 {
        width: 200px;
        height: 200px;
    }

    .orbit-2 {
        width: 250px;
        height: 250px;
    }

    .orbit-3 {
        width: 300px;
        height: 300px;
    }

    .hero-description {
        max-width: 100%;
    }

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

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

    .about-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-visual {
        order: -1;
    }

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

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
    }

    .navbar {
        padding: 15px 20px;
    }

    .nav-links,
    .nav-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        padding: 100px 20px 60px;
    }

    .hero-badge {
        font-size: 0.8rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .stat {
        text-align: center;
    }

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

    .btn-lg {
        width: 100%;
        max-width: 280px;
    }

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

    .timeline-item {
        padding-left: 50px;
    }

    .timeline-marker {
        left: 5px;
    }

    .timeline-header {
        flex-direction: column;
        gap: 15px;
    }

    .company-logo {
        width: 50px;
        height: 50px;
    }

    .social-links {
        flex-direction: column;
        align-items: center;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-image {
        height: 180px;
    }

    .social-link {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

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

    .ai-skills-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .ai-note {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .hero-3d-container {
        width: 250px;
        height: 250px;
    }

    .cube-container {
        width: 100px;
        height: 100px;
    }

    .cube-face {
        width: 100px;
        height: 100px;
        font-size: 0.9rem;
    }

    .cube-front {
        transform: translateZ(50px);
    }

    .cube-back {
        transform: rotateY(180deg) translateZ(50px);
    }

    .cube-right {
        transform: rotateY(90deg) translateZ(50px);
    }

    .cube-left {
        transform: rotateY(-90deg) translateZ(50px);
    }

    .cube-top {
        transform: rotateX(90deg) translateZ(50px);
    }

    .cube-bottom {
        transform: rotateX(-90deg) translateZ(50px);
    }

    .orbit-1 {
        width: 150px;
        height: 150px;
    }

    .orbit-2 {
        width: 190px;
        height: 190px;
    }

    .orbit-3 {
        width: 230px;
        height: 230px;
    }

    .icon-bubble {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .section-header {
        margin-bottom: 50px;
    }

    .highlight-card {
        flex-direction: column;
        text-align: center;
    }

    .timeline-content {
        padding: 20px;
    }

    .skill-category {
        padding: 25px;
    }
}