/* ===== CSS Variables ===== */
:root {
    /* Colors - Fresh Green & White Theme */
    --primary: #00d084;
    --primary-dark: #00b371;
    --secondary: #00f5a0;
    --accent: #7cffcb;
    --dark: #0a1f1a;
    --dark-2: #0f2f28;
    --dark-3: #1a4a3f;
    --light: #f0fff9;
    --light-2: #e0fff4;
    --text: #ffffff;
    --text-muted: #7cffcb;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #00d084 0%, #00f5a0 50%, #7cffcb 100%);
    --gradient-secondary: linear-gradient(135deg, #00b371 0%, #00d084 100%);
    --gradient-dark: linear-gradient(180deg, #0a1f1a 0%, #0f2f28 100%);

    /* Glass */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);

    /* Typography */
    --font-main: 'Outfit', sans-serif;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 50px rgba(0, 208, 132, 0.6);
}

/* ===== Loading Screen ===== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a1f1a 0%, #0f2f28 50%, #0a1f1a 100%);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    z-index: 2;
}

.loading-logo {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.loading-logo-img {
    width: 180px;
    height: auto;
    animation: logoPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(0, 208, 132, 0.5));
}

@keyframes logoPulse {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 30px rgba(0, 208, 132, 0.5));
    }

    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 50px rgba(0, 208, 132, 0.8));
    }
}

.logo-char {
    font-size: 4rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoFloat 2s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(0, 208, 132, 0.5);
}

.logo-char:nth-child(1) {
    animation-delay: 0s;
}

.logo-char:nth-child(2) {
    animation-delay: 0.2s;
}

.logo-char:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes logoFloat {

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

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

.loading-spinner {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-spinner .loading-logo-img {
    position: absolute;
    width: 100px;
    height: auto;
    z-index: 10;
    animation: logoPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(0, 208, 132, 0.6));
}

.spinner-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 3px solid transparent;
    animation: spin 2s linear infinite;
}

.spinner-ring:nth-child(1) {
    width: 180px;
    height: 180px;
    margin: -90px 0 0 -90px;
    border-top-color: #00d084;
    animation-duration: 2s;
}

.spinner-ring:nth-child(2) {
    width: 150px;
    height: 150px;
    margin: -75px 0 0 -75px;
    border-right-color: #00f5a0;
    animation-duration: 1.5s;
    animation-direction: reverse;
}

.spinner-ring:nth-child(3) {
    width: 120px;
    height: 120px;
    margin: -60px 0 0 -60px;
    border-bottom-color: #7cffcb;
    animation-duration: 1s;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-progress {
    width: 300px;
    margin: 0 auto 30px;
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--gradient-primary);
    border-radius: 10px;
    transition: width 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 208, 132, 0.6);
}

.progress-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loading-text {
    font-size: 1rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Loading Particles */
.loading-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.l-particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.5;
    animation: floatParticle 15s infinite;
}

.l-particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    width: 8px;
    height: 8px;
}

.l-particle:nth-child(2) {
    left: 30%;
    animation-delay: 2s;
    width: 12px;
    height: 12px;
    background: var(--secondary);
}

.l-particle:nth-child(3) {
    left: 50%;
    animation-delay: 4s;
    width: 6px;
    height: 6px;
}

.l-particle:nth-child(4) {
    left: 70%;
    animation-delay: 6s;
    width: 10px;
    height: 10px;
    background: var(--accent);
}

.l-particle:nth-child(5) {
    left: 90%;
    animation-delay: 8s;
    width: 14px;
    height: 14px;
    background: var(--secondary);
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Project Thumbnail Styles */
.project-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    transition: transform 0.5s ease, filter 0.3s ease;
    cursor: pointer;
}

.project-card:hover .project-thumbnail {
    transform: scale(1.1);
    filter: brightness(0.7);
}

/* Image Modal Styles */
.image-modal {
    display: none;
    position: fixed;
    z-index: 20000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.image-modal .modal-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(0, 208, 132, 0.3);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    z-index: 20001;
}

.close-modal:hover {
    color: var(--primary);
    transform: scale(1.2);
}

.project-image {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, var(--dark-2), var(--dark-3));
    border-radius: 15px 15px 0 0;
    overflow: hidden;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 208, 132, 0.3), rgba(0, 245, 160, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

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



#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.5;
}

/* Glowing Grid Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 2px 2px, rgba(0, 208, 132, 0.05) 1px, transparent 0);
    background-size: 40px 40px;
    z-index: -2;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Background Animation ===== */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: #00f5a0;
    bottom: -150px;
    right: -150px;
    animation-delay: -7s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: #7cffcb;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes float {

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

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

    50% {
        transform: translate(-30px, 30px) scale(0.95);
    }

    75% {
        transform: translate(20px, 20px) scale(1.05);
    }
}

