/* CSS Reset and Base Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Roboto:wght@400;500&display=swap');
;

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

:root {
    /* Colors - Now customizable */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #8b5cf6;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    /* Typography */
    --font-primary: 'Poppins', 'Roboto', sans-serif;
    ;

    /* Spacing */
    --container-max-width: 1200px;
    --container-padding: 2rem;
    --section-padding: 5rem 0;

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

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

[data-theme='dark'] {
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --bg-primary: #111827;
    --bg-secondary: #1f2937;
    --bg-tertiary: #374151;
    --border-color: #374151;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 4rem;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Performance optimizations for mobile */
@media (max-width: 768px) {
    * {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    body {
        -webkit-overflow-scrolling: touch;
    }
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all var(--transition-normal);
}

[data-theme='dark'] .navbar {
    background: rgba(17, 24, 39, 0.95);
    border-bottom: 1px solid var(--border-color);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
}

[data-theme='dark'] .navbar.scrolled {
    background: rgba(17, 24, 39, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* Fallback for browsers that don't support backdrop-filter */
@supports not (backdrop-filter: blur(20px)) {
    .navbar {
        background: rgba(255, 255, 255, 0.98);
    }

    [data-theme='dark'] .navbar {
        background: rgba(17, 24, 39, 0.98);
    }
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
    position: relative;
}

/* Logo */
.nav-logo {
    flex-shrink: 0;
    z-index: 1002;
}

.nav-logo a {
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    transition: all var(--transition-fast);
}

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

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

.logo-dot {
    color: var(--secondary-color);
}

/* Desktop Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    position: relative;
    padding: 0.5rem 0;
    white-space: nowrap;
}

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

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

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

/* Theme and Color Toggle Buttons */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.theme-toggle,
.color-toggle {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
}

.theme-toggle:hover,
.color-toggle:hover {
    color: var(--primary-color);
    background: var(--bg-primary);
    border-color: var(--primary-color);
}

/* Mobile Menu Toggle - Minimal Design */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 0.2rem;
    z-index: 1002;
    padding: 0.25rem;
    background: transparent;
    border: none;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-fast);
    border-radius: 1px;
}

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

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

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

/* Mobile Styles - Minimal Header */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 3.5rem;
    }

    .nav-container {
        height: 3.5rem;
        padding: 0 1rem;
    }

    .nav-logo a {
        font-size: 1.1rem;
    }

    /* Minimal Off-Canvas Menu */
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 250px;
        height: 100vh;
        background: var(--bg-primary);
        border-left: 1px solid var(--border-color);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 4rem 0 2rem;
        gap: 0;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 1001;
        overflow-y: auto;
    }

    [data-theme='dark'] .nav-menu {
        background: var(--bg-primary);
        border-left: 1px solid var(--border-color);
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-link {
        font-size: 0.95rem;
        font-weight: 500;
        padding: 1rem 1.5rem;
        margin: 0;
        width: 100%;
        text-align: left;
        border-bottom: 1px solid var(--border-color);
        transition: all var(--transition-fast);
    }

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

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

    /* Minimal Controls in Off-Canvas */
    .nav-controls {
        margin: 1rem 1.5rem 0;
        padding-top: 1rem;
        border-top: 1px solid var(--border-color);
        gap: 0.75rem;
        justify-content: flex-start;
    }

    .theme-toggle,
    .color-toggle {
        width: 2rem;
        height: 2rem;
        font-size: 0.9rem;
        border-radius: var(--radius-sm);
    }

    .nav-toggle {
        display: flex;
    }

    /* Minimal Mobile backdrop */
    body.nav-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.3);
        z-index: 1000;
        opacity: 1;
    }

    /* Prevent body scroll when menu is open */
    body.nav-open {
        overflow: hidden;
    }
}

/* Small Mobile Devices - Even More Minimal */
@media (max-width: 480px) {
    .nav-container {
        height: 3rem;
        padding: 0 0.75rem;
    }

    .nav-logo a {
        font-size: 1rem;
    }

    .nav-menu {
        width: 100%;
        padding: 3.5rem 0 2rem;
    }

    .nav-link {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }

    .nav-controls {
        margin: 1rem 1rem 0;
    }

    .theme-toggle,
    .color-toggle {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.8rem;
    }
}

