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

:root {
    /* Modern Dark Theme Colors */
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #242424;
    --bg-card: #1e1e1e;
    --bg-glass: rgba(30, 30, 30, 0.8);
    
    /* Enhanced Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-muted: #a0a0a0;
    --text-accent: #f8f9fa;
    
    /* Modern Accent Colors */
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-tertiary: #06b6d4;
    --accent-success: #10b981;
    --accent-warning: #f59e0b;
    
    /* Enhanced Gradients */
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
    --accent-gradient-subtle: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    --glass-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    
    /* Modern Borders and Shadows */
    --border-color: #2a2a2a;
    --border-light: #3a3a3a;
    --shadow-light: rgba(99, 102, 241, 0.15);
    --shadow-medium: rgba(0, 0, 0, 0.3);
    --shadow-dark: rgba(0, 0, 0, 0.6);
    --glow-primary: 0 0 30px rgba(99, 102, 241, 0.3);
    --glow-secondary: 0 0 30px rgba(139, 92, 246, 0.3);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    
    /* Enhanced Spacing */
    --section-padding: 120px 0;
    --container-padding: 0 24px;
    --border-radius: 16px;
    --border-radius-lg: 24px;
    
    /* Smooth Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

/* Prevent scroll restoration on page load */
html, body {
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    background: 
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(6, 182, 212, 0.06) 0%, transparent 50%),
        linear-gradient(135deg, var(--bg-primary) 0%, #0a0a0a 100%);
    background-color: var(--bg-primary);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    transition: var(--transition-medium);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.5rem;
    margin-left: 2rem;
}

.lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-secondary);
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-medium);
}

.lang-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.lang-btn.active {
    background: var(--accent-gradient);
    border-color: var(--accent-primary);
    color: var(--text-primary);
    box-shadow: var(--glow-primary);
}


/* Mobile Responsive for Language Switcher */
@media (max-width: 1000px) {
    .nav-container {
        justify-content: space-between;
        position: relative;
    }
    
    .language-switcher {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin-left: 0;
        gap: 0.25rem;
    }
    
    .lang-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .language-switcher {
        margin-left: 0;
        gap: 0.2rem;
    }
    
    .lang-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
}

.nav-logo .logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: var(--transition-fast);
}

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

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

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    background: transparent;
    border: none;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition-fast);
}

.hamburger:hover {
    background: rgba(99, 102, 241, 0.1);
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--accent-primary);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 70px; /* Only account for navbar - ticker is now absolute */
    margin-top: 50px; /* Add margin for ticker space */
}

/* Ensure hero content is properly spaced on mobile */
@media (max-width: 768px) {
    .hero {
        padding-top: 70px;
        margin-top: 40px; /* Adjust for mobile ticker height */
    }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: var(--accent-gradient);
    opacity: 0.08;
    animation: float 12s linear infinite;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 15s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation-delay: 3s;
    animation-duration: 18s;
    animation-direction: reverse;
}

.shape-3 {
    width: 60px;
    height: 60px;
    bottom: 30%;
    left: 20%;
    animation-delay: 6s;
    animation-duration: 20s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    top: 10%;
    right: 30%;
    animation-delay: 9s;
    animation-duration: 22s;
    animation-direction: reverse;
}

