
* {
    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: #ffffff;
    background-color: hsl(220, 15%, 8%);
}

/* Color Variables - Matching the design system */
:root {
    /* Dark theme colors */
    --background: hsl(220, 15%, 8%);
    --foreground: hsl(0, 0%, 100%);
    --card: hsl(220, 15%, 12%);
    --muted: hsl(220, 15%, 25%);
    --muted-foreground: hsl(0, 0%, 70%);
    --primary: hsl(78, 95%, 56%);
    --primary-foreground: hsl(220, 15%, 8%);
    --border: hsl(220, 15%, 25%);
    --white-bg: hsl(0, 0%, 100%);
    --dark-text: hsl(220, 15%, 8%);
    
    /* Gradients */
    --gradient-hero: linear-gradient(135deg, hsl(220, 15%, 8%), hsl(220, 15%, 5%));
    --gradient-accent: linear-gradient(135deg, hsl(78, 95%, 56%), hsl(78, 95%, 65%));
    
    /* Shadows */
    --shadow-glow: 0 0 40px hsl(78, 95%, 56%, 0.3);
    --shadow-card: 0 10px 30px -10px hsl(220, 15%, 5%, 0.8);
    
    /* Animations */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Navigation */
a{
    text-decoration: none;
}
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background: hsla(220, 15%, 8%, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

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

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
}

.logo-dot {
    color: var(--primary);
}

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

.nav-link {
    color: var(--muted-foreground);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
}

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

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

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

.nav-button {
    background: var(--primary);
    color: var(--primary-foreground);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.nav-button:hover {
    background: hsl(78, 95%, 50%);
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--foreground);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    padding: 80px 0 0;
}

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

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

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

.hero-name {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
    height: 2rem;
}

.typing-text {
    color: var(--primary);
}

.cursor {
    color: var(--primary);
    animation: blink 1s infinite;
}

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

.hero-description {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    line-height: 1.7;
}

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

.btn-primary {
    background: var(--primary);
    color: var(--primary-foreground);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background: hsl(78, 95%, 50%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--foreground);
    border: 2px solid var(--border);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.hero-image-container {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.profile-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 3rem;
}

.stat-item {
    text-align: center;
}

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

.stat-label {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.tech-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.tech-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--card);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: var(--transition-smooth);
}

.tech-badge:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
}

.tech-badge img {
    width: 24px;
    height: 24px;
}

.tech-badge span {
    font-size: 0.875rem;
    font-weight: 500;
}

/* White Background Sections */
.about, .projects, .skills, .contact {
    background: var(--white-bg);
    color: var(--dark-text);
}

.about .section-title,
.projects .section-title,
.skills .section-title,
.contact .section-title {
    color: var(--dark-text);
}

.about .section-subtitle,
.projects .section-subtitle,
.skills .section-subtitle,
.contact .section-subtitle {
    color: hsl(220, 8%, 46%);
}

/* Common Section Styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--muted-foreground);
}

/* About Section */
.about {
    padding: 6rem 0;
}

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

.about-text h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark-text);
}

.about-text p {
    margin-bottom: 1.5rem;
    color: hsl(220, 8%, 46%);
    line-height: 1.7;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.highlight-item i {
    font-size: 1.5rem;
    color: var(--primary);
    width: 40px;
    text-align: center;
}

.highlight-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--dark-text);
}

.highlight-item p {
    color: hsl(220, 8%, 46%);
    margin: 0;
}

.about-image-container {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.about-image-container img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}
/* project thumbnail */
.project-thumbnail {
    position: relative;
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 350px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    border: 1px solid hsl(78, 95%, 45%);
     flex-direction: column;
}

.project-thumbnail h3 {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    word-break: break-word;
    white-space: pre-line;
    line-height: 1.5;
    gap: 0.5rem;
    color: #fff;
    font-weight: bold;
    font-size: 1.5rem;
    z-index: 2;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}

.project-thumbnail::before {
    content: "";
    position: absolute;
    top: 20;
    left: 0;
    width: 100%;
    height: 80%;
    background: inherit;
    filter: blur(35px) brightness(0.4);
    z-index: 1;
}

.project-thumbnail > * {
    position: relative;
    z-index: 2;
}


.view-project-btn {
    padding: 12px 24px;
    background-color: #ffffffcc;
    color: hsl(220, 15%, 8%);
    border: 1px solid hsl(78, 95%, 45%);
    cursor: pointer;
    font-weight: bold;
    border-radius: 5px;
    transition: all 0.3s ease;
}
.view-project-btn:hover {
    background-color: #fff;
    transform: scale(1.05);
}