/* Color Customizer Panel */
.color-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--bg-primary);
    border-left: 1px solid var(--border-color);
    z-index: 1001;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.color-panel.active {
    right: 0;
}

.color-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.color-panel-header h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
}

.color-panel-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.color-panel-close:hover {
    color: var(--primary-color);
    background: var(--bg-secondary);
}

.color-panel-content {
    padding: 2rem;
}

.color-section {
    margin-bottom: 2rem;
}

.color-section h4 {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.theme-presets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.theme-preset {
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    padding: 1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
}

.theme-preset.active,
.theme-preset:hover {
    border-color: var(--primary-color);
    background: var(--bg-primary);
}

.preset-colors {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.preset-colors span {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--bg-primary);
}

.theme-preset span {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.color-inputs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.color-input-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.color-input-group label {
    font-weight: 500;
    color: var(--text-primary);
}

.color-input-group input[type='color'] {
    width: 50px;
    height: 40px;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    background: none;
}

/* Mobile Color Panel */
@media (max-width: 768px) {
    .color-panel {
        width: 100%;
        right: -100%;
    }

    .color-panel-header {
        padding: 1.5rem 1rem;
    }

    .color-panel-header h3 {
        font-size: 1rem;
    }

    .color-panel-content {
        padding: 1rem;
    }

    .theme-presets {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .theme-preset {
        padding: 0.75rem;
    }
}

/* Discord Status Tooltip */
.status-tooltip {
    position: absolute;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    pointer-events: none;
    min-width: 200px;
}

.status-tooltip.visible {
    opacity: 1;
    visibility: visible;
}

.tooltip-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tooltip-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tooltip-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #6b7280;
}

.tooltip-indicator.online {
    background: #23a55a;
    box-shadow: 0 0 10px rgba(35, 165, 90, 0.4);
}

.tooltip-indicator.idle {
    background: #f0b232;
    box-shadow: 0 0 10px rgba(240, 178, 50, 0.4);
}

.tooltip-indicator.dnd {
    background: #f23f43;
    box-shadow: 0 0 10px rgba(242, 63, 67, 0.4);
}

.tooltip-indicator.offline {
    background: #80848e;
}

.tooltip-text {
    font-weight: 600;
    color: var(--text-primary);
    text-transform: capitalize;
}

.tooltip-activity {
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 500;
}

.tooltip-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    font-size: 1rem;
    text-align: center;
    justify-content: center;
}

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

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

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

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* Mobile Button Optimization */
@media (max-width: 768px) {
    .btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
        min-height: 44px;
        width: 100%;
        max-width: 280px;
    }

    .btn-small {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
        min-height: 40px;
    }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

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

/* Mobile Section Headers */
@media (max-width: 768px) {
    .section-header {
        margin-bottom: 2rem;
        padding: 0 1rem;
    }

    .section-tag {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
        line-height: 1.3;
    }

    .section-subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    align-items: center;
    display: flex;
    position: relative;
    overflow: hidden;
    padding: 5rem 0 0 0;
    z-index: 1;
}

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

.hero-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
    will-change: transform;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    left: 10%;
    animation-delay: 2s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 50%;
    animation-delay: 4s;
}

@keyframes float {

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

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

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

.hero-text {
    animation: slideInLeft 1s ease-out;
}

.hero-greeting {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    z-index: 2;
    position: relative;
    background: transparent;
    padding: 0.5rem 0;
}

.wave {
    animation: wave 2s ease-in-out infinite;
}

@keyframes wave {

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

    10%,
    30% {
        transform: rotate(14deg);
    }

    20% {
        transform: rotate(-8deg);
    }

    40% {
        transform: rotate(-4deg);
    }
}

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

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(270deg, var(--text-primary), var(--primary-color), var(--text-primary));
    background-size: 300% 300%;
    animation: smoothGradient 8s ease-in-out infinite;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.75rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
    min-height: 2rem;
}

.typing-text {
    font-family: var(--font-mono);
}