@keyframes float {
    0%, 100% { 
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
    25% { 
        transform: translate3d(20px, -30px, 0) rotate(90deg);
    }
    50% { 
        transform: translate3d(0, -60px, 0) rotate(180deg);
    }
    75% { 
        transform: translate3d(-20px, -30px, 0) rotate(270deg);
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.greeting {
    display: block;
    font-size: 0.6em;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: slideInUp 0.8s ease 0.2s forwards;
}

.name {
    display: block;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    animation: slideInUp 0.8s ease 0.4s forwards;
}

.role {
    display: block;
    font-size: 0.7em;
    color: var(--text-secondary);
    font-weight: 600;
    opacity: 0;
    animation: slideInUp 0.8s ease 0.6s forwards;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    opacity: 0;
    animation: slideInUp 0.8s ease 0.8s forwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: slideInUp 0.8s ease 1s forwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--text-primary);
}

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

.navbar.scrolled {
    background: rgba(15, 15, 15, 0.95);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    border-bottom-color: rgba(99, 102, 241, 0.4);
}

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

.btn-secondary:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

/* Tech Ticker - Seamless Infinite Scroll */
.tech-ticker {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    height: 50px;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    overflow: hidden;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tech-ticker-track {
    display: inline-flex;
    height: 100%;
    white-space: nowrap;
    animation: ticker-scroll 40s linear infinite;
    will-change: transform;
    transform: translateX(0) translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

.tech-ticker-content {
    display: inline-flex;
    align-items: center;
    height: 100%;
    white-space: nowrap;
}

.tech-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.3s ease;
    position: relative;
}

.tech-item::after {
    content: '•';
    margin-left: 2rem;
    color: var(--accent-primary);
    opacity: 0.3;
    font-size: 0.8rem;
}

.tech-item:hover {
    color: var(--accent-primary);
}

.tech-item i {
    font-size: 1.2rem;
    color: var(--accent-primary);
    transition: transform 0.3s ease;
}

.tech-item:hover i {
    transform: scale(1.1);
}

@keyframes ticker-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* Pause animation on hover for better UX */
.tech-ticker:hover .tech-ticker-track {
    animation-play-state: paused;
}

/* Profile Section */
.profile-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: scale(0.8);
    animation: fadeInScale 1s ease 0.5s forwards;
    background: transparent;
}

.profile-ring {
    position: absolute;
    width: 350px;
    height: 350px;
    border: 3px solid transparent;
    border-radius: 50%;
    background: var(--accent-gradient);
    background-clip: padding-box;
    animation: rotate 10s linear infinite 1.5s;
}

.profile-ring::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    background: var(--bg-primary);
    border-radius: 50%;
    z-index: 1;
}

.profile-ring::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
}

.profile-img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    background: var(--bg-primary);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-img:hover {
    transform: scale(1.05);
    box-shadow: 
        0 20px 60px rgba(99, 102, 241, 0.4),
        0 8px 25px rgba(139, 92, 246, 0.3),
        inset 0 0 0 3px rgba(255, 255, 255, 0.1);
}

/* Laptop screens - larger profile image */
@media (min-width: 1025px) and (max-width: 1440px) {
    .profile-ring {
        width: 420px;
        height: 420px;
    }
    
    .profile-img {
        width: 370px;
        height: 370px;
    }
}

/* Full screen desktop - even larger profile image */
@media (min-width: 1441px) {
    .profile-ring {
        width: 500px;
        height: 500px;
    }
    
    .profile-img {
        width: 450px;
        height: 450px;
    }
}


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

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

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeIn 1s ease 2s forwards;
    z-index: 10;
    pointer-events: auto;
}

.scroll-arrow {
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce 2s infinite;
    cursor: pointer;
    background: #1e1e1e;
    position: relative;
    z-index: 11;
}

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

/* Section Styles */
section {
    padding: var(--section-padding);
}

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

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    line-height: 1.2;
    padding: 0.25rem 0;
}

.section-line {
    width: 100px;
    height: 6px;
    background: var(--accent-gradient);
    margin: 0 auto 2rem;
    border-radius: 3px;
    box-shadow: var(--glow-primary);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
}

/* About Section */
.about {
    background: 
        radial-gradient(circle at 70% 30%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 30% 70%, rgba(6, 182, 212, 0.05) 0%, transparent 50%),
        var(--bg-secondary);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 0%, rgba(99, 102, 241, 0.02) 50%, transparent 100%),
        linear-gradient(-45deg, transparent 0%, rgba(139, 92, 246, 0.02) 50%, transparent 100%);
    z-index: 1;
}

.about .container {
    position: relative;
    z-index: 2;
}

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

.text-block {
    margin-bottom: 2rem;
}

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

.text-block p {
    color: var(--text-secondary);
    line-height: 1.8;
}

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

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

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

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Code Window */
.code-window {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px var(--shadow-dark);
    margin-top: 3rem;
}

