/* ===== CSS RESET & BASE STYLES ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

/* ===== CUSTOM CURSOR ===== */
.cursor {
    position: fixed;
    width: 45px;
    height: 45px;
    background: #ff4500;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.1s ease;
}

.cursor-follower {
    position: fixed;
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255, 69, 0, 0.3);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: all 0.15s ease;
}

/* ===== LOADER ===== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-text {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    margin-bottom: 2rem;
    background: linear-gradient(45deg, #ff4500, #ff6b35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s ease-in-out infinite;
    white-space: nowrap; /* Prevent text from wrapping */
}

.loader-progress {
    width: 200px;
    height: 2px;
    background: rgba(255, 69, 0, 0.2);
    border-radius: 1px;
    overflow: hidden;
}

.loader-progress::after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #ff4500, #ff6b35);
    transform: translateX(-100%);
    animation: loading 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ===== NAVIGATION ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.5); /* Use a semi-transparent dark background */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px); /* Safari support */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border to define the glass edge */
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav.scrolled {
    background: rgba(10, 10, 10, 0.7); /* Slightly more opaque on scroll */
}

.nav-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    box-sizing: border-box;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ff4500;
    text-decoration: none;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
}

@media (max-width: 480px) {
    .nav-container {
        padding: 1rem;
        width: 100%;
    }

    .nav-logo img {
        width: 40px;
    }

    .nav-menu {
        padding: 2rem 1rem;
        width: 100%;
    }

    body {
        padding: 0;
        margin: 0;
        width: 100%;
        overflow-x: hidden;
    }

    .container {
        width: 100%;
        padding: 0 1rem;
        box-sizing: border-box;
        margin: 0;
    }

    section {
        width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
        box-sizing: border-box;
    }
}.nav-logo:hover {
    transform: scale(1.1);
}

.logo-img {
    width: 60px;
    height: auto;
    transition: transform 0.3s ease;
}

.nav-logo:hover .logo-img {
    transform: scale(1.2);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600; /* Made text bold */
    font-size: 1.3rem; /* Matched font size with footer */
    position: relative;
    transition: color 0.3s;
    font-family: 'Inter', sans-serif; /* Use main font */
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff4500;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #ff4500;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: #ff4500;
    margin: 3px 0;
    transition: 0.3s;
    transform-origin: center;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #ff4500, #ff6b35);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #ff6b35, #ff8c42);
    bottom: 20%;
    right: 10%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(120deg); }
    66% { transform: translateY(10px) rotate(240deg); }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    /* text-align: center; REMOVE THIS LINE */ 
    z-index: 1;
}

.hero-title {
    margin-bottom: 2rem;
    text-align: left; /* ADD THIS LINE */
}

.hero-name {
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff, #ff4500, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    /* animation: gradient-shift 4s ease-in-out infinite; REMOVE THIS ANIMATION, IT'S APPLIED BELOW */
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s ease 0.5s forwards, gradient-shift 4s ease-in-out infinite 1.5s;
    
    /* NEW: Display as block to ensure new lines, and adjust line-height */
    display: block; 
    line-height: 1.1; /* Reduce line height */
    padding-top: 5rem; /* Adjusted padding from header to 5rem */
}

.hero-name .greeting,
.hero-name .my-name {
    display: block; /* Ensure each part takes its own line */
    text-align: left; /* Left align each line */
}

.hero-name .greeting {
    font-size: inherit; /* Match the size of the parent .hero-name */
    margin-bottom: -1rem; /* Pull "Hello I'm" closer to "Mruthyunjaya S" */
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-tagline {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: #cccccc;
    max-width: 600px;
    /* margin: 0 auto 2rem; REMOVE 'auto' */
    margin: 0 0 2rem; /* ADD THIS to left align */
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 1s forwards;
    text-align: left; /* ADD THIS LINE */
}

.hero-location {
    display: flex;
    align-items: center;
    /* justify-content: center; REMOVE THIS LINE */
    justify-content: flex-start; /* ADD THIS LINE */
    gap: 0.5rem;
    margin-bottom: 3rem;
    color: #ffffff; /* Brighten text color */
    font-size: 1.2rem; /* Slightly larger text */
    text-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3); /* Add subtle shadow */
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 1.2s forwards;
}