.cursor {
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

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

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

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

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Keep for desktop for now */
    width: 3rem;
    height: 3rem;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all var(--transition-normal);
}

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

.hero-image {
    animation: slideInRight 1s ease-out;
}

.image-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.image-bg {
    position: absolute;
    top: -2rem;
    left: -2rem;
    right: -2rem;
    bottom: -2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    opacity: 0.1;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {

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

    50% {
        transform: scale(1.05);
    }
}

.profile-img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    position: relative;
    z-index: 2;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    opacity: 0;
    transition: opacity var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-icons {
    display: flex;
    gap: 1rem;
    color: white;
    font-size: 1.5rem;
}

/* Discord Status Indicator */
.discord-status {
    position: absolute;
    bottom: 8%;
    right: 8%;
    width: 70px;
    height: 70px;
    background: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 6px var(--bg-primary), 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 3;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.discord-status:hover {
    transform: scale(1.1);
}

.status-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #6b7280;
    transition: all var(--transition-normal);
    position: relative;
}

.status-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.status-dot.online {
    background: #23a55a;
    box-shadow: 0 0 20px rgba(35, 165, 90, 0.4);
}

.status-dot.online::after {
    background: #23a55a;
    opacity: 0.3;
    animation: statusPulse 2s ease-in-out infinite;
}

.status-dot.idle {
    background: #f0b232;
    box-shadow: 0 0 20px rgba(240, 178, 50, 0.4);
}

.status-dot.dnd {
    background: #f23f43;
    box-shadow: 0 0 20px rgba(242, 63, 67, 0.4);
}

.status-dot.offline {
    background: #80848e;
}

@keyframes statusPulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.1;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-secondary);
    cursor: pointer;
    z-index: 10;
}

