:root {
    /* Colors - Light Mode */
    --primary: #007bff;
    --primary-dark: #0056b3;
    --secondary: #6c757d;
    --background: #f4f7f6;
    --background-alt: #ffffff;
    --text-color: #333333;
    --text-muted: #666666;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: rgba(0, 0, 0, 0.1);
    
    /* Variables */
    --transition: all 0.3s ease;
    --border-radius: 16px;
    --nav-height: 80px;
}

/* Dark Mode Variables */
.dark-mode {
    --primary: #4da3ff;
    --primary-dark: #80bdff;
    --background: #121212;
    --background-alt: #1e1e1e;
    --text-color: #f1f1f1;
    --text-muted: #aaaaaa;
    --glass-bg: rgba(30, 30, 30, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--background);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    transition: var(--transition);
}

body.light-mode {
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
}

body.dark-mode {
    background: linear-gradient(135deg, #1f1c2c 0%, #928dab 100%);
    background-attachment: fixed;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Glassmorphism utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px 0 var(--glass-shadow);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--text-color);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-header h2 span {
    color: var(--primary);
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.section {
    padding: 100px 5%;
}

.bg-alt {
    background-color: var(--background-alt);
    border-radius: 40px;
    margin: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.w-100 {
    width: 100%;
}

/* Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 5%;
    transition: var(--transition);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    border-radius: 40px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
}

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

.nav-links-overlay {
    display: none;
}

.nav-links-container {
    display: none;
}

.mobile-nav-header {
    display: none;
}

.mobile-action-btn {
    display: none;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

#dark-mode-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

#dark-mode-toggle:hover {
    color: var(--primary);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px 8%;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 15px;
}

.hero-content h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.hero-content p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--glass-bg);
    color: var(--text-color);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

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

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.img-container {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
}

.about-text, .about-vision {
    padding: 40px;
}

.about-text h3, .about-vision h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--primary);
}

.about-text p {
    margin-bottom: 15px;
    color: var(--text-muted);
}

.personal-info {
    margin-top: 25px;
}

.personal-info div {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.personal-info i {
    color: var(--primary);
    width: 20px;
}

.vision-text {
    font-style: italic;
    font-size: 1.1rem;
    border-left: 4px solid var(--primary);
    padding-left: 15px;
    color: var(--text-color);
}

.interests-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.interests-tags span {
    background-color: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Timeline */
.timeline-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.timeline-title {
    margin-bottom: 30px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.timeline-title i {
    color: var(--primary);
}

.timeline {
    padding: 30px;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 30px;
    bottom: 30px;
    left: 40px;
    width: 2px;
    background-color: var(--primary);
}

.timeline-item {
    position: relative;
    padding-left: 40px;
    margin-bottom: 30px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 6px;
    top: 5px;
    width: 16px;
    height: 16px;
    background-color: var(--primary);
    border-radius: 50%;
    border: 3px solid var(--background-alt);
    box-shadow: 0 0 0 3px var(--primary);
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 5px;
}

.timeline-item h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.timeline-item h5 {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 10px;
}

.timeline-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.timeline-img {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-top: 15px;
    border: 1px solid var(--glass-border);
}

/* Achievements Section */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    padding: 30px;
    text-align: left;
    transition: var(--transition);
}

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

.card-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.card-img {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid var(--glass-border);
}

.cert-card h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.cert-card .date {
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.styled-list li {
    margin-bottom: 15px;
    color: var(--text-muted);
    padding-left: 20px;
    position: relative;
}

.styled-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* Skills */
.skills-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.skills-box {
    padding: 40px;
}

.skills-box h3 {
    margin-bottom: 30px;
    font-size: 1.5rem;
    color: var(--primary);
}

.skill-item {
    margin-bottom: 25px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 500;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: var(--glass-border);
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: var(--primary);
    border-radius: 4px;
    transition: width 1s ease-in-out;
}

.soft-skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.skill-tag {
    padding: 8px 15px;
    border: 1px solid var(--primary);
    border-radius: 20px;
    color: var(--text-color);
    font-size: 0.9rem;
    transition: var(--transition);
}

.skill-tag:hover {
    background-color: var(--primary);
    color: white;
}

.mt-4 {
    margin-top: 40px;
}

.research-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.project-card {
    overflow: hidden;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-img img {
    transform: scale(1.1);
}

.project-content {
    padding: 25px;
}

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

.project-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-tech span {
    font-size: 0.8rem;
    background-color: var(--glass-border);
    padding: 4px 10px;
    border-radius: 4px;
    color: var(--primary);
    font-weight: 600;
}

/* Contact Section */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info, .contact-form {
    padding: 40px;
}

.contact-info h3 {
    margin-bottom: 20px;
    color: var(--primary);
}

.contact-info p {
    margin-bottom: 30px;
    color: var(--text-muted);
}

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

.contact-item .icon {
    width: 50px;
    height: 50px;
    background-color: var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
}

.contact-item h4 {
    margin-bottom: 5px;
}

.contact-item p {
    margin-bottom: 0;
    color: var(--text-muted);
}

.contact-item p a {
    transition: var(--transition);
}

.contact-item p a:hover {
    color: var(--primary);
}



/* Footer */
footer {
    text-align: center;
    padding: 40px 5%;
    border-top: 1px solid var(--glass-border);
}

.footer-content p {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.footer-socials {
    justify-content: center;
    margin-bottom: 20px;
}

.copyright {
    font-size: 0.9rem;
    font-style: normal !important;
}

/* Floating Elements */
.floating-wa {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
}

.floating-wa:hover {
    transform: scale(1.1);
    color: white;
}

#scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
    z-index: 999;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
}

#scroll-top.show {
    opacity: 1;
    visibility: visible;
}

#scroll-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
}

/* Particle Canvas */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}


/* Image Modal */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.8);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}
.modal-wrapper {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.modal-content {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: zoomIn 0.3s ease;
}
@keyframes zoomIn {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}
.close-modal {
    position: absolute;
    top: -15px;
    right: -15px;
    color: white;
    background-color: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    z-index: 2001;
}
.close-modal:hover {
    background-color: var(--primary-dark);
    transform: scale(1.1);
}
img:not(#modal-img) {
    transition: transform 0.3s ease;
}
img:not(#modal-img):hover {
    transform: scale(1.05);
}
