/* --- Variables & Reset --- */
:root {
    --primary-color: #8248e5; 
    --secondary-color: #1a1a1a;
    --text-color: #555;
    --heading-color: #222;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --dark-bg: #111;
    --font-main: 'Jost', sans-serif;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-main); color: var(--text-color); line-height: 1.6; background-color: var(--white); overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; }

/* --- Typography --- */
h1, h2, h3 { color: var(--heading-color); font-weight: 700; line-height: 1.2; }
.sub-title { color: var(--primary-color); font-size: 0.85rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; display: block; margin-bottom: 10px; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.section { padding: 100px 0; }
.bg-light { background-color: var(--light-bg); }
.bg-dark { background-color: var(--dark-bg); color: white; }
.text-center { text-align: center; }

/* --- Buttons --- */
.btn { display: inline-block; padding: 14px 35px; border-radius: 8px; font-weight: 500; cursor: pointer; font-size: 1rem; border: 2px solid transparent; transition: var(--transition); }
.btn-primary { background-color: var(--primary-color); color: var(--white); box-shadow: 0 5px 15px rgba(130, 72, 229, 0.3); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(130, 72, 229, 0.4); }
.btn-outline { border-color: #ccc; color: var(--heading-color); background: transparent; margin-left: 15px; }
.btn-outline:hover { border-color: var(--primary-color); color: var(--primary-color); }

/* --- Navbar --- */
.navbar { padding: 20px 0; position: fixed; width: 100%; top: 0; z-index: 1000; background-color: rgba(255,255,255,0.95); backdrop-filter: blur(10px); }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.8rem; font-weight: 800; color: var(--heading-color); }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a { font-weight: 500; font-size: 1rem; color: var(--heading-color); }
.nav-links a:hover { color: var(--primary-color); }
.btn-nav { padding: 10px 25px; background: var(--primary-color); color: white !important; border-radius: 6px; }
.hamburger { display: none; font-size: 1.5rem; cursor: pointer; }

/* --- HERO SECTION --- */
.hero-section { padding-top: 120px; padding-bottom: 50px; min-height: 100vh; display: flex; align-items: center; background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%); }
.hero-container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.hero-text { flex: 1; padding-right: 50px; }
.hero-text .greeting { font-size: 1.5rem; font-weight: 600; color: var(--text-color); display: block; margin-bottom: 10px; }
.hero-text h1 { font-size: 3.5rem; margin-bottom: 5px; color: var(--heading-color); }
.hero-text .role { font-size: 1.8rem; color: var(--primary-color); margin-bottom: 20px; font-weight: 600; }
.hero-text p { font-size: 1.1rem; color: var(--text-color); max-width: 500px; margin-bottom: 30px; }
.social-links-hero { margin-top: 30px; display: flex; gap: 15px; }
.social-links-hero a { width: 40px; height: 40px; border-radius: 50%; background: #e1e1e1; display: flex; align-items: center; justify-content: center; color: var(--heading-color); }
.social-links-hero a:hover { background: var(--primary-color); color: white; }
.hero-image-wrapper { flex: 1; display: flex; justify-content: flex-end; position: relative; }
.profile-image { width: 100%; max-width: 550px; height: auto; object-fit: contain; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1)); }

