
:root{
    --castle-green: #00664d;
    --tangerine: #EB8300;

    --light-gray: #f0f0f0;
    --white: #ffffff;
    --dark-gray: #333333;
    --medium-gray: #666666;
    --light-green: #e0f2f1;
    --dark-green: #004d40;
    --font-family: 'Poppins', sans-serif;
}
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;

}
html{
    scroll-behavior: smooth;
}

body{
    font-family: var(--font-family);
    line-height: 1.6 ;
    background-color: var(--light-gray);
    color: var(--dark-gray);
}

/* navigation */
nav{
    position: fixed;
    top: 0;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    background-color: var(--light-green);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.nav-container{
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}
.logo{
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-green);
}
.nav-links{
    display: flex;
    gap: 2rem;
    list-style: none;
    font-size: 1.1rem;

}
.nav-links a {
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}
.nav-links a:hover {
    color: var(--castle-green);
    text-decoration: underline;

}
.nav-links a.active {
    color: var(--castle-green);
    font-weight: 600;
    text-decoration: underline;
}
.nav-links a:active {
    color: var(--tangerine);
}


/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, var(--castle-green) 0%, #008060 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    z-index: 1;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><circle cx='20' cy='20' r='2' fill='%23EB8300'/><circle cx='80' cy='40' r='1.5' fill='%23EB8300'/><circle cx='40' cy='80' r='1' fill='%23EB8300'/></svg>");
    animation: float 20s infinite linear, fadeInOut 3s ease-in-out infinite; 
    
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(360deg);
    }
    75% {
        transform: translateY(20px) rotate(540deg);
    }
    100% {
        transform: translateY(0) rotate(720deg);
    }
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0;
        transform: translateY(30px);
    }
    50% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}
.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--white);
    max-width: 600px;
}

.hero .subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--medium-gray);
}
.cta-btn {
    padding: 0.8rem 2rem;
    background-color: var(--tangerine);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 20px rgba(235, 131, 0, 0.2);
    text-decoration: none;

}
.cta-btn:hover {
    background-color: var(--castle-green);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(235, 131, 0, 0.4);

}
.hero-image {
    position: relative;
    z-index: 2;
    margin-top: 2rem;
}
.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}




    /*Section Styles */
section{
    padding: 5rem 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
    background-color: var(--light-gray);
    position: relative;
    z-index: 1;
}
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--castle-green);
    text-align: center;
    position: relative;
}
.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background-color: var(--tangerine);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* About Section */
.about {
    background: var(--white);
}
.about-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}
.about-image {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--castle-green) ,var(--tangerine));
    box-shadow: 0 10px 30px rgba(0, 102, 77, 0.3);
    overflow: hidden;
    color: var(--castle-green, var(--tangerine));
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin-top: 0 auto;
}
.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.about-image img:hover {
    transform: scale(1.05);
}


.about-text h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--castle-green);
}
.about-text p {
    font-size: 1.1rem;
    color: var(--medium-gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Skills Section */ 
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.skill-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: treansform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}
.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.skill-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--castle-green);
    margin-bottom: 1rem;
}
.skill-item p {
    font-size: 1rem;
    color: var(--medium-gray);
    line-height: 1.5;
}
.skill-bar {
    width: 100%;
    height: 8px;
    background: var(--light-gray);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0.5rem;
}
.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--castle-green), var(--tangerine));
    border-radius: 4px;
    transition: width 0.3s ease;
    animation: fillBar 1s ease-in-out forwards;
}
@keyframes fillBar {
    0% {
        width: 0;
    }
}
    
    .skill-progress.angular{width: 85%;}
    .skill-progress.js{width: 80%;}
    .skill-progress.cloud{width: 75%;}
    .skill-progress.design{width: 90%;}
    

/* Education Section */
.education {
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.education::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'><path d='M30,10L50,30L70,10' fill='none' stroke='%23e0f2f1' stroke-width='2'/></svg>");
    opacity: 0.3;
    z-index: 0;
}

.education-list {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.education-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 102, 77, 0.1);
    border-left: 4px solid var(--tangerine);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.education-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 102, 77, 0.03) 0%, rgba(235, 131, 0, 0.03) 100%);
    z-index: -1;
}

.education-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 102, 77, 0.15);
    border-left: 4px solid var(--castle-green);
}

.education-item h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--castle-green);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.education-item h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--tangerine);
    transition: width 0.3s ease;
}

.education-item:hover h4::after {
    width: 80px;
    background: var(--castle-green);
}

