/* ==========================================================================
   Global Reset & Base Styles
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
}

body {
    background: #f8f9fa;
    color: #222;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2rem; text-align: center; margin: 3rem 0 2rem;
}
h3 { font-size: 1.3rem; }

p {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #444;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    text-align: center;
    padding: 4rem 1rem;
    background: linear-gradient(135deg, #0066cc, #003366);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.profile-pic {
    width: 350px;
    height: 350px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 6px solid rgba(255,255,255,0.3);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-title {
    font-size: 3rem;
    margin: 0.5rem 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 600;
    opacity: 1;
    color: #e2e8f0;
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* Tech Stack */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 1.8rem;
    margin-top: 1.5rem;
    font-size: 1.15rem;           
    font-weight: 700;
    color: #222;
    justify-content: center;
    text-transform: uppercase;     
    letter-spacing: 0.5px;
}

.tech-stack span {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.2s ease;
}

.tech-stack span i {
    color: #0066cc;
    font-size: 1.4rem;            
    font-weight: 900;
}

/* Hover effect – turns full blue */
.tech-stack span:hover {
    color: #0066cc;
    transform: translateY(-1px);
}

/* Hero Decorative Elements */
.hero-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.element-circle {
    position: absolute;
    top: 15%;
    right: 10%;
    width: 300px;
    height: 300px;
    border: 3px solid rgba(255,255,255,0.1);
    border-radius: 50%;
}

.element-line {
    position: absolute;
    bottom: 20%;
    left: 10%;
    width: 200px;
    height: 2px;
    background: rgba(255,255,255,0.1);
}

/* ==========================================================================
   About Me Section
   ========================================================================== */
.about {
    font-size: 2rem;
    line-height: 1.75;          
}

.about p {
    margin-bottom: 2rem;
    color: #2d3748;
}

.about h2 {
    font-size: 2.5rem;
}

/* ==========================================================================
   Portfolio / Personal Projects
   ========================================================================== */
.portfolio {
    padding: 3rem 1rem;
    background: #0A1D37;            
    color: #e2e8f0;                  
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.project-image {
    height: 200px;
    overflow: hidden;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    margin-bottom: 0.5rem;
    color: #222;
}

.project-link {
    display: inline-block;
    margin-top: 0.8rem;
    color: #0066cc;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
}

.project-link:hover {
    text-decoration: underline;
}

.badge {
    display: inline-block;
    background: #e63946;
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 0.5rem;
    font-weight: 600;
}

/* ==========================================================================
   Published Works & Talks
   ========================================================================== */
.publications {
    padding: 3rem 1rem;
    background: white;
}

.pub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.pub-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    border: 1px solid #eee;
}

.pub-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.pub-icon {
    font-size: 1.8rem;
    color: #0066cc;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.pub-content h3 {
    margin: 0 0 0.4rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #222;
}

.pub-meta {
    font-size: 0.85rem;
    color: #0066cc;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pub-content p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
    color: #444;
    line-height: 1.5;
}

.pub-link {
    display: inline-block;
    margin-right: 1rem;
    margin-top: 0.5rem;
    color: #0066cc;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s;
}

.pub-link:hover {
    color: #003366;
    text-decoration: underline;
}

/* ------------------------------------------------------------------
   SECTION SEPARATION
   ------------------------------------------------------------------ */
.section-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

/* Ensure a clear gap between sections */
section + section {
    margin-top: 2rem;
}

/* Optional: give each section a subtle top border */
section {
    border-top: 1px solid #e2e8f0;
}
section:first-of-type { border-top: none; }

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact {
    padding: 3rem 1rem;
    text-align: center;
    background: white;
}

.contact a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
}

.contact a:hover {
    text-decoration: underline;
}

.social-links {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    font-size: 1.8rem;
    color: #0066cc;
    transition: all 0.2s ease;
}

.social-links a:hover {
    color: #003366;
    transform: translateY(-3px);
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 768px) {
    .hero-title { font-size: 2.4rem;
}
    .hero-subtitle { font-size: 1.4rem; }
    .tech-stack { gap: 1.2rem; font-size: 1rem;
}
    .tech-stack span i { font-size: 1.2rem; }
    .slideshow-container { height: 350px;
}
    h2 { font-size: 1.8rem; }
}

@media (max-width: 480px) {
    .profile-pic { width: 120px;
    height: 120px; }
    .hero-title { font-size: 2rem; }
    .tech-stack { flex-direction: column; align-items: center;
}
    .grid, .pub-grid { grid-template-columns: 1fr; }
    .slideshow-container { height: 300px;
}
}

/* ------------------------------------------------------------------
   SLIDESHOW – AUTO-SCROLLING CAROUSEL
   ------------------------------------------------------------------ */
.slideshow-container {
    position: relative;
    max-width: 100%;
    margin: auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0,0,0,0.3);
    height: 500px;
}

.slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
    z-index: 0;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 10;
}

.slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: rgba(10, 29, 55, 0.85);
    color: #fff;
    padding: 1.2rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    backdrop-filter: blur(6px);
}

/* Prev / Next Buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 1rem 1.2rem;
    color: white;
    font-weight: bold;
    font-size: 2rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    user-select: none;
    transition: 0.3s;
    text-decoration: none;
    z-index: 10;
}
.prev { left: 1.5rem; }
.next { right: 1.5rem;
}
.prev:hover, .next:hover {
    background: #0066cc;
    transform: translateY(-50%) scale(1.1);
}

/* Dots */
.dot {
    cursor: pointer;
    height: 13px;
    width: 13px;
    margin: 0 8px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s;
}
.dot.active, .dot:hover {
    background-color: #60a5fa;
}

/* Responsive */
@media (max-width: 768px) {
    .slideshow-container { height: 350px;
}
    .slide-caption { font-size: 1rem; padding: 1rem;
}
}
@media (max-width: 480px) {
    .slideshow-container { height: 280px; }
    .prev, .next { font-size: 1.5rem;
    padding: 0.8rem; }
}

/* ==========================================================================
   Dark Mode Support (Optional)
   ========================================================================== */
[data-theme="dark"] {
    background: #121212;
    color: #e0e0e0;
}

[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #003366, #001f3f);
}

[data-theme="dark"] .tech-stack span,
[data-theme="dark"] .project-info h3,
[data-theme="dark"] .pub-content h3 {
    color: #e0e0e0;
}

[data-theme="dark"] .project-card,
[data-theme="dark"] .pub-card {
    background: #1e1e1e;
    border-color: #333;
}

[data-theme="dark"] .section-inner,
[data-theme="dark"] .contact,
[data-theme="dark"] .publications {
    background: #121212;
}