/* Reset basic margins */
/* @import url('fonts.googleapis.com'); */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #F5F5F5;
    /* background-color: #ffffff; */
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem; /* Padding for mobile/small screens */
  padding-right: 1rem;
}


.hero-section {
    position: relative;
    height: 50vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    
    /* REMOVE overflow: hidden from here */
}

/* This new wrapper contains the blur and the clipping */
.hero-blur-wrapper {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    overflow: hidden; /* Clips the blurry edges only for the image */
    z-index: 0;
}

.draggable-bg {
    position: absolute;
    /* Center it initially */
    top: 110%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.5); /* Scale up to allow movement */
    
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    filter: blur(8px);
    transition: filter 0.5s ease; /* Transition only filter, not transform */
    cursor: grab;
    z-index: 0;
    user-select: none;
    -webkit-user-drag: none; /* Disables default browser image drag */
}

.draggable-bg:active {
    cursor: grabbing;
}

.hero-section:hover .draggable-bg {
    filter: blur(0px);
}
.hero-section:hover .hero-blur-wrapper::after {
    opacity: 0;
}

.hero-blur-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4));
    pointer-events: none; 
    z-index: 1;
    
    /* ADD THIS: Smoothly fade the gradient in/out */
    transition: opacity 0.5s ease;
    opacity: 1; /* Fully visible by default */
}

/* TARGET: When hero-section is hovered, hide the gradient overlay */
.hero-section:hover .hero-blur-wrapper::after {
    opacity: 0;
}


/* .hero-section:hover .hero-blur-wrapper::before {
    filter: blur(0px);
    transform: scale(1.0); 
} */

.hero-content:hover ~ .hero-blur-wrapper::before {
    filter: blur(0px);
}

.hero-content {
    /* Ensure content sits above the pseudo-element background */
    position: relative;
    z-index: 1;
    /* font-family: 'JetBrains Mono', monospace; */
    font-family: "Titan One", sans-serif;

    
    transition: opacity 0.4s ease, visibility 0.4s ease;
    opacity: 1;
    visibility: visible;
}

.hero-section:hover .hero-content {
    opacity: 0;
    visibility: hidden; /* Fully removes it from the cursor's path */
    pointer-events: none; /* Allows you to drag the image "through" the hidden text */
}

.hero-content h1 {
    font-size: 3rem;
    letter-spacing: 2px;
}

/* Bottom Left Profile Picture */
.profile-container {
    position: absolute;
    bottom: -90px;
    left: 250px;
    z-index: 1;
}

.profile-pic {
    width: 185px;
    height: 185px;
    border-radius: 50%; /* Makes it a circle */
    border: none;
    object-fit: cover;
    object-position: top;
}

/* Bio Section Styles */
.bio-section {
    padding: 80px 10%;
    /* background-color: #fcfcfc; */
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px); 
    color: #1a1a1a;
    
}

.bio-container {
    max-width: 990px;
    margin: 1rem auto;
    padding-top: 2rem;
}

/* Line 1: Modak Style */
.bio-header-grid {
    display: grid;
    /* Column 1: width of emoji, Column 2: fills remaining space */
    grid-template-columns: auto 1fr; 
    align-items: center;
    column-gap: 15px; /* Adjust this to control space after emoji */
}

.bio-greeting {
    grid-column: 2; /* Forces text to the second column */
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: clamp(2rem, 2.5vw, 3.5rem);
    /* text-transform: uppercase; */
    margin: 0; /* Remove default margins to prevent misalignment */
}


.wave-emoji {
    grid-column: 1; /* Keep emoji in the first column */
    grid-row: 1;    /* Keep emoji on the first row */
    font-size: 3rem; 
    display: inline-block;
    animation: wave-animation 2.5s infinite;
    transform-origin: 70% 70%;
}
@keyframes wave-animation {
    0% { transform: rotate( 0.0deg) }
   10% { transform: rotate(14.0deg) }
   20% { transform: rotate(-8.0deg) }
   30% { transform: rotate(14.0deg) }
   40% { transform: rotate(-4.0deg) }
   50% { transform: rotate(10.0deg) }
   60% { transform: rotate( 0.0deg) }
  100% { transform: rotate( 0.0deg) }
}
.bio-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 3rem;
}

/* Line-by-line paragraph styles */
.bio-line {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-weight: 300;
    color: #333;
}

/* Highlights and Technical keywords */
.tech-pill {
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
    font-family: monospace; /* Gives it a "code" feel */
}

.highlight {
    border-bottom: 2px solid #000;
    font-weight: 500;
}

.project-intro {
    margin-top: 4rem;
    font-style: italic;
    color: #777;
    border-left: 3px solid #000;
    padding-left: 20px;
}


.projects-section {
    padding: 80px 10%;
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px); 
}

.projects-container {
    max-width: 990px;
    margin: 0 auto;
}

