/* Futuristic Portfolio CSS */

/* CSS Custom Properties */
:root {
    /* Color Palette */
    --bg-primary: #0a0a0f;
    --bg-secondary: #161625;
    --bg-tertiary: #1a1a2e;
    --text-primary: #e0f2fe;
    --text-secondary: #90caf9;
    --text-muted: #64b5f6;
    
    /* Neon Colors */
    --neon-cyan: #00e5ff;
    --neon-purple: #ab47bc;
    --neon-pink: #e91e63;
    --neon-green: #00e676;
    --neon-orange: #ff6d00;
    
    /* Glass Effects */
    --glass-bg: rgba(26, 26, 46, 0.1);
    --glass-border: rgba(0, 229, 255, 0.2);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #00e5ff, #ab47bc);
    --gradient-secondary: linear-gradient(45deg, #ab47bc, #e91e63);
    --gradient-accent: linear-gradient(90deg, #00e676, #00e5ff);
    
    /* Spacing */
    --container-padding: 2rem;
    --section-padding: 5rem 0;
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    
    /* Shadows */
    --shadow-neon: 0 0 20px rgba(0, 229, 255, 0.5);
    --shadow-glow: 0 0 40px rgba(171, 71, 188, 0.3);
    --shadow-intense: 0 0 60px rgba(0, 229, 255, 0.8);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Section */
.section {
    padding: var(--section-padding);
    position: relative;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
    font-weight: 700;
}

/* Utility Classes */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.neon-text {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

.neon-glow {
    box-shadow: var(--shadow-neon);
}

/* Glass Morphism */
.glass {
    backdrop-filter: blur(20px);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.glass-card {
    backdrop-filter: blur(20px);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
}

.glass-card:hover {
    border-color: rgba(0, 229, 255, 0.4);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), var(--shadow-neon);
    transform: translateY(-5px);
}

.glass-card.animate-in {
    transform: translateY(0);
    opacity: 1;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-intense);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: rgba(0, 229, 255, 0.1);
    border-color: var(--neon-cyan);
    transform: scale(1.05);
}

.btn-full {
    width: 100%;
}

/* Animated Background */
.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(-45deg, var(--bg-primary), var(--bg-secondary), var(--bg-tertiary), var(--bg-primary));
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
    opacity: 0.3;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Tech Grid Background */
.tech-grid {
    background-image: 
        linear-gradient(rgba(0, 229, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
}
/* Certificates Section */
#certificates {
  padding: 60px 0;
}

.certificates-bar {
  display: flex;
  justify-content: center;
  gap: 20px;
  overflow-x: auto;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.certificate-item {
  flex: 0 0 auto;
  text-align: center;
}

.certificate-item img {
  width: 220px;       /* Fixed width for uniform size */
  height: 150px;      /* Fixed height */
  object-fit: cover;  /* Maintains aspect ratio and crops extra */
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.certificate-item img:hover {
  transform: scale(1.05);
}

.certificate-title {
  margin-top: 10px;
  font-size: 14px;
  color: #fff;
}

/* Floating Shapes */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    border: 1px solid;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    top: 25%;
    left: 25%;
    width: 8rem;
    height: 8rem;
    border-color: rgba(0, 229, 255, 0.3);
    transform: rotate(45deg);
}

.shape-2 {
    top: 75%;
    right: 25%;
    width: 6rem;
    height: 6rem;
    border-color: rgba(171, 71, 188, 0.3);
    transform: rotate(12deg);
    animation-delay: 2s;
}

.shape-3 {
    top: 50%;
    right: 33%;
    width: 4rem;
    height: 4rem;
    border-color: rgba(233, 30, 99, 0.3);
    transform: rotate(45deg);
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(45deg); }
    50% { transform: translateY(-20px) rotate(45deg); }
}

/* Pulse Animation */
.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
    from { box-shadow: var(--glass-shadow), 0 0 20px rgba(0, 229, 255, 0.4); }
    to { box-shadow: var(--glass-shadow), 0 0 30px rgba(0, 229, 255, 0.8); }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 1rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--neon-cyan);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 10;
}

.hero-title {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.about-bio h3,
.about-skills h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.about-bio p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-badge {
    padding: 0.5rem 1rem;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
    cursor: pointer;
}

.skill-badge:hover {
    border-color: var(--neon-cyan);
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

/* Experience Timeline */
.experience-section {
    max-width: 800px;
    margin: 0 auto;
}

.experience-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
}

.experience-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.experience-item {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.experience-year {
    background: rgba(0, 229, 255, 0.1);
    color: var(--neon-cyan);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1.25rem;
    min-width: 120px;
    text-align: center;
}

.experience-content h4 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.experience-content .company {
    color: var(--neon-purple);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.experience-content .description {
    color: var(--text-muted);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.project-card h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.project-card:hover h3 {
    color: var(--neon-cyan);
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
}

.status-production {
    background: rgba(0, 230, 118, 0.2);
    color: #00e676;
    border: 1px solid rgba(0, 230, 118, 0.3);
}

.status-beta {
    background: rgba(33, 150, 243, 0.2);
    color: #2196f3;
    border: 1px solid rgba(33, 150, 243, 0.3);
}

.status-development {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.status-prototype {
    background: rgba(156, 39, 176, 0.2);
    color: #9c27b0;
    border: 1px solid rgba(156, 39, 176, 0.3);
}

.project-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-badge {
    padding: 0.25rem 0.75rem;
    background: rgba(171, 71, 188, 0.1);
    border: 1px solid rgba(171, 71, 188, 0.3);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.tech-badge:hover {
    border-color: var(--neon-purple);
    transform: scale(1.05);
}

/* Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-card {
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.category-badge {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
}

.category-ai {
    background: rgba(0, 229, 255, 0.2);
    color: #00e5ff;
    border: 1px solid rgba(0, 229, 255, 0.3);
}

.category-backend {
    background: rgba(0, 230, 118, 0.2);
    color: #00e676;
    border: 1px solid rgba(0, 230, 118, 0.3);
}

.category-frontend {
    background: rgba(33, 150, 243, 0.2);
    color: #2196f3;
    border: 1px solid rgba(33, 150, 243, 0.3);
}

.category-ml {
    background: rgba(156, 39, 176, 0.2);
    color: #9c27b0;
    border: 1px solid rgba(156, 39, 176, 0.3);
}

.read-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.blog-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.blog-card:hover h3 {
    color: var(--neon-cyan);
}

.blog-excerpt {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
}

.blog-footer time {
    color: var(--text-muted);
}

.read-more {
    color: var(--neon-cyan);
    transition: color 0.3s ease;
}

.blog-card:hover .read-more {
    color: var(--neon-pink);
}

/* Resume Section */
.resume-download {
    text-align: center;
    margin-bottom: 3rem;
}

.resume-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.resume-highlights h3,
.resume-achievements h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.highlights-list {
    list-style: none;
}

.highlights-list li {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.5rem;
}

.highlights-list li::before {
    content: '▶';
    color: var(--neon-cyan);
    position: absolute;
    left: 0;
    top: 0;
}

.achievements-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.achievement-item {
    border-left: 2px solid rgba(0, 229, 255, 0.3);
    padding-left: 1rem;
    transition: border-color 0.3s ease;
}

.achievement-item:hover {
    border-color: var(--neon-cyan);
}

.achievement-item h4 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.achievement-item .organization {
    color: var(--neon-purple);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.year-badge {
    background: rgba(0, 229, 255, 0.1);
    color: var(--neon-cyan);
    border: 1px solid rgba(0, 229, 255, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
}

.competencies {
    margin-top: 3rem;
}

.competencies h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.competencies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.competency {
    text-align: center;
}

.competency-title {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: var(--neon-cyan);
}

.competency p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.contact-info h3,
.contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-description {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(0, 229, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.contact-label {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.contact-value {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    padding: 2rem 0;
    border-top: 1px solid rgba(0, 229, 255, 0.2);
    text-align: center;
}

.footer p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .resume-content {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .competencies-grid {
        grid-template-columns: 1fr;
    }
    
    .experience-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .experience-year {
        min-width: auto;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .shape-1,
    .shape-2,
    .shape-3 {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .glass-card {
        padding: 1.5rem;
    }
    
    .nav-content {
        padding: 0.75rem 1rem;
    }
}

/* Animation delays for staggered effects */
.glass-card:nth-child(1) { animation-delay: 0.1s; }
.glass-card:nth-child(2) { animation-delay: 0.2s; }
.glass-card:nth-child(3) { animation-delay: 0.3s; }
.glass-card:nth-child(4) { animation-delay: 0.4s; }
.glass-card:nth-child(5) { animation-delay: 0.5s; }
.glass-card:nth-child(6) { animation-delay: 0.6s; }

.skill-badge:nth-child(odd) { animation-delay: 0.1s; }
.skill-badge:nth-child(even) { animation-delay: 0.2s; }

/* Print Styles */
@media print {
    .navbar,
    .floating-shapes,
    .animated-bg {
        display: none;
    }
    
    .glass-card {
        background: white;
        color: black;
        border: 1px solid #ccc;
        box-shadow: none;
    }
    
    .gradient-text,
    .neon-text {
        color: black !important;
        text-shadow: none !important;
        -webkit-text-fill-color: black !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --glass-border: rgba(255, 255, 255, 0.5);
        --text-muted: rgba(255, 255, 255, 0.8);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .animated-bg,
    .float,
    .pulse-glow {
        animation: none;
    }
}