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

:root {
    /* Color Variables */
    --primary-bg: #0a0a0a;
    --secondary-bg: #1a1a1a;
    --card-bg: #252525;
    --accent-color: #00d4ff;
    --secondary-accent: #ff6b6b;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;
    --border-color: #333333;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #00d4ff 0%, #5b86e5 100%);
    --gradient-accent: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    
    /* Font Variables */
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-padding: 0 20px;
    
    /* Transitions */
    --transition-smooth: all 0.3s ease;
    --transition-fast: all 0.15s ease;
    
    /* Shadows */
    --shadow-light: 0 4px 20px rgba(0, 212, 255, 0.1);
    --shadow-medium: 0 8px 40px rgba(0, 212, 255, 0.15);
    --shadow-heavy: 0 20px 60px rgba(0, 0, 0, 0.3);
    
    /* Christmas Colors */
    --christmas-green: #1e3a1e;
    --christmas-green-light: #2d5a2d;
    --christmas-red: #c41e3a;
    --christmas-gold: #d4af37;
    --christmas-white: #e8f5e8;
}

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

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition-smooth);
}

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

.nav-logo .logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
    padding: 0.5rem 1rem;
}

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

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

.nav-link:hover::after {
    width: 80%;
}

/* Hamburger Menu - Force Override All Conflicts */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0;
    margin: 0;
    width: 24px;
    height: 18px;
    justify-content: space-between;
    background: transparent;
    border: none;
    outline: none;
}

.hamburger .bar {
    width: 24px !important;
    height: 2px !important;
    background: white !important;
    background-image: none !important;
    background-color: white !important;
    display: block !important;
    transition: all 0.3s ease;
    border: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: auto !important;
    position: static !important;
    flex: none !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--primary-bg);
}

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

.particles-container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: var(--accent-color);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.neural-network {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.1;
}

.hero-content {
    text-align: center;
    max-width: 1000px;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
}

.hero-layout {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3rem;
    align-items: center;
    text-align: left;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-avatar {
    width: 280px;
    height: 280px;
    border-radius: 15px;
    background: var(--gradient-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.hero-avatar::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 20px;
    background: var(--gradient-accent);
    z-index: -1;
    opacity: 0.8;
}

.hero-profile-img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
    object-position: center;
    border: 3px solid var(--text-primary);
    transition: var(--transition-smooth);
}

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

.hero-text {
    flex: 1;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.title-line {
    display: block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleSlide 1s ease-out forwards;
    opacity: 0;
    transform: translateX(-50px);
}

.title-line:nth-child(2) {
    animation-delay: 0.2s;
}

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

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.gradient-text {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.hero-tagline {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-secondary);
    color: var(--text-primary);
    box-shadow: var(--shadow-light);
}

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

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

.btn-secondary:hover {
    background: var(--accent-color);
    color: var(--primary-bg);
    transform: translateY(-3px);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-right: 2px solid var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
    transform: rotate(45deg);
}

/* Section Styles */
section {
    padding: var(--section-padding);
    position: relative;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

/* Projects Section */
.projects {
    background: var(--secondary-bg);
}

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

.image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-avatar {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--gradient-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: pulse 4s ease-in-out infinite;
    padding: 8px;
    overflow: hidden;
}

.profile-avatar::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: var(--gradient-accent);
    z-index: -1;
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    0% { 
        opacity: 0.5;
        transform: scale(1);
    }
    100% { 
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 3px solid var(--text-primary);
    transition: var(--transition-smooth);
}

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

.ai-avatar {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--gradient-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: rotate 20s linear infinite;
}

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

.ai-avatar::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: var(--gradient-accent);
    z-index: -1;
    animation: rotate 15s linear infinite reverse;
}

.ai-avatar i {
    font-size: 4rem;
    color: var(--text-primary);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

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

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

.expertise-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 10px;
    transition: var(--transition-smooth);
}

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

.expertise-item i {
    color: var(--accent-color);
    font-size: 1.5rem;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    align-items: start;
}

/* Ensure projects take equal space on desktop */
@media (min-width: 1200px) {
    .projects-grid {
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: auto;
    }
    
    /* First two projects take first two columns */
    .project-card:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
    }
    
    .project-card:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
    }
    
    /* Coming soon card takes the third column and centers vertically */
    .coming-soon-card {
        grid-column: 3;
        grid-row: 1;
        align-self: center;
        height: auto; /* Let content determine height */
        min-height: 450px; /* Match project cards */
    }
}