/* Modal styles */
.project-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding: 40px;
    top: 0;
    left: 0;
    width: 100%;
    /* height: 100%; */
    overflow: auto;
    
    background-color: rgba(0,0,0,0.8);

     /* display: flex;
    align-items: center;
    justify-content: center; */
  
}

.project-modal .project-card {
    background: #fff;
    max-width: 900px;
    margin: auto;
    border-radius: 8px;
    padding: 20px;
    position: relative;
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: flex-start;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    border: 1px solid hsl(78, 95%, 45%);
}

.project-modal .project-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.project-modal .project-card h3 {
    width: 100%;
    text-align: center;
    margin-bottom: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    word-break: break-word;
    white-space: pre-line;
    line-height: 1.5;
    gap: 0.5rem;
}

.close-modal {
    position: absolute;
    top: 12px;
    right: 20px;
    font-size: 30px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}


/* Projects Section */
.projects {
    padding: 6rem 0;
}

.projects-grid {
    display: block;
    max-width: 100%;
    margin: 0 auto;
    padding: 2rem 0;
}

.project-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
    border: 1px solid hsl(220, 13%, 91%);
    display: block;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 40px 60px -10px rgba(0, 0, 0, 0.15);
}
.overflow{
    overflow: scroll;
    display: flex;
}

.project-image {
    width: 70%;
    /* height: 0%; */
    /* object-fit: cover; */
    border-radius: 12px 12px 0 0;
    display: block;
    justify-content: center;
    margin: 0;
    padding: 0;
}

/* .project-icon {
    font-size: 3rem;
    color: var(--primary-foreground);
} */

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-text);
}

.project-content p {
    color: hsl(220, 8%, 46%);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.library-images{
    display: flex;
    overflow: scroll;
    width: 100%;
    gap: 1rem;
}
.library-images img{
    border: 2px solid rgb(79, 77, 77);
    background: #fff;           /* White background for padding effect */
    padding: 0 7px;
    /* object-fit: contain;       */
}


.tech-tag {
    background: hsl(78, 95%, 56%, 0.1);
    color: hsl(78, 95%, 30%);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}
.project-pic {
  max-width: 250px;
  max-height: 400px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}
.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
}

.project-link:hover {
    color: hsl(78, 95%, 45%);
}

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

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

.skill-category {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    border: 1px solid hsl(220, 13%, 91%);
       border: 1px solid  hsl(78, 95%, 45%);
}

.skill-category h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--dark-text);
  

}

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

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 500;
}

.skill-info span:first-child {
    color: var(--dark-text);
}

.skill-info span:last-child {
    color: var(--primary);
}

.skill-bar {
    height: 6px;
    background: hsl(220, 13%, 91%);
    border-radius: 3px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-accent);
    border-radius: 3px;
    transition: width 1s ease;
}

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

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

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

.contact-info p {
    color: hsl(220, 8%, 46%);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.25rem;
    color: var(--primary);
    width: 40px;
    text-align: center;
}

.contact-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--dark-text);
}

.contact-item p {
    color: hsl(220, 8%, 46%);
    margin: 0;
}

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

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

.social-link:hover {
    background: hsl(78, 95%, 50%);
    transform: translateY(-2px);
}

.contact-form {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    border: 1px solid  hsl(78, 95%, 45%);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
      border: 1px solid  hsl(78, 95%, 45%);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition-smooth);
    background: #ffffff;
    color: var(--dark-text);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px hsl(78, 95%, 56%, 0.1);
}

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

/* Footer */
.footer {
    background: hsla(220, 15%, 8%, 0.95);
    color:  hsl(0, 0%, 100%);
    padding: 2rem 0;
    border-top: 1px solid hsl(220, 13%, 91%);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
hr {
    /* border: none; */
    border-top: 2px solid hsl(78, 95%, 45%);
    margin: 2rem 0;
}

.footer-text p,
.footer-tech p {
    color: hsl(0, 0%, 100%);
    font-size: 0.875rem;
}
/* .footer-text p,
.footer-tech p:hover {
    color: white;
} */

.footer-text h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color:  hsl(0, 0%, 100%);
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    body{
        text-align: center;
    }
    .contact{
        text-align: left;
    }
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--background);
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
        border-top: 1px solid var(--border);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .tech-badges {
        gap: 1rem;
    }
    
   .about-content {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
  }
  .about-image {
    margin-top: 2rem;
    /* width: 100%; */
    display: flex;
    justify-content: center;    

  }
   
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    .about-highlights{
        text-align: left;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .tech-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
}
