/* CSS Variables */
:root {
    --primary-color: #8B0000;
    --primary-rgb: 139, 0, 0;
    --secondary-color: #DC143C;
    --secondary-rgb: 220, 20, 60;
    --accent-color: #FF6B6B;
    --dark-bg: #000000;
    --darker-bg: #000000;
    --text-light: #ffffff;
    --text-gray: #cccccc;
    --text-dark: #666666;
    --border-color: rgba(var(--secondary-rgb), 0.3);
    --card-bg: rgba(var(--primary-rgb), 0.1);
    --transition: all 0.3s ease;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #000000;
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.navbar-scrolled {
    background: rgba(0, 0, 0, 0.98);
    box-shadow: 0 2px 20px rgba(var(--secondary-rgb), 0.3) !important;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-light);
    text-decoration: none;
}

.navbar-brand span {
    color: var(--secondary-color);
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--secondary-color);
}

.social-icons-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-icons-nav a,
.color-picker-btn {
    color: var(--text-gray);
    font-size: 1.2rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
}

.social-icons-nav a:hover,
.color-picker-btn:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.color-picker-btn {
    padding: 5px;
}

/* Color Picker Modal */
.color-picker-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10001; /* Above mobile menu */
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.color-picker-modal.active {
    display: flex;
}

.color-picker-content {
    background: var(--dark-bg);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    backdrop-filter: blur(10px);
}

.color-picker-content h3 {
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--text-light);
}

.color-presets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.preset-color {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.preset-color:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
}

.custom-color-picker {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.custom-color-picker label {
    color: var(--text-light);
    font-size: 1rem;
}

.custom-color-picker input[type="color"] {
    width: 100%;
    height: 50px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    background: transparent;
}

.apply-custom-btn,
.close-modal-btn {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--secondary-color);
    background: var(--primary-color);
    color: var(--text-light);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    margin-top: 0.5rem;
}

.apply-custom-btn:hover,
.close-modal-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    margin: 3px 0;
    transition: var(--transition);
}

.navbar-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.navbar-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px 2rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(var(--primary-rgb), 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 1;
}

.hero-greeting {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-light) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-start;
    min-height: 120px;
    align-items: center;
}

.dynamic-text {
    background: linear-gradient(135deg, var(--text-light) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    min-width: 450px;
    display: inline-block;
}

.dynamic-text::after {
    content: '|';
    position: absolute;
    right: -10px;
    animation: blink 0.7s infinite;
    background: var(--secondary-color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid var(--secondary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    transition: var(--transition);
    cursor: pointer;
    background: transparent;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--secondary-color);
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(var(--secondary-rgb), 0.4);
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-gray);
    transition: var(--transition);
    text-decoration: none;
    font-size: 1.2rem;
}

.social-icons a:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--text-light);
    transform: translateY(-3px);
}

/* Hero Visual */
.hero-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 500px;
}

.avatar-container {
    position: relative;
    width: 300px;
    height: 300px;
}

.avatar-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(var(--secondary-rgb), 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

.avatar-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 50px rgba(var(--secondary-rgb), 0.5);
    z-index: 2;
    padding: 5px;
    overflow: hidden;
}

.avatar-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--secondary-color);
}

.avatar-placeholder {
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: var(--dark-bg);
    border: 3px solid var(--secondary-color);
}

/* Orbiting Icons */
.orbit-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    padding: 10px;
    background: rgba(var(--primary-rgb), 0.3);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    top: 50%;
    left: 50%;
    margin: -25px 0 0 -25px;
}

.orbit-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.orbit-icon:hover {
    background: rgba(var(--secondary-rgb), 0.5);
    border-color: var(--secondary-color);
    transform: scale(1.2);
    box-shadow: 0 8px 25px rgba(var(--secondary-rgb), 0.5);
    z-index: 10;
}

/* Orbit Animations - Each icon orbits at different speeds */
.orbit-1 {
    animation: orbit 20s linear infinite;
}

.orbit-2 {
    animation: orbit 20s linear infinite;
    animation-delay: -2.5s;
}

