/* --- Variables & Reset --- */
:root {
    --primary: #00bcd4; /* Cyan Blue */
    --primary-dark: #0097a7;
    --bg-dark: #0a0a0a;
    --bg-card: #161616;
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --font-main: 'Poppins', sans-serif;
    --font-code: 'Fira Code', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* --- Navbar --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(10, 10, 10, 0.95);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #222;
}

.logo {
    font-family: var(--font-code);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--text-main); }
.nav-links a:hover { color: var(--primary); }

.hamburger { display: none; cursor: pointer; font-size: 1.5rem; }

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    background: radial-gradient(circle at center, #1a1a1a 0%, #0a0a0a 70%);
    position: relative;
}
.profile-container {
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.profile-pic {
    width: 180px;            /* Size of the image */
    height: 180px;           /* Size of the image */
    border-radius: 50%;      /* Makes it perfectly round */
    object-fit: cover;       /* Ensures the image doesn't stretch */
    border: 4px solid var(--primary); /* Cyan border */
    box-shadow: 0 0 25px rgba(0, 188, 212, 0.4); /* Glowing effect */
    animation: float-img 6s ease-in-out infinite;
}

/* Floating Animation */
@keyframes float-img {
    0% {
        transform: translateY(0px);
        box-shadow: 0 0 25px rgba(0, 188, 212, 0.4);
    }
    50% {
        transform: translateY(-15px);
        box-shadow: 0 15px 35px rgba(0, 188, 212, 0.2);
    }
    100% {
        transform: translateY(0px);
        box-shadow: 0 0 25px rgba(0, 188, 212, 0.4);
    }
}

/* Mobile Adjustment */
@media (max-width: 768px) {
    .profile-pic {
        width: 150px;
        height: 150px;
    }
}
.greeting { font-family: var(--font-code); color: var(--primary); margin-bottom: 10px; }
.name {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(to right, #fff, #999);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.role { font-size: 1.5rem; color: var(--text-muted); margin-bottom: 20px; min-height: 1.6em; }
.summary { max-width: 600px; margin-bottom: 40px; color: var(--text-muted); }
.highlight { color: var(--primary); font-weight: 600; }

.hero-btns { display: flex; gap: 20px; margin-bottom: 40px; }
.btn { padding: 12px 30px; border-radius: 5px; font-weight: 600; cursor: pointer; }
.btn-primary { background-color: var(--primary); color: #000; }
.btn-primary:hover { background-color: var(--primary-dark); transform: translateY(-2px); }
.btn-secondary { border: 2px solid var(--primary); color: var(--primary); }
.btn-secondary:hover { background-color: rgba(0, 188, 212, 0.1); }

.social-links { display: flex; gap: 20px; font-size: 1.5rem; }
.social-links a:hover { color: var(--primary); transform: translateY(-3px); }

.scroll-down {
    position: absolute; bottom: 30px;
    animation: bounce 2s infinite; color: var(--text-muted);
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

/* --- Common Section Styles --- */
.section { padding: 80px 5%; }
.bg-darker { background-color: #050505; }
.container { max-width: 1100px; margin: 0 auto; }

.section-title {
    font-size: 2rem;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: ''; position: absolute; width: 50%; height: 3px;
    background-color: var(--primary); bottom: -10px; left: 0;
}

/* --- About & Skills --- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.info-list li { margin: 10px 0; display: flex; align-items: center; gap: 10px; color: var(--text-muted); }

/* Logo Box Styles & Headers */
.header-with-logo { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.mt-30 { margin-top: 30px; }

.logo-box {
    width: 60px; height: 60px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    overflow: hidden; flex-shrink: 0;
    border: 2px solid var(--primary);
    box-shadow: 0 0 10px rgba(0, 188, 212, 0.2);
}
.logo-box img { width: 80%; height: 80%; object-fit: contain; }

/* Typography for Logo Headers */
.edu-title { color: #fff; margin: 0; font-size: 1.1rem; }
.edu-degree { color: var(--primary); font-size: 0.9rem; display: block; }
.edu-meta { color: var(--text-muted); font-size: 0.85rem; margin: 0; }

.skills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.skill-tag {
    background-color: #222; padding: 8px 15px; border-radius: 20px;
    font-size: 0.9rem; border: 1px solid #333; transition: 0.3s;
}
.skill-tag:hover { border-color: var(--primary); color: var(--primary); }

/* --- Timeline --- */
.timeline { position: relative; border-left: 2px solid #333; margin-left: 10px; padding-left: 30px; }
.timeline-item { margin-bottom: 40px; position: relative; }
.timeline-dot {
    position: absolute; width: 16px; height: 16px;
    background-color: var(--primary); border-radius: 50%;
    left: -39px; top: 5px; box-shadow: 0 0 10px var(--primary);
}
.timeline-date { font-family: var(--font-code); font-size: 0.85rem; color: var(--primary); margin-bottom: 5px; }

/* Text styles for Timeline Items without Logo */
.job-title { font-size: 1.2rem; color: #fff; margin-bottom: 5px; }
.company-name { font-size: 1rem; color: var(--text-muted); font-weight: 400; margin-bottom: 15px; }

/* Text styles for Timeline Items WITH Logo */
.job-title-logo { font-size: 1.2rem; color: #fff; margin: 0; line-height: 1.2; }
.company-name-logo { font-size: 0.9rem; color: var(--text-muted); font-weight: 400; margin: 0; }

/* --- Projects --- */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.project-card {
    background-color: var(--bg-card); padding: 30px;
    border-radius: 10px; border: 1px solid #222; transition: 0.3s;
}
.project-card:hover {
    transform: translateY(-10px); border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 188, 212, 0.1);
}
.project-title { margin: 0; font-size: 1.1rem; color: #fff; }
.project-subtitle { font-size: 0.8rem; color: var(--text-muted); }
.card-icon { font-size: 2rem; color: var(--primary); margin-bottom: 20px; }
.tech-stack {
    display: block; font-family: var(--font-code); font-size: 0.8rem;
    color: var(--text-muted); margin: 10px 0;
}
.card-link {
    display: inline-flex; align-items: center; gap: 5px;
    margin-top: 15px; color: var(--primary); font-weight: 600;
}

/* --- Awards --- */
.awards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.award-item {
    display: flex; align-items: center; gap: 15px;
    background: var(--bg-card); padding: 20px; border-radius: 8px; border: 1px solid #222;
}
.award-item i { font-size: 1.5rem; color: #ffd700; }

/* --- Footer --- */
footer { padding: 60px 5% 20px; text-align: center; background-color: #000; }
.email-btn {
    display: inline-block; margin: 20px 0 40px; font-size: 1.5rem;
    color: var(--primary); font-weight: 700; border-bottom: 2px solid transparent;
}
.email-btn:hover { border-bottom-color: var(--primary); }
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    border-top: 1px solid #222; padding-top: 20px; font-size: 0.9rem; color: #666;
}
.social-links-footer { display: flex; gap: 20px; }

/* --- Animations --- */
.fade-in { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-links {
        display: none; flex-direction: column; position: absolute;
        top: 70px; right: 0; width: 100%; background: #0a0a0a;
        padding: 20px; text-align: center;
    }
    .nav-links.active { display: flex; }
    .hamburger { display: block; }
    .about-grid { grid-template-columns: 1fr; }
    .name { font-size: 3rem; }
    .footer-bottom { flex-direction: column; gap: 15px; }
}