.window-header {
    background: var(--bg-tertiary);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.window-controls {
    display: flex;
    gap: 0.5rem;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.close { background: #ff5f57; }
.control.minimize { background: #ffbd2e; }
.control.maximize { background: #28ca42; }

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

.code-content {
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.code-line {
    display: flex;
    margin-bottom: 0.5rem;
}

.line-number {
    color: var(--text-muted);
    margin-right: 1rem;
    min-width: 20px;
}

.keyword { color: #ff79c6; }
.variable { color: #8be9fd; }
.property { color: #50fa7b; }
.string { color: #f1fa8c; }
.boolean { color: #bd93f9; }
.comment { color: #6272a4; font-style: italic; }

/* Benefits Section */
.skills {
    background: 
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(6, 182, 212, 0.06) 0%, transparent 50%),
        linear-gradient(135deg, var(--bg-primary) 0%, #0a0a0a 100%);
    position: relative;
    overflow: hidden;
}

.skills-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.skills-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    align-items: stretch;
}

@media (max-width: 1024px) {
    .skills-categories {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Center the third card (Responsywność 100%) */
    .skill-category:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 50%;
        margin: 0 auto;
    }
}

/* Mobile optimizations for tech ticker */
@media (max-width: 768px) {
    .tech-ticker {
        height: 40px;
        position: absolute;
        backdrop-filter: blur(15px);
        pointer-events: none;
    }
    
    .tech-ticker-track {
        animation: ticker-scroll 25s linear infinite;
        transform: translateX(0) translateZ(0);
        backface-visibility: hidden;
    }
    
    .tech-item {
        padding: 0 1.5rem;
        font-size: 0.8rem;
        gap: 0.4rem;
    }
    
    .tech-item i {
        font-size: 1rem;
    }
    
    /* Disable hover effects on mobile for better performance */
    .tech-ticker:hover .tech-ticker-track {
        animation-play-state: running;
    }
    
    .tech-item:hover {
        color: var(--text-secondary);
    }
    
    .tech-item:hover i {
        transform: none;
    }
    
    .skills-categories {
        grid-template-columns: 1fr;
    }
    
    /* Reset third card to full width on mobile */
    .skill-category:nth-child(3) {
        grid-column: auto;
        max-width: 100%;
        margin: 0;
    }
    
    .category-header i {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* Force stats to be vertical on mobile */
    .stats-grid {
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem;
    }
    
    .stat-item {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .tech-ticker {
        height: 35px;
        pointer-events: none;
    }
    
    .tech-ticker-track {
        animation: ticker-scroll 20s linear infinite;
        transform: translateX(0) translateZ(0);
        backface-visibility: hidden;
    }
    
    .tech-item {
        padding: 0 1rem;
        font-size: 0.75rem;
        gap: 0.3rem;
    }
    
    .tech-item i {
        font-size: 0.9rem;
    }
}

.skill-category {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: var(--transition-medium);
}

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

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

.category-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    text-align: center;
    min-height: 8rem;
}

.category-header i {
    width: 80px;
    height: 80px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 10px 30px var(--shadow-light);
    transition: all 0.3s ease;
}

.category-header i:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 20px 40px var(--shadow-light);
}

.category-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.4;
    min-height: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0;
}

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

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

.skill-name {
    font-weight: 600;
}

.skill-level {
    color: var(--accent-primary);
    font-weight: 600;
}

.skill-bar {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
}

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

/* Benefits Content */
.benefit-content {
    padding: 0;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.benefit-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    text-align: center;
    min-height: 10.8rem;
}

.benefit-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 90%;
    text-align: left;
}

.benefit-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: left;
}

.benefit-list li i {
    color: var(--accent-success);
    font-size: 1rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.benefit-list li span {
    flex: 1;
}

/* Portfolio Section */
.portfolio {
    background: 
        radial-gradient(circle at 30% 20%, rgba(99, 102, 241, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.04) 0%, transparent 50%),
        var(--bg-secondary);
    position: relative;
}

.portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, transparent 0%, rgba(139, 92, 246, 0.03) 50%, transparent 100%);
    z-index: 1;
}

.portfolio .container {
    position: relative;
    z-index: 2;
}

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

@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Center the last item if it's odd */
    .portfolio-item:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        max-width: calc(50% - 1rem);
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    /* Reset last item width on mobile */
    .portfolio-item:last-child:nth-child(odd) {
        grid-column: auto;
        max-width: 500px;
        margin: 0 auto;
    }
}

.portfolio-item {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: var(--transition-medium);
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--accent-gradient-subtle);
    opacity: 0;
    transition: var(--transition-medium);
    z-index: 1;
}

.portfolio-item:hover {
    transform: translateY(-12px);
    box-shadow: var(--glow-secondary);
    border-color: var(--accent-secondary);
}

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

.portfolio-image {
    position: relative;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 250px;
    object-fit: fill;
    transition: var(--transition-medium);
    display: block;
    position: relative;
    z-index: 1;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-medium);
    padding: 2rem;
    text-align: center;
    z-index: 10;
}

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

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-info h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

.portfolio-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.portfolio-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.portfolio-tech span {
    background: var(--accent-gradient);
    color: var(--text-primary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

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

.portfolio-link {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    text-decoration: none;
    transition: var(--transition-fast);
    position: relative;
    z-index: 20;
    cursor: pointer;
}

.portfolio-link:hover {
    background: var(--accent-primary);
    color: var(--text-primary);
    transform: scale(1.1);
}

/* Process Section */
.process {
    background: 
        radial-gradient(circle at 40% 60%, rgba(99, 102, 241, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(6, 182, 212, 0.04) 0%, transparent 50%),
        var(--bg-primary);
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

.process::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 0%, rgba(99, 102, 241, 0.03) 50%, transparent 100%),
        linear-gradient(-45deg, transparent 0%, rgba(139, 92, 246, 0.02) 50%, transparent 100%);
    z-index: 1;
}

.process-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.process .container {
    position: relative;
    z-index: 2;
}

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

.process .section-subtitle {
    color: var(--text-secondary);
}

.timeline-container {
    position: relative;
    margin: 4rem 0;
    padding: 2rem 0;
}

.timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 3;
    gap: 1rem;
}

.timeline-line {
    position: absolute;
    top: 77px;
    left: 8%;
    right: 8%;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
    z-index: 1;
}

.timeline-line::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, rgba(0, 212, 255, 0.2) 0%, rgba(255, 107, 107, 0.2) 100%);
    border-radius: 4px;
    filter: blur(4px);
}

.timeline-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: calc(var(--step) * 0.1s);
}

.timeline-step[data-step="1"] { --step: 1; }
.timeline-step[data-step="2"] { --step: 2; }
.timeline-step[data-step="3"] { --step: 3; }
.timeline-step[data-step="4"] { --step: 4; }
.timeline-step[data-step="5"] { --step: 5; }
.timeline-step[data-step="6"] { --step: 6; }
.timeline-step[data-step="7"] { --step: 7; }

.step-icon {
    width: 90px;
    height: 90px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px var(--shadow-light);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.step-icon:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 20px 40px var(--shadow-light);
}

.step-icon i {
    font-size: 2.2rem;
    color: white;
}

.step-content {
    max-width: 200px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
}

.step-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    min-height: 3.5rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
}

.step-badge {
    display: inline-block;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    flex-grow: 1;
    min-height: 4rem;
    text-align: center;
}

.process-summary {
    background: var(--accent-gradient);
    border-radius: 20px;
    padding: 2.5rem;
    margin-top: 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px var(--shadow-light);
}

.process-summary::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

.summary-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.summary-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.summary-icon i {
    font-size: 2.5rem;
    color: white;
}

.summary-text {
    text-align: center;
    color: white;
}

.summary-text h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.summary-text p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* FAQ Section */
.faq {
    background: 
        radial-gradient(circle at 30% 20%, rgba(99, 102, 241, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.04) 0%, transparent 50%),
        var(--bg-secondary);
    position: relative;
}

.faq::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(-135deg, transparent 0%, rgba(6, 182, 212, 0.02) 50%, transparent 100%);
    z-index: 1;
}