/* Section Header - Consistent with Bio Name */
.section-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.5rem;
    text-transform: uppercase;
    margin-bottom: 3rem;
    /* padding: 0 0 4rem 0; */
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 4rem;
    font-weight: 500;
}

/* Project Card Styling */
.project-card {
    border: 1px solid #eee;
    padding: 40px;
    border-radius: 12px;
    background: #fcfcfc;
    transition: transform 0.3s ease;
    margin-bottom: 2rem;
}
.project-header {
    display: flex;
    align-items: center; /* This ensures the H3 and the tag align perfectly in the middle */
    flex-wrap: wrap; /* Allows items to wrap onto a new line on mobile if needed */
    gap: 15px; /* Space between the tag, title, and links */
    margin-bottom: 20px;
}

.project-tag {
    background-color: #e0f2fe; /* A light, clean blue */
    color: #0c4a6e;
    padding: 4px 10px;
    border-radius: 50px; /* Makes it a pill shape */
    font-size: 0.75rem; /* Small, subtle text */
    font-family: 'JetBrains Mono', monospace; /* Consistent with your tech stack font */
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap; /* Prevents the tag from splitting across lines */
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.project-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.8rem;
    margin: 0; /* Remove default H3 margin */
    flex-grow: 1; 
}

.project-name span {
    font-size: 1rem;
    color: #888;
    font-weight: 400;
}

.project-links {
    margin-left: auto; /* Pushes the links to the far right edge of the card */
    display: flex;
    gap: 10px;
}

/* Style for the link buttons (ensure they match your site design) */
.link-btn {
    font-size: 0.8rem;
    padding: 5px 10px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.link-btn:hover {
    background: #e0e0e0;
}

/* Tech Stack Pills */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 25px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.tech-item {
    font-size: 0.9rem;
    color: #444;
}

/* Engineering Details */
.detail-block {
    margin-bottom: 30px;
}

.detail-block h4 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.dot {
    height: 8px;
    width: 8px;
    background-color: #000;
    border-radius: 50%;
    display: inline-block;
}

.detail-block ul {
    list-style: none;
    padding-left: 18px;
}

.detail-block li {
    margin-bottom: 8px;
    color: #555;
    position: relative;
}

.detail-block li::before {
    content: "→";
    position: absolute;
    left: -18px;
    color: #888;
}

.project-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed #ddd;
    font-size: 1rem;
    color: #333;
}

details summary::-webkit-details-marker {
    display: none;
}

.project-accordion {
    margin-top: 20px;
    /* border-top: 1px solid #eee; */
}

.accordion-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    cursor: pointer;
    list-style: none; /* Hides arrow in Firefox */
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
    transition: color 0.3s ease;
}

.accordion-trigger:hover {
    color: #000;
}

.trigger-icon {
    transition: transform 0.3s ease;
}

/* Rotate icon when accordion is open */
.project-accordion[open] .trigger-icon {
    transform: rotate(180deg);
}

.accordion-content {
    padding-top: 10px;
    animation: slideDown 0.4s ease-out;
}


/* Skills */
/* --- SECTION LAYOUT --- */
.skills-bento {
    padding: 80px 10%;
    margin-top: 4rem;
    padding-bottom: 4rem;
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px); 
}

.bento-container {
    max-width: 990px;
    margin: 0 auto;
}

.bento-grid {
    column-count: 2;
    column-gap: 20px;
    margin-top: 40px;
    width: 100%;
}

/* --- THE CARD (DETAILS TAG) --- */
.bento-card {
    break-inside: avoid;
    display: block; /* Overwrite inline-block for better details behavior */
    width: 100%;
    background: #ffffff;
    border: 1px solid #eee;
    padding: 20px 30px;
    border-radius: 16px;
    margin-bottom: 20px;
    transition: box-shadow 0.3s ease;
    overflow: hidden;
}

.bento-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* --- ACCORDION HEADER (SUMMARY TAG) --- */
.bento-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none; /* Hide default arrow */
    cursor: pointer;
    padding: 10px 0;
}

.bento-header::-webkit-details-marker {
    display: none; /* Hide default arrow Chrome/Safari */
}

.bento-header h4 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    margin: 0; /* Align perfectly with icon */
}

