
/* ==== CSS VARIABLES ==== */
:root {
    --bg-color: #1a1a1a;
    --card-bg: #2a2a2a;
    --primary-color: #ff6b6b;
    --primary-color-light: rgba(255, 107, 107, 0.2);
    --text-color: #fff;
    --text-light: #ccc;
    
    /* New Dark + Neon-Cyan Theme Variables */
    --bg-900: #0f1115;
    --bg-800: #15171b;
    --neon-1: #00fff0;
    --neon-2: #00bcd4;
    --accent: #ff6b6b;
    --glass: rgba(255, 255, 255, 0.03);
    --card-elev: 12px;
    --neon-glow: 0 0 20px rgba(0, 255, 240, 0.3);
    --neon-glow-strong: 0 0 30px rgba(0, 255, 240, 0.5);
}

/* Theme Toggle for Neon-Intense Mode */
[data-theme="neon"] {
    --bg-900: #0a0c0f;
    --bg-800: #10121a;
    --neon-glow: 0 0 30px rgba(0, 255, 240, 0.5);
    --neon-glow-strong: 0 0 50px rgba(0, 255, 240, 0.8);
}

/* Reusable Utility Classes */
.neon-glow {
    box-shadow: var(--neon-glow);
    transition: box-shadow 0.3s ease;
}

.neon-glow:hover {
    box-shadow: var(--neon-glow-strong);
}

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
}

/* ==== KEYFRAME ANIMATIONS ==== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}

@keyframes contactGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes heroGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes confetti {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(180deg);
        opacity: 1;
    }
    100% {
        transform: scale(0) rotate(360deg);
        opacity: 0;
    }
}

@keyframes neonPulse {
    0%, 100% {
        box-shadow: 0 0 5px var(--neon-1), 0 0 10px var(--neon-1), 0 0 20px var(--neon-2);
    }
    50% {
        box-shadow: 0 0 10px var(--neon-1), 0 0 20px var(--neon-1), 0 0 40px var(--neon-2);
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ==== ACCESSIBILITY ==== */
/* Skip to Content Link */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: #ff6b6b;
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: 600;
    z-index: 10000;
    border-radius: 0 0 4px 0;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 0;
    outline: 3px solid #fff;
    outline-offset: 2px;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Enhanced Focus Styles for Keyboard Navigation */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 3px solid #ff6b6b;
    outline-offset: 2px;
}

/* ==== GENERAL STYLES ==== */
html, body {
    overflow-x: hidden;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background: var(--bg-900);
    color: #fff;
    line-height: 1.6;
    scroll-behavior: smooth;
    perspective: 1px;
    transform-style: preserve-3d;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Performance optimizations */
img {
    max-width: 100%;
    height: auto;
    loading: lazy;
}

/* Improved touch targets for mobile */
button, a, input, textarea, select {
    touch-action: manipulation;
}

/* Prevent zoom on input focus (iOS) */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea {
    font-size: 16px;
}

@media screen and (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="search"],
    textarea {
        font-size: 16px;
    }
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 80px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    position: relative;
    z-index: 1;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Ensure headings are always visible above backgrounds */
h1, h2, h3, h4, h5, h6 {
    margin: 0 0 20px 0;
    font-weight: 600;
    line-height: 1.2;
    color: #ffffff;
    z-index: 5;
    position: relative;
    opacity: 1 !important;
}

/* Enhanced visibility for section titles */
h2, .section-title, section h2 {
    z-index: 5 !important;
    position: relative;
    opacity: 1 !important;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    font-family: 'Montserrat', 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--neon-1), var(--neon-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 5;
    opacity: 1 !important;
    text-shadow: 0 0 20px rgba(0, 255, 240, 0.5),
                 0 0 40px rgba(0, 255, 240, 0.3),
                 0 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 700;
    letter-spacing: 1px;
}

h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-1), var(--neon-2));
    margin: 15px auto 0;
    border-radius: 2px;
}

.btn {
    background: #ff6b6b;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    animation: scaleIn 0.5s ease-in-out;
}

/* ==== NAVIGATION BAR ==== */
nav {
    background: rgba(15, 17, 21, 0.85);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 255, 240, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 240, 0.1);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    min-height: 60px;
}

nav .logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

nav .logo:hover {
    color: #ff6b6b;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    align-items: center;
}

nav ul li {
    margin-left: 2rem;
    flex-shrink: 0;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-1), var(--neon-2));
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--neon-1);
}