.hero-location .location-icon {
    font-size: 2rem; /* Larger icon size */
    color: #ff4500; /* Vibrant color for 3D effect */
    text-shadow: 0px 4px 6px rgba(255, 69, 0, 0.5); /* 3D shadow effect */
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    /* justify-content: center; REMOVE THIS LINE */
    justify-content: flex-start; /* ADD THIS LINE */
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 1.4s forwards;
}

.hero-section {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.hero-layout {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    align-items: center;
}

.hero-banner img {
    width: 100%;
    max-width: 65%;
    height: auto;
    border-radius: 10px;
}

.hero-content {
    flex: 1;
    text-align: left;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
}

.hero-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ff4500;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1rem;
    color: #999999;
    line-height: 1.6;
}

.features-section, .value-proposition, .tech-stack, .live-demo {
    margin-bottom: 3rem;
}

.features1, .value1, .tech1, .demo1 {
    margin-bottom: 0.5rem;
}

.features-section h2, .value-proposition h2, .tech-stack h2, .live-demo h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 2rem;
}

.features-section p, .value-proposition p, .tech-stack p, .live-demo p {
    font-size: 5rem;
    line-height: 1.8;
    color: #cccccc;
}

.features1 h1, .value1 h1, .tech1 h1, .demo1 h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    text-align: center;
    margin-bottom: 2rem;
}

.features1 p, .value1 p, .tech1 p, .demo1 p {
    font-size: 1rem;
    line-height: 1.6;
    color: #cccccc;
    max-width: 800px;
    margin: 0 auto;
}

.features-grid, .tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.gallery img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 1rem;
}

/* ===== BUTTONS ===== */
.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(45deg, #ff4500, #ff6b35);
    color: #ffffff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 69, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ff4500;
}

.btn-secondary:hover {
    background: #ff4500;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 69, 0, 0.2);
}

/* ===== SECTIONS ===== */
.section {
    padding: 4rem 0; /* Reduced padding to decrease gap between sections */
    position: relative;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    box-sizing: border-box;
    overflow-x: hidden;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Increased font size */
    font-weight: 800;
    margin-bottom: 2rem;
    text-align: center;
    background: linear-gradient(135deg, #ffffff, #ff4500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== ABOUT SECTION ===== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

.about-image {
    display: flex;
    justify-content: center;
}

.profile-placeholder {
    width: 400px;
    height: 600px;
    border-radius: 20px;
    background: linear-gradient(45deg, #ff4500, #ff6b35);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 69, 0, 0.2);
}

.profile-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
    100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
}

.about-bio {
    font-size: 1.2rem;
    color: #cccccc;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.education h3 {
    color: #ff4500;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.education-timeline {
    position: relative;
    padding-left: 2rem;
}

.education-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #ff4500, #ff6b35);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background: #ff4500;
    border-radius: 50%;
    border: 3px solid #0a0a0a;
}

.timeline-date {
    color: #ff4500;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.timeline-content p {
    color: #cccccc;
    margin-bottom: 0.5rem;
}

.grade {
    color: #ff4500;
    font-weight: 600;
}

/* ===== EXPERIENCE SECTION ===== */
.experience-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 69, 0, 0.1);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.experience-item:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 69, 0, 0.3);
    box-shadow: 0 20px 40px rgba(255, 69, 0, 0.1);
}

.experience-header {
    margin-bottom: 1.5rem;
}

.experience-header h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.experience-company {
    color: #ff4500;
    font-weight: 600;
    margin-right: 1rem;
}

.experience-date {
    color: #999999;
    font-size: 0.9rem;
}

.experience-description ul {
    list-style: none;
    padding-left: 0;
}

.experience-description li {
    color: #cccccc;
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.5rem;
}

.experience-description li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #ff4500;
}

/* ===== PROJECTS SECTION ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 69, 0, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(255, 69, 0, 0.3);
    box-shadow: 0 25px 50px rgba(255, 69, 0, 0.15);
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-placeholder {
    font-size: 4rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.project-card:hover .project-placeholder {
    transform: scale(1.2);
    opacity: 1;
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.project-content p {
    color: #cccccc;
    margin-bottom: 1rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tech span {
    background: rgba(255, 69, 0, 0.1);
    color: #ff4500;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-banner {
    width: 100%; /* Ensure the image fits the container width */
    height: auto; /* Maintain aspect ratio */
    object-fit: cover; /* Properly fit the image within the container */
    border-radius: 10px; /* Add rounded corners for consistency */
}

