
:root {
    --primary-color: #1a252f;    
    --accent-color: #27ae60;     
    --accent-hover: #219150;     
    --bg-light: #f4f6f7;         
    --bg-white: #ffffff;         
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --shadow: 0 5px 15px rgba(0,0,0,0.08);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--accent-color);
    color: white;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--accent-color);
}

.btn:hover {
    background-color: transparent;
    color: var(--accent-color);
    transform: translateY(-3px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

section {
    padding: 5rem 0;
}

header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo span {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--accent-color);
}

#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(255,255,255,0.92), rgba(255,255,255,0.92)), 
                url('https://images.unsplash.com/photo-1517694712202-14dd9538aa97?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.hero-content h2 {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}


#about {
    background-color: var(--bg-white);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-img {
    flex: 1;
    text-align: center;
}


.img-placeholder {
    width: 280px;
    height: 280px;
    background-color: #ddd;
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #aaa;
    border: 5px solid var(--accent-color);
    background-image: url('IMG_20251117_140500.png');
    background-size: cover;
    background-position: center;
}

.about-text {
    flex: 1.2;
}

.about-text p {
    margin-bottom: 1.2rem;
    color: var(--text-light);
    text-align: justify;
}

.about-stats {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
}

.stat-item h3 {
    font-size: 2rem;
    color: var(--accent-color);
}

.stat-item p {
    font-size: 0.9rem;
    margin: 0;
    color: var(--primary-color);
    font-weight: 600;
}

#skills {
    background-color: var(--bg-light);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-bottom-color: var(--accent-color);
}

.skill-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.skill-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.skill-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

#projects {
    background-color: var(--bg-white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.project-img {
    height: 180px;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
}

/* P1 — Crowd Detection: OpenCV computer vision people detection with bounding boxes */
.p1 { background-image: linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.5)), url('https://plus.unsplash.com/premium_photo-1750134958439-52e8c43a232d?q=80&w=1032&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D'); }

/* P2 — Student Management System: clean dashboard/data table UI on screen */
.p2 { background-image: linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.5)), url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRoHizL2uOnw2OADMc4-iIG1BogpxkppNRRdw&s'); }

/* P3 — SmartShelf: retail shelf / inventory / store shelves */
.p3 { background-image: linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1601598851547-4302969d0614?auto=format&fit=crop&w=1170&q=80'); }

.project-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-info h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.project-tech {
    font-size: 0.8rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.project-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-links a {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
}

.project-links a:hover {
    color: var(--accent-color);
}


#education {
    background-color: var(--bg-light);
}

.timeline-item {
    background: var(--bg-white);
    padding: 1.5rem 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--accent-color);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.timeline-content {
    flex: 1;
}

.timeline-date {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-color);
    white-space: nowrap;
    margin-left: 1rem;
}

.timeline-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: var(--primary-color);
}

.timeline-item h4 {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.timeline-item p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.section-subtitle {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 2rem 0 1.5rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.5rem;
}


#contact {
    background-color: var(--bg-white);
}

.contact-container {
    display: flex;
    justify-content: center;
}


.contact-info {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    width: 100%;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.8rem;
    background: var(--bg-light);
    padding: 1.8rem 1rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.contact-item:hover {
    transform: translateY(-5px);
    border-bottom-color: var(--accent-color);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.contact-icon {
    width: 54px;
    height: 54px;
    min-width: 54px;
    background-color: rgba(39, 174, 96, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 0.95rem;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
    font-weight: 600;
}

.contact-item p,
.contact-item a {
    font-size: 0.85rem;
    color: var(--text-light);
    word-break: break-word;
    line-height: 1.5;
}

.contact-item a:hover {
    color: var(--accent-color);
}

footer {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.social-links a {
    background-color: rgba(255,255,255,0.1);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.btn-resume {
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-resume:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-3px);
}

#soft-skills {
    background-color: var(--bg-white);
}

.soft-skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.soft-skill-card {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid transparent;
    box-shadow: var(--shadow);
}

.soft-skill-card:hover {
    transform: translateY(-6px);
    border-top-color: var(--accent-color);
    background: var(--bg-white);
}

.soft-skill-icon {
    font-size: 2.2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.soft-skill-card h3 {
    font-size: 1.05rem;
    color: var(--primary-color);
    margin-bottom: 0.6rem;
}

.soft-skill-card p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.6;
}

@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    .about-stats {
        justify-content: center;
    }
}

.hamburger {
    display: none;              
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1100;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
    transform-origin: center;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active .bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


@media (max-width: 768px) {

   
    .hamburger {
        display: flex;
    }

   
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--bg-white);
        flex-direction: column;
        align-items: center;
        gap: 0;
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
        z-index: 999;
        padding: 1rem 0;
    }

   
    .nav-links.nav-open {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 0.85rem 1rem;
        font-size: 1rem;
        border-bottom: 1px solid #f0f0f0;
        transition: background 0.2s, color 0.2s;
    }

    .nav-links a:hover {
        background-color: rgba(39, 174, 96, 0.07);
        color: var(--accent-color);
    }

   
    nav {
        position: relative;
        height: 70px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        flex-direction: column;
    }

    .timeline-date {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}