nav ul li a:hover {
    color: var(--neon-1);
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a.active {
    color: var(--neon-1);
}

nav ul li a.active::after {
    width: 100%;
    animation: neonPulse 2s infinite;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: #fff;
    background: none;
    border: none;
    padding: 8px;
}

.menu-toggle:hover {
    color: #ff6b6b;
}

.resume-btn {
    background: #ff6b6b;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
    white-space: nowrap;
    margin-left: 2rem;
    flex-shrink: 0;
}

.resume-btn:hover {
    background: #e05656;
    transform: translateY(-2px);
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 90px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 240, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.theme-toggle:hover {
    background: rgba(0, 255, 240, 0.1);
    box-shadow: 0 0 20px rgba(0, 255, 240, 0.3);
    transform: scale(1.1);
}

.theme-toggle i {
    font-size: 1.3rem;
    color: var(--neon-1);
    transition: transform 0.3s ease;
}

.theme-toggle:hover i {
    transform: rotate(20deg);
}

/* ==== HOME SECTION ==== */
.home-section {
    height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    text-align: left;
    background: var(--bg-900);
    padding-top: 70px;
    position: relative;
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: 100vw;
    overflow: hidden;
    background: linear-gradient(135deg, 
        rgba(0, 255, 240, 0.1) 0%, 
        rgba(0, 188, 212, 0.1) 25%,
        transparent 50%,
        rgba(255, 107, 107, 0.05) 75%,
        transparent 100%);
    background-size: 200% 200%;
    animation: heroGradient 15s ease infinite;
    z-index: 0;
    pointer-events: none;
}

.home-section .container {
    max-width: 1200px;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.hero-content {
    z-index: 1;
}

.home-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-family: 'Montserrat', 'Poppins', sans-serif;
    animation: fadeInDown 1s ease-out;
    line-height: 1.2;
}

.home-section h1 .hero-subtitle {
    display: block;
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 10px;
    color: var(--neon-1);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.highlight {
    background: linear-gradient(135deg, var(--neon-1), var(--neon-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.typing-effect {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--neon-1);
    margin-bottom: 2rem;
    height: 2rem;
    animation: fadeIn 1s ease-out 0.5s forwards;
    opacity: 0;
}

.cursor {
    animation: blink 1s infinite;
    color: var(--neon-2);
}

.hero-cta {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    animation: fadeInUp 1s ease-out 1s forwards;
    opacity: 0;
}

.home-section .btn {
    display: inline-block;
    padding: 15px 30px;
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--neon-1), var(--neon-2));
    box-shadow: 0px 4px 15px rgba(0, 255, 240, 0.3);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn-primary:hover::after {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0px 8px 25px rgba(0, 255, 240, 0.5);
}

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

.btn-secondary:hover {
    background: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0px 8px 20px rgba(255, 107, 107, 0.4);
}

.hero-image {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 1s ease-out 0.7s forwards;
    opacity: 0;
}

.profile-circle {
    position: relative;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 0 3px var(--bg-900), 
                0 0 0 6px var(--neon-1),
                0 0 30px rgba(0, 255, 240, 0.5);
    animation: neonPulse 3s infinite;
}

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

/* ==== ABOUT SECTION ==== */
.about-section {
    padding: 4rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: left;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s ease-out forwards;
    animation-delay: 0.5s;
}

/* Profile image styling now handled by .profile-image-wrapper .profile-image img */

.about-info {
    flex: 1;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s ease-out forwards;
    animation-delay: 1s;
}

/* ==== EDUCATION SECTION ==== */
.education-section {
    padding: 4rem 0;
    background: #1a1a1a;
    text-align: center;
}

.education-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #ff6b6b;
}

.education-timeline {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.timeline-item {
    background: #222;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.5);
    width: 400px;
    text-align: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    animation: fadeInUp 1s ease-out forwards;
    perspective: 1000px;
}

.timeline-item:hover {
    transform: translateY(-5px) scale(1.02) rotateX(2deg);
    box-shadow: 0 15px 30px rgba(255, 107, 107, 0.7);
    background: linear-gradient(145deg, #222, #2a2a2a);
}

.timeline-item:hover .year {
    transform: translateZ(10px);
    background: #ff8f8f;
}

.timeline-item:hover h3 {
    transform: translateZ(15px);
    color: #ff6b6b;
}

.connector {
    margin: 15px 0;
    font-size: 2rem;
    color: #ff6b6b;
    animation: bounce 1.5s infinite;
}

.timeline-content .year {
    display: inline-block;
    margin-top: 10px;
    background: #ff6b6b;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
}

/* ==== SKILLS SECTION ==== */
.skills-section {
    padding: 4rem 0;
    background: #222;
    text-align: center;
}

.skills-category {
    margin-bottom: 3rem;
}

.skills-category h3 {
    color: #ff6b6b;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.skills-category h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: #ff6b6b;
}

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

.skill {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.2);
}

.skill i {
    font-size: 2.5rem;
    color: #ff6b6b;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.skill:hover i {
    transform: scale(1.1);
}

.skill h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.skill-bar {
    background: rgba(255, 255, 255, 0.1);
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 1rem;
}

.skill-level {
    height: 100%;
    background: #ff6b6b;
    border-radius: 3px;
    transition: width 1s ease-in-out;
}

.skill-detail {
    color: #aaa;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    line-height: 1.4;
}

/* ==== EXPERIENCE SECTION ==== */
.experience-section {
    padding: 80px 0;
    background-color: var(--bg-color);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.experience-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.experience-timeline {
    margin-top: 40px;
}

.experience-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.3s;
}

.experience-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(255, 107, 107, 0.3);
}

.experience-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.company-logo {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

.company-logo i {
    font-size: 30px;
    color: white;
}

.company-info h3 {
    color: var(--text-color);
    margin-bottom: 5px;
}

.role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 5px;
}

.duration {
    color: var(--text-light);
    font-size: 0.9em;
}

.duration i {
    margin-right: 5px;
}

.project-info {
    margin: 20px 0;
}

.project-info h4 {
    color: var(--text-color);
    margin-bottom: 15px;
}

.achievements {
    list-style: none;
    padding-left: 0;
}

.achievements li {
    color: var(--text-color);
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.achievements li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.tech-stack {
    margin: 20px 0;
}

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

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

.tech-tags span i {
    margin-right: 5px;
}

.key-achievements {
    margin-top: 20px;
}

.achievements-list {
    list-style: none;
    padding-left: 0;
}

.achievements-list li {
    color: var(--text-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.achievements-list li i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* ==== PROJECTS SECTION ==== */
.projects-section {
    padding: 80px 0;
    background: var(--bg-900);
}

/* Project Filter Bar */
.project-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    background: var(--glass);
    border: 1px solid rgba(0, 255, 240, 0.2);
    color: #fff;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
}

.filter-btn:hover {
    background: rgba(0, 255, 240, 0.1);
    border-color: var(--neon-1);
    color: var(--neon-1);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--neon-1), var(--neon-2));
    border-color: transparent;
    color: #000;
    font-weight: 600;
}

.project-search {
    padding: 10px 20px;
    background: var(--glass);
    border: 1px solid rgba(0, 255, 240, 0.2);
    border-radius: 25px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    min-width: 250px;
}

.project-search:focus {
    outline: none;
    border-color: var(--neon-1);
    box-shadow: 0 0 15px rgba(0, 255, 240, 0.2);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 50px;
    overflow: visible !important;
}

.project-card {
    background: rgba(21, 23, 27, 0.6);
    border: 1px solid rgba(0, 255, 240, 0.1);
    border-radius: 15px;
    display: block;
    overflow: visible !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 30px;
    position: relative;
    z-index: 1;
    transform-style: preserve-3d;
    perspective: 1000px;
    backdrop-filter: blur(5px);
}

.project-card.featured {
    border-color: var(--neon-1);
    box-shadow: 0 0 30px rgba(0, 255, 240, 0.2);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(0, 255, 240, 0.05) 0%, 
        transparent 50%,
        rgba(255, 107, 107, 0.05) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-10px) rotateX(3deg) rotateY(-2deg);
    box-shadow: 0 20px 50px rgba(0, 255, 240, 0.3);
    border-color: var(--neon-1);
}

.project-card:hover .project-icon {
    transform: translateZ(20px) scale(1.15) rotate(5deg);
    color: var(--neon-1);
    text-shadow: 0 0 20px var(--neon-1);
}

.project-card:hover h3 {
    transform: translateZ(15px);
    background: linear-gradient(135deg, var(--neon-1), var(--neon-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--neon-1), var(--neon-2));
    color: #000;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-icon {
    font-size: 2.5rem;
    color: #ff6b6b;
    margin-bottom: 20px;
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: #fff;
}

.project-subtitle {
    color: #ff6b6b;
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.project-description {
    color: #ccc;
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.project-tech span {
    background: rgba(0, 255, 240, 0.05);
    border: 1px solid rgba(0, 255, 240, 0.3);
    color: var(--neon-1);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-tech span:hover {
    background: rgba(0, 255, 240, 0.1);
    box-shadow: 0 0 10px rgba(0, 255, 240, 0.3);
}

.project-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.project-link {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: #ff6b6b;
}

/* ==== PUBLICATIONS SECTION ==== */
.publications-section {
    background: var(--bg-800);
    padding: 80px 0;
}

.ieee-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #0052cc, #0099ff);
    color: #fff;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.ieee-badge i {
    font-size: 1rem;
}

.publications-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.publication-card {
    background: rgba(21, 23, 27, 0.8);
    border: 1px solid rgba(0, 255, 240, 0.2);
    border-radius: 15px;
    padding: 35px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
}

.publication-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 255, 240, 0.2);
    border-color: var(--neon-1);
}

.publication-icon {
    font-size: 2rem;
    color: #ff6b6b;
    margin-bottom: 20px;
}

.publication-card h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 15px;
}

.conference-name {
    font-size: 1rem;
    color: #ff6b6b;
    margin-bottom: 15px;
    font-style: italic;
}

.publication-description {
    color: #ddd;
    margin-bottom: 20px;
    line-height: 1.6;
}

.publication-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.publication-tech span {
    background: #3a3a3a;
    color: #fff;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
}

.achievement {
    color: #ff6b6b;
    margin: 15px 0;
    font-size: 1rem;
}

.publication-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.publication-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    background: #ff6b6b;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.publication-link:hover {
    background: #e05656;
    transform: translateY(-2px);
}

