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

html {
            scroll-behavior: smooth;
        }


body {
    font-family: 'Inter', sans-serif;
    background-color: #121212; 
    background-image: linear-gradient(to bottom right, #1f0122, #1b002c, #1f0122); 
    color: #e0e0e0;
    margin: 0;
    box-sizing: border-box;
    background-attachment: fixed;
}
/* a reusable container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}
.header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background-color: rgba(26, 26, 26, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    position:sticky;
    top: 0;
    left:0;
    z-index: 1000;
    width:95%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.logo{
    font-size: 1.8rem;
    font-weight: 700;
    background-image: linear-gradient(to right, #b423b4, #7f00ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}
.nav-links {
    display: flex;
    gap: 1.5rem;
}
.nav-links a {
    text-decoration: none;
    color: #b0b0b0;
    font-weight: 600;
    padding: 0.5rem 1rem;
    position: relative;
    transition: color 0.3s ease-in-out;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background-image: linear-gradient(to right, #b423b4, #7f00ff);
    transition: all 0.3s ease-in-out;
    transform: translateX(-50%);
 }
        
.nav-links a:hover::after {
    width: 100%;
}

/* section styling */
.section {
    padding: 4rem 2rem;
    min-height: 70vh; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);;
}
h2.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    background-image: linear-gradient(to right, #b423b4, #7f00ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.section:nth-of-type(even) {
    background-color: #161b22;
}
        
.section:nth-of-type(odd) {
    background-color: #0d1117;
}
/* about section */
.about-container {
    display: flex;
    align-items: center;
    
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}
.about-image-container{
    flex-shrink: 0;
}
.about-image{
    width: 350px;
    height: 50%;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 3px solid #7f00ff; 
}
.about-content{
    flex-grow: 1;
}
.about-content h1{
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background-image: linear-gradient(to right, #ffffff, #b423b4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.about-content h2{
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background-image: linear-gradient(to right, #ffffff, #b423b4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.about-content p{
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    color: #a0a0a0;
}
.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.social-icons a {
    text-decoration: none;
    color: #e0e0e0;
    font-size: 1rem;
    transition: color 0.2s ease-in-out, transform 0.2s ease-in-out;
    
}
.social-icons a:hover {
    color: #7f00ff;
    transform: translateY(-5px);
}


/* education section */
.education-grid{
    display: flex;
    flex-direction:row;
    gap:3rem;
    background-color: rgba(26, 26, 26, 0.5);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    border-radius: 1rem;
    flex: 1;
    padding:2rem;
    text-align: center;
    width:100%;
}


.button {
    padding: 0.8rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    border: 2px solid transparent;
    gap: 1.5rem;
    
}
.button.primary {
    background-image: linear-gradient(to right, #b423b4, #7f00ff);
    color: #ffffff;
    border: none;
}
        
.button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(127, 0, 255, 0.4);
}
/* intrests section */
.interests-container {
    max-width: 896px; 
    margin-left: auto; 
    margin-right: auto; 
    padding-top: 3rem; 
    padding-bottom: 3rem; 
    animation: fadeInScale 0.7s ease-out forwards;
}
.interests-container h2{
    color: #ffffff;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.interests-content{
    flex-grow: 1; 
    padding-right: 2rem;
}

 p {
    font-size: 1.125rem;
    color: #e5e7eb;
    line-height: 1.6;
}

.interests-info{
    display: flex; 
    flex-direction: row; 
    align-items: center; 
    justify-content: space-between; 
    background-color: rgba(26, 26, 26, 0.5);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: 0 auto;
    
}
.image-container{
    width: 300px; 
    min-width: 200px;

}
 .image {
    width: 100%; 
    height: auto; 
    border-radius: 0.75rem; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


/*Skills section*/
#skills .skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    width: 100%;
}

.skill-card {
    background-color: rgba(26, 26, 26, 0.5);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
}
.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: #7f00ff;
 }

.skill-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    background-image: linear-gradient(to right, #ffffff, #b423b4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.progress-bar-container {
    width: 100%;
    height: 12px;
    background-color: #444;
    border-radius: 9999px;
    overflow: hidden;
    margin-top: 0.5rem;
}
        
.progress-bar {
    height: 100%;
    background-image: linear-gradient(to right, #b423b4, #7f00ff);
    border-radius: 9999px;
    width: 0;
    animation: fillProgress 1s ease-out forwards;
}
/* animation */
@keyframes fillProgress {
            from { width: 0; }
            to { width: var(--progress-width); }
        }

/* contact section */
.contact-container{
    display:flex;
    flex-direction: column;
    gap: 1.5rem;
}
.contact-form-section{
    display:flex;
    flex-direction:row;
    gap:2rem;
    padding: 2rem;
}
.contact-header{
    display:flex;
    margin-left: auto;
    margin-right: auto;
    align-items: center;
    flex-direction: column;
    margin-bottom: 2rem;
}

.contact-details{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;

}
.contact-info {
    display: flex;
    flex-direction:row;
    margin-bottom: 1rem;
}
.icon-emoji {
  font-size: 2rem;
  margin-right: 0.5rem;
  background-color:#34495e ;
  vertical-align: middle;
  align-self: center;
  border-radius: 60%;
}
.form-container {
    background-color: rgba(26, 26, 26, 0.5);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 500px;

}

h2 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    
}     
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}
        
label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600; 
}
        
input, textarea {
    width: 100%;
    padding: 0.75rem;
    background-color: #333;
    border: 1px solid #555;
    color: #e0e0e0;
    border-radius: 0.5rem;
    box-sizing: border-box;
}

input:focus, #contact textarea:focus {
    outline: none;
    border-color: #7f00ff;
    box-shadow: 0 0 0 3px rgba(127, 0, 255, 0.3);
}

textarea {
    min-height: 120px;
    resize: vertical;
}
button {
    width: 100%;
    padding: 0.8rem;
    background-image: linear-gradient(to right, #b423b4, #7f00ff);
    color: #ffffff;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
 }
        
button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(127, 0, 255, 0.4);
}
.text-info{
    font-size: 1rem;
    gap:1rem;
    text-decoration: none;
    color: #b0b0b0;
    font-weight: 600;
    padding: 0.5rem, 1rem;

}

/* footer section */
.footer{
    text-align: center;
    padding: 1.5rem 2rem;
    margin-top: 2rem;
    justify-content: center;
    position: relative;
}
/* Responsive design using media queries */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .nav-links {
        width: 100%;
        justify-content: space-between;
        gap: 0.5rem;
    }
    .nav-links a {
        flex-grow: 1;
        text-align: center;
    }
            
    h2.section-title {
       font-size: 2rem;
    }
            
    #about .about-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    #about .about-image {
        width: 200px;
        height: 200px;
    }
    #about .about-content h1 { font-size: 2.5rem; }
    #about .about-content h2 { font-size: 1.5rem; }
    #about .about-content h3 { font-size: 1.2rem; }
    .social-icons { justify-content: center; flex-wrap: wrap;}
    .social-icons a { flex-direction: column; gap: 0.25rem; }
            
    #interests .interests-info {
        flex-direction: column;
        text-align: center;
    }
            
    #contact .contact-form-section {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
            
    #contact .contact-details {
        text-align: center;
    }
    #contact .contact-info {
        justify-content: center;
        flex-direction: column;
        align-items: center;
     }
 }