/* ===== Music Player Styles (New Positioning) ===== */
.music-container {
    position: relative;
    margin-top: 30px;
    margin-left: auto;
    margin-right: auto;
    z-index: 100;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-radius: 100px;
    background: rgba(10, 31, 26, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 208, 132, 0.4);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), var(--shadow-glow);
    animation: fadeIn 1s ease;
    width: fit-content;
    max-width: 350px;
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

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

.music-info {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}

.music-icon {
    width: 38px;
    height: 38px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.music-text {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.music-title {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
}

.music-status {
    font-size: 0.65rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.music-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.music-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
    font-size: 0.8rem;
}

.music-btn.main-btn {
    width: 40px;
    height: 40px;
    background: var(--primary);
    font-size: 1rem;
}

.music-btn:hover {
    background: var(--secondary);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 208, 132, 0.4);
}

@media (max-width: 480px) {
    .music-container {
        bottom: 15px;
        right: 15px;
        left: 15px;
        max-width: none;
        width: calc(100% - 30px);
        padding: 8px 15px;
        border-radius: 20px;
    }

    .music-title {
        font-size: 0.8rem;
    }
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
}

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

.nav-logo {
    display: flex;
    align-items: center;
}

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

.nav-menu {
    display: flex;
    gap: 10px;
}

.nav-link {
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 0 50px;
    position: relative;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 10px 20px;
    border-radius: 50px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.hero-badge i {
    color: var(--primary);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

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

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 60px rgba(0, 208, 132, 0.8);
}

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

.btn-outline:hover {
    background: var(--glass-bg);
    border-color: var(--primary);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 30px;
}

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

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--glass-border);
}

/* Hero Image */
.hero-image {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.image-wrapper {
    position: relative;
    width: 400px;
    height: 400px;
}

.image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 350px;
    background: var(--gradient-primary);
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: pulse 4s infinite;
}

@keyframes pulse {

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

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.6;
    }
}

.profile-img {
    position: relative;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    object-fit: cover;
    object-position: right center;
    border: 4px solid var(--glass-border);
    z-index: 2;
}

.floating-card {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 3;
    animation: floatCard 3s ease-in-out infinite;
}

.card-1 {
    top: 30px;
    right: 20px;
    color: var(--primary);
    animation-delay: 0s;
}

.card-2 {
    bottom: 50px;
    left: 0;
    color: var(--secondary);
    animation-delay: -1s;
}

.card-3 {
    bottom: 80px;
    right: 0;
    color: var(--accent);
    animation-delay: -2s;
}

@keyframes floatCard {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(0, -10px);
    }
}

/* Adjust card positions for mobile */
@media (max-width: 480px) {
    .card-1 {
        top: 10px;
        right: -10px;
    }

    .card-2 {
        bottom: 30px;
        left: -10px;
    }

    .card-3 {
        bottom: 50px;
        right: -10px;
    }
}


/* ===== Language Switcher ===== */
.lang-switcher {
    position: relative;
    margin-left: 15px;
}

.lang-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 8px 15px;
    border-radius: 50px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    transition: var(--transition);
    font-family: inherit;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.lang-btn img {
    width: 20px;
    height: auto;
    border-radius: 2px;
}

.lang-btn i {
    font-size: 0.7rem;
    transition: 0.3s;
}

.lang-switcher.active .lang-btn i {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--dark);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 10px;
    width: 160px;
    display: none;
    flex-direction: column;
    gap: 5px;
    z-index: 2100;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.3s ease;
}

.lang-dropdown.show {
    display: flex;
}

.lang-option {
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.lang-option:hover {
    background: var(--glass-bg);
    color: var(--primary);
}

.lang-option img {
    width: 20px;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .lang-switcher {
        margin: 15px 0;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
}

/* Glass Card */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.glass-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.glass-card:hover::after {
    transform: translateX(100%);
}

.glass-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 208, 132, 0.2);
}

/* ===== About Section ===== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.about-card {
    text-align: center;
}

.about-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin: 0 auto 20px;
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.about-card p {
    color: var(--text-muted);
    margin-bottom: 15px;
}

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

.highlight-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

.highlight-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
}

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

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

/* ===== Skills Section ===== */
.skills {
    background: var(--gradient-dark);
}

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

.skill-card {
    text-align: center;
}

.skill-icon {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 15px;
}