.faq .container {
    position: relative;
    z-index: 2;
}

.faq-content {
    max-width: 900px;
    margin: 3rem auto 0;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: var(--accent-primary);
}

.faq-question i {
    font-size: 1rem;
    color: var(--accent-primary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    transform-origin: top center;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 2rem 1.5rem 2rem;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
    opacity: 0;
    transform: translateY(-15px) translateX(0);
    transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
}

.faq-item.active .faq-answer p {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

@media (max-width: 768px) {
    .faq-question {
        padding: 1.2rem 1.5rem;
        font-size: 1rem;
        transition: none;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 1.5rem 1.2rem 1.5rem;
    }
    
    .faq-answer {
        transition: none !important;
    }
    
    .faq-item.active .faq-answer {
        max-height: none !important;
        display: block;
    }
    
    .faq-item:not(.active) .faq-answer {
        display: none;
    }
    
    .faq-answer p {
        font-size: 0.95rem;
        transform: none !important;
        transition: none !important;
    }
    
    .faq-item {
        transition: none !important;
    }
    
    .faq-item:hover {
        transform: none !important;
    }
    
    .faq-question i {
        transition: none !important;
    }
}

/* Contact Section */
.contact {
    background: 
        radial-gradient(circle at 40% 60%, rgba(99, 102, 241, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(6, 182, 212, 0.04) 0%, transparent 50%),
        var(--bg-primary);
    position: relative;
    padding-bottom: 60px;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 0%, rgba(99, 102, 241, 0.03) 50%, transparent 100%),
        linear-gradient(-45deg, transparent 0%, rgba(139, 92, 246, 0.02) 50%, transparent 100%);
    z-index: 1;
}

.contact .container {
    position: relative;
    z-index: 2;
}

.contact-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: start;
    max-width: 900px;
    width: 100%;
}

.contact-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: var(--transition-medium);
}

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

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

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.contact-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--accent-primary);
}

