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

:root {
    --bg-color: #1e1e2f;
    --card-bg: #2a2a3e;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b8;
    --accent-color: #ff6b61;
    --accent-hover: #ff5a4f;
    --border-color: #3a3a4f;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(30, 30, 47, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 1rem 0;
}

/* Theme Switcher */
.theme-switcher {
    position: relative;
}

.theme-toggle {
    display: flex;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    padding: 0.3rem;
    gap: 0.2rem;
}

.theme-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.theme-btn:hover {
    color: var(--accent-color);
    background-color: rgba(255, 107, 97, 0.1);
}

.theme-btn.active {
    background-color: var(--accent-color);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 107, 97, 0.3);
}

.theme-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    transform: translate(-50%, -50%);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 1;
}

.theme-btn[data-theme="dark"]::before {
    content: '🌙';
}

.theme-btn[data-theme="light"]::before {
    content: '☀️';
}

.theme-btn[data-theme="cyberpunk"]::before {
    content: '🤖';
}

.theme-btn[data-theme="techno"]::before {
    content: '⚡';
}

.theme-btn span {
    position: relative;
    z-index: 2;
    font-size: 0;
}

.theme-btn.active span {
    font-size: 0;
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo-image {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-color);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 107, 97, 0.3);
}

.nav-logo-image:hover {
    transform: scale(1.1);
    border-color: var(--accent-hover);
    box-shadow: 0 4px 12px rgba(255, 107, 97, 0.5);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

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

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

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

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

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

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 0.3rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

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

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

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, var(--bg-color) 0%, #252536 100%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 80vh;
}

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

.hero-greeting {
    font-size: 4rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.highlight {
    color: var(--accent-color);
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
}

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

.btn {
    padding: 1rem 2rem;
    border: 2px solid var(--accent-color);
    background-color: transparent;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 97, 0.3);
}

.btn-secondary {
    border-color: var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 97, 0.1);
}

/* Profile Image */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.profile-container {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-bg {
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--accent-color), #ff8a80);
    opacity: 0.1;
    animation: rotate 20s linear infinite;
}

.profile-bg::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border-radius: 50%;
    background: linear-gradient(45deg, transparent, var(--accent-color), transparent);
    opacity: 0.3;
    animation: rotate 15s linear infinite reverse;
}

.profile-img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    border: 3px solid var(--accent-color);
    transition: transform 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.05);
}

/* Technical Skills Section */
.technical-skills {
    padding: 5rem 0;
    background-color: var(--bg-color);
    position: relative;
    overflow: hidden;
}

.technical-skills-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.technical-skills-header {
    text-align: center;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.3s forwards;
}

.technical-skills-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.technical-skills-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    border-radius: 2px;
}

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

.technical-skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.6s forwards;
}

/* Ensure technical skills items don't inherit any animations */
.technical-skills .skill-item {
    animation: none !important;
}

.skill-category {
    background-color: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Electric glow effect on hover */
.skill-category::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00ffff, #0080ff, #ff0080, #8000ff, #00ffff);
    background-size: 400% 400%;
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: electric-pulse 2s ease-in-out infinite alternate;
}

.skill-category:hover::before {
    opacity: 0.3;
    animation: electric-pulse 3s ease-in-out infinite alternate;
}

.skill-category:hover {
    border-color: #00ffff;
    box-shadow:
        0 0 10px rgba(0, 255, 255, 0.15),
        0 0 20px rgba(0, 255, 255, 0.08),
        inset 0 0 10px rgba(0, 255, 255, 0.05);
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.02), rgba(0, 255, 255, 0.01));
}

/* Electric pulse animation */
@keyframes electric-pulse {
    0% {
        background-position: 0% 50%;
        filter: hue-rotate(0deg);
    }
    50% {
        background-position: 100% 50%;
        filter: hue-rotate(180deg);
    }
    100% {
        background-position: 0% 50%;
        filter: hue-rotate(360deg);
    }
}

.skill-category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.skill-category-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    border-radius: 15px;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 97, 0.3);
    transition: transform 0.3s ease;
}

.skill-category:hover .skill-category-icon {
    transform: scale(1.1) rotate(5deg);
}

.skill-category-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: stretch;
    text-align: center;
    width: 100%;
}

.skill-item {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.8rem 1rem;
    border-radius: 10px;
    background-color: rgba(255, 107, 97, 0.05);
    border: 1px solid rgba(255, 107, 97, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
    width: 100%;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    line-height: 1.3;
}



.skill-item:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
    background-color: rgba(255, 107, 97, 0.1);
}

/* Legacy Skills Section */
.skills {
    background-color: var(--card-bg);
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    overflow: hidden;
}

.skills-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.skills-scroll {
    display: flex;
    gap: 3rem;
    /* Animation only for legacy skills section */
    white-space: nowrap;
}

.skill-item {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background-color: rgba(255, 107, 97, 0.1);
    border: 1px solid rgba(255, 107, 97, 0.2);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.skill-item:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    background-color: rgba(255, 107, 97, 0.2);
}

/* About Section */
.about {
    padding: 5rem 0;
    background-color: var(--bg-color);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.about-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.services {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.service-item:hover {
    background-color: rgba(255, 107, 97, 0.1);
    transform: translateX(10px);
}

.service-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-color);
    border-radius: 10px;
    color: white;
}

.service-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
}

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

.stat-item {
    text-align: center;
    padding: 2rem;
    background-color: var(--card-bg);
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Animations - Optimized for performance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Performance optimizations */
.skill-item,
.profile-bg,
.btn {
    will-change: transform;
}

/* Optimize for smooth animations */
.hero-text,
.service-item,
.stat-item {
    will-change: opacity, transform;
}

/* Hardware acceleration for better performance */
.profile-bg::before,
.profile-bg {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Reduce paint and composite operations */
.nav-link::after {
    will-change: width;
}

/* Optimize button interactions */
.btn {
    contain: layout style;
}

/* Loading state */
body:not(.loaded) * {
    animation-duration: 0s !important;
    transition-duration: 0s !important;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .skills-scroll {
        animation: none !important;
    }
    
    .profile-bg {
        animation: none !important;
    }
}

/* Projects Section */
.projects {
    padding: 5rem 0;
    background-color: var(--bg-color);
}

.projects-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.projects-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

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

.project-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-card.featured {
    border: 2px solid var(--accent-color);
}

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

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 107, 97, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Removed hover effect for project overlay - no "View Project" button on hover */

.project-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1rem 2rem;
    border: 2px solid white;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.project-link:hover {
    background-color: white;
    color: var(--accent-color);
}

.project-content {
    padding: 1.5rem;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.project-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.project-date {
    display: none; /* Hidden - date removed from gallery */
}

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

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

.tech-tag {
    background-color: rgba(255, 107, 97, 0.15);
    color: var(--accent-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(255, 107, 97, 0.3);
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background-color: var(--bg-color);
    position: relative;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-header {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.contact-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background-color: var(--bg-color);
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateX(10px);
}

.contact-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-color);
    border-radius: 10px;
    color: white;
}

.contact-details {
    flex: 1;
}

.contact-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

.contact-value {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.email-link {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.email-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.contact-form-container {
    background-color: var(--bg-color);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 97, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background-color: var(--bg-color);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.social-link:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 97, 0.3);
}

.social-icon {
    font-size: 1.2rem;
}



/* Video Links Section */
.video-links {
    padding: 5rem 0;
    background-color: var(--card-bg);
}

.video-links-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.video-links-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.video-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.video-link-card {
    background-color: var(--bg-color);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.video-link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 15px;
    background: var(--card-bg);
}

.video-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 15px;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
    border-radius: 15px;
}

.video-container:hover .video-overlay {
    opacity: 0.8;
}

.video-play-btn {
    background: rgba(255, 107, 97, 0.9);
    color: white;
    border: none;
    border-radius: 15px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.video-play-btn:hover {
    background: var(--accent-color);
    transform: scale(1.05);
}

/* Video magnification when playing */
.video-playing {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    z-index: 10;
    transition: all 0.3s ease;
}

.video-playing .video-overlay {
    display: none !important;
}

.play-icon {
    font-size: 1.2rem;
}

.platform-badge {
    font-size: 0.8rem;
    opacity: 0.9;
}

.video-platform {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.video-content {
    padding: 1.5rem;
}

.video-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.video-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Experience Section */
.experience {
    padding: 5rem 0;
    background-color: var(--bg-color);
}

.experience-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.experience-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.experience-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    border-radius: 2px;
}

.experience-timeline {
    display: grid;
    gap: 2rem;
    align-items: start;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    /* Auto-scaling columns based on screen size */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.experience-item {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    width: 100%;
    max-width: 600px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-align: center;
}

.experience-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-color);
}

.experience-header {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.experience-position {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.experience-company {
    font-size: 1.1rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.experience-period {
    font-size: 0.9rem;
    color: var(--text-secondary);
    background-color: rgba(255, 107, 97, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 107, 97, 0.2);
    display: inline-block;
}

.experience-description {
    text-align: left;
}

.experience-description p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
}

/* Character References Section */
.references {
    padding: 5rem 0;
    background-color: var(--card-bg);
}

.references-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.references-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.reference-card {
    background-color: var(--bg-color);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.reference-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.reference-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-color);
}

.reference-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reference-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.reference-title {
    font-size: 1rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.reference-relationship {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.reference-contact {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.contact-info {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* Contact Section Updates */
.contact-simple {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto 3rem;
    align-items: center;
    text-align: center;
}

.contact-item-simple {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background-color: var(--card-bg);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 400px;
}

.contact-item-simple:hover {
    transform: translateY(-3px);
    border-color: var(--accent-color);
    box-shadow: 0 8px 25px rgba(255, 107, 97, 0.15);
}

/* Circuit Board Background Animation */
.hero {
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 107, 97, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 107, 97, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, var(--bg-color) 0%, #252536 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(90deg, transparent 49%, rgba(255, 215, 0, 0.03) 50%, transparent 51%),
        linear-gradient(0deg, transparent 49%, rgba(255, 215, 0, 0.03) 50%, transparent 51%),
        radial-gradient(circle at 25% 25%, rgba(255, 215, 0, 0.05) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(255, 215, 0, 0.05) 2px, transparent 2px);
    background-size: 60px 60px, 60px 60px, 60px 60px, 60px 60px;
    animation: circuit-flow 20s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes circuit-flow {
    0% {
        background-position: 0 0, 0 0, 0 0, 0 0;
    }
    100% {
        background-position: 60px 60px, 60px 60px, 60px 60px, 60px 60px;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Enhanced Profile Background */
.profile-bg {
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent, rgba(255, 215, 0, 0.1), transparent, rgba(255, 107, 97, 0.1), transparent);
    animation: rotate 20s linear infinite;
}

.profile-bg::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(255, 215, 0, 0.3), transparent);
    transform: translateX(-50%) rotate(45deg);
    animation: pulse 2s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% { opacity: 0.3; transform: translateX(-50%) rotate(45deg) scale(1); }
    100% { opacity: 0.8; transform: translateX(-50%) rotate(45deg) scale(1.1); }
}

/* Enhanced Responsive Design for Better Mobile/Desktop Adaptation */

/* Large Desktop Screens (1400px and up) */
@media (min-width: 1400px) {
    .projects-container,
    .video-links-container,
    .references-container,
    .contact-container {
        max-width: 1600px;
        padding: 0 4rem;
    }

    .hero-container {
        max-width: 1400px;
    }

    .about-container {
        max-width: 1400px;
    }
}

/* Desktop Screens (1200px to 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
    .projects-container,
    .video-links-container,
    .references-container,
    .contact-container {
        max-width: 1400px;
        padding: 0 3rem;
    }
}

/* Tablet and Small Desktop (768px to 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
    .projects-container,
    .video-links-container,
    .references-container,
    .contact-container {
        padding: 0 2rem;
    }

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

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

    .about-title {
        font-size: 2.5rem;
    }

    .projects-title,
    .video-links-title,
    .references-title {
        font-size: 2.5rem;
    }

    /* Technical Skills for Tablet */
    .technical-skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .skill-category {
        padding: 1.8rem;
    }

    .skill-category-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .skill-category-icon {
        margin: 0 auto;
    }
}

/* Mobile and Tablet (up to 767px) */
@media (max-width: 767px) {
    .nav-container {
        padding: 0 1rem;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--bg-color);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 2rem;
        gap: 2rem;
        transition: left 0.3s ease;
        z-index: 999;
        border-top: 1px solid var(--border-color);
    }

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

    .nav-right {
        gap: 1rem;
    }

    .theme-toggle {
        order: -1;
        margin-bottom: 1rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

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

    .hero-greeting {
        font-size: 2.5rem;
    }

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

    .profile-container {
        width: 300px;
        height: 300px;
    }

    .profile-bg {
        width: 250px;
        height: 250px;
    }

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

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

    .about-title {
        font-size: 2rem;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .skills-scroll {
        gap: 2rem;
    }

    .skill-item {
        font-size: 1rem;
        padding: 0.3rem 0.8rem;
    }

    /* Technical Skills Mobile Styles */
    .technical-skills {
        padding: 3rem 0;
    }

    .technical-skills-container {
        padding: 0 1rem;
    }

    .technical-skills-title {
        font-size: 2rem;
    }

    .technical-skills-subtitle {
        font-size: 1rem;
    }

    .technical-skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .skill-category {
        padding: 1.5rem;
    }

    .skill-category-header {
        margin-bottom: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .skill-category-icon {
        font-size: 2rem;
        width: 50px;
        height: 50px;
        margin: 0 auto;
    }

    .skill-category-title {
        font-size: 1.2rem;
    }

    .skill-list {
        gap: 0.6rem;
    }

    .skill-item {
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
        min-height: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 250px;
    }

    .hero-greeting {
        font-size: 2rem;
    }

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

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

    .projects-title {
        font-size: 2rem;
    }

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

    .contact-title {
        font-size: 2rem;
    }

    .social-links {
        gap: 1rem;
    }

    .social-link {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    .references-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .references-title {
        font-size: 2rem;
    }

    .video-links-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .video-links-title {
        font-size: 2rem;
    }

    /* Better Mobile Navigation */
    .navbar {
        padding: 0.8rem 0;
    }

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

    .nav-logo {
        font-size: 1.3rem;
    }

    /* Improved Mobile Typography */
    .projects-title,
    .video-links-title,
    .references-title,
    .contact-title {
        font-size: 2.2rem;
        margin-bottom: 3rem;
    }

    .hero-greeting {
        font-size: 2.2rem;
    }

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

    /* Better Mobile Spacing */
    .projects,
    .video-links,
    .references {
        padding: 3rem 0;
    }
}

/* Extra Small Mobile Devices (380px and below) */
@media (max-width: 380px) {
    .hero-greeting {
        font-size: 1.8rem;
    }

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

    .profile-container {
        width: 250px;
        height: 250px;
    }

    .profile-bg {
        width: 200px;
        height: 200px;
    }

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

    .about-title {
        font-size: 1.8rem;
    }

    .projects-title,
    .video-links-title,
    .references-title {
        font-size: 1.8rem;
    }
}

/* Landscape Mobile Orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 80vh;
    }

    .hero-greeting {
        font-size: 2rem;
    }

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


}

/* High DPI / Retina Display Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .profile-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }


}

/* Print Styles */
@media print {
    .navbar,
    .hero-buttons,

    .video-custom-controls {
        display: none !important;
    }




}
