/* General Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* General styles */
:root {
    --primary-color: #4a6cf7;
    --secondary-color: #f50057;
    --dark-color: #2c2c54;
    --light-color: #f5f5f5;
    --gray-color: #8d8d8d;
    --transition: all 0.3s ease;
    --background-color: #f5f8fd;
    --text-color: #333;
    --light-text: #777;
    --light-bg: #f9fafc;
    --dark-bg: #1d2144;
    --border-color: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--dark-color);
}

.underline {
    height: 4px;
    width: 60px;
    background: var(--primary-color);
    margin: 10px auto;
    border-radius: 5px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.highlight {
    color: var(--primary-color);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.primary-btn {
    background: var(--primary-color);
    color: white;
}

.primary-btn:hover {
    background: #5952d4;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.2);
}

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

.secondary-btn:hover {
    background: rgba(108, 99, 255, 0.1);
    transform: translateY(-3px);
}

/* Header */
header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

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

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

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

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

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

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

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.1) 0%, rgba(245, 0, 87, 0.1) 100%);
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-content h2 {
    font-size: 1.8rem;
    color: var(--gray-color);
    margin-bottom: 20px;
    font-weight: 500;
}

.cta-buttons {
    display: flex;
    gap: 15px;
}

/* About section styles */

.about {
    background-color: #fff;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.about-content p {
    margin-bottom:1.5em
}

.about-image {
    position: relative;
    text-align: center;
}

.image-placeholder {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Skills Grid Styling */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.skill-item p {
    margin: 0;
    font-weight: 500;
}

/* Contact Section */


.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    gap: 40px;
}


.contact {
    background-color: var(--light-bg);
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    max-width: 500px;
    text-align: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    background: rgba(108, 99, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-icon:hover {
    background: #5952d4;
    transform: translateY(-5px);
}

/* Footer */
footer {
    background: var(--dark-bg);
    color: white;
    padding: 20px 0;
    text-align: center;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-image {
        max-width: 700px;
        margin: 0 auto;
        text-align: center;
    }

    .hero h1 {
        font-size: 3rem;
        margin-bottom: 20px;
    }
}

@media screen and (max-width: 768px) {
    body {
        font-size: 0.9rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content h2 {
        font-size: 1.3rem;
    }

    .nav-links {
        position: absolute;
        right: 0;
        height: calc(100vh - 80px);
        top: 80px;
        background: white;
        flex-direction: column;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        box-shadow: -5px 0 10px rgba(0, 0, 0, 0.1);
        padding: 20px;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .burger {
        display: block;
    }

    .nav-active {
        transform: translateX(0%);
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 480px) {
    section {
        padding: 60px 0;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .cta-buttons {
        display: flex;
        justify-content: center;
        gap: 15px;
    }

    .btn {
        padding: 12px 24px;
        border-radius: 5px;
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s ease;
        display: inline-block;
    }

    .nav-links {
        width: 70%;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Navigation Styles */
@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0;
        top: 80px;
        height: calc(100vh - 80px);
        background-color: #fff;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 70%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        box-shadow: -5px 0 10px rgba(0, 0, 0, 0.1);
        padding: 40px 0;
        z-index: 1000;
    }
    
    .nav-links li {
        margin: 15px 0;
        opacity: 0;
    }
    
    .burger {
        display: block;
        cursor: pointer;
    }
    
    .nav-active {
        transform: translateX(0%);
    }
    
    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .toggle .line2 {
        opacity: 0;
    }
    
    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    /* Animation for nav links */
    @keyframes navLinkFade {
        from {
            opacity: 0;
            transform: translateX(50px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
}

/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .popup-overlay.active {
    opacity: 1;
  }
  
  .popup {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  
  .popup.active {
    transform: translateY(0);
    opacity: 1;
  }
  
  .popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
  }
  
  .popup-header h3 {
    margin: 0;
    color: var(--primary-color);
  }
  
  .popup-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--gray-color);
    transition: color 0.2s ease;
    padding: 0;
    margin: 0;
    line-height: 1;
  }
  
  .popup-close:hover {
    color: var(--primary-color);
  }
  
  .popup-content {
    padding: 20px;
  }
  
  .popup-content p {
    margin-top: 0;
    line-height: 1.6;
  }
  
  .popup-content ul {
    padding-left: 20px;
    margin-bottom: 15px;
  }
  
  .popup-content ul li {
    margin-bottom: 8px;
    list-style-type: disc;
  }
  
  /* Make skill items appear interactive */
  .skill-item {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  
  .skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
  }
  
  .skill-item:active {
    transform: translateY(0);
  }
  
  /* Responsive popup adjustments */
  @media screen and (max-width: 768px) {
    .popup {
      width: 95%;
      max-height: 85vh;
    }
  }
  
  @media screen and (max-width: 480px) {
    .popup-header {
      padding: 12px 15px;
    }
    
    .popup-content {
      padding: 15px;
    }
  }