
:root {
    --background: #f9f9f9;
    --text: #1a1a1a;
    --accent: #007acc;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
  }

body {
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
}

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

section {
    padding: 80px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

h1, h2, h3 {
    margin-bottom: 20px;
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    display: inline-block;
    margin-bottom: 40px;
}

h2::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 3px;
    background-color: var(--accent);
    bottom: -10px;
    left: 0;
}

p {
    margin-bottom: 15px;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    opacity: 0.8;
}

.btn {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-weight: 500;
    margin-right: 10px;
    margin-bottom: 10px;
}

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

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

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    margin-bottom: 20px;
}

.section-title h2::after {
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
}

header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo span {
    color: var(--accent);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--text);
    font-weight: 500;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    bottom: -5px;
    left: 0;
    transition: var(--transition);
}

nav ul li a:hover::after {
    width: 100%;
}

.mobile-menu {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background-color: white;
    margin-top: 0;
    padding-top: 80px;
}

.hero-content {
    max-width: 700px;
    text-align: left;
}

.hero h1 {
    font-size: 1.6rem;
    margin-bottom: -3vh;
}

.hero h1 span {
    color: var(--accent);
    font-size: 3rem;
    padding-bottom: 3vh;
}

.hero p {
    font-size: 1.2rem;
    margin-top: 2vh;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
}

.about {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 40px;
    margin-top: 80px;
}

.profile-image {
    width: 20vw;
    height: auto;
    display: block;
    margin: 0 auto 10px auto; 
    border-radius: 10vw;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.skills {
    padding: 80px 0;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.skill-category {
    width: 100%;
    max-width: 350px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 20px;
}

.skill-category h3 {
    margin-bottom: 15px;
    color: var(--accent);
}

.skill-item {
    background-color: #f1f1f1;
    border-radius: 20px;
    padding: 8px 15px;
    margin: 5px;
    display: inline-block;
    font-size: 0.9rem;
}

.projects {
    background-color: var(--background);
}

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

.project-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.project-img {
    height: 200px;
    background-color: #e9e9e9;
    display: flex;
    align-items: center;
    object-fit: cover;
    justify-content: center;
    color: #666;
}
.certificate-img {
    height: 280px;
    background-color: #e9e9e9;
    display: flex;
    align-items: center;
    object-fit: cover;
    justify-content: center;
    color: #666;
}

.project-content {
    padding: 20px;
}

.project-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.technologies {
    display: flex;
    flex-wrap: wrap;
    margin: 15px 0;
}

.tech-tag {
    background-color: #f1f1f1;
    border-radius: 20px;
    padding: 5px 10px;
    margin: 0 5px 5px 0;
    font-size: 0.8rem;
}

.project-links {
    margin-top: 15px;
}

/* Certifications Section */
.certifications {
    background-color: white;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.cert-card {
    background-color: var(--background);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.cert-card:hover {
    transform: translateY(-5px);
}

.cert-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.cert-issuer {
    color: var(--accent);
    margin-bottom: 10px;
}

.cert-date {
    font-size: 0.9rem;
    color: #666;
}

/* Education Section */
.education {
    background-color: var(--background);
}

.education-item {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.education-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.education-institution {
    color: var(--accent);
    margin-bottom: 10px;
}

.education-date, .education-description {
    font-size: 0.95rem;
}

.contact {
    background-color: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-item {
    display: flex;
    margin-bottom: 20px;
    align-items: flex-start;
}

.contact-icon {
    font-size: 1.2rem;
    color: var(--accent);
    margin-right: 15px;
    min-width: 20px;
}

.contact-text {
    line-height: 1.4;
}

.contact-text a {
    display: block;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: #f1f1f1;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

.social-links {
    margin-bottom: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    color: var(--accent);
    margin: 0 10px;
    font-size: 1.2rem;
    transition: var(--transition);
}
.social-links img {
    width: 30px;
    height: 30px; 
    padding: 5px;            
}

.img-proj{
    object-fit: fill;
    height: 200px;
    width: 400px;
}
.img-certif{
    height: 280px;
    width: 350px;
}


.social-links a:hover {
    background-color: var(--accent);
    color: white;
    transform: translateY(-3px);
}

/* Media Queries */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    nav {
        position: fixed;
        top: 70px;
        right: -100%;
        background-color: white;
        width: 80%;
        height: calc(100vh - 70px);
        padding: 20px;
        box-shadow: var(--shadow);
        transition: var(--transition);
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: 15px 0;
    }

    .mobile-menu {
        display: block;
    }

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

    .hero {
        text-align: left; /* Ensure text stays left-aligned on mobile */
        padding-top: 120px;
        height: auto;
    }

    .hero-buttons {
        justify-content: flex-start; /* Align buttons to the left */
    }

    section {
        padding: 60px 0;
    }
}