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

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #06b6d4;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-dark: #111827;
    --border-color: #e5e7eb;
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 20px 25px rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

html {
    scroll-behavior: smooth;
}

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

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

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-shape {
    width: 8px;
    height: 8px;
    background: var(--gradient-primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

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

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

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1; /* Add this line to keep shapes behind content */
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
    top: 60%;
    right: 15%;
    animation-delay: 1s;
    border-radius: 20%;
}

.shape-3 {
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
    top: 10%;
    right: 20%;
    animation-delay: 2s;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    border-radius: 0;
}

.shape-4 {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    bottom: 40%; /* Changed from 30% to 40% to move it down */
    left: 15%; /* Changed from 20% to 15% to move it left */
    animation-delay: 3s;
}

.shape-5 {
    width: 120px;
    height: 120px;
    background: linear-gradient(45deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    bottom: 20%;
    right: 10%;
    animation-delay: 4s;
    border-radius: 30%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10; /* Increase this to ensure content stays on top */
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.title-line {
    display: block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInUp 1s ease 0.2s both;
}

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

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: slideInUp 1s ease 0.6s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: slideInUp 1s ease 0.8s both;
}

.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-medium);
}

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

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.hero-visual {
    display: flex;
    justify-content: center;
    animation: slideInRight 1s ease 0.4s both;
}

.code-block {
    background: var(--bg-dark);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-heavy);
    font-family: 'JetBrains Mono', monospace;
    max-width: 400px;
    position: relative;
    overflow: hidden;
}

.code-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
}

.code-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.code-dots {
    display: flex;
    gap: 0.5rem;
}

