/* --- GLOBAL STYLES & VARIABLES --- */
:root {
    --bg-color: #121212;
    --primary-color: #FFC107; /* A nice gold/yellow */
    --text-color: #E0E0E0;
    --heading-color: #FFFFFF;
    --card-bg-color: #1E1E1E;
    --border-color: #333333;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; background-color: var(--bg-color); color: var(--text-color); line-height: 1.6; }
h1, h2, h3, h4, h5, h6 { color: var(--heading-color); font-weight: 600; }
section { padding: 80px 10%; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 3rem; position: relative; }
.section-title::after { content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 60px; height: 4px; background-color: var(--primary-color); }
.section-subtitle { text-align: center; color: var(--text-color); margin-bottom: 3rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.btn { display: inline-block; background-color: var(--primary-color); color: var(--bg-color); padding: 12px 24px; border-radius: 5px; text-decoration: none; font-weight: 600; transition: background-color 0.3s ease, transform 0.3s ease; }
.btn:hover { background-color: #ffca2c; transform: translateY(-3px); }

/* --- HEADER & NAVIGATION --- */
header { position: fixed; width: 100%; top: 0; left: 0; z-index: 1000; background: rgba(18, 18, 18, 0.8); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-color); }
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 1rem 10%; height: 70px; }
.nav-logo { color: var(--heading-color); font-size: 1.5rem; font-weight: 700; text-decoration: none; }
.nav-menu { display: flex; list-style: none; gap: 2rem; }
.nav-link { color: var(--text-color); text-decoration: none; font-weight: 500; transition: color 0.3s ease; position: relative; padding-bottom: 5px; }
.nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: var(--primary-color); transition: width 0.3s ease; }
.nav-link:hover, .nav-link.active { color: var(--primary-color); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.hamburger { display: none; cursor: pointer; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; background-color: var(--heading-color); transition: all 0.3s ease-in-out; }

/* --- HOME SECTION --- */
.home-section { display: flex; align-items: center; justify-content: space-between; min-height: 100vh; padding-top: 70px; }
.home-content { max-width: 50%; }
.intro-text { color: var(--primary-color); font-weight: 600; letter-spacing: 2px; }
.home-content h1 { font-size: 4rem; line-height: 1.1; margin: 1rem 0; }
.role-text { font-size: 1.5rem; margin-bottom: 2rem; }
.home-image img { max-width: 400px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }

/* --- ABOUT SECTION --- */
.about-section { background-color: var(--card-bg-color); }
.about-container { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1.5rem; }
.skills h3, .about-info h3 { font-size: 1.8rem; margin-bottom: 1.5rem; color: var(--primary-color); }
.skill-bar { margin-bottom: 1.5rem; }
.skill-bar p { display: flex; justify-content: space-between; font-weight: 500; }
.bar-container { width: 100%; background-color: #333; border-radius: 5px; height: 8px; margin-top: 0.5rem; }
.bar-fill { height: 100%; background-color: var(--primary-color); border-radius: 5px; }

/* --- RESUME (EXPERIENCE & EDUCATION) SECTION --- */
.resume-subtitle { text-align: left; font-size: 2rem; margin-top: 3rem; margin-bottom: 2rem; padding-bottom: 10px; border-bottom: 2px solid var(--border-color); }
.timeline-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.timeline-item { background-color: var(--card-bg-color); padding: 2rem; border-radius: 8px; border-left: 4px solid var(--primary-color); transition: transform 0.3s; }
.timeline-item:hover { transform: translateY(-5px); }
.timeline-date { background-color: var(--primary-color); color: var(--bg-color); padding: 4px 12px; border-radius: 20px; font-weight: 600; display: inline-block; margin-bottom: 1rem; font-size: 0.9rem; }
.timeline-item h4 { font-size: 1.5rem; margin-bottom: 0.25rem; }
.timeline-item h5 { font-size: 1rem; color: var(--text-color); font-weight: 500; margin-bottom: 1rem; }
.timeline-item ul { list-style-type: '–  '; padding-left: 20px; }
.timeline-item ul li { margin-bottom: 0.5rem; }
.resume-download { text-align: center; margin-top: 4rem; }

/* --- PROJECTS SECTION --- */
.projects-section { background: var(--card-bg-color); }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.project-card { background: var(--bg-color); border-radius: 10px; overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; border: 1px solid var(--border-color); display: flex; flex-direction: column; }
.project-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.4); }
.project-card img { width: 100%; height: 200px; object-fit: cover; }
.project-card-content { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.project-card h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.project-card p { flex-grow: 1; }
.project-link { margin-top: 1rem; text-decoration: none; color: var(--primary-color); font-weight: 600; transition: color 0.3s; }
.project-link i { margin-left: 5px; transition: transform 0.3s ease; }
.project-link:hover { color: #ffda73; }
.project-link:hover i { transform: translateX(5px); }

/* --- CONTACT SECTION --- */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-bottom: 4rem; }
.contact-item { text-align: center; }
.contact-icon { background-color: var(--card-bg-color); width: 80px; height: 80px; margin: 0 auto 1.5rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background-color 0.3s, transform 0.3s; }
.contact-icon i { font-size: 2rem; color: var(--primary-color); }
.contact-item:hover .contact-icon { background-color: var(--primary-color); transform: translateY(-5px); }
.contact-item:hover .contact-icon i { color: var(--bg-color); }
.contact-item h4 { margin-bottom: 0.5rem; font-size: 1.1rem; }
.contact-item p { font-size: 0.9rem; color: var(--text-color); }
.contact-item p a { color: var(--text-color); text-decoration: none; transition: color 0.3s; }
.contact-item p a:hover { color: var(--primary-color); }
.contact-cta { text-align: center; }
.contact-cta h3 { font-size: 1.5rem; margin-bottom: 1rem; }

/* --- FOOTER --- */
footer { text-align: center; padding: 2rem 10%; border-top: 1px solid var(--border-color); background-color: var(--card-bg-color); }
.social-links a { display: inline-block; color: var(--text-color); font-size: 1.5rem; margin: 0 1rem; transition: color 0.3s, transform 0.3s; }
.social-links a:hover { color: var(--primary-color); transform: translateY(-5px); }
footer p { margin-top: 1rem; font-size: 0.9rem; }

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
    section { padding: 80px 7%; }
    .home-section { flex-direction: column; text-align: center; padding-top: 120px; }
    .home-content { max-width: 100%; }
    .home-image img { max-width: 350px; margin-top: 3rem; }
    .about-container { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-menu { position: fixed; left: -100%; top: 70px; flex-direction: column; background-color: var(--bg-color); width: 100%; text-align: center; transition: 0.3s; gap: 0; }
    .nav-menu.active { left: 0; }
    .nav-item { margin: 1.5rem 0; }
    .hamburger { display: block; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .home-content h1 { font-size: 2.8rem; }
    .home-image img { max-width: 80%; }
    .info-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 2rem; }
    section { padding: 60px 5%; }
    .navbar { padding: 1rem 5%; }
    .timeline-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}