/* --- Education Cards --- */
.education-grid { display: flex; gap: 20px; margin: 30px 0; flex-wrap: wrap; }
.edu-card { background: white; padding: 25px; border-radius: 10px; border: 1px solid #eee; flex: 1; min-width: 250px; box-shadow: 0 5px 20px rgba(0,0,0,0.03); transition: var(--transition); }
.edu-card:hover { border-color: var(--primary-color); transform: translateY(-3px); }
.edu-card i { color: var(--primary-color); font-size: 1.5rem; margin-bottom: 10px; }
.edu-card h3 { font-size: 1.1rem; margin-bottom: 5px; }
.edu-card .institute { color: #666; font-size: 0.95rem; }
.edu-card .details { font-weight: 600; color: var(--heading-color); margin-top: 5px; }
.tech-stack-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.skill-tag { padding: 8px 16px; background: rgba(130, 72, 229, 0.1); color: var(--primary-color); border-radius: 20px; font-weight: 500; font-size: 0.9rem; }

/* --- ROAD MAP EXPERIENCE SECTION --- */
.road-wrapper { position: relative; max-width: 900px; margin: 0 auto; padding-left: 80px; }
.the-road { position: absolute; left: 0; top: 20px; bottom: 20px; width: 50px; background: #34495e; border-radius: 25px; border: 3px solid #2c3e50; box-shadow: inset 0 0 10px rgba(0,0,0,0.5); z-index: 1; }
.road-markings { position: absolute; left: 50%; transform: translateX(-50%); top: 10px; bottom: 10px; width: 2px; background-image: linear-gradient(to bottom, #fff 50%, transparent 50%); background-size: 2px 20px; background-repeat: repeat-y; opacity: 0.6; }
.moving-person { position: absolute; left: 50%; transform: translateX(-50%); top: 0%; width: 40px; height: 40px; background: var(--primary-color); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; box-shadow: 0 0 15px rgba(130, 72, 229, 0.6); border: 3px solid white; z-index: 2; transition: top 0.1s linear; }

.road-card { position: relative; margin-bottom: 50px; background: white; padding: 40px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border-left: 5px solid var(--primary-color); transition: all 0.3s ease; }
.road-connector { position: absolute; left: -40px; top: 40px; width: 40px; height: 4px; background: #555; z-index: 0; transition: background-color 0.3s ease; }
.road-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(130, 72, 229, 0.15); }

.company-logo { width: 55px; height: 55px; object-fit: contain; margin-bottom: 15px; border-radius: 10px; background: #f8f9fa; padding: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.experience-card:hover .company-logo { transform: scale(1.15) rotate(3deg); box-shadow: 0 8px 20px rgba(130, 72, 229, 0.25); background: white; }
.animate-on-load { opacity: 0; animation: fadeInUpLogo 0.8s ease forwards; }
@keyframes fadeInUpLogo { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.exp-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.exp-date { background: #eee; padding: 5px 15px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; }
.company-name { color: var(--primary-color); margin-bottom: 20px; font-size: 1.1rem; }
.exp-list { padding-left: 20px; }
.exp-list li { margin-bottom: 10px; color: #555; }

/* --- Portfolio (Fixed Height) --- */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.portfolio-item { position: relative; cursor: pointer; }
.portfolio-thumb { border-radius: 10px; overflow: hidden; position: relative; margin-bottom: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.portfolio-thumb img { width: 100%; height: 220px; object-fit: cover; transition: var(--transition); }
.portfolio-thumb:hover img { transform: scale(1.05); }
.overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(130, 72, 229, 0.85); display: flex; align-items: center; justify-content: center; opacity: 0; transition: var(--transition); }
.portfolio-thumb:hover .overlay { opacity: 1; }
.btn-icon { width: 50px; height: 50px; background: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary-color); }
.portfolio-info span { font-size: 0.8rem; font-weight: 700; color: var(--primary-color); }

/* --- Contact Section --- */
.contact-container { display: flex; gap: 60px; align-items: center; }
.contact-info { flex: 1; }
.contact-form-wrapper { flex: 1; background: #222; padding: 40px; border-radius: 15px; }
.form-input { width: 100%; padding: 15px; margin-bottom: 15px; background: #333; border: 1px solid #444; color: white; border-radius: 5px; font-family: inherit; }
.form-input:focus { outline: none; border-color: var(--primary-color); }
.info-row { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.icon-small { color: var(--primary-color); font-size: 1.2rem; }

/* --- Footer --- */
footer { background: #000; color: #777; padding: 40px 0; border-top: 1px solid #222; }
.footer-content { display: flex; justify-content: space-between; align-items: center; }
.socials a { color: #777; margin-left: 20px; font-size: 1.2rem; transition: var(--transition); }
.socials a:hover { color: var(--primary-color); }

/* --- Responsive --- */
@media (max-width: 992px) {
    .hero-container { flex-direction: column-reverse; text-align: center; }
    .hero-text { padding-right: 0; margin-top: 40px; }
    .hero-image-wrapper { justify-content: center; width: 100%; }
    .profile-image { max-width: 400px; }
    .hero-text h1 { font-size: 2.8rem; }
    .contact-container { flex-direction: column; }
    .social-links-hero { justify-content: center; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: block; }
    .hero-section { padding-top: 100px; }
    .btn { display: block; width: 100%; margin: 10px 0; }
    .btn-outline { margin-left: 0; }
    .experience-card { padding: 25px; }
    .exp-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    
    /* Road Adjustments for Mobile */
    .road-wrapper { padding-left: 50px; }
    .the-road { width: 30px; }
    .moving-person { width: 26px; height: 26px; font-size: 0.8rem; }
    .road-connector { left: -25px; width: 25px; }
}