/* --- CHEVRON ICON --- */
.chevron {
    width: 8px;
    height: 8px;
    border-right: 2px solid #888;
    border-bottom: 2px solid #888;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

details[open] .chevron {
    transform: rotate(-135deg);
}

/* --- CONTENT ANIMATION --- */
.accordion-content {
    padding-top: 20px;
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- SKILL GROUP & ELEMENTS --- */
.skill-group {
    margin-bottom: 1rem;
}

.skill-group label {
    display: flex;
    justify-content: space-between;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
}

.skill-group label span {
    font-family: 'JetBrains Mono', monospace;
    color: #888;
    font-size: 0.8rem;
}

.divider {
    height: 1px;
    background: #eee;
    margin: 20px 0;
}

.skill-grid-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* --- PROGRESS BARS --- */
progress {
    display: block;
    width: 100%;
    height: 6px;
    border: none;
    background-color: #eee;
    border-radius: 10px;
    margin-bottom: 12px;
    appearance: none;
}

progress::-webkit-progress-bar { background-color: #eee; border-radius: 10px; }
progress::-webkit-progress-value { background-color: #1a1a1a; border-radius: 10px; }
progress::-moz-progress-bar { background-color: #1a1a1a; border-radius: 10px; }

/* --- CONCEPTS --- */
.concept-list {
    list-style: none;
    padding: 0;
}

.concept-list li {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #444;
}

.accordion-content {
    padding-top: 20px;
    /* This animation triggers every time a card is revealed */
    animation: fadeInSlide 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInSlide {
    from { 
        opacity: 0; 
        transform: translateY(-5px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Optional: Highlight the card that is currently open */
details[open].bento-card {
    /* border-color: #1a1a1a; */
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}


.experience-section {
    padding: 80px 10%;
    background-color: #ffffff;
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px); 
}

.experience-container {
    max-width: 900px;
    margin: 0 auto;
}

.experience-statement {
    border-left: 3px solid #1a1a1a;
    padding-left: 40px;
    margin-top: 40px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #f0fdf4; /* Light green */
    color: #166534;
    padding: 6px 15px;
    border-radius: 50px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 25px;
}

/* The "Available" Pulse Animation */
.pulse-dot {
    height: 8px;
    width: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 rgba(34, 197, 94, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.statement-lead {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.3;
}

.statement-body {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
    max-width: 700px;
}

.cta-wrapper {
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 25px;
}

.cta-button {
    background: #1a1a1a;
    color: #fff;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    transition: transform 0.2s;
}

.cta-button:hover {
    transform: translateY(-3px);
}

.cta-link {
    color: #666;
    text-decoration: underline;
    font-size: 0.9rem;
}

.education-section {
    padding: 80px 10%;
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px); 
}

.education-container {
    max-width: 900px;
    margin: 0 auto;
}

.timeline {
    margin-top: 40px;
    position: relative;
    border-left: 2px solid #eee; /* The vertical line */
    padding-left: 30px;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

/* The dot on the timeline */
.timeline-item::before {
    content: "";
    position: absolute;
    left: -37px; /* Centers the dot on the line */
    top: 5px;
    width: 12px;
    height: 12px;
    background-color: #1a1a1a;
    border-radius: 50%;
    border: 3px solid #fcfcfc;
}

.timeline-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.timeline-content h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #1a1a1a;
}

.institution {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: #555;
    margin-bottom: 12px;
    font-style: italic;
}

.edu-description {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    max-width: 700px;
    margin-bottom: 15px;
}

/* Highlight important skills in the description */
.edu-description strong {
    color: #1a1a1a;
    font-weight: 600;
}

.portfolio-footer {
    position: relative;
    width: 100%;
    /* We use a very dark, semi-transparent color for the glass effect */
    background-color: rgba(26, 26, 26, 0.85); 
    
    /* THE BLUR FEATURE */
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px); /* For Safari support */
    
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 100px 0 40px 0;
    /* margin-top: 50px; */
}

.footer-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 10%;
    text-align: center;
}

.footer-cta {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.highlight-text {
    color: #22c55e; /* Matching your "Available" pulse color */
}

.footer-top p {
    font-family: 'Inter', sans-serif;
    color: #888;
    margin-bottom: 25px;
}

.email-link {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
    color: #fff;
    text-decoration: none;
    border-bottom: 2px solid #333;
    padding-bottom: 5px;
    transition: border-color 0.3s ease;
    margin-right: 1rem;
}

.email-link:hover {
    border-color: #22c55e;
}

/* Social Links Bar */
.footer-links {
    margin: 60px 0;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    font-family: 'JetBrains Mono', monospace;
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

/* Bottom Bar */
.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    padding-left: 7rem;
    border-top: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #b5b5b5;
    font-family: 'Inter', sans-serif;
}

.built-with span {
    color: #888;
    font-family: 'JetBrains Mono', monospace;
    margin: 0 5px;
}

.api{
    background-color: #FFDE63;
}

.highlight-text-pink {
    background-color: #decffe;
    /* color: #fff; */
}

.txt-sm
{
    font-size: 1.5rem;
    font-weight: 600;
    /* colo  */
}

/* Responsive */
@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }
}




/* Responsive adjustment for mobile */
@media (max-width: 968px) {
    .profile-container{
        left: 30px;
    }
}
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .profile-container{
        bottom: -50px;
        left: 20px;
    }
    .profile-pic {
        width: 120px;
        height: 120px;
    }
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .bento-grid { column-count: 1; }
    .skill-grid-inner { grid-template-columns: 1fr; }
    .bento-header h4 { font-size: 0.75rem; }
}