.scroll-text {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.scroll-arrow {
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

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

    60% {
        transform: translateY(-5px);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

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

/* Mobile Hero Section */
@media (max-width: 768px) {
    .hero {
        /* General hero container adjustments */
        padding: 3rem 0 1.5rem 0;
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        justify-items: center;
    }

    .hero-image {
        /* Order image above text on mobile */
        order: -1;
        margin-bottom: 1.5rem;
        /* Add some space below image */
    }

    .image-container {
        max-width: 250px;
    }

    .discord-status {
        width: 50px;
        height: 50px;
        bottom: 2rem;
        right: 2rem;
    }

    .status-dot {
        width: 18px;
        height: 18px;
    }

    .hero-greeting {
        justify-content: center;
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .hero-title {
        font-size: 2rem;
        /* Smaller title on mobile */
    }

    .hero-subtitle {
        /* Adjust subtitle for mobile */
        font-size: 0.95rem;
        margin-bottom: 1rem;
        min-height: auto;
    }

    .hero-description {
        /* Adjust description for mobile */
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 1rem;
    }

    .hero-stats {
        justify-content: center;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }

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

    .stat-label {
        font-size: 0.75rem;
    }

    .hero-buttons {
        /* Adjust button layout for mobile */
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
        margin-bottom: 1.5rem;
    }

    .hero-social {
        /* Center social icons */
        justify-content: center;
        gap: 0.75rem;
    }

    .social-link {
        /* Adjust size of social links */
        width: 2.5rem;
        height: 2.5rem;
    }

    .scroll-indicator {
        bottom: 1rem;
    }

    /* Optimized mobile animations */
    ;

    .hero-text,
    .hero-image {
        /* Disable animations for better performance */
        animation: none;
        transform: none !important;
        opacity: 1 !important;
    }

    @keyframes floatMobile {

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

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


@media (max-width: 480px) {

    /* Further adjustments for smaller mobile screens */
    .hero {
        padding: 3rem 0 1.5rem 0;
    }

    .hero-content {
        gap: 1.5rem;
        /* Reduce gap further */
    }

    .hero-content {}

    .hero-title {
        font-size: 1.75rem;
    }

    .image-container {
        max-width: 200px;
        margin-bottom: 1rem;
    }

    .hero-stats {
        gap: 1rem;
    }

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

    .hero-buttons {
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .social-link {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 0.875rem;
    }

    .social-link i {
        font-size: 1.125rem;
    }
}

/* About Section */
.about {
    padding: var(--section-padding);
    background: var(--bg-secondary);
}

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

.about-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.about-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-primary);
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.highlight {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.highlight i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 2rem;
    text-align: center;
    flex-shrink: 0;
}

.highlight h4 {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.highlight p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.about-img-container {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img-container img {
    width: 100%;
    height: auto;
    display: block;
}

.about-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    opacity: 0;
    transition: opacity var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-img-container:hover .about-img-overlay {
    opacity: 0.9;
}

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

.overlay-content i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.overlay-content span {
    font-size: 1.25rem;
    font-weight: 600;
}

/* Mobile About Section */
@media (max-width: 768px) {
    .about {
        padding: 3rem 0;
    }

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

    .about-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .about-card h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .about-card p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .highlight {
        padding: 0.875rem;
        gap: 0.875rem;
    }

    .highlight i {
        font-size: 1.25rem;
        width: 1.75rem;
    }

    .highlight h4 {
        font-size: 0.95rem;
    }

    .highlight p {
        font-size: 0.8rem;
    }

    .overlay-content i {
        font-size: 2rem;
    }

    .overlay-content span {
        font-size: 1rem;
    }
}

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

    .about-card {
        padding: 1.25rem;
    }

    .about-card h3 {
        font-size: 1.125rem;
    }

    .highlight {
        padding: 0.75rem;
        gap: 0.75rem;
    }
}

/* Skills Section */
.skills {
    padding: var(--section-padding);
}

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

.skill-category {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 0.8rem;
}

.skill-category.active,
.skill-category:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

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

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
    cursor: pointer;
}

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

.skill-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-align: center;
}

.skill-name {
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
}

/* Mobile Skills Section */
@media (max-width: 768px) {
    .skills {
        padding: 3rem 0;
    }

    .skills-categories {
        gap: 0.75rem;
        margin-bottom: 2rem;
    }

    .skill-category {
        padding: 0.625rem 1rem;
        font-size: 0.75rem;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 1rem;
    }

    .skill-item {
        padding: 1.25rem 0.75rem;
    }

    .skill-icon {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }

    .skill-name {
        font-size: 0.875rem;
    }
}

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

    .skill-category {
        padding: 0.5rem 0.875rem;
        font-size: 0.7rem;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
        gap: 0.875rem;
    }

    .skill-item {
        padding: 1rem 0.5rem;
    }

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

    .skill-name {
        font-size: 0.8rem;
    }
}

/* Experience Section */
.experience {
    padding: var(--section-padding);
    background: var(--bg-secondary);
}

.experience-toggle {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.toggle-btn {
    padding: 0.75rem 1.5rem;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-xl);
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 0.8rem;
}

.toggle-btn.active,
.toggle-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    display: none;
}

.timeline.active {
    display: block;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 2rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 5rem;
}

.timeline-marker {
    position: absolute;
    left: 1rem;
    top: 0;
    width: 2rem;
    height: 2rem;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 2;
}

.timeline-content {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.timeline-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.timeline-date {
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 600;
}

.timeline-content h4 {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.timeline-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.timeline-skills span {
    padding: 0.25rem 0.75rem;
    background: var(--bg-secondary);
    color: var(--primary-color);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Mobile Experience Section */
@media (max-width: 768px) {
    .experience {
        padding: 3rem 0;
    }

    .experience-toggle {
        gap: 0.75rem;
        margin-bottom: 2rem;
    }

    .toggle-btn {
        padding: 0.625rem 1rem;
        font-size: 0.75rem;
    }

    .timeline::before {
        left: 1rem;
    }

    .timeline-item {
        padding-left: 3rem;
        margin-bottom: 2rem;
    }

    .timeline-marker {
        left: 0.5rem;
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.75rem;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }

    .timeline-header h3 {
        font-size: 1.125rem;
    }

    .timeline-date {
        font-size: 0.75rem;
    }

    .timeline-content h4 {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }

    .timeline-content p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .timeline-skills span {
        padding: 0.2rem 0.6rem;
        font-size: 0.75rem;
    }
}

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

    .toggle-btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.7rem;
    }

    .timeline-content {
        padding: 1.25rem;
    }

    .timeline-header h3 {
        font-size: 1rem;
    }

    .timeline-skills {
        gap: 0.375rem;
    }
}

/* Projects Section */
.projects {
    padding: var(--section-padding);
}

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

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: var(--bg-secondary);
    border: none;
    border-radius: var(--radius-xl);
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 0.8rem;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: white;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.project-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    opacity: 1;
    transform: scale(1);
}

.project-card.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

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

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

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

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    opacity: 0;
    transition: opacity var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

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

.project-btn {
    padding: 0.5rem 1rem;
    background: white;
    color: var(--primary-color);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.project-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-primary);
}

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

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    padding: 0.25rem 0.75rem;
    background: var(--bg-primary);
    color: var(--primary-color);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
}

.projects-cta {
    text-align: center;
}

/* Mobile Projects Section */
@media (max-width: 768px) {
    .projects {
        padding: 3rem 0;
    }

    .projects-filter {
        gap: 0.75rem;
        margin-bottom: 2rem;
    }

    .filter-btn {
        padding: 0.625rem 1rem;
        font-size: 0.75rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .project-image {
        height: 180px;
    }

    .project-overlay {
        gap: 0.75rem;
    }

    .project-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .project-content {
        padding: 1.25rem;
    }

    .project-title {
        font-size: 1.125rem;
        margin-bottom: 0.4rem;
    }

    .project-description {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 0.875rem;
    }

    .tech-tag {
        padding: 0.2rem 0.6rem;
        font-size: 0.75rem;
    }
}

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

    .filter-btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.7rem;
    }

    .project-image {
        height: 160px;
    }

    .project-content {
        padding: 1rem;
    }

    .project-title {
        font-size: 1rem;
    }

    .project-description {
        font-size: 0.85rem;
    }

    .tech-tag {
        font-size: 0.7rem;
    }
}