/* ===== SKILLS SECTION ===== */
.skills-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.skills-category h3 {
    color: #ff4500;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 69, 0, 0.2);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: rgba(255, 69, 0, 0.1);
    border-color: #ff4500;
    transform: translateY(-2px);
}

/* ===== ACHIEVEMENTS SECTION ===== */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.achievement-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
    border: none; /* Removed outline */
    box-shadow: none; /* Removed shadow */
    border-radius: 10px; /* Match the container style */
    background: #0a0a0a; /* Match the dark background */
    padding: 1rem; /* Ensure consistent spacing */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3); /* Subtle shadow for depth */
}

.achievement-item {
    background: rgba(255, 255, 255, 0.02); /* Match Certifications background */
    border: 1px solid rgba(255, 69, 0, 0.1); /* Match Certifications border */
    border-radius: 20px; /* Rounded corners */
    padding: 2rem; /* Consistent spacing */
    transition: all 0.3s ease; /* Smooth hover effect */
}

.achievement-item:hover {
    border-color: rgba(255, 69, 0, 0.3); /* Highlight border on hover */
    transform: translateY(-10px) scale(1.02); /* Match Projects hover effect */
    box-shadow: 0 25px 50px rgba(255, 69, 0, 0.15); /* Add glow effect */
}

.achievement-image img {
    width: 100px; /* Larger size for better visibility */
    height: 100px;
    margin-bottom: 0.5rem; /* Space between image and text */
}

.achievement-item h3 {
    font-size: 1.7rem; /* Increased font size to match contact section */
    color: #ffffff; /* Changed to white to match contact section heading */
    margin-bottom: 0.25rem;
}

.achievement-item p {
    font-size: 0.9rem; /* Adjusted font size to match contact section */
    color: #ff4500; /* Changed to orange to match contact section link */
}

/* ===== CERTIFICATIONS SECTION ===== */
.certifications-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.cert-category {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 69, 0, 0.1);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.cert-category:hover {
    border-color: rgba(255, 69, 0, 0.3);
    transform: translateY(-5px);
}

.cert-category h3 {
    color: #ff4500;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.cert-category ul {
    list-style: none;
}

.cert-category li {
    color: #cccccc;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    padding-left: 1.5rem;
}

.cert-category li:last-child {
    border-bottom: none;
}

.cert-category li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #ff4500;
    font-weight: bold;
}

/* ===== CONTACT SECTION ===== */
.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center; /* Vertically center content */
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 69, 0, 0.1);
    border-radius: 20px; /* Matched achievement item */
    transition: all 0.3s ease;
    min-height: 150px; /* Ensure consistent height for all items */
}

.contact-item:hover {
    border-color: rgba(255, 69, 0, 0.3);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(255, 69, 0, 0.15); /* Added glow effect */
}
.contact-icon {
    font-size: 1.5rem;
    min-width: 40px;
}

.contact-img-icon {
    width: 100px; /* Matched achievement icon size */
    height: 100px; /* Matched achievement icon size */
    display: block;
    margin: 0 auto; /* Center the icon within the container */
}

.contact-details h3 {
    color: #ffffff;
    margin-bottom: 0.25rem;
    font-size: 2rem; /* Increased font size */
}

.contact-details a {
    color: #ff4500;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.85rem; /* Increased font size */
    word-break: break-all; /* Prevent long links from overflowing */
}

.contact-details a:hover {
    color: #ff6b35;
}

/* ===== FOOTER ===== */
.footer {
  margin-top: 2rem;
  font-family: 'Playfair Display', serif;
  text-align: center;
}

.footer-container {
  overflow: hidden;
  border-radius: 20px;
}