.skill-icon.html {
    background: linear-gradient(135deg, #e44d26 0%, #f16529 100%);
    color: white;
}

.skill-icon.css {
    background: linear-gradient(135deg, #264de4 0%, #2965f1 100%);
    color: white;
}

.skill-icon.js {
    background: linear-gradient(135deg, #f7df1e 0%, #f0db4f 100%);
    color: #323330;
}

.skill-icon.php {
    background: linear-gradient(135deg, #4f5b93 0%, #777bb4 100%);
    color: white;
}

.skill-icon.word {
    background: linear-gradient(135deg, #2b579a 0%, #3e79d6 100%);
    color: white;
}

.skill-icon.excel {
    background: linear-gradient(135deg, #217346 0%, #2ba562 100%);
    color: white;
}

.skill-icon.mysql {
    background: linear-gradient(135deg, #00758f 0%, #f29111 100%);
    color: white;
}

.skill-icon.git {
    background: linear-gradient(135deg, #f05032 0%, #ff6b4a 100%);
    color: white;
}

.skill-card h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.skill-bar {
    height: 8px;
    background: var(--dark-3);
    border-radius: 10px;
    overflow: hidden;
}

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

/* ===== Projects Section ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.project-card {
    overflow: hidden;
    padding: 0;
}

.project-image {
    height: 200px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.project-overlay {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.project-content {
    padding: 25px;
}

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

.tag {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--primary);
}

.project-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.project-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.project-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-features span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: var(--secondary);
}

.project-features i {
    font-size: 0.7rem;
}

/* ===== Hobbies Section ===== */
.hobbies {
    background: var(--gradient-dark);
}

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

.hobby-card {
    text-align: center;
}

.hobby-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 20px;
}

.hobby-icon.automotive {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    color: white;
}

.hobby-icon.music {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    color: white;
}

.hobby-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.hobby-card p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.hobby-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.hobby-tags span {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* ===== Contact Section ===== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.contact-info>p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

.contact-items {
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

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

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 15px 20px 15px 50px;
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--text);
    transition: var(--transition);
}

.form-group textarea {
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group label {
    position: absolute;
    top: 50%;
    left: 18px;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.form-group textarea+label {
    top: 20px;
    transform: none;
}

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

/* ===== Footer ===== */
.footer {
    background: var(--dark-2);
    padding: 50px 0 20px;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 20px;
}

.footer-logo .logo-text {
    font-size: 2rem;
}

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

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

.footer-links a {
    color: var(--text-muted);
    transition: var(--transition);
}

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

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

.footer-bottom p {
    margin-bottom: 5px;
}

.footer-bottom i {
    color: var(--primary);
}


/* ===== Image Modal ===== */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    animation: zoomModal 0.3s ease;
    cursor: zoom-in;
}

.modal-content.zoomed {
    width: 100%;
    max-width: 800px;
    cursor: zoom-out;
}

@keyframes zoomModal {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 30px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2001;
}

.close-modal:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.profile-img {
    cursor: zoom-in;
    transition: var(--transition);
}

.profile-img:hover {
    transform: scale(1.05);
    border-color: var(--primary);
}

/* ===== Back to Top Button ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1500;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    .container {
        padding: 0 30px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }

    .hero-content {
        order: 2;
    }

    .hero-image {
        order: 1;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

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

    .image-wrapper {
        width: 350px;
        height: 350px;
    }

    .profile-img {
        width: 280px;
        height: 280px;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: 0.4s ease;
    }

    .nav-menu.active {
        right: 0;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .section-title {
        font-size: 2.2rem;
    }

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

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

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

    .modal-content {
        width: 95%;
    }
}

@media (max-width: 480px) {
    section {
        padding: 60px 0;
        overflow: hidden;
    }

    .container {
        padding: 0 20px;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
    }

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

    .image-wrapper {
        width: 260px;
        height: 260px;
    }

    .image-glow {
        width: 240px;
        height: 240px;
    }

    .profile-img {
        width: 220px;
        height: 220px;
    }

    .floating-card {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .card-1 {
        top: 0;
        right: -5px;
    }

    .card-2 {
        bottom: 20px;
        left: -5px;
    }

    .card-3 {
        bottom: 50px;
        right: -5px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    .stat-divider {
        display: none;
    }

    .stat-item {
        flex: 1;
        min-width: 80px;
    }

    .music-container {
        width: calc(100% - 10px);
        max-width: 320px;
        padding: 10px 15px;
        gap: 10px;
    }

    .music-title {
        font-size: 0.8rem;
    }

    .music-icon {
        width: 34px;
        height: 34px;
    }

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

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

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