/* Contact Section */
.contact {
    padding: var(--section-padding);
    background: var(--bg-secondary);
}

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

.contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    background: var(--primary-color);
    color: white;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-details h3 {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.contact-details p {
    color: var(--text-secondary);
}

.contact-social {
    margin-top: 2rem;
}

.contact-social h3 {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

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

.contact-cta {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.email-contact {
    max-width: 500px;
    width: 100%;
}

.email-card {
    background: var(--bg-primary);
    padding: 3rem 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    text-align: center;
    border: 2px solid var(--border-color);
    transition: all var(--transition-normal);
}

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

.email-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

.email-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-primary);
}

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

.email-btn {
    font-size: 1.1rem;
    padding: 1rem 2rem;
    gap: 0.75rem;
}

@keyframes pulse {

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

    50% {
        transform: scale(1.05);
    }
}

.social-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

/* Contact Buttons */
.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.email-btn,
.resume-btn {
    font-size: 1.1rem;
    padding: 1rem 2rem;
    gap: 0.75rem;
    justify-content: center;
}

/* Mobile Contact Section */
@media (max-width: 768px) {
    .contact {
        padding: 3rem 0;
    }

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

    .contact-card {
        padding: 1.25rem;
        gap: 0.875rem;
        margin-bottom: 0.875rem;
    }

    .contact-icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.125rem;
    }

    .contact-details h3 {
        font-size: 0.95rem;
        margin-bottom: 0.2rem;
    }

    .contact-details p {
        font-size: 0.9rem;
    }

    .contact-social {
        margin-top: 1.5rem;
    }

    .contact-social h3 {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }

    .social-links {
        gap: 0.75rem;
    }

    .email-card {
        padding: 2rem 1.5rem;
    }

    .email-icon {
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
        margin-bottom: 1.25rem;
    }

    .email-card h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .email-card p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }

    .contact-buttons {
        gap: 0.75rem;
        margin-top: 1.5rem;
    }

    .email-btn,
    .resume-btn {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }
}

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

    .contact-card {
        padding: 1rem;
        gap: 0.75rem;
    }

    .contact-icon {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 1rem;
    }

    .contact-details h3 {
        font-size: 0.9rem;
    }

    .contact-details p {
        font-size: 0.85rem;
    }

    .email-card {
        padding: 1.5rem 1rem;
    }

    .email-icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.125rem;
    }

    .email-card h3 {
        font-size: 1.125rem;
    }

    .email-card p {
        font-size: 0.9rem;
    }

    .email-btn,
    .resume-btn {
        font-size: 0.95rem;
        padding: 0.75rem 1.25rem;
    }
}