.orbit-3 {
    animation: orbit 20s linear infinite;
    animation-delay: -5s;
}

.orbit-4 {
    animation: orbit 20s linear infinite;
    animation-delay: -7.5s;
}

.orbit-5 {
    animation: orbit 20s linear infinite;
    animation-delay: -10s;
}

.orbit-6 {
    animation: orbit 20s linear infinite;
    animation-delay: -12.5s;
}

.orbit-7 {
    animation: orbit 20s linear infinite;
    animation-delay: -15s;
}

.orbit-8 {
    animation: orbit 20s linear infinite;
    animation-delay: -17.5s;
}

@keyframes orbit {
    0% {
        transform: rotate(0deg) translateX(180px) rotate(0deg);
    }
    100% {
        transform: rotate(360deg) translateX(180px) rotate(-360deg);
    }
}

.floating-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    padding: 10px;
    background: rgba(var(--primary-rgb), 0.2);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 4s ease-in-out infinite;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.floating-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.floating-icon:hover {
    background: rgba(var(--secondary-rgb), 0.4);
    border-color: var(--secondary-color);
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 8px 25px rgba(var(--secondary-rgb), 0.5);
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-15px) translateX(10px); }
    50% { transform: translateY(-25px) translateX(-5px); }
    75% { transform: translateY(-10px) translateX(15px); }
}

.floating-icon:nth-child(2) { animation-delay: 0.3s; }
.floating-icon:nth-child(3) { animation-delay: 0.6s; }
.floating-icon:nth-child(4) { animation-delay: 0.9s; }
.floating-icon:nth-child(5) { animation-delay: 1.2s; }
.floating-icon:nth-child(6) { animation-delay: 1.5s; }
.floating-icon:nth-child(7) { animation-delay: 1.8s; }
.floating-icon:nth-child(8) { animation-delay: 2.1s; }
.floating-icon:nth-child(9) { animation-delay: 2.4s; }
.floating-icon:nth-child(10) { animation-delay: 2.7s; }
.floating-icon:nth-child(11) { animation-delay: 3s; }
.floating-icon:nth-child(12) { animation-delay: 3.3s; }
.floating-icon:nth-child(13) { animation-delay: 3.6s; }