.education-item p {
    font-size: 1rem;
    color: var(--medium-gray);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.education-item .date {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(235, 131, 0, 0.1);
    color: var(--tangerine);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.education-item .institution {
    display: flex;
    align-items: center;
    margin-top: 0.8rem;
    font-size: 0.95rem;
    color: var(--dark-gray);
}

.education-item .institution::before {
    content: '🏫';
    margin-right: 0.5rem;
    font-size: 1.1rem;
}







/* Projects Section */
.projects {
    background: var(--white);
}
.project-grid {
    
    gap: 2rem;
    margin-top: 2rem;
    padding: 0 2rem;
    justify-items: center;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
   
}
.project-card {
    background: var(--light-gray);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    gap: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    width: 100%;
    max-width: 400px;
}
.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}
.project-image {
    width: 100%;
    height: auto;
    object-fit: fill;
    border-radius: 15px 15px 0 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
   
}
.project-image img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    transition: transform 0.3s ease;
    object-position: center;
    -o-object-position: center;
}

.project-image img:hover {
    transform: scale(1.05);
}
.project-info {
    padding: 2rem;


}
.project-info h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--castle-green);
    margin-bottom: 0.5rem;
}

.project-info p {
    font-size: 1rem;
    color: var(--medium-gray);
    margin-bottom: 1rem;
}
.project-info a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--tangerine);
    color: var(--white);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.project-info a:hover {
    background: var(--castle-green);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(235, 131, 0, 0.4);
}


/* Interests Section */
.interests {
    background: var(--white);
    padding: 5rem 0;
    overflow: hidden;
}

.interests-container {
    width: 100%;
    overflow-x: auto;
    padding: 2rem 0;
    -webkit-overflow-scrolling: touch; 
    scrollbar-width: none; 
    scrollbar-color: transparent transparent;
}

.interests-container::-webkit-scrollbar {
    display: none; 
}

.interests-grid {
    display: inline-flex;
    gap: 2rem;
    padding: 0 2rem;
    animation: scroll 30s linear infinite;
}

.interest-card {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-width: 280px;
    flex-shrink: 0;
    scroll-snap-align: start;
}

.interest-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 102, 77, 0.2);
}


@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-180px * 5 - 2rem * 5)); 
    }
}


.interests-grid:hover {
    animation-play-state: paused;
}

.interest-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--castle-green), var(--tangerine));
    border-radius: 50%;
    color: var(--white);
}

.interest-icon svg {
    width: 30px;
    height: 30px;
}

.interest-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--castle-green);
    margin-bottom: 1rem;
}

.interest-card p {
    font-size: 1rem;
    color: var(--medium-gray);
    line-height: 1.6;
}





/* Contact Section */
.contact {
    background: var(--light-gray);
}
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-info {
    margin-top: 0;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}
.contact-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--castle-green);
    margin-bottom: 2rem;
    
}
.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;  
}

.contact-item::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 0.5rem;
    font-size: 1.2rem;
}
.contact-item:nth-child(2)::before {
    content: ' 📧';
}
.contact-item:nth-child(3)::before {
    content: ' 📞';
}
.contact-item:nth-child(4)::before {
    content: ' 🌍';
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* social links */
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  align-items: center;
}

.social-links a {
  color: var(--castle-green); 
  transition: transform 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-links a:hover {
  transform: translateY(-3px);
}

.icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.social-links .icon {
  width: 24px;
  height: 24px;
}

/* form  */
.form-group{
    margin-bottom: 1.5rem;

}
.form-group label{
    display: block;
    margin-bottom: 0.5rem;
    color: var(--castle-green);
    font-weight: 600;
}
.form-group input,
.form-group textarea{
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
   

}
.submit-btn{
    background: var(--castle-green);
    color: var(--white);
    padding: 1rem 2rem;
    border:none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}
.submit-btn:hover{
    background: #BD6500 ;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(189, 101, 0, 0.4);
}

/* Footer */
footer {
    background: var(--light-green);
    color: var(--castle-green);
    padding: 2rem 0;
    text-align: center;
    position: relative;
    z-index: 1;
    margin-top: 2rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;

}

.download-cv{
    display: inline-block;
    padding: 0.5rem 1.5rem;
     background: linear-gradient(135deg, var(--castle-green), var(--tangerine));
    color: var(--white);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.3s ease;
}


.download-cv:hover {
    background: #BD6500;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(235, 131, 0, 0.4);
}

@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero .subtitle {
        font-size: 1.1rem;
    }
    .about-info {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .skills-grid {
        grid-template-columns: 1fr;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
     .contact-content {
        grid-template-columns: 1fr;
     }
     section{
        padding: 3rem 1rem;
     }
    .section-title {
        font-size: 2rem;
    }
    .nav-container {
        padding: 0 1rem;
    }
    .hero-image {
        width: 250px;
        height: 250px;
    }

    .education-item {
        padding: 1.5rem;
    }
    
    .education-item h4 {
        font-size: 1.2rem;
    }
    
    .education-item p {
        font-size: 0.95rem;
    }
     .interests-grid {
        animation: scroll 20s linear infinite;
    }
    

}
@media (max-width: 400px) {
  .interest-card {
    min-width: 220px; 
  }
  .project-info h4 {
    font-size: 1.2rem; 
  }
}
