/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 26, 46, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(245, 158, 11, 0.2);
    z-index: 1000;
    padding: 16px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 16px;
    border-radius: 6px;
}

.nav-links a:hover {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    transform: translateY(-1px);
}

.nav-links a.active {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.15);
}

/* Dashboard Header */
.dashboard-header {
    padding: 120px 20px 60px;
    background: #0f0f23;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.terminal-window {
    background: #1a1a2e;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 900px;
    width: 100%;
    overflow: hidden;
    border: 1px solid #2d2d4a;
}

.terminal-bar {
    background: #2d2d4a;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #3d3d5a;
}

.terminal-controls {
    display: flex;
    gap: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.close { background: #ff5f57; }
.control.minimize { background: #ffbd2e; }
.control.maximize { background: #28ca42; }

.terminal-title {
    color: #8892b0;
    font-family: 'Fira Code', 'Monaco', 'Cascadia Code', monospace;
    font-size: 14px;
}

.terminal-content {
    padding: 30px;
    background: #1a1a2e;
    color: #8cc8ff;
    font-family: 'Fira Code', 'Monaco', 'Cascadia Code', monospace;
    line-height: 1.6;
}

.command-line {
    margin-bottom: 25px;
}

.prompt {
    color: #64ffda;
    font-weight: 500;
}

.output {
    margin-top: 10px;
    margin-left: 20px;
}

.output h1 {
    color: #ccd6f6;
    font-size: 2.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    margin: 0;
}

.role {
    color: #f59e0b;
    font-size: 1.1rem;
    margin: 8px 0 0 0;
    font-family: 'Inter', sans-serif;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.tag {
    background: rgba(100, 255, 218, 0.1);
    color: #64ffda;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    border: 1px solid rgba(100, 255, 218, 0.2);
}

.project-stats {
    margin-top: 10px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 4px 0;
}

.file-name {
    color: #8cc8ff;
}

.file-stat {
    color: #f59e0b;
    font-weight: 500;
}

.command-line.active .cursor {
    color: #64ffda;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="white" stop-opacity="0.1"/><stop offset="100%" stop-color="white" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="300" r="150" fill="url(%23a)"/><circle cx="800" cy="200" r="120" fill="url(%23a)"/><circle cx="600" cy="700" r="180" fill="url(%23a)"/></svg>');
    opacity: 0.1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 24px;
    opacity: 0.95;
}

.hero-description {
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.9;
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.8);
}

.btn-secondary:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: white;
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-alt {
    background-color: #f8fafc;
}

.section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 60px;
    text-align: center;
    color: #1a1a1a;
    position: relative;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 2px;
}

.section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1f2937;
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.1rem;
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 32px;
}

/* Projects Section */
.project-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-image {
    margin: 24px 0 32px;
    text-align: center;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.project-image a {
    display: block;
    cursor: pointer;
}

.project-image img {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

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

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

.project-card.featured {
    border: 2px solid #e5e7eb;
    position: relative;
}

.project-card.featured::before {
    content: 'Featured Project';
    position: absolute;
    top: -12px;
    left: 40px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.project-overview {
    margin-bottom: 40px;
}

.project-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin: 40px 0;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #f59e0b;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.problem-solution {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin: 40px 0;
}

.problem, .solution {
    padding: 24px;
    border-radius: 12px;
    border-left: 4px solid;
}

.problem {
    background-color: #fef2f2;
    border-left-color: #ef4444;
}

.solution {
    background-color: #f0fdf4;
    border-left-color: #10b981;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.tech-category {
    background: #f8fafc;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.tech-category ul {
    list-style: none;
}

.tech-category li {
    padding: 8px 0;
    position: relative;
    padding-left: 24px;
    color: #4b5563;
}

.tech-category li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #f59e0b;
    font-weight: bold;
    font-size: 1.2rem;
}

.results ul {
    list-style: none;
    margin-top: 24px;
}

.results li {
    padding: 12px 0;
    position: relative;
    padding-left: 32px;
    color: #374151;
    font-size: 1rem;
}

.results li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
    font-size: 1.1rem;
}

.project-description {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    background-color: #e0e7ff;
    color: #3730a3;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.skill-category {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.skill-category h3 {
    color: #1f2937;
    margin-bottom: 24px;
    font-size: 1.25rem;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.skill {
    background-color: #f1f5f9;
    color: #475569;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Contact Section */
.contact-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-content > p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #4b5563;
}

.contact-form-container {
    margin-bottom: 50px;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.1);
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

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

.btn-submit {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 20px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.form-status {
    margin-top: 16px;
    padding: 12px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-status.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    opacity: 1;
}

.form-status.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    opacity: 1;
}

.contact-info {
    border-top: 1px solid #e5e7eb;
    padding-top: 30px;
}

.contact-info p {
    font-size: 1rem;
    margin-bottom: 16px;
    color: #374151;
}

.contact-info a {
    color: #f59e0b;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: #1f2937;
    color: #d1d5db;
    text-align: center;
    padding: 40px 0;
}

/* Animation Effects */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 50%;
    opacity: 0.1;
}

.particle-1, .particle-3, .particle-5 {
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
}

.particle-2, .particle-4, .particle-6 {
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #10b981 0%, #f59e0b 100%);
    opacity: 0.05;
}

/* Ripple effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.3);
    transform: scale(0);
    pointer-events: none;
    width: 20px;
    height: 20px;
}

/* Enhanced hover effects */
.project-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow;
}

.skill-category {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow;
}

.skill {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow;
    cursor: pointer;
}

.btn-primary, .btn-secondary {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    position: relative;
    overflow: hidden;
}

/* Enhanced animations */
.section {
    opacity: 1;
    transform: translateY(0);
}

.project-card {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.skill-category {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.skill {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* Hero enhancements */
.hero {
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><linearGradient id="grad1" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:rgba(255,255,255,0.1);stop-opacity:1" /><stop offset="100%" style="stop-color:rgba(255,255,255,0);stop-opacity:1" /></linearGradient></defs><polygon fill="url(%23grad1)" points="0,0 1200,200 1200,600 0,400"/></svg>');
    pointer-events: none;
    z-index: 1;
}

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

/* Advanced gradients */
.section h2::after {
    background: linear-gradient(90deg, 
        transparent 0%, 
        #667eea 20%, 
        #764ba2 50%, 
        #667eea 80%, 
        transparent 100%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { 
        background: linear-gradient(90deg, 
            transparent 0%, 
            #667eea 20%, 
            #764ba2 50%, 
            #667eea 80%, 
            transparent 100%);
    }
    50% { 
        background: linear-gradient(90deg, 
            transparent 0%, 
            #3b82f6 20%, 
            #667eea 50%, 
            #3b82f6 80%, 
            transparent 100%);
    }
}

/* Smooth transitions */
* {
    transition: color 0.3s ease, background-color 0.3s ease;
}

/* Enhanced project images */
.project-image {
    position: relative;
    overflow: hidden;
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(59, 130, 246, 0) 0%, rgba(245, 158, 11, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.project-image:hover::before {
    opacity: 1;
}

/* Performance optimizations */
.project-card,
.skill-category,
.skill,
.btn-primary,
.btn-secondary {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Loading states */
img {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        gap: 20px;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 16px;
    }
    
    .project-stats {
        flex-direction: column;
        gap: 24px;
    }
    
    .problem-solution {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .tech-grid, .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .section h2 {
        font-size: 2rem;
    }
    
    .project-card {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .container, .nav-container {
        padding: 0 16px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section h2 {
        font-size: 1.75rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 24px;
    }
}