/* ==== CERTIFICATIONS SECTION ==== */
.certifications-section {
    padding: 80px 0;
    background: #222;
    text-align: center;
}

.certification-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.certification-card {
    background: #2a2a2a;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.certification-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: #ff6b6b;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.certification-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.certification-card:hover::before {
    transform: scaleX(1);
}

.certification-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #fff;
}

.certification-card p {
    color: #ccc;
    margin-bottom: 15px;
}

.certification-card .year {
    display: inline-block;
    margin: 15px 0;
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.view-cert-btn {
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 15px;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
}

.view-cert-btn:hover {
    background: #e05656;
    color: #fff;
}

/* ==== MODAL STYLING ==== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: scaleIn 0.3s ease;
    background: #222;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.modal-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 5px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    height: auto;
}

.close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #ff6b6b;
}

/* ==== CONTACT SECTION ==== */
.contact-section {
    padding: 80px 0;
    background: #222;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.1) 0%, transparent 50%);
    transform: rotate(45deg);
    animation: contactGlow 10s infinite linear;
    pointer-events: none;
}

.contact-section a {
    color: #ff6b6b;
    text-decoration: none;
    font-weight: bold;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 50px;
}

.contact-info {
    color: #ccc;
}

.contact-info p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.7;
}

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

.contact-item i {
    font-size: 1.5rem;
    color: #ff6b6b;
    margin-right: 15px;
    width: 30px;
    text-align: center;
}