/* Footer */
.footer {
    background: var(--bg-tertiary);
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
}

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

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

.footer-text i {
    color: #ef4444;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

/* Mobile Footer */
@media (max-width: 768px) {
    .footer {
        padding: 1.5rem 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-text {
        font-size: 0.9rem;
    }

    .footer-links {
        gap: 1.5rem;
    }

    .footer-links a {
        font-size: 0.9rem;
    }
}

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

    .footer-text {
        font-size: 0.85rem;
    }

    .footer-links {
        gap: 1.25rem;
    }

    .footer-links a {
        font-size: 0.85rem;
    }
}

/* Scroll to Top */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-2px);
    background: var(--primary-dark);
}

/* Mobile Scroll to Top */
@media (max-width: 768px) {
    .scroll-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 2.75rem;
        height: 2.75rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .scroll-top {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 2.5rem;
        height: 2.5rem;
        font-size: 0.85rem;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    :root {
        --container-padding: 1.5rem;
        --section-padding: 4rem 0;
    }

    .hero-content,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-image {
        order: -1;
    }

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

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

    .color-panel {
        width: 100%;
        right: -100%;
    }
}

/* Responsive Hero Section Adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr 0.8fr;
        gap: 3rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.375rem;
    }

    .image-container {
        max-width: 350px;
    }
}



/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

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

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

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

/* Utility Classes */
.text-center {
    text-align: center;
}

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

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

.bg-primary {
    background-color: var(--bg-primary);
}

.bg-secondary {
    background-color: var(--bg-secondary);
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    .nav-link,
    .theme-toggle,
    .color-toggle,
    .nav-toggle span,
    .nav-menu,
    .btn,
    .skill-item,
    .project-card,
    .hero-title,
    .shape {
        transition: none;
        animation: none;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .nav-link {
        padding: 1rem 1.5rem;
    }

    .theme-toggle,
    .color-toggle {
        min-width: 44px;
        min-height: 44px;
    }

    .nav-toggle {
        min-width: 44px;
        min-height: 44px;
    }

    .btn {
        min-height: 44px;
        padding: 0.875rem 1.5rem;
    }

    .skill-item {
        min-height: 120px;
    }

    .social-link {
        min-width: 44px;
        min-height: 44px;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .navbar {
        border-bottom-width: 0.5px;
    }
}

/* Landscape Mobile Orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 4rem 0 2rem;
    }

    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        align-items: center;
    }

    .hero-image {
        order: 1;
    }

    .hero-text {
        text-align: left;
    }

    .hero-buttons {
        flex-direction: row;
        gap: 1rem;
    }

    .nav-container {
        height: 3rem;
    }

    .nav-menu {
        padding: 3.5rem 0 1rem;
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    :root {
        --container-padding: 1rem;
    }

    .nav-container {
        padding: 0 0.5rem;
    }

    .nav-logo a {
        font-size: 0.95rem;
    }

    .section-header {
        padding: 0 0.5rem;
    }

    .hero {
        padding: 2.5rem 0 1rem 0;
    }

    .hero-title {
        font-size: 1.625rem;
    }

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

    .about,
    .skills,
    .experience,
    .projects,
    .contact {
        padding: 2rem 0;
    }
}

/* Print Styles */
@media print {

    .navbar,
    .nav-toggle,
    .color-panel,
    .scroll-top,
    .hero-social,
    .contact-social {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 2rem 0;
    }

    .section-header {
        margin-bottom: 1.5rem;
    }

    .about,
    .skills,
    .experience,
    .projects,
    .contact {
        padding: 2rem 0;
    }

    .project-overlay,
    .image-overlay,
    .about-img-overlay {
        display: none;
    }
}
