/* Base Styles */
:root {
    --primary: #D32F2F;
    --primary-dark: #b71c1c;
    --secondary: #FFFFFF;
    --bg-dark: #121212;
    --bg-darker: #0a0a0a;
    --bg-black: #000000;
    --text-muted: #E0E0E0;
    --text-gray: #9E9E9E;
    --border-color: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-black);
    color: var(--secondary);
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

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

.text-red {
    color: var(--primary);
}

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

.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--secondary);
}

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

.btn-outline {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--secondary);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo-name {
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s ease;
    white-space: nowrap;
    display: flex;
    gap: 6px;
}

.logo-name.show {
    opacity: 1;
    transform: translateX(0);
}

.logo-name .first-name {
    color: var(--secondary);
    transition: color 0.3s ease;
}

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

.logo-name:hover .first-name {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0 auto;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    display: flex;
    align-items: center;
}

.nav-links a i {
    margin-right: 8px;
    font-size: 0.9rem;
}

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

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

.resume-btn {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(to right, var(--bg-black) 60%, var(--bg-darker));
    padding-top: 80px;
}

.hero-content {
    width: 100%;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero-text {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 40px;
    color: var(--text-gray);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* About Section Improvements */
.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 40px;
    position: relative;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Fix overlap: Ensure education card is below image with spacing */
.about-image-container {
    flex: 1;
    min-width: 280px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.image-wrapper {
    position: relative;
    width: 280px;
    height: 280px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    z-index: 1;
}

.image-wrapper:hover {
    transform: scale(1.05);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 3px solid var(--primary);
    border-radius: 16px;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-wrapper:hover .image-overlay {
    opacity: 1;
}

.about-text {
    flex: 2;
    min-width: 300px;
    max-width: 650px;
    text-align: left;
    padding: 20px;
}

.about-text p {
    margin-bottom: 25px;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
}

.about-details {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--bg-dark);
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detail-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.detail-item i {
    font-size: 1.8rem;
    color: var(--primary);
}

.detail-item h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--secondary);
}

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

.education-card {
    flex: 1;
    min-width: 250px;
}

.detail-item.education-card {
    margin-top: 28px;
    z-index: 0;
}

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

.skill-category {
    background-color: var(--bg-dark);
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.skill-category h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-item span:first-child {
    width: 100px;
    font-weight: 500;
}

.skill-bar {
    flex: 1;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

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

.skill-item span:last-child {
    width: 40px;
    text-align: right;
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Achievements Section - Slider Design */
.achievements-slider-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 50px;
    display: flex;
    align-items: center;
}

.slider-wrapper {
    overflow: hidden;
    width: 100%;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slider-item {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.slider-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    width: 100%;
}

.slider-btn {
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.slider-btn:hover {
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 0;
    background: #ffffff;
    color: var(--primary);
}

.prev-btn:hover {
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

.next-btn {
    right: 0;
    background: #ffffff;
    color: var(--primary);
}

.next-btn.animate-progress {
    animation: rightArrowProgress 5s linear forwards;
}

.achievements-slider-container:hover .next-btn.animate-progress {
    animation-play-state: paused;
}

@keyframes rightArrowProgress {
    0% {
        background: #ffffff;
        color: var(--primary);
        box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
    }
    40% {
        background: #ffcdd2;
        color: var(--primary);
        box-shadow: 0 4px 15px rgba(255, 205, 210, 0.4);
    }
    80% {
        background: var(--primary);
        color: #ffffff;
        box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
    }
    100% {
        background: var(--primary-dark);
        color: #ffffff;
        box-shadow: 0 4px 15px rgba(183, 28, 28, 0.6);
    }
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--primary);
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(211, 47, 47, 0.6);
}

.achievement-card {
    flex: 1;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.achievement-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(211, 47, 47, 0.3);
}

.card-header {
    background: linear-gradient(135deg, 
        rgba(211, 47, 47, 0.2) 0%, 
        rgba(211, 47, 47, 0.1) 100%);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.achievement-badge {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), #ff6b6b);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
}

.achievement-badge .tcs-logo {
    width: 32px;
    height: 13px;
    background: url('/static/logos/tcs-logo.svg') no-repeat center;
    background-size: contain;
    filter: brightness(0) invert(1);
}

.achievement-badge .leetcode-logo {
    width: 32px;
    height: 13px;
    background: url('/static/logos/leetcode-logo.svg') no-repeat center;
    background-size: contain;
    filter: brightness(0) invert(1);
}

.achievement-meta h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.achievement-date {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-gray);
    font-size: 0.85rem;
}

.achievement-date i {
    color: var(--primary);
}

.card-body {
    padding: 25px;
}

.card-body h4 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 600;
}

.card-body p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.certificate-section {
    margin-top: 20px;
}

.view-certificate {
    background: linear-gradient(135deg, var(--primary), #ff6b6b);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.view-certificate:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(211, 47, 47, 0.4);
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    transition: left 0.5s;
}

.view-certificate:hover .btn-glow {
    left: 100%;
}

.card-decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(211, 47, 47, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

/* Certificate Display */
.certificate-display {
    flex: 1;
    position: relative;
}

.certificate-frame {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.certificate-frame:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(211, 47, 47, 0.3);
}

.certificate-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.certificate-frame:hover .certificate-img {
    transform: scale(1.05);
}

.certificate-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.7) 0%, 
        transparent 50%, 
        rgba(211, 47, 47, 0.3) 100%);
    border-radius: 15px;
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.certificate-frame:hover .certificate-overlay {
    opacity: 1;
}

.certificate-label {
    background: rgba(211, 47, 47, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transform: translateY(20px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.certificate-frame:hover .certificate-label {
    transform: translateY(0);
}

.certificate-label i {
    font-size: 1rem;
}

/* Certificate Placeholder for failed loads */
.certificate-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.05) 0%, 
        rgba(255, 255, 255, 0.02) 100%);
    border: 2px dashed rgba(211, 47, 47, 0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
}

.placeholder-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.placeholder-content i {
    font-size: 2rem;
    color: var(--primary);
    opacity: 0.6;
}

.placeholder-content span {
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* Fullscreen Certificate Modal */
.fullscreen-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fullscreen-content {
    position: relative;
    max-width: 95%;
    max-height: 95%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fullscreen-image {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
}

.close-fullscreen {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3001;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-fullscreen:hover {
    color: var(--primary);
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

/* Certificate Modal */
.certificate-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.certificate-image {
    max-width: 100%;
    max-height: 80vh;
    border: 2px solid var(--primary);
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
}

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

.close-modal:hover {
    color: var(--primary);
}

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

.project-card {
    background-color: var(--bg-dark);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

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

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

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

.project-content {
    padding: 25px;
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

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

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

.project-tech span {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
}

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

/* Contact Section */
.contact-content {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

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

.contact-details {
    margin-bottom: 30px;
}

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

.contact-item i {
    font-size: 1.2rem;
}

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

.social-icon {
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: var(--primary);
}

.leetcode-icon {
    color: #FFA116;
}

.leetcode-icon:hover {
    color: #FFB84D;
}

.contact-form {
    flex: 1;
    background-color: var(--bg-dark);
    padding: 30px;
    border-radius: 8px;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--secondary);
    font-family: 'Poppins', sans-serif;
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
.footer {
    background-color: var(--bg-darker);
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 30px;
}

.footer-links {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-copyright {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-content,
    .about-content,
    .contact-content {
        flex-direction: column;
    }
    
    .about-image {
        margin-bottom: 30px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .contact-form {
        margin-top: 30px;
    }

    .about-content {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    .about-image {
        margin-bottom: 20px;
        justify-content: center;
    }
    .about-text {
        text-align: center;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--bg-black);
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
        transition: left 0.3s ease;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .resume-btn {
        margin-left: auto;
        margin-right: 20px;
    }
    
    .logo-name {
        font-size: 1rem;
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .about-details {
        flex-direction: column;
        gap: 20px;
    }
    
    .achievements-slider-container {
        padding: 10px 30px;
    }
    
    .slider-content {
        flex-direction: column;
    }
    
    .achievement-card,
    .certificate-display {
        width: 100%;
        margin-bottom: 20px;
    }
    
    /* Mobile: Certificate image first, then card */
    .achievement-card {
        order: 2;
    }
    
    .certificate-display {
        order: 1;
    }
    
    .card-header {
        padding: 15px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .achievement-badge {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .achievement-badge .tcs-logo,
    .achievement-badge .leetcode-logo {
        width: 26px;
        height: 10px;
    }
    
    .card-body {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .section {
        padding: 70px 0;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .skill-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .skill-item span:first-child {
        width: 100%;
    }
    
    .skill-bar {
        width: 100%;
    }
    
    .achievements-slider-container {
        padding: 10px 10px;
    }
    
    .slider-item {
        padding: 10px;
    }
    
    .card-header {
        padding: 12px;
    }
    
    .achievement-badge {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
        border-radius: 8px;
    }
    
    .achievement-badge .tcs-logo,
    .achievement-badge .leetcode-logo {
        width: 22px;
        height: 9px;
    }
    
    .achievement-meta h3 {
        font-size: 1.1rem;
    }
    
    .achievement-date {
        font-size: 0.8rem;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .card-body h4 {
        font-size: 1rem;
    }
    
    .card-body p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .view-certificate {
        padding: 10px 16px;
        font-size: 0.8rem;
        border-radius: 20px;
    }
    
    .modal-content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .certificate-image {
        max-height: 70vh;
    }
    
    .close-modal {
        top: -30px;
        font-size: 1.5rem;
    }
    
    .certificate-placeholder {
        height: 120px;
    }
    
    .placeholder-content i {
        font-size: 1.2rem;
    }
    
    .placeholder-content span {
        font-size: 0.75rem;
    }
    
    .close-fullscreen {
        top: -40px;
        font-size: 2rem;
        width: 50px;
        height: 50px;
    }
    
    .fullscreen-image {
        max-height: 85vh;
    }
    
    .certificate-label {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
        align-items: center;
        padding: 15px;
    }

    .about-image-container {
        margin-bottom: 30px;
    }

    .about-text {
        text-align: center;
        padding: 0;
    }

    .detail-item {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .image-wrapper {
        width: 220px;
        height: 220px;
    }

    .detail-item {
        padding: 12px 15px;
    }

    .detail-item i {
        font-size: 1.5rem;
    }

    .detail-item h3 {
        font-size: 1.1rem;
    }

    .detail-item p {
        font-size: 0.9rem;
    }
    .detail-item.education-card {
        margin-top: 18px;
    }
}

/* Education Card Degree and College Colors */
.education-card h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: #fff;
    letter-spacing: 0.5px;
}
.education-card p {
    margin: 0;
    line-height: 1.4;
}
.education-card .edu-degree {
    color: #FFD700;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.2px;
    display: block;
}
.education-card .edu-college {
    color: #80cbc4;
    font-size: 0.98rem;
    font-weight: 500;
    display: block;
    margin-top: 2px;
}

.show-more-btn {
    margin-top: 15px;
    background: var(--primary);
    color: var(--secondary);
    border: none;
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
    outline: none;
}
.show-more-btn:hover {
    background: var(--primary-dark);
}
.extra-skills {
    margin-top: 10px;
    animation: fadeIn 0.4s;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}