.contact-item a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #ff6b6b;
}

.contact-form {
    background: #2a2a2a;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    position: relative;
}

.form-success,
.form-error {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-success {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid #28a745;
}

.form-error {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid #dc3545;
}

.form-group {
    margin-bottom: 20px;
}

.form-group {
    position: relative;
}

.form-group label {
    position: absolute;
    left: 15px;
    top: 12px;
    color: #999;
    font-size: 1rem;
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(51, 51, 51, 0.5);
    border: 2px solid transparent;
    border-radius: 8px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.form-group textarea {
    height: 150px;
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(51, 51, 51, 0.8);
    border: 2px solid transparent;
    border-image: linear-gradient(135deg, var(--neon-1), var(--neon-2)) 1;
    box-shadow: 0 0 20px rgba(0, 255, 240, 0.2);
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    color: var(--neon-1);
    background: var(--bg-900);
    padding: 0 5px;
}

/* Success Confetti Animation */
.form-success {
    position: relative;
    overflow: hidden;
}

.form-success::before,
.form-success::after {
    content: '✨';
    position: absolute;
    font-size: 2rem;
    animation: confetti 2s ease-out infinite;
}

.form-success::before {
    left: 20%;
    animation-delay: 0.3s;
}

.form-success::after {
    right: 20%;
    animation-delay: 0.6s;
}

.submit-btn {
    background: #ff6b6b;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
}

.submit-btn:hover {
    background: #e05656;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.submit-btn:disabled {
    background: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ==== FOOTER ==== */
footer {
    background: #1a1a1a;
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid #333;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer p {
    margin: 0;
    color: #ccc;
}

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

.social-icons a {
    color: #ccc;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #ff6b6b;
}

/* ==== SCROLL TO TOP BUTTON ==== */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #ff6b6b;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    transform: scale(0.95) translateY(10px);
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
}

.scroll-top-btn:hover {
    background: #e05656;
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.5);
}

.scroll-top-btn:active {
    transform: scale(0.95);
}

/* ==== RESPONSIVE DESIGN ==== */

/* Base responsive improvements */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(10px, 3vw, 20px);
}