/* About Section */
.about-section {
    min-height: 100vh;
    padding: 100px 2rem;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 50%, rgba(var(--primary-rgb), 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.about-section .container {
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--secondary-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-description {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.skills-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-tag {
    padding: 8px 20px;
    background: rgba(var(--primary-rgb), 0.3);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.skill-tag:hover {
    background: var(--primary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.code-block {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.code-block pre {
    margin: 0;
}

.code-block code {
    color: var(--text-gray);
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.8;
}

/* Projects Section */
.projects-section {
    min-height: 100vh;
    padding: 100px 2rem;
    position: relative;
    overflow: hidden;
}

.projects-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(var(--primary-rgb), 0.12) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.projects-section .container {
    position: relative;
    z-index: 1;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(var(--secondary-rgb), 0.3);
    border-color: var(--secondary-color);
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    opacity: 0.9;
}

.project-card:hover .project-img {
    transform: scale(1.1);
    opacity: 1;
}

.project-placeholder {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-light);
    opacity: 0.7;
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.project-description {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    padding: 5px 15px;
    background: rgba(var(--primary-rgb), 0.3);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    font-size: 0.85rem;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.btn-link {
    padding: 8px 20px;
    border: 1px solid var(--secondary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    transition: var(--transition);
    font-size: 0.9rem;
}

.btn-link:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* GitHub Sync Section */
.github-sync-section {
    margin-top: 5rem;
    padding: 4rem 2rem;
    background: rgba(var(--primary-rgb), 0.05);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.github-sync-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(var(--secondary-rgb), 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.github-header {
    margin-bottom: 3.5rem;
    position: relative;
    z-index: 1;
}

.github-header i {
    font-size: 3.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 15px rgba(var(--secondary-rgb), 0.5));
}

.github-header h3 {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
}

.github-header p {
    color: var(--text-gray);
    font-size: 1.2rem;
    opacity: 0.8;
}

.github-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.github-repo-card {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 2rem;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.github-repo-card:hover {
    border-color: var(--secondary-color);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(var(--secondary-rgb), 0.25);
    background: rgba(var(--primary-rgb), 0.1);
}

.repo-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.repo-name {
    font-size: 1.3rem;
    color: var(--text-light);
    font-weight: 700;
    text-transform: capitalize;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 70%;
}

.repo-lang {
    font-size: 0.75rem;
    padding: 4px 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.repo-desc {
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.6;
    height: 3.2em;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.repo-stats {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-gray);
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
}

.repo-stats span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.repo-stats span i {
    color: var(--secondary-color);
}

.repo-link {
    margin-left: auto;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--secondary-rgb), 0.1);
    border-radius: 50%;
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

.repo-link:hover {
    background: var(--secondary-color);
    color: white;
    transform: rotate(45deg);
}

.loading-spinner {
    grid-column: 1 / -1;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.loading-spinner p {
    color: var(--text-gray);
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.spinner-icon {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(var(--secondary-rgb), 0.2);
    border-top: 4px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* Contact Section */
.contact-section {
    min-height: 100vh;
    padding: 100px 2rem;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(var(--primary-rgb), 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.contact-section .container {
    position: relative;
    z-index: 1;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-description {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-gray);
    font-size: 1rem;
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--secondary-color);
    width: 25px;
}

.social-icons-contact {
    display: flex;
    gap: 1rem;
}

.social-icons-contact a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-gray);
    transition: var(--transition);
    text-decoration: none;
    font-size: 1.3rem;
}

.social-icons-contact a:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--text-light);
    transform: translateY(-3px);
}

.contact-form {
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-light);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 10px rgba(var(--secondary-rgb), 0.3);
}

.form-group textarea {
    resize: vertical;
    font-family: inherit;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-gray);
}

/* Scroll Animations */
.scroll-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.show-animation {
    opacity: 1 !important;
    transform: translateY(0) !important;
}
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .dynamic-text {
        min-width: 350px;
    }
    
    .avatar-container {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 768px) {
    .navbar-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding-top: 20px;
        transition: 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
        z-index: 9999;
        backdrop-filter: blur(15px);
        border-left: 2px solid var(--secondary-color);
        list-style: none;
        gap: 2rem;
        display: flex; /* Ensure flex is active when position changes */
    }
    
    .navbar-menu.active {
        left: 0;
    }

    .navbar-menu li {
        width: 100%;
        text-align: center;
    }

    .nav-link {
        display: block;
        padding: 1rem 0;
        font-size: 2rem;
        font-weight: 700;
        color: var(--text-light);
        text-transform: uppercase;
        letter-spacing: 2px;
    }
    
    .navbar-toggle {
        display: flex;
        z-index: 10000;
        position: relative;
    }
    
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
        justify-content: center;
    }
    
    .hero-content {
        max-width: 100%;
        margin-bottom: 3rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
        justify-content: center;
        min-height: 80px;
    }
    
    .dynamic-text {
        min-width: 100%;
        display: block;
    }
    
    .hero-visual {
        margin-top: 4rem;
        min-height: 400px;
    }
    
    .orbit-icon {
        width: 40px;
        height: 40px;
        margin: -20px 0 0 -20px;
    }
    
    @keyframes orbit {
        0% { transform: rotate(0deg) translateX(140px) rotate(0deg); }
        100% { transform: rotate(360deg) translateX(140px) rotate(-360deg); }
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .about-code {
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
        min-height: 60px;
    }
    
    .avatar-container {
        width: 180px;
        height: 180px;
    }
    
    .avatar-circle {
        width: 150px;
        height: 150px;
    }
    
    @keyframes orbit {
        0% { transform: rotate(0deg) translateX(110px) rotate(0deg); }
        100% { transform: rotate(360deg) translateX(110px) rotate(-360deg); }
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .btn {
        width: 100%;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .social-icons-nav {
        display: none; /* Hide social icons in nav on very small screens to save space */
    }
}