.contact-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.contact-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
}

.contact-link:hover {
    color: var(--accent-secondary);
}



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

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

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Add smooth animation performance boost */
.hero {
    transform: translateZ(0);
}

.floating-shapes {
    transform: translateZ(0);
}

/* Reduce motion for users who prefer it - only disable heavy animations */
@media (prefers-reduced-motion: reduce) {
    .shape {
        animation: none !important;
    }
    
    .particles {
        display: none !important;
    }
    
    .profile-ring {
        animation: none !important;
    }
    
    /* Don't disable basic fade-in animations - they're important for UX */
    /* Commented out to allow animations even with reduced motion preference */
    /* * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    } */
}

/* Responsive Design */
@media (max-width: 1000px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-secondary);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: var(--transition-medium);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        flex-direction: column-reverse;
        display: flex;
    }
    
    .hero-buttons {
        justify-content: center;
        margin-bottom: 2rem;
    }
    
    .hero-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-image {
        order: -1;
        margin-bottom: 1rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about {
        padding-bottom: 80px;
    }
    
    .about .scroll-indicator {
        bottom: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    
    /* Center text in timeline steps on tablets and small screens */
    .step-content {
        text-align: center !important;
    }
    
    .step-content h3 {
        justify-content: center !important;
        text-align: center !important;
    }
    
    .step-content p {
        text-align: center !important;
    }
    
    .contact-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    /* Optimize contact links for mobile touch */
    .contact-link {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Process Section Mobile */
    .timeline {
        flex-direction: column;
        gap: 3rem;
        align-items: stretch;
    }
    
    .timeline-line {
        display: none;
    }
    
    .timeline-step {
        flex-direction: row;
        text-align: center;
        align-items: center;
        gap: 1.5rem;
        background: var(--bg-card);
        padding: 1.5rem;
        border-radius: 16px;
        border: 1px solid var(--border-color);
        position: relative;
        opacity: 0;
        transform: translateY(20px);
        animation: fadeInUp 0.4s ease forwards;
        animation-delay: calc(var(--step) * 0.05s);
        z-index: 2;
    }
    
    .timeline-step::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background: var(--accent-gradient);
        border-radius: 16px 0 0 16px;
        box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
    }
    
    .timeline-step .step-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 0;
        flex-shrink: 0;
        position: relative;
        z-index: 3;
    }
    
    .timeline-step .step-icon i {
        font-size: 1.7rem;
    }
    
    .timeline-step .step-content {
        max-width: none;
        flex: 1;
        text-align: center !important;
    }
    
    .timeline-step .step-content h3 {
        justify-content: center !important;
        text-align: center !important;
    }
    
    .timeline-step .step-content p {
        text-align: center !important;
    }
    
    .summary-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .summary-text {
        text-align: center;
    }
    
    .summary-text h3 {
        font-size: 1.5rem;
    }
    
    .summary-text p {
        font-size: 1rem;
    }
    
    .process {
        padding-bottom: 80px;
    }
    
    .process .scroll-indicator {
        bottom: 1rem;
    }
    
    .note-content {
        flex-direction: column;
        text-align: center;
    }
    
    .note-text p {
        text-align: center;
    }
    
    /* Left align text in about section on mobile */
    .text-block p {
        text-align: left;
    }
    
    /* Left align headings in about section on mobile */
    .text-block h3 {
        text-align: left;
    }
    
    /* Center text in timeline steps on mobile */
    .step-content p {
        text-align: center !important;
    }
    
    /* Reduce animations on mobile for better performance */
    .shape {
        animation-duration: 25s !important;
        opacity: 0.04 !important;
    }
    
    .shape-1,
    .shape-2,
    .shape-3,
    .shape-4 {
        animation-duration: 30s !important;
    }
    
    /* Hide particles on mobile */
    .particles {
        display: none !important;
    }
    
    /* Simplify profile ring animation */
    .profile-ring {
        animation: none !important;
    }
    
    /* Enable skill animations on mobile */
    .skill-category:hover,
    .skill-category:active,
    .skill-category:focus {
        transform: translateY(-4px) !important; /* Smaller transform for mobile */
        box-shadow: var(--glow-primary) !important;
        border-color: var(--accent-primary) !important;
    }
    
    .skill-category:hover::before,
    .skill-category:active::before,
    .skill-category:focus::before {
        transform: scaleX(1) !important;
    }
    
    /* Also enable portfolio animations on mobile */
    .portfolio-item:hover,
    .portfolio-item:active {
        transform: translateY(-6px) !important; /* Smaller than desktop */
        box-shadow: var(--glow-secondary) !important;
        border-color: var(--accent-secondary) !important;
    }
    
    /* Enable contact card animations on mobile */
    .contact-card:hover,
    .contact-card:active,
    .contact-card:focus {
        transform: translateY(-4px) !important; /* Smaller transform for mobile */
        box-shadow: var(--glow-primary) !important;
        border-color: var(--accent-primary) !important;
    }
    
    .contact-card:hover::before,
    .contact-card:active::before,
    .contact-card:focus::before {
        transform: scaleX(1) !important;
    }
    
    
    
    .profile-ring {
        width: 340px;
        height: 340px;
    }
    
    .profile-img {
        width: 300px;
        height: 300px;
    }
    
    /* Disable profile image hover effect on mobile */
    .profile-img:hover,
    .profile-img:active,
    .profile-img:focus {
        transform: none;
        box-shadow: 
            0 10px 40px rgba(0, 0, 0, 0.3),
            inset 0 0 0 2px rgba(99, 102, 241, 0.3);
        filter: none;
    }
    
    /* Mobile animations - faster and lighter */
    .greeting {
        opacity: 0;
        animation: slideInUp 0.4s ease 0.1s forwards;
    }
    
    .name {
        opacity: 0;
        animation: slideInUp 0.4s ease 0.2s forwards;
    }
    
    .role {
        opacity: 0;
        animation: slideInUp 0.4s ease 0.3s forwards;
    }
    
    .hero-subtitle {
        opacity: 0;
        animation: slideInUp 0.4s ease 0.4s forwards;
    }
    
    .hero-buttons {
        opacity: 0;
        animation: slideInUp 0.4s ease 0.5s forwards;
    }
    
    .scroll-indicator {
        opacity: 0;
        animation: fadeIn 0.5s ease 0.8s forwards;
    }
    
    .profile-container {
        opacity: 0;
        transform: scale(0.95);
        animation: fadeInScale 0.5s ease 0.3s forwards;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .tech-item i {
        font-size: 0.8rem;
    }
    
    .hero {
        padding-top: 120px;
        padding-bottom: 120px;
        margin-top: 35px; /* Adjust for smaller mobile ticker */
    }
    
    .hero-content {
        gap: 3rem;
    }
    
    .scroll-indicator {
        bottom: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        max-width: 300px;
    }
    
    /* Further reduce animations on very small screens */
    .shape {
        display: none !important;
    }
    
    .floating-shapes {
        display: none !important;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio {
        padding-bottom: 80px;
    }
    
    .portfolio .scroll-indicator {
        bottom: 1rem;
    }
    
    .skills {
        padding-bottom: 80px;
    }
    
    .skills .scroll-indicator {
        bottom: 1rem;
    }
    
    .profile-ring {
        width: 280px;
        height: 280px;
    }
    
    .profile-img {
        width: 240px;
        height: 240px;
    }
    
    
}

/* Typewriter Animation */
#typewriter-code {
    position: relative;
}

#typewriter-code .code-line {
    opacity: 1;
    margin-bottom: 0.5rem;
}


@keyframes fadeInLine {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    padding: 2rem 0;
    margin-top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer .copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
    font-weight: 400;
    opacity: 0.7;
}

/* Ensure consistent footer styling on mobile */
@media (max-width: 768px) {
    .footer .copyright {
        font-size: 0.75rem;
        opacity: 0.8;
        line-height: 1.4;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .footer .copyright {
        font-size: 0.7rem;
    }
}

/* Very small mobile devices (below 340px) */
@media (max-width: 340px) {
    .container {
        padding: 0 12px;
    }
    
    .about-content {
        gap: 2rem;
    }
    
    .text-block {
        margin-bottom: 1.5rem;
    }
    
    .text-block h3 {
        font-size: 1.2rem;
        word-wrap: break-word;
    }
    
    .text-block p {
        font-size: 0.85rem;
        line-height: 1.6;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .code-window {
        margin-top: 2rem;
    }
    
    .code-content {
        padding: 1rem;
        font-size: 0.75rem;
    }
    
    .window-title {
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        word-wrap: break-word;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
}