section {
    padding: clamp(40px, 8vw, 80px) 0;
}

h2 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: clamp(30px, 5vw, 50px);
}

/* Navigation improvements */
nav .logo {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.menu-toggle {
    min-height: 44px;
    min-width: 44px;
    padding: 12px;
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: #fff;
    background: none;
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: rgba(0, 255, 240, 0.1);
    color: var(--neon-1);
}

.menu-toggle:focus {
    outline: 3px solid var(--neon-1);
    outline-offset: 2px;
}

/* Hero section responsive improvements */
.home-section h1 {
    font-size: clamp(1.8rem, 8vw, 3.5rem);
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
}

.home-section h1 .hero-subtitle {
    font-size: clamp(0.7rem, 3vw, 1.2rem);
    letter-spacing: clamp(1px, 1vw, 3px);
}

.typing-effect {
    font-size: clamp(1rem, 4vw, 1.8rem);
    margin-bottom: clamp(1rem, 4vw, 2rem);
}

.profile-circle {
    width: clamp(200px, 60vw, 400px);
    height: clamp(200px, 60vw, 400px);
    max-width: 85vw;
    margin: 0 auto;
}

.home-section .btn {
    padding: clamp(12px, 3vw, 15px) clamp(20px, 5vw, 30px);
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Button improvements */
.btn, .filter-btn, .submit-btn, .view-cert-btn {
    min-height: 44px;
    padding: clamp(8px, 2vw, 12px) clamp(15px, 4vw, 25px);
    font-size: clamp(0.85rem, 2.5vw, 1rem);
    border-radius: clamp(8px, 2vw, 50px);
    transition: all 0.3s ease;
}

/* Theme toggle responsive */
.theme-toggle {
    position: fixed;
    top: clamp(80px, 15vw, 90px);
    right: clamp(15px, 4vw, 30px);
    width: clamp(45px, 10vw, 50px);
    height: clamp(45px, 10vw, 50px);
    min-height: 44px;
    min-width: 44px;
}

/* Scroll to top button responsive */
.scroll-top-btn {
    bottom: clamp(20px, 5vw, 30px);
    right: clamp(20px, 5vw, 30px);
    width: clamp(45px, 10vw, 50px);
    height: clamp(45px, 10vw, 50px);
    min-height: 44px;
    min-width: 44px;
}

/* Tablet breakpoint (768px) */
@media screen and (max-width: 768px) {
    nav ul {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(15, 17, 21, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: clamp(20px, 5vw, 30px) 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        border-top: 1px solid rgba(0, 255, 240, 0.2);
    }
    
    nav ul.active {
        display: flex;
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    nav ul li {
        margin: clamp(10px, 3vw, 15px) 0;
        text-align: center;
    }
    
    nav ul li a {
        padding: clamp(8px, 2vw, 12px) clamp(15px, 4vw, 20px);
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    nav ul li a:hover {
        background: rgba(0, 255, 240, 0.1);
    }
    
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Hero Section Mobile */
    .home-section {
        grid-template-columns: 1fr;
        padding: clamp(80px, 15vw, 100px) clamp(15px, 4vw, 20px) clamp(30px, 8vw, 50px);
        text-align: center;
        height: auto;
        min-height: 100vh;
    }
    
    .home-section .container {
        grid-template-columns: 1fr;
        gap: clamp(30px, 8vw, 40px);
    }
    
    .hero-content {
        order: 2;
    }
    
    .hero-image {
        order: 1;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: clamp(12px, 3vw, 15px);
        margin-top: clamp(20px, 5vw, 30px);
    }
    
    .home-section .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: clamp(20px, 5vw, 30px);
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: clamp(15px, 4vw, 20px);
    }
    
    .skill {
        margin: clamp(0.25rem, 1vw, 0.5rem);
        padding: clamp(1rem, 3vw, 1.5rem);
    }
    
    .about-content {
        flex-direction: column;
        text-align: center;
        gap: clamp(20px, 5vw, 30px);
    }
    
    .profile-image {
        margin-bottom: clamp(20px, 5vw, 30px);
    }
    
    /* Profile image styling now handled by .profile-image-wrapper .profile-image img */
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: clamp(30px, 8vw, 50px);
    }
    
    .contact-info {
        margin-bottom: clamp(20px, 5vw, 30px);
    }
    
    .contact-form {
        padding: clamp(20px, 5vw, 30px);
    }
    
    .form-group input,
    .form-group textarea {
        padding: clamp(10px, 2.5vw, 12px) clamp(12px, 3vw, 15px);
        font-size: clamp(0.9rem, 2.5vw, 1rem);
    }
    
    .submit-btn {
        width: 100%;
        padding: clamp(12px, 3vw, 15px) clamp(20px, 5vw, 25px);
    }
    
    footer .container {
        flex-direction: column;
        gap: clamp(10px, 3vw, 15px);
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .social-icons a {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Small tablet breakpoint (600px) */
@media screen and (max-width: 600px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card {
        padding: clamp(20px, 5vw, 30px);
    }
    
    .project-filters {
        flex-direction: column;
        gap: clamp(10px, 3vw, 15px);
        align-items: stretch;
    }
    
    .filter-btn {
        width: 100%;
        padding: clamp(10px, 2.5vw, 12px) clamp(15px, 4vw, 20px);
    }
    
    .project-search {
        width: 100%;
        min-width: auto;
    }
    
    .timeline-item {
        width: 100%;
        padding: clamp(1rem, 4vw, 1.5rem);
        margin: 0 clamp(10px, 3vw, 20px);
    }
    
    .certification-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .certification-card {
        width: 100%;
        max-width: 400px;
        padding: clamp(1.5rem, 4vw, 2rem);
    }
    
    .experience-card {
        padding: clamp(20px, 5vw, 30px);
    }
    
    .tech-tags {
        justify-content: center;
    }
    
    .tech-tags span {
        padding: clamp(4px, 1vw, 6px) clamp(8px, 2vw, 12px);
        font-size: clamp(0.8rem, 2vw, 0.9rem);
    }
}

/* Mobile breakpoint (414px) */
@media screen and (max-width: 414px) {
    .container {
        padding: 0 clamp(8px, 2vw, 15px);
    }
    
    section {
        padding: clamp(30px, 6vw, 60px) 0;
    }
    
    .home-section {
        padding: clamp(70px, 12vw, 90px) clamp(10px, 3vw, 15px) clamp(25px, 6vw, 40px);
    }
    
    .profile-circle {
        width: clamp(180px, 50vw, 240px);
        height: clamp(180px, 50vw, 240px);
    }
    
    .hero-cta {
        gap: clamp(10px, 2.5vw, 12px);
    }
    
    .home-section .btn {
        padding: clamp(10px, 2.5vw, 12px) clamp(15px, 4vw, 20px);
        font-size: clamp(0.85rem, 2.2vw, 1rem);
    }
    
    .project-card {
        padding: clamp(15px, 4vw, 25px);
    }
    
    .project-icon {
        font-size: clamp(2rem, 5vw, 2.5rem);
    }
    
    .project-card h3 {
        font-size: clamp(1.2rem, 4vw, 1.5rem);
    }
    
    .project-description {
        font-size: clamp(0.85rem, 2.2vw, 0.95rem);
        line-height: 1.5;
    }
    
    .publication-card {
        padding: clamp(20px, 5vw, 35px);
    }
    
    .publication-card h3 {
        font-size: clamp(1.2rem, 4vw, 1.5rem);
    }
    
    .modal-content {
        padding: clamp(15px, 4vw, 20px);
        margin: clamp(10px, 3vw, 20px);
    }
    
    .modal-content img {
        max-height: 70vh;
    }
}

/* Small mobile breakpoint (375px) */
@media screen and (max-width: 375px) {
    .home-section h1 {
        font-size: clamp(1.6rem, 7vw, 2rem);
    }
    
    .home-section h1 .hero-subtitle {
        font-size: clamp(0.6rem, 2.5vw, 0.8rem);
    }
    
    .typing-effect {
        font-size: clamp(0.9rem, 3.5vw, 1.2rem);
    }
    
    .profile-circle {
        width: clamp(160px, 45vw, 200px);
        height: clamp(160px, 45vw, 200px);
    }
    
    .timeline-item {
        padding: clamp(0.8rem, 3vw, 1rem);
    }
    
    .timeline-content h3 {
        font-size: clamp(1rem, 3.5vw, 1.2rem);
    }
    
    .skill h4 {
        font-size: clamp(1rem, 3vw, 1.2rem);
    }
    
    .skill i {
        font-size: clamp(2rem, 5vw, 2.5rem);
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: clamp(8px, 2vw, 12px);
    }
    
    .contact-item i {
        margin-right: 0;
        margin-bottom: clamp(5px, 1vw, 8px);
    }
}

/* Extra small mobile breakpoint (320px) */
@media screen and (max-width: 320px) {
    .container {
        padding: 0 clamp(5px, 1.5vw, 10px);
    }
    
    .home-section {
        padding: clamp(60px, 10vw, 80px) clamp(5px, 2vw, 10px) clamp(20px, 5vw, 30px);
    }
    
    .profile-circle {
        width: clamp(140px, 40vw, 180px);
        height: clamp(140px, 40vw, 180px);
    }
    
    .home-section h1 {
        font-size: clamp(1.4rem, 6vw, 1.8rem);
    }
    
    .home-section h1 .hero-subtitle {
        font-size: clamp(0.5rem, 2vw, 0.7rem);
    }
    
    .typing-effect {
        font-size: clamp(0.8rem, 3vw, 1rem);
    }
    
    .hero-cta {
        gap: clamp(8px, 2vw, 10px);
    }
    
    .home-section .btn {
        padding: clamp(8px, 2vw, 10px) clamp(12px, 3vw, 15px);
        font-size: clamp(0.8rem, 2vw, 0.9rem);
    }
    
    .project-card {
        padding: clamp(12px, 3vw, 20px);
    }
    
    .project-icon {
        font-size: clamp(1.8rem, 4vw, 2.2rem);
    }
    
    .project-card h3 {
        font-size: clamp(1rem, 3.5vw, 1.3rem);
    }
    
    .project-description {
        font-size: clamp(0.8rem, 2vw, 0.9rem);
    }
    
    .timeline-item {
        padding: clamp(0.6rem, 2.5vw, 0.8rem);
        margin: 0 clamp(5px, 2vw, 10px);
    }
    
    .certification-card {
        padding: clamp(1rem, 3vw, 1.5rem);
    }
    
    .contact-form {
        padding: clamp(15px, 4vw, 25px);
    }
    
    .form-group input,
    .form-group textarea {
        padding: clamp(8px, 2vw, 10px) clamp(10px, 2.5vw, 12px);
        font-size: clamp(0.85rem, 2vw, 0.95rem);
    }
    
    .submit-btn {
        padding: clamp(10px, 2.5vw, 12px) clamp(15px, 4vw, 20px);
        font-size: clamp(0.85rem, 2vw, 0.95rem);
    }
    
    .theme-toggle {
        top: clamp(70px, 12vw, 80px);
        right: clamp(10px, 3vw, 15px);
        width: clamp(40px, 8vw, 45px);
        height: clamp(40px, 8vw, 45px);
    }
    
    .scroll-top-btn {
        bottom: clamp(15px, 4vw, 25px);
        right: clamp(15px, 4vw, 25px);
        width: clamp(40px, 8vw, 45px);
        height: clamp(40px, 8vw, 45px);
    }
}

/* ==== STATUS BANNER ==== */
.status-banner {
    color: var(--primary-color);
    font-size: 1rem;
    margin-top: 0.8rem;
    font-weight: 500;
    text-align: center;
    letter-spacing: 0.5px;
    animation: fadeInUp 1s ease-in-out;
    display: block;
    padding-left: 2px;
}

/* ==== FEATURED PROJECT CARD ==== */
.project-card.featured {
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card.featured:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 0 25px rgba(255, 107, 107, 0.6);
}

/* ==== PEER REVIEW BADGE ==== */
.peer-review-badge {
    background: #2a2a2a;
    padding: 1rem;
    margin-top: 1rem;
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text-light);
}

/* ==== CONTACT DETAILS ==== */
.contact-details {
    margin-top: 1rem;
    color: var(--text-light);
    text-align: center;
    line-height: 1.8;
}

/* === HERO SECTION ALIGNMENT FIX === */

/* Desktop Layout (width > 1024px) */
@media (min-width: 1024px) {
  .home-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    padding: 6rem 8rem;
  }

  .hero-content {
    flex: 1.2; /* Give text more breathing space */
    text-align: left;
  }

  .hero-content h1 {
    white-space: nowrap; /* Prevent name wrapping */
    font-size: 3.5rem;
    line-height: 1.1;
  }

  .status-banner {
    text-align: left;
  }

  .hero-image {
    flex: 0.9;
    display: flex;
    justify-content: center; /* Center the wrapper */
    align-items: center;
  }

  .profile-image-wrapper {
    margin-left: 4rem; /* Shift slightly right for visual balance */
  }

  /* Profile image styling now handled by .profile-image-wrapper .profile-image img */

  .home-buttons {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-top: 1.5rem;
  }
}

/* ==== RESPONSIVENESS ==== */
@media (max-width: 768px) {
    .status-banner {
        font-size: 0.9rem;
        line-height: 1.4;
        margin: 0.8rem 1rem;
    }
    .project-card.featured {
        padding: 1rem;
    }
    .contact-details {
        font-size: 0.9rem;
    }
}

/* ========================================= */
/* 🌟 PROFILE IMAGE PERFECT FIT & ALIGNMENT  */
/* ========================================= */

.profile-image-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  height: fit-content;
}

/* Neon ring background */
.profile-ring {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  border: 3px solid rgba(0, 255, 255, 0.25);
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.3),
              0 0 50px rgba(0, 255, 255, 0.15);
  z-index: 1;
  pointer-events: none;
  transition: all 0.3s ease-in-out;
}

/* Circular image container */
.profile-image-wrapper .profile-image {
  position: relative;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

/* Ensure perfect fit inside circle */
.profile-image-wrapper .profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: none;
  border-radius: 50%;
}

/* 🔧 Desktop refinement (larger spacing + subtle offset) */
@media (min-width: 1024px) {
  .profile-ring {
    width: 420px;
    height: 420px;
  }
  .profile-image-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 4rem; /* Shift slightly right for visual balance */
  }
  .profile-image-wrapper .profile-image {
    width: 360px;
    height: 360px;
  }
}

/* 🔧 Tablet adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
  .profile-ring {
    width: 360px;
    height: 360px;
  }
  .profile-image-wrapper .profile-image {
    width: 320px;
    height: 320px;
  }
}

/* 🔧 Mobile optimization */
@media (max-width: 767px) {
  .profile-ring {
    width: 260px;
    height: 260px;
  }
  .profile-image-wrapper .profile-image {
    width: 220px;
    height: 220px;
  }
}

/* Optional subtle hover glow effect */
.profile-image-wrapper:hover .profile-ring {
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.5),
              0 0 60px rgba(0, 255, 255, 0.25);
}

/* ==== FEATURED PROJECT CARD ==== */
.featured-project {
  border: 2px solid var(--primary-color);
  background: linear-gradient(145deg, #1a1a1a, #222);
  box-shadow: 0 0 30px rgba(255, 107, 107, 0.3);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.featured-project:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 0 40px rgba(255, 107, 107, 0.6);
}
.featured-ribbon {
  position: absolute;
  top: 15px;
  right: -30px;
  background: var(--primary-color);
  color: #fff;
  padding: 5px 40px;
  font-size: 0.85rem;
  font-weight: 600;
  transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

/* ==== MODAL STYLING ==== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}
.modal-content {
  background: #2a2a2a;
  border-radius: 12px;
  max-width: 800px;
  padding: 2rem;
  color: var(--text-color);
  box-shadow: 0 0 25px rgba(255,107,107,0.3);
  overflow-y: auto;
  max-height: 80vh;
}
.close-btn {
  color: #ff6b6b;
  float: right;
  font-size: 1.8rem;
  cursor: pointer;
}

/* ==== RESPONSIVENESS ==== */
@media (max-width: 768px) {
  .featured-project ul {
    padding-left: 1.2rem;
  }
  .modal-content {
    width: 90%;
    padding: 1.2rem;
  }
  .featured-ribbon {
    top: 10px;
    right: -25px;
    padding: 4px 30px;
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .featured-ribbon {
    top: 8px;
    right: -20px;
    padding: 3px 25px;
    font-size: 0.7rem;
  }
  .featured-project {
    padding: 1.5rem;
  }
  .modal-content {
    width: 95%;
    padding: 1rem;
    margin: 10px;
  }
}