.code-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-dots span:nth-child(1) { background: #ff5f57; }
.code-dots span:nth-child(2) { background: #ffbd2e; }
.code-dots span:nth-child(3) { background: #28ca42; }

.code-content {
    color: #e5e7eb;
    font-size: 0.9rem;
    line-height: 1.6;
}

.code-line {
    margin-bottom: 0.5rem;
    animation: typewriter 0.5s ease forwards;
    opacity: 0;
}

.code-line:nth-child(1) { animation-delay: 1s; }
.code-line:nth-child(2) { animation-delay: 1.2s; }
.code-line:nth-child(3) { animation-delay: 1.4s; }
.code-line:nth-child(4) { animation-delay: 1.6s; }
.code-line:nth-child(5) { animation-delay: 1.8s; }

.keyword { color: #c792ea; }
.variable { color: #82aaff; }
.property { color: #ffcb6b; }
.string { color: #c3e88d; }

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
    animation: bounce 2s infinite;
}

.scroll-line {
    width: 1px;
    height: 30px;
    background: var(--gradient-primary);
    animation: scrollLine 2s infinite;
}



/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-line {
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 0 auto;
    border-radius: 2px;
}

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

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

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

.about-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.social-icons {
      display: flex;
      justify-content: left;
      gap: 30px;
      margin-top: 30px;
    }
    .social-icons a {
      font-size: 2rem;
      color: #6c63ff;
      transition: color 0.3s ease, transform 0.3s ease;
    }
    .social-icons a:hover {
      color: #a084e8;
      transform: scale(1.2);
    }


.profile-card {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-heavy);
    max-width: 300px;
    margin: 0 auto;
}

.profile-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 1rem;
    position: relative;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 50%;
    position: relative;
    overflow: hidden;
}

.image-placeholder::before {
    content: '👨‍💻';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
}

.profile-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.profile-shape {
    position: absolute;
    border-radius: 50%;
}

.shape-a {
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    top: 10%;
    right: 10%;
    animation: float 3s ease-in-out infinite;
}

.shape-b {
    width: 15px;
    height: 15px;
    background: var(--secondary-color);
    bottom: 20%;
    left: 10%;
    animation: float 3s ease-in-out infinite 1s;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    border-radius: 0;
}

.shape-c {
    width: 25px;
    height: 25px;
    background: var(--primary-color);
    top: 60%;
    right: 5%;
    animation: float 3s ease-in-out infinite 2s;
    border-radius: 20%;
}

/* Education Section */

.edu {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.education-section {
  position: relative;
  padding: 80px 20px;
  background: linear-gradient(to bottom right, #f3f4fd, #e7e6ff);
  overflow: hidden;
  font-family: 'Poppins', sans-serif;
}

.section-heading {
  text-align: center;
  font-size: 2.8rem;
  color: #7f4af0;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
}

.education-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative;
  z-index: 2;
}

.edu-card {
  display: flex;
  flex-direction: row;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.edu-card:hover {
  transform: translateY(-6px);
}

.edu-img {
  width: 280px;
  height: auto;
  object-fit: cover;
  border-right: 4px solid #7f4af0;
}

.edu-info {
  padding: 20px;
  flex: 1;
}

.edu-info h3 {
  color: #7f4af0;
  margin-bottom: 10px;
  font-size: 1.4rem;
}

.edu-subtitle {
  font-weight: bold;
  color: #333;
  margin-bottom: 8px;
}

.edu-subtitle span {
  float: right;
  color: #999;
  font-weight: 500;
}

.edu-info p {
  color: #555;
  line-height: 1.6;
}

/* Background Floating Shapes (Improved Style + Visibility) */
.bg-shape {
  position: absolute;
  opacity: 0.08;
  z-index: 1;
  animation: float 8s infinite ease-in-out;
}

.shape1 {
  width: 100px;
  height: 100px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  position: absolute;
  top: 10%;
  left: 5%;
  opacity: 0.08;
  z-index: 1;
}

.shape2 {
  width: 100px;
  height: 100px;
  background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  position: absolute;
  top: 70%;
  right: 5%;
  transform: rotate(20deg);
  opacity: 0.06;
  z-index: 1;
}

.shape3 {
  width: 80px;
  height: 80px;
  background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
  border-radius: 20px;
  position: absolute;
  bottom: 5%;
  left: 35%;
  opacity: 0.08;
  z-index: 1;
}

.shape4 {
  width: 140px;
  height: 140px;
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  border-radius: 50%;
  position: absolute;
  top: 40%;
  right: 20%;
  opacity: 0.04;
  filter: blur(1px);
  z-index: 1;
}

.shape5 {
  width: 90px;
  height: 90px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  position: absolute;
  bottom: 10%;
  left: 10%;
  transform: rotate(-15deg);
  opacity: 0.05;
  z-index: 1;
}

@keyframes float {
  0% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-15px) rotate(10deg); }
  100% { transform: translateY(0) rotate(0); }
}

/* Responsive */
@media (max-width: 768px) {
  .edu-card {
    flex-direction: column;
  }

  .edu-img {
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 4px solid #7f4af0;
  }

  .edu-subtitle span {
    display: block;
    float: none;
    margin-top: 5px;
  }
}


/* Skills Section */
.skills {
    padding: 6rem 0;
}

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

.skill-category h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    position: relative;
    padding-left: 1rem;
}

.skill-category h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-name {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    width: 0;
    transition: width 1s ease;
    position: relative;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    animation: shimmer 2s infinite;
}

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


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

.project-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.project-image {
    height: 200px;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* .project-image::before {
    content: '🚀';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    opacity: 0.7;
} */

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

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

.project-link {
    padding: 0.5rem 1rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.project-link:hover {
    transform: scale(1.05);
}

.project-content {
    padding: 1.5rem;
}

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

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

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

.tech-tag {
    padding: 0.25rem 0.75rem;
    background: var(--bg-secondary);
    color: var(--primary-color);
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}






/* Contact Section */
.contact {
    padding: 6rem 0;
}

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

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

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

.contact-icon {
    font-size: 1.5rem;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

/* Footer */
.footer {
   background: var(--bg-dark);
    color: white;
  padding: 2rem 0;
}

.footer .footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 100%; /* optional if needed */
}

.footer .footer-content p {
  margin: 0;
  font-size: 1rem;
  
}



/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

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

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

@keyframes typewriter {
    to {
        opacity: 1;
    }
}

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

@keyframes scrollLine {
    0% { height: 0; }
    50% { height: 30px; }
    100% { height: 0; }
}

@keyframes shimmer {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 200px;
    }
    
    .about-stats {
        justify-content: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .code-block {
        max-width: 100%;
        font-size: 0.8rem;
    }
}