/* For medium screens (tablets) */
@media (min-width: 768px) and (max-width: 1199px) {
    .projects-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .project-card:nth-child(1) {
        grid-column: 1;
    }
    
    .project-card:nth-child(2) {
        grid-column: 2;
    }
    
    .coming-soon-card {
        grid-column: 1 / -1; /* Spans both columns */
        margin-top: 1rem;
    }
}

.coming-soon-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    border: 2px dashed var(--border-color);
    transition: var(--transition-smooth);
    height: auto; /* Let content determine height */
    min-height: 450px; /* Match project cards minimum */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}

.coming-soon-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-light);
}

.coming-soon-left {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30%; /* 30% width for icon side */
    border-right: 2px dashed var(--border-color);
    margin-right: 2rem;
}

.coming-soon-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    justify-content: space-between;
    height: 100%;
    padding: 1rem 0;
}

.coming-soon-icon {
    font-size: 3rem;
    color: var(--accent-color);
    animation: bounce 2s ease-in-out infinite;
    margin-bottom: 1rem;
}

.coming-soon-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-align: center;
}

.coming-soon-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 0.95rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
}

.coming-soon-animation {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: auto;
}

.coming-soon-animation .dot {
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: dots 1.4s ease-in-out infinite both;
}

.coming-soon-animation .dot:nth-child(1) { animation-delay: -0.32s; }
.coming-soon-animation .dot:nth-child(2) { animation-delay: -0.16s; }
.coming-soon-animation .dot:nth-child(3) { animation-delay: 0s; }

@keyframes dots {
    0%, 80%, 100% { 
        transform: scale(0);
        opacity: 0.5;
    }
    40% { 
        transform: scale(1);
        opacity: 1;
    }
}

.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    transition: var(--transition-smooth);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    height: auto; /* Let content determine height */
    min-height: 450px; /* Increased minimum height for better balance */
    display: flex;
    flex-direction: column;
}

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

.featured-project::before {
    content: 'FEATURED';
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-secondary);
    color: var(--text-primary);
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

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

.project-card:hover::before {
    left: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-color);
}

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

.project-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
}

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

.project-link {
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.project-link:hover {
    color: var(--accent-color);
    transform: scale(1.2);
}

.project-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    line-height: 1.3;
}

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

.project-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.5rem 0;
    padding: 0.6rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
    padding: 0.2rem 0;
    flex: 1;
    min-width: 0;
}

.highlight-item i {
    color: var(--accent-color);
    font-size: 0.85rem;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.highlight-item span {
    font-weight: 500;
}

/* Responsive adjustments for highlights */
@media (max-width: 768px) {
    .project-highlights {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem;
    }
    
    .highlight-item {
        font-size: 0.9rem;
    }
}

/* Remove old case study styles that are no longer needed */
.case-study {
    display: none;
}

/* Skills Section */
.skills {
    background: var(--secondary-bg);
}

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

.skill-category {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.category-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.category-title i {
    color: var(--accent-color);
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-item {
    display: grid;
    grid-template-columns: 1fr 2fr auto;
    align-items: center;
    gap: 1rem;
}

.skill-name {
    font-weight: 500;
    color: var(--text-secondary);
}

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

.skill-progress {
    height: 100%;
    background: var(--gradient-secondary);
    border-radius: 10px;
    width: 0;
    transition: width 1.5s ease-out;
    position: relative;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 2s infinite;
}

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

.skill-percentage {
    font-weight: 600;
    color: var(--accent-color);
    min-width: 40px;
    text-align: right;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

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

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 10px;
    transition: var(--transition-smooth);
}

.contact-method:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-light);
}

.contact-method i {
    font-size: 1.5rem;
    color: var(--accent-color);
    width: 30px;
}

.method-label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
}

.method-value {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

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

.form-group label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--text-muted);
    transition: var(--transition-smooth);
    pointer-events: none;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -0.5rem;
    left: 0.5rem;
    font-size: 0.8rem;
    color: var(--accent-color);
    background: var(--card-bg);
    padding: 0 0.5rem;
}

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

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

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

.footer-content p {
    color: var(--text-muted);
}

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    color: var(--text-secondary);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.social-link:hover {
    background: var(--accent-color);
    color: var(--primary-bg);
    transform: translateY(-3px);
}

/* Animations */
.fade-in {
    animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    animation: slideInLeft 1s ease-out forwards;
}

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

.slide-in-right {
    animation: slideInRight 1s ease-out forwards;
}

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