/* Gradient Section */
.footer-gradient {
  background: linear-gradient(90deg, #000000 1%, #ff4500, #ff6a00, #ffa500);
  padding: 9rem 4rem 9rem; /* Increased height */
  position: relative;
  border-radius: 20px; /* Added curved edges */
  margin: 0 1rem; /* Added side margins */
}

.footer-tagline {
  font-size: 4rem;
  font-weight: 600;
  font-style: italic; /* Made text italic */
  color: #0a0a0a; /* Black font color */
  position: absolute;
  bottom: 6rem; /* Moved text down */
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
}

/* Footer Content */
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: -3rem;
  background: #0a0a0a; /* Changed to dark background */
  padding: 1.5rem 2rem; /* Adjusted padding */
  box-shadow: 0 -4px 10px rgba(0,0,0,0.2);
  position: relative;
  z-index: 1;
}

.footer-nav {
}

.footer-nav a {
  margin: 0 1rem;
  color: #ffffff; /* Matched color with contact links */
  text-decoration: none;
  font-weight: 300; /* Made text bold */
  font-size: 1.3rem; /* Matched font size with contact headings */
  transition: color 0.3s;
  font-family: 'Inter', sans-serif; /* Use main font */
}

.footer-nav a:hover {
  color: #ff6b35; /* Brighter orange on hover */
}

.footer-social a {
  margin: 0 0.5rem;
  transition: color 0.3s;
}

.footer-social a:hover {
  opacity: 0.8;
}

.footer-social-icon {
  width: 55px; /* Increased icon size */
  height: 55px;
  transition: transform 0.3s ease;
}
.footer-social-icon:hover {
  transform: scale(1.1);
}

.footer-bottom {
  background: #0a0a0a;
  padding: 1rem 2rem;
  margin: 0; /* Removed side margins */
  font-size: 0.9rem;
  color: #999999; /* Lighter grey for readability */
  font-family: 'Inter', sans-serif; /* Use main font */
  text-align: center;
}

.footer-bottom p {
  font-size: 0.9rem;
}

.footer-bottom strong {
  color: #333;
}

