/* ===================================
   CSS Variables & Reset
   =================================== */
:root {
    --primary-color: #2d2d2d;
    --secondary-color: #1a1a1a;
    --accent-color: #3a3a3a;
    --text-color: #2d2d2d;
    --text-light: #666666;
    --bg-color: #ffffff;
    --bg-secondary: #f8f9fa;
    --border-color: #e0e0e0;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --gradient: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    --gradient-alt: linear-gradient(135deg, #0a0a0a 0%, #1f1f1f 100%);
    --gradient-hero: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0f1419 100%);
    --neon-glow: 0 0 5px #00d9ff, 0 0 10px #00d9ff, 0 0 15px #00d9ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Remove blue selection on mobile */
*::selection {
    background-color: rgba(45, 45, 45, 0.2);
    color: inherit;
}

*::-moz-selection {
    background-color: rgba(45, 45, 45, 0.2);
    color: inherit;
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

/* Disable text selection highlight on mobile tap */
a, button, .nav-link, .project-card-link {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   Typography
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
}

/* ===================================
   Navigation
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--border-color);
}

.navbar.scrolled .logo a,
.navbar.scrolled .nav-link {
    color: var(--text-color);
    text-shadow: none;
}

.navbar.scrolled .nav-link::after {
    background: var(--text-color);
}

.navbar.scrolled .hamburger {
    background: transparent;
}

.navbar.scrolled .hamburger span {
    background: var(--text-color);
}

/* Side Navigation */
.side-nav {
    position: fixed;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 2rem 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 
                0 0 20px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 9999;
    max-height: 60vh;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.side-nav.active {
    opacity: 1;
    visibility: visible;
}

.side-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
}

.side-link {
    padding: 0.85rem 1.8rem;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.05);
    display: block;
    min-width: 150px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: var(--transition);
}

.side-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transform: translateX(8px) scale(1.05);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.15);
}

.side-link.active {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
    box-shadow: 0 5px 25px rgba(255, 255, 255, 0.3);
    font-weight: 700;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    transition: var(--transition);
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    transition: var(--transition);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.logo a span {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.logo a:hover {
    color: var(--primary-color);
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

@keyframes smoothSlideIn {
    0% {
        left: -50px;
        opacity: 0;
        transform: translateY(-50%) translateX(-30px) scale(0.9);
    }
    60% {
        opacity: 1;
    }
    100% {
        left: 30px;
        opacity: 1;
        transform: translateY(-50%) translateX(0) scale(1);
    }
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffffff;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
    background: #ffffff;
}

.nav-link:hover,
.nav-link.active {
    color: rgba(255, 255, 255, 0.8);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    background: transparent;
    border: none;
    padding: 8px;
    -webkit-tap-highlight-color: transparent;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient);
    color: #ffffff;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    color: #ffffff;
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 60px;
    position: relative;
    overflow: hidden;
    background: #000000;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    opacity: 0.5;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    animation: fadeInUp 1s ease;
}

.code-line {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #ffffff;
    opacity: 0.8;
}

.code-symbol {
    color: #ffffff;
}

.code-tag {
    color: #ffffff;
}

.greeting {
    display: block;
    font-size: 1.2rem;
    color: #999;
    margin-bottom: 0.5rem;
}

.name {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}
 
/*@keyframes textGlow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(0, 217, 255, 0.5)); }
    50% { filter: drop-shadow(0 0 30px rgba(0, 217, 255, 0.8)); }
} */

.hero-subtitle {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 1rem;
    min-height: 40px;
}

.typing-text {
    font-weight: 600;
}

.cursor {
    animation: blink 0.7s infinite;
}

.hero-description {
    font-size: 1.1rem;
    color: #aaa;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1.2rem;
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow);
}

.social-links a:hover {
    background: var(--primary-color);
    color: #000000;
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.image-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    border: 5px solid rgba(0, 217, 255, 0.3);
    animation: profileGlow 3s ease-in-out infinite;
}

/* @keyframes profileGlow {
    0%, 100% { box-shadow: 0 0 40px rgba(0, 217, 255, 0.6); }
    50% { box-shadow: 0 0 60px rgba(0, 217, 255, 0.9), 0 0 80px rgba(255, 46, 99, 0.4); }
} */

.image-overlay {
    display: none;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator a {
    color: #ffffff;
    font-size: 2rem;
}

/* ===================================
   Section Styles
   =================================== */
.section {
    padding: 100px 0;
}

.section:nth-child(even) {
    background: var(--bg-secondary);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: 1.5rem;
}

/* ===================================
   About Section
   =================================== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.stat-item {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
    background: #ffffff;
}

.stat-item h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

.about-text h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.about-info {
    margin: 2rem 0;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.info-label {
    font-weight: 600;
    color: var(--secondary-color);
    min-width: 150px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-label i {
    color: var(--primary-color);
}

.info-value {
    color: var(--text-light);
}

.quote {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-left: 4px solid var(--primary-color);
    border-radius: 10px;
    font-style: italic;
    color: var(--text-light);
    margin: 2rem 0;
}

/* ===================================
   Skills Section
   =================================== */
.skills-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
}

.skill-category {
    background: #ffffff;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.skill-category h3 {
    color: var(--secondary-color);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-category h3 i {
    color: var(--primary-color);
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.skill-name {
    font-weight: 600;
    color: var(--secondary-color);
}

.skill-percentage {
    color: var(--primary-color);
    font-weight: 600;
}

.skill-bar {
    height: 10px;
    background: var(--bg-secondary);
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient);
    border-radius: 10px;
    width: 0;
    transition: width 1s ease;
}

.skill-progress.animate {
    animation: progressBar 1s ease forwards;
}

/* Tech Stack */
.tech-stack {
    text-align: center;
}

.tech-stack h3 {
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.tech-icons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 2rem;
}

.tech-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
}

.tech-icon:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
    background: #ffffff;
}

.tech-icon i {
    font-size: 3rem;
    color: var(--primary-color);
}

.tech-icon span {
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 500;
}

/* ===================================
   Experience Section
   =================================== */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    width: 50%;
}

.timeline-item.left {
    left: 0;
    padding-right: 4rem;
}

.timeline-item.right {
    left: 50%;
    padding-left: 4rem;
}

.timeline-content {
    position: relative;
    background: #ffffff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.timeline-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: var(--shadow);
}

.timeline-item.left .timeline-icon {
    right: -5.65rem;
}

.timeline-item.right .timeline-icon {
    left: -5.65rem;
}

.timeline-content h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.timeline-date {
    display: inline-block;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.timeline-date i {
    margin-right: 0.5rem;
}

.company {
    display: inline-block;
    background: var(--bg-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.timeline-tags span {
    background: var(--bg-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-color);
}

/* ===================================
   Projects Section
   =================================== */
.projects-container {
    position: relative;
    min-height: 500px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    transition: all 0.4s ease;
}

.projects-grid.detail-active {
    display: flex;
    gap: 2rem;
}

.projects-grid.detail-active .project-card-link {
    display: none;
}

.projects-grid.detail-active .project-card-link.active {
    display: block;
    flex: 0 0 45%;
}

.project-card-link {
    text-decoration: none;
    display: block;
    height: 100%;
}

.project-card {
    background: var(--bg-secondary);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(45, 45, 45, 0.2);
    transition: var(--transition);
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card-link:hover .project-card {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.project-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.project-content h3 i {
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: var(--transition);
}

.project-card-link:hover .project-content h3 i {
    transform: scale(1.2);
}

.project-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
    flex: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.project-tags span {
    background: rgba(45, 45, 45, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-color);
    border: 1px solid rgba(45, 45, 45, 0.2);
}

/* Project Detail Panel */
.project-detail-panel {
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    max-height: 500px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
    border: 2px solid rgba(45, 45, 45, 0.1);
    overflow-y: auto;
    opacity: 0;
    transform: translateX(20px);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-detail-panel.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
}

/* Project Detail Panel */
.mobile-project-detail-panel {
    right: 0;
    top: 0;
    width: 100%;
    max-height: 500px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
    border: 2px solid rgba(45, 45, 45, 0.1);
    overflow-y: auto;
    opacity: 0;
    transform: translateX(20px);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-project-detail-panel.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
}

.detail-panel-header {
    position: sticky;
    top: 0;
    background: white;
    padding: 1rem 1.5rem;
    border-bottom: 2px solid #f0f0f0;
    border-radius: 20px 20px 0 0;
    z-index: 10;
    display: flex;
    justify-content: flex-end;
}

.close-panel {
    background: #f0f0f0;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-color);
    transition: var(--transition);
}

.close-panel:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(90deg);
}

.detail-panel-content {
    padding: 1.5rem;
}

.detail-loading {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.detail-loading i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.repo-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.repo-header h2 {
    color: var(--text-color);
    font-size: 1.75rem;
    margin: 0;
}

.github-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition);
}

.github-link:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.repo-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.repo-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
}

.stat-item i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.repo-info {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
}

.info-item i {
    color: var(--primary-color);
}

.file-structure h3,
.readme-section h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.file-structure {
    margin-bottom: 2rem;
}

.file-tree {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.file-item {
    padding: 0.4rem 0;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.file-item i {
    color: var(--primary-color);
    width: 16px;
}

.file-item.folder {
    font-weight: 600;
}

.readme-content {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    color: var(--text-color);
    line-height: 1.8;
}

.readme-content h1,
.readme-content h2,
.readme-content h3 {
    color: var(--text-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.readme-content code {
    background: rgba(45, 45, 45, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

.readme-content pre {
    background: rgba(45, 45, 45, 0.05);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
}

/* ===================================
   Contact Section
   =================================== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
}

.contact-info h3,
.contact-form-wrapper h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.contact-description {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.contact-items {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 15px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-details h4 {
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
}

.contact-details a,
.contact-details p {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.contact-details a:hover {
    color: var(--primary-color);
}

.contact-social {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.contact-social a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.contact-social a:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

/* Contact Form */
.contact-form-wrapper {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 20px;
    background: var(--bg-secondary);
    color: var(--text-color);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--secondary-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-info h3 {
    color: white;
    margin-bottom: 1rem;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.footer-quote {
    font-style: italic;
    margin-top: 1rem;
}

.footer-links h4,
.footer-social h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.footer-bottom i {
    color: var(--accent-color);
}

/* ===================================
   Scroll to Top
   =================================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
    .hero-content,
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .projects-grid.detail-active {
        flex-direction: column;
    }

    .mobile-project-detail-panel {
        position: relative;
        width: 100%;
        max-height: none;
        background: white;
        border-radius: 20px;
        box-shadow: var(--shadow-hover);
        border: 2px solid rgba(45, 45, 45, 0.1);
        overflow-y: auto;
        opacity: 0;
        max-height: 0;
        pointer-events: none;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        margin-top: 50px;
    }
    
    .mobile-project-detail-panel.active {
        opacity: 1;
        max-height: 2000px;
        pointer-events: all;
    }
    
    .hero-image {
        order: -1;
        position: static !important;
        transform: none !important;
        width: 200px !important;
        height: 200px !important;
        margin: 0 auto 2rem auto;
    }
    
    .hero-image img {
        width: 100%;
        height: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .about-image {
        max-width: 250px;
        margin: 0 auto 2rem auto;
        display: block;
        width: 100%;
        order: -1;
    }
    
    .about-image img {
        display: block;
        margin: 0 auto;
        max-width: 100%;
    }
    
    .about-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center;
        text-align: center;
        padding: 0 10px;
        margin: 0;
        width: 100%;
        grid-template-columns: 1fr !important;
    }
    
    .about-grid {
        padding: 0;
    }
    
    .about-image {
        order: -1;
    }
    
    .about-content h2,
    .about-content h3 {
        font-size: 1.5rem;
        width: 100%;
        text-align: center;
    }
    
    .about-content p {
        font-size: 0.95rem;
        width: 100%;
        text-align: center;
        padding: 0 10px;
    }
    
    .about-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        margin-top: 1.5rem;
        padding: 0 10px;
        width: 100%;
        max-width: 100%;
        order: 3;
        justify-content: center;
    }
    
    .stat-item {
        padding: 1rem;
        margin: 0 auto;
    }
    
    .stat-item h3 {
        font-size: 1.5rem;
    }
    
    .stat-item p {
        font-size: 0.8rem;
    }
    
    /* Timeline - Simple card layout for mobile */
    .timeline {
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .timeline::before {
        display: none;
    }
    
    .timeline-item {
        width: 100% !important;
        padding: 0 !important;
        left: 0 !important;
        margin-bottom: 2rem !important;
        position: relative !important;
    }
    
    .timeline-item.left,
    .timeline-item.right {
        left: 0 !important;
        padding: 0 !important;
    }
    
    .timeline-content {
        padding: 1.5rem;
        margin: 0;
        width: 100%;
        position: relative;
    }
    
    .timeline-icon {
        position: absolute !important;
        left: 1.5rem !important;
        top: 1.5rem !important;
        right: auto !important;
        width: 45px !important;
        height: 45px !important;
        font-size: 1.1rem !important;
        transform: none !important;
        margin: 0 !important;
    }
    
    .timeline-item.left .timeline-icon,
    .timeline-item.right .timeline-icon {
        left: 1.5rem !important;
        top: 1.5rem !important;
        right: auto !important;
    }
    
    .timeline-content h3 {
        font-size: 1.15rem;
        margin-bottom: 0.5rem;
        margin-left: 60px;
        line-height: 1.4;
    }
    
    .timeline-date {
        font-size: 0.85rem;
        display: block;
        margin-bottom: 0.5rem;
        margin-left: 60px;
    }
    
    .company {
        font-size: 0.85rem;
        display: inline-block;
        margin-bottom: 0.75rem;
        margin-left: 60px;
    }
    
    .timeline-content p {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-top: 0.75rem;
    }
    
    .timeline-content ul {
        margin-top: 0.75rem;
        padding-left: 1.25rem;
    }
    
    .timeline-content li {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 0.5rem;
    }
    
    .timeline-tags {
        margin-top: 0.75rem;
        gap: 0.5rem;
    }
    
    .timeline-tags span {
        font-size: 0.8rem;
        padding: 0.25rem 0.65rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section-title {
        padding: 0 10px;
        width: 100%;
    }
    
    .section-title h2,
    .section-title p {
        width: 100%;
        text-align: center;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        box-shadow: var(--shadow);
        border-top: 1px solid var(--border-color);
    
    /* Projects - Mobile */
    .projects-container {
        min-height: auto;
        position: relative;
    }
    
    .projects-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
        transition: all 0.4s ease;
    }
    
    /* When detail is active, hide other cards */
    .projects-grid.detail-active .project-card-link {
        display: none;
    }

    .projects-grid.detail-active .project-card-link.active {
        display: block;
        width: 100% !important;
        margin-bottom: 1.5rem;
    }
    
    /* Hide desktop detail panel on mobile */
    .project-detail-panel {
        display: none !important;
    }
    
    /* Project cards */
    .project-card-link {
        text-decoration: none;
        display: block;
    }
    
    .project-card {
        cursor: pointer;
        transition: transform 0.3s ease;
    }
    
    .project-card:active {
        transform: scale(0.98);
    }
    
    .detail-panel-header {
        padding: 1rem;
        border-radius: 15px 15px 0 0;
    }
    
    .detail-panel-content {
        padding: 1rem;
    }
    
    .repo-header {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .repo-header h2 {
        font-size: 1.25rem;
    }
    
    .repo-stats {
        flex-wrap: wrap;
        gap: 1rem;
        padding: 0.75rem;
    }
    
    .repo-info {
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .file-structure,
    .readme-section {
        margin-bottom: 1.5rem;
    }
    
    .file-structure h3,
    .readme-section h3 {
        font-size: 1.1rem;
    }
    
    .readme-content {
        padding: 1rem;
        font-size: 0.9rem;
    }
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu.active .nav-link {
        color: var(--text-color);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu ul {
        flex-direction: column;
        padding: 2rem;
        gap: 0;
    }
    
    .nav-menu li {
        margin-bottom: 1rem;
    }
    
    .name {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
    }
    
    .skills-content {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .tech-icons {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 1rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    /* Contact items mobile optimization */
    .contact-item {
        padding: 1rem;
    }
    
    .contact-item h4 {
        font-size: 0.9rem;
    }
    
    .contact-item a,
    .contact-item p {
        font-size: 0.85rem;
        word-break: break-word;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 60px 0;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .name {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}