/* Tech Stack Modal */
.tech-modal,
.preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.tech-modal-content,
.preview-modal-content {
    background: var(--bg-primary);
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.tech-modal-header,
.preview-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-modal-header h3,
.preview-modal-header h3 {
    color: var(--text-primary);
    margin: 0;
    font-size: 1.3rem;
}

.close-tech-modal,
.close-preview-modal {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-tech-modal:hover,
.close-preview-modal:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
}

.tech-modal-body,
.preview-modal-body {
    padding: 2rem;
}

/* Tech Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.tech-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.tech-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.tech-icon {
    font-size: 2rem;
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-info h4 {
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.tech-info p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Preview Modal */
.preview-image {
    margin-bottom: 1.5rem;
}

.preview-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

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

.preview-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-light);
}

.stat-item i {
    color: var(--accent-color);
    font-size: 0.9rem;
}

/* Share Notification */
.share-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: 500;
    z-index: 10001;
    transition: all 0.3s ease;
    opacity: 0;
}

.share-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        padding: 2rem 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

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

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

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .ai-avatar {
        width: 250px;
        height: 250px;
    }

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

    .expertise-areas {
        grid-template-columns: 1fr;
    }

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

    .coming-soon-card {
        height: auto;
        min-height: 400px;
        flex-direction: column;
        text-align: center;
    }
    
    .coming-soon-left {
        flex: none;
        border-right: none;
        border-bottom: 2px dashed var(--border-color);
        margin-right: 0;
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }
    
    .coming-soon-content {
        align-items: center;
        text-align: center;
    }
    
    .coming-soon-title,
    .coming-soon-description {
        text-align: center;
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

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

    .hero-avatar {
        width: 220px;
        height: 220px;
        margin: 0 auto;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }

    .section-title {
        font-size: 2.5rem;
        margin-bottom: 3rem;
    }

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

    .coming-soon-card {
        min-height: 340px;
        text-align: center;
        height: auto;
    }
    
    .project-btn {
        min-width: 120px;
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .coming-soon-content {
        gap: 1rem;
        padding: 0;
    }
    
    .coming-soon-icon {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }

    .skills-categories {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .skill-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: center;
    }

    .skill-bar {
        order: 3;
    }

    .skill-percentage {
        order: 2;
        text-align: center;
    }

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

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

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

    .project-card {
        padding: 1.5rem;
    }

    .skill-category {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Selection */
::selection {
    background: rgba(0, 212, 255, 0.3);
    color: var(--text-primary);
}

/* Focus styles for accessibility */
button:focus,
input:focus,
textarea:focus,
a:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Loading animation */
.loading {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Project Tech Tags Styling */
.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.8rem 0 1.2rem 0;
}

.tech-tag {
    background: var(--gradient-primary);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 18px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tech-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(64, 123, 255, 0.4);
}

/* Ensure content distribution within fixed height */
.project-title {
    margin-bottom: 0.75rem;
    flex-shrink: 0;
}

.project-highlights {
    flex-shrink: 0;
    margin: 0.75rem 0;
}

.project-tech {
    flex-shrink: 0;
    margin: 0.75rem 0 0 0; /* Reduced margin */
}

.project-actions {
    flex-shrink: 0;
    margin-top: auto;
    padding-top: 1rem;
    display: flex;
    gap: 0.8rem;
}

.project-btn {
    flex: 1;
    min-width: 100px;
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    border: 2px solid transparent;
    letter-spacing: 0.2px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), #5a67d8);
    color: white;
    border-color: var(--accent-color);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a67d8, var(--accent-color));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(64, 123, 255, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #2d3748, #4a5568);
    color: white;
    border-color: #4a5568;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #4a5568, #2d3748);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 85, 104, 0.4);
}

.project-btn i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.project-btn:hover i {
    transform: scale(1.1);
}

/* Project button styles simplified */
.action-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: 0.8rem;
}

.action-btn:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(64, 123, 255, 0.4);
}

.share-btn:hover {
    background: linear-gradient(45deg, #6f42c1, #e83e8c);
}

/* Tooltip for action buttons */
.action-btn::before {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    margin-bottom: 5px;
}

.action-btn:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .primary-actions {
        flex-direction: column;
    }
    
    .project-btn {
        min-width: auto;
    }
    
    .secondary-actions {
        justify-content: space-around;
    }
    
    .action-btn {
        width: 40px;
        height: 40px;
    }
}