.footer-bottom a {
  color: orange;
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    backdrop-filter: blur(10px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: #1a1a1a;
    border: 1px solid rgba(255, 69, 0, 0.2);
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #ff4500;
}

.modal-body {
    padding: 3rem 2rem 2rem;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0; /* Start at the top */
        left: 0;
        width: 100%;
        height: 100vh; /* Full screen height */
        background: rgba(10, 10, 10, 0.5); /* Darker semi-transparent background for better text contrast */
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        flex-direction: column;
        justify-content: center; /* Center links vertically */
        gap: 2rem; /* Increase space between links */
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 999; /* Keep it below the main nav bar */
        text-align: center;
        opacity: 0; /* Start hidden */
        visibility: hidden; /* Start hidden */
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .profile-placeholder {
        width: 100%;
        max-width: 350px;
        height: auto;
        aspect-ratio: 2/3;
        margin: 0 auto 2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem;
        text-align: center;
    }

    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .section {
        padding: 4rem 0;
    }

    .container {
        padding: 0 1rem;
    }

    .cursor,
    .cursor-follower {
        display: none;
    }

    body {
        cursor: auto;
    }

    .hero-name {
        font-size: clamp(3rem, 7vw, 7rem); /* Reduced font size slightly to prevent text cutting */
        line-height: 1.5; /* Maintain increased line spacing */
        padding-top: 4rem; /* Keep padding from header */
        white-space: nowrap; /* Prevent text wrapping */
    }

    .hero-name .greeting {
        font-size: inherit; /* Ensure greeting scales proportionally */
    }

    .hero-name {
        line-height: 1.5; /* Increased line spacing for better readability on mobile */
    }
}
@media (max-width: 768px) {
    .footer-gradient {
        padding: 6rem 1rem 7rem; /* Adjust padding for mobile */
    }

    .footer-tagline {
        font-size: 2.5rem; /* Reduce font size for mobile */
        bottom: 4rem; /* Adjust position */
    }

    .footer-nav a {
        margin: 0.5rem; /* Adjust nav link margin */
    }
}


@media (max-width: 480px) {
    .nav-container {
        padding: 1rem;
    }

    .hero-container {
        padding: 0 1rem;
        margin-top: 2rem;
    }

    .hero-name {
        font-size: 2.5rem;
        white-space: nowrap; /* Prevent name from wrapping */
        text-align: left;
        line-height: 1.3; /* Increase line height for better spacing */
        padding-top: 5rem;
    }

    .hero-tagline {
        font-size: 1rem;
        margin-top: 1rem;
        white-space: normal; /* Ensure tagline can wrap */
        text-align: left;
    }

    .hero-buttons {
        justify-content: flex-start;
        width: 100%;
    }

    .section-title {
        font-size: 2rem;
    }

    .projects-grid,
    .achievements-grid,
    .skills-content,
    .certifications-content {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        margin: 1rem;
    }

    .modal-body {
        padding: 2rem 1rem;
    }
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .cursor,
    .cursor-follower {
        display: none;
    }

    body {
        cursor: auto;
    }
}

:focus-visible {
    outline: 2px solid #ff4500;
    outline-offset: 2px;
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  background: #0d0d0d;
  color: #f5f5f5;
}

/* Navbar */
.navbar1 {
  position: sticky;
  top: 0;
  background: #0d0d0d;
  padding: 1rem 2rem;
  border-bottom: 1px solid #1a1a1a;
  z-index: 1000;
}

.navbar-container1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-logo-img1 {
  height: 40px;
}

.navbar-menu1 {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.navbar-link1 {
  text-decoration: none;
  font-weight: 500;
  color: #ccc;
  transition: color 0.3s;
}

.navbar-link1:hover {
  color: #ff7f50;
}

/* Hero */
.villain1 {
  padding: 7.5rem 0 2rem;  /* Increased top padding to account for navbar */
  background-color: #0a0a0a;
}

.villain-container1 {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4rem;
  background-color: #0a0a0a;
}

.villain-banner1 {
  width: 55%;
  flex-shrink: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.villain-banner1 img {
  width: 100%;
  height: 500px; /* Fixed height for the image */
  object-fit: cover; /* This ensures the image covers the area without distortion */
  border-radius: 16px;
  display: block;
}

.villain-content1 {
  flex: 1;
  text-align: left;
  width: 55%;
  padding-right: 2rem;
}

.project-title1 {
  font-size: clamp(2.5rem, 4.5vw, 4rem); /* Reduced from 3.5rem, 6vw, 5rem */
  font-weight: 800;
  text-align: left;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff, #ff4500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.villain-subtitle1 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: #ffffff;
  line-height: 1.4;
  opacity: 0.95;
}

.villain-description1 {
  font-size: 1.25rem;
  color: #ffffff;
  line-height: 1.8;
  margin-bottom: 2rem;
  opacity: 0.8;
  max-width: 90%;
}

/* Responsive styles for villain section */
@media (max-width: 1024px) {
  .villain-container1 {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .villain-container1 {
    flex-direction: column;
    gap: 2rem;
    padding: 0 1rem;
  }

  .villain-banner1 {
    width: 100%;
    max-width: 667px; /* Match the 4:3 aspect ratio width */
    margin: 0 auto;
  }

  .villain-banner1 img {
    height: auto; /* Allow height to be determined by aspect ratio */
    max-height: 500px; /* Maximum height same as desktop */
    width: 100%;
    object-fit: contain; /* Show full image without cropping */
  }

  .villain-content1 {
    width: 100%;
    text-align: center;
    padding-right: 0;
  }

  .project-title1 {
    text-align: center;
  }

  .villain-subtitle1, .villain-description1 {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .villain-description1 {
    max-width: 95%;
    margin: 0 auto 2rem;
  }
}

.hero-subtitle1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #eee;
}

.hero-description1 {
  font-size: 1rem;
  color: #ccc;
  max-width: 700px;
  margin: auto;
}

/* Section Titles */
.section-title1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Increased font size for consistency */
  font-weight: 800;
  margin-bottom: 2rem;
  text-align: center;
  background: linear-gradient(135deg, #ffffff, #ff4500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Features */
.features1 {
  padding: 4rem 2rem;
}

.features-list1 {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  max-width: 800px;
  margin: auto;
}

.features-list1 li {
  background: #1a1a1a;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  border: 1px solid #2a2a2a;
  color: #f5f5f5;
  font-size: 1rem;
  transition: all 0.3s;
}

.features-list1 li:hover {
  border-color: #ff4500;
  box-shadow: 0 0 10px rgba(255, 69, 0, 0.6);
}

/* Value Proposition */
.value1 {
  padding: 4rem 2rem;
}

.value-text1 {
  max-width: 800px;
  margin: auto;
  font-size: 1.2rem;
  color: #ccc;
  text-align: center;
}

/* Tech Stack */
.tech1 {
  padding: 4rem 2rem;
}

.tech-list1 {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  max-width: 600px;
  margin: auto;
}

.tech-list1 li {
  background: #1a1a1a;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  border: 1px solid #2a2a2a;
  font-size: 1rem;
  color: #f5f5f5;
  transition: all 0.3s;
}

.tech-list1 li:hover {
  border-color: #ff7f50;
  box-shadow: 0 0 10px rgba(255, 127, 80, 0.6);
}

/* Demo */
.demo1 {
  padding: 4rem 2rem;
}

.demo-gallery1 {
    margin-top: 3rem;
    padding: 0 2rem;
}

.gallery-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin: 0 auto;
    max-width: 1200px;
}

.gallery-item {
    min-width: 300px;
    background: rgba(255, 255, 255, 0.05); 
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.gallery-item.two-col {
    flex: 0 1 calc(50% - 2rem); /* Two items per row */
    max-width: 600px; /* Increased container width */
}

.gallery-item.three-col {
    flex: 0 1 calc(33.333% - 2rem); /* Three items per row */
    max-width: 450px; /* Increased container width */
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%; /* Ensure image takes full width of the item */
    height: auto; /* Let aspect-ratio control the height */
    border-radius: 8px 8px 0 0;
    background-color: rgba(0, 0, 0, 0.2);
    display: block;
}

.gallery-item.two-col img {
    aspect-ratio: 16 / 9;
    object-fit: cover; /* Fill the 16:9 container */
}

.gallery-item.three-col img {
    aspect-ratio: 9 / 16;
    object-fit: cover; /* Fill the 9:16 container */
}

.gallery-item .demo-description {
    padding: 1rem;
    margin: 0;
    font-size: 1.5rem; /* Increased font size */
    font-weight: bold;
    text-align: center;
    color: transparent;
    background: linear-gradient(90deg, #ff4500, #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .demo-gallery1 {
        padding: 0 1rem;
    }
    .gallery-row {
        gap: 1rem;
        justify-content: center;
        display: grid;
        grid-template-columns: 1fr; /* One per row */
    }
    .gallery-item, .gallery-item.two-col, .gallery-item.three-col {
        flex: unset;
        width: 100%;
        margin-bottom: 1.5rem;
        min-width: unset;
        /* min-height: 400px; */ /* Removed fixed min-height to allow natural content flow */
        height: auto;      /* Allow height to adjust based on content */
        flex-direction: column;
        justify-content: flex-start; /* Align content to the top */
        align-items: stretch; /* Allow items to fill the width */
    }
    .gallery-item img {
        height: 320px; /* Increased image height */
        width: 100%; /* Take full width of the container */
        height: auto; /* Let height adjust automatically */
        object-fit: contain;
        background-color: rgba(0, 0, 0, 0.2);
        display: block;
        margin: 0 auto;
        aspect-ratio: unset; /* Remove any forced aspect ratio */
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .gallery-item.three-col {
        flex: 0 1 calc(50% - 2rem); /* Ensure 2 columns on tablets */
    }
}

@media (min-width: 769px) {
    .gallery-item.two-col img {
        aspect-ratio: 16 / 9;
        object-fit: cover; /* Fill the 16:9 container on desktop */
    }
    .gallery-item.three-col img {
        aspect-ratio: 9 / 16;
        object-fit: cover; /* Fill the 9:16 container on desktop */
    }
}

/* Footer */
.footer1 {
  padding: 2rem;
  background: #0d0d0d;
  color: #999;
  text-align: center;
  font-size: 0.9rem;
  border-top: 1px solid #1a1a1a;
}

.hero1 {
  padding: 8rem 2rem; /* ⬅️ added top padding */
  margin-top: 0rem; /* Reduced bottom margin */
}