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

:root {
    --primary-color: #007bff;
    --background-color: #ffffff;
    --text-color: #000000;
    --card-background: #ffffff;
    --nav-background: rgba(255, 255, 255, 0.95);
    --shadow-color: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --primary-color: #4da3ff;
    --background-color: #1a1a1a;
    --text-color: #ffffff;
    --card-background: #2d2d2d;
    --nav-background: rgba(45, 45, 45, 0.95);
    --shadow-color: rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

nav {
    position: fixed;
    width: 100%;
    padding: 1.2rem 4rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(45deg, #007bff, #00bcd4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 3rem;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: #2d2d2d;
    font-weight: 500;
    font-size: 1.05rem;
    position: relative;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: linear-gradient(45deg, #007bff, #00bcd4);
    transition: width 0.3s ease;
}

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

nav a:hover {
    color: #007bff;
}

[data-theme="dark"] nav {
    background: rgba(25, 25, 25, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] nav a {
    color: #ffffff;
}

[data-theme="dark"] .logo {
    background: linear-gradient(45deg, #00bcd4, #80deea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav.scrolled {
    padding: 1rem 4rem;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] nav.scrolled {
    background: rgba(25, 25, 25, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.theme-switch-wrapper {
    display: flex;
    align-items: center;
    margin-left: 2rem;
    z-index: 100;
}

.theme-switch {
    display: inline-block;
    height: 28px;
    position: relative;
    width: 54px;
}

.theme-switch input {
    display: none;
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.slider {
    background-color: #ccc;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
}

.slider:before {
    background-color: #fff;
    bottom: 4px;
    content: "";
    height: 20px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 20px;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Icon positioning */
.slider .fa-sun {
    position: absolute;
    left: 6px;
    top: 6px;
    color: #fff;
}

.slider .fa-moon {
    position: absolute;
    right: 6px;
    top: 6px;
    color: #fff;
}

section {
    min-height: 100vh;
    padding: 6rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
}

.hero-content {
    max-width: 800px;
}

.greeting {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.wave {
    animation: wave 2s infinite;
    display: inline-block;
    transform-origin: 70% 70%;
}

@keyframes wave {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    30% { transform: rotate(14deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
    60% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #007bff, #00bcd4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientText 3s ease infinite;
}

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

.typewriter {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out forwards;
}

/* Add a subtle animation for the description */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 0.9;
        transform: translateY(0);
    }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.primary-btn {
    background: linear-gradient(45deg, #007bff, #00bcd4);
    color: white;
    border: none;
}

.secondary-btn {
    background: transparent;
    color: white;
    border: 2px solid #007bff;
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.2);
}

.secondary-btn:hover {
    background: rgba(0, 123, 255, 0.1);
    transform: translateY(-3px);
}

.tech-stack {
    margin-top: 2rem;
}

.tech-stack p {
    color: #ffffff;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.tech-icons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    font-size: 2.5rem;
}

.tech-icons i {
    color: #ffffff;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.tech-icons i:hover {
    opacity: 1;
    transform: translateY(-5px);
    color: #007bff;
}

/* Dark mode adjustments */
[data-theme="dark"] .hero h1 {
    background: linear-gradient(45deg, #00bcd4, #80deea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.highlight {
    color: #007bff;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #666;
}

.skills-grid, .project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin-top: 2rem;
}

.skill-card, .project-card {
    background: var(--card-background);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px var(--shadow-color);
    text-align: center;
    transition: transform 0.3s ease;
    color: var(--text-color);
}

.skill-card:hover, .project-card:hover {
    transform: translateY(-5px);
}

.skill-card i {
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.social-links a {
    font-size: 2rem;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #007bff;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #0056b3;
}

@media (max-width: 768px) {
    .theme-switch-wrapper {
        right: 20px;
    }

    nav {
        padding: 1rem;
    }

    nav ul {
        margin-right: 60px;
    }

    nav ul {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
}

/* Background Styles */
#home {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url('https://images.unsplash.com/photo-1633356122544-f134324a6cee?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #ffffff;
}

#about {
    background: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)),
        url('https://images.unsplash.com/photo-1607799279861-4dd421887fb3?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

#skills {
    position: relative;
    padding: 6rem 2rem;
    background: linear-gradient(rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.97)),
        url('https://images.unsplash.com/photo-1523961131990-5ea7c61b2107?q=80&w=2074&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

#projects {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
        url('https://images.unsplash.com/photo-1517694712202-14dd9538aa97?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-color);
    position: relative;
    overflow: hidden;
}

/* Dark mode specific styling */
[data-theme="dark"] #projects {
    background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9)),
        url('https://images.unsplash.com/photo-1517694712202-14dd9538aa97?q=80&w=2070&auto=format&fit=crop');
}

/* Project cards styling update for better contrast */
#projects .project-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#projects .project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Project text color adjustments */
#projects .section-title,
#projects .project-name,
#projects .project-description {
    color: #ffffff;
}

#projects .project-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

/* Project stack items styling */
#projects .stack-item {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
}

/* Project highlights styling */
#projects .highlight-item {
    color: rgba(255, 255, 255, 0.9);
}

/* Project links styling */
#projects .project-link {
    color: #ffffff;
    background: linear-gradient(45deg, #007bff, #00bcd4);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#projects .project-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

/* Add a subtle animation for project cards */
#projects .project-card {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

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

/* Add delay to each card */
#projects .project-card:nth-child(1) { animation-delay: 0.2s; }
#projects .project-card:nth-child(2) { animation-delay: 0.4s; }
#projects .project-card:nth-child(3) { animation-delay: 0.6s; }
#projects .project-card:nth-child(4) { animation-delay: 0.8s; }

/* Enhanced gradient overlay for better contrast */
#projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, 
        transparent, 
        rgba(0, 123, 255, 0.3), 
        transparent
    );
}

#projects::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, 
        transparent, 
        rgba(0, 123, 255, 0.3), 
        transparent
    );
}

/* Subtle background animation */
@keyframes backgroundFloat {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

#projects {
    animation: backgroundFloat 40s ease infinite;
}

#projects .section-title {
    color: #fff;
    margin-bottom: 50px;
}

#contact {
    background: linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)),
        url('https://images.unsplash.com/photo-1596003906949-67221c37965c?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    padding: 80px 0;
}

.contact-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
}

.contact-icon-link {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    transition: all 0.3s ease;
    text-decoration: none;
}

/* Individual icon colors and hover effects */
.contact-icon-link:nth-child(1) {
    color: #EA4335;
    background: rgba(234, 67, 53, 0.1);
}

.contact-icon-link:nth-child(2) {
    color: #0077B5;
    background: rgba(0, 119, 181, 0.1);
}

.contact-icon-link:nth-child(3) {
    color: #333;
    background: rgba(51, 51, 51, 0.1);
}

.contact-icon-link:nth-child(4) {
    color: #25D366;
    background: rgba(37, 211, 102, 0.1);
}

/* Hover effects */
.contact-icon-link:hover {
    transform: translateY(-5px);
}

.contact-icon-link:nth-child(1):hover {
    background: #EA4335;
    color: white;
}

.contact-icon-link:nth-child(2):hover {
    background: #0077B5;
    color: white;
}

.contact-icon-link:nth-child(3):hover {
    background: #333;
    color: white;
}

.contact-icon-link:nth-child(4):hover {
    background: #25D366;
    color: white;
}

/* Section Title Enhancement */
.section-title {
    font-size: 2.5rem;
    color: var(--text-color) !important;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #007bff;
    margin: 20px auto 0;
    border-radius: 2px;
}

/* Responsive */
@media (max-width: 480px) {
    .contact-grid {
        gap: 20px;
    }

    .contact-icon-link {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
}

/* Section content styling */
section {
    position: relative;
    overflow: hidden;
}

.section-content {
    position: relative;
    z-index: 2;
    padding: 4rem 2rem;
}

/* Glass effect for cards in light sections */
.skill-card, .project-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Dark mode card adjustments */
[data-theme="dark"] .skill-card,
[data-theme="dark"] .project-card {
    background: rgba(45, 45, 45, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Parallax effect */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Animation for section transitions */
section {
    transition: background-color 0.3s ease;
}

/* Optional: Add subtle pattern overlay */
.pattern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAEklEQVQImWNgYGD4z0AswK4SAFXuAf8EPy+xAAAAAElFTkSuQmCC');
    opacity: 0.1;
    z-index: 1;
}

/* Profile image styles */
.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 2rem;
    border: 4px solid var(--primary-color);
}

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

/* Update existing components for dark mode */
nav {
    background: var(--nav-background);
}

.logo {
    color: var(--text-color);
}

nav a {
    color: var(--text-color);
}

.skill-card, .project-card {
    background: var(--card-background);
    color: var(--text-color);
    box-shadow: 0 4px 6px var(--shadow-color);
}

.social-links a {
    color: var(--text-color);
}

/* Update other existing styles as needed */

/* About Section Styles */
#about {
    position: relative;
    padding: 6rem 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(45deg, #007bff, #00bcd4);
}

.about-container {
    display: flex;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.about-image {
    flex: 1;
    max-width: 400px;
}

.image-wrapper {
    position: relative;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.about-text {
    flex: 1.5;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-weight: 600;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.key-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.point {
    text-align: center;
    padding: 2rem;
    background: var(--card-background);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.point i {
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 1rem;
}

.point h4 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--text-color);
}

.point p {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .about-image {
        max-width: 300px;
        margin: 0 auto;
    }

    .key-points {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .key-points {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-text h3 {
        font-size: 1.5rem;
    }
}

/* Dark mode adjustments */
[data-theme="dark"] .point {
    background: rgba(45, 45, 45, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .point:hover {
    background: rgba(45, 45, 45, 0.2);
}

/* Education Section Styles */
#education {
    position: relative;
    padding: 6rem 2rem;
    background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85)),
        url('https://images.unsplash.com/photo-1550745165-9bc0b252726f?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #ffffff;
}

.education-timeline {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    padding: 2rem 0;
}

.education-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, #007bff, #00bcd4);
    opacity: 0.8;
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    width: 100%;
    display: flex;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(45deg, #007bff, #00bcd4);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.timeline-content {
    width: 45%;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    transition: all 0.3s ease;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 55%;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 55%;
}

.timeline-content:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.timeline-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.timeline-header i {
    font-size: 1.5rem;
    color: #007bff;
}

.timeline-header h3 {
    font-size: 1.3rem;
    color: #ffffff;
    margin: 0;
    flex-grow: 1;
}

.timeline-year {
    font-size: 0.9rem;
    color: #ffffff;
    font-weight: 600;
    padding: 0.3rem 1rem;
    background: rgba(0, 123, 255, 0.3);
    border-radius: 20px;
}

.timeline-content h4 {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.institution {
    color: #ffffff;
    opacity: 0.8;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.education-details {
    color: #ffffff;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.key-courses {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.key-courses span {
    padding: 0.3rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    font-size: 0.9rem;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .education-timeline::before {
        left: 30px;
    }
    
    .timeline-dot {
        left: 30px;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }
    
    .timeline-year {
        position: relative;
        right: auto;
        top: auto;
    }
}

/* Dark mode adjustments */
[data-theme="dark"] #education {
    background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9)),
        url('https://images.unsplash.com/photo-1550745165-9bc0b252726f?q=80&w=2070&auto=format&fit=crop');
}

[data-theme="dark"] .timeline-content {
    background: rgba(255, 255, 255, 0.05);
}

/* Add subtle animation for timeline items */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-item:nth-child(1) { animation-delay: 0.2s; }
.timeline-item:nth-child(2) { animation-delay: 0.4s; }
.timeline-item:nth-child(3) { animation-delay: 0.6s; }

/* Add a subtle pattern overlay */
#education::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAEklEQVQImWNgYGD4z0AswK4SAFXuAf8EPy+xAAAAAElFTkSuQmCC');
    opacity: 0.1;
    pointer-events: none;
}

/* Education Section Title Styles */
#education .section-title {
    color: #ffffff;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

#education .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(45deg, #007bff, #00bcd4);
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
}

/* Optional: Add a subtle glow effect */
#education .section-title {
    animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    }
    to {
        text-shadow: 2px 2px 8px rgba(0, 123, 255, 0.5);
    }
}

/* Ensure visibility in both modes */
[data-theme="light"] #education .section-title,
[data-theme="dark"] #education .section-title {
    color: #ffffff;
}

/* Floating Resume Download Button Styles */
.resume-download-btn {
    position: fixed;
    bottom: 40px;
    left: 40px;
    width: 60px;
    height: 60px;
    background: #007bff; /* Solid color for better visibility */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 9999; /* Ensure it's above other elements */
    cursor: pointer;
}

.resume-btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.resume-btn-content i {
    font-size: 24px; /* Larger icon size */
    color: #ffffff; /* Ensure icon is white */
}

.resume-download-btn:hover {
    width: 160px;
    border-radius: 30px;
    background: #0056b3;
}

.resume-btn-content span {
    display: none; /* Hide by default */
    margin-left: 10px;
    color: #ffffff;
    font-weight: 500;
}

.resume-download-btn:hover .resume-btn-content span {
    display: block; /* Show on hover */
}

/* Active state */
.resume-download-btn:active {
    transform: scale(0.95);
}

/* Make sure it's visible on all backgrounds */
.resume-download-btn {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .resume-download-btn {
        bottom: 20px;
        left: 20px;
    }
}

/* Optional loading animation */
.resume-download-btn.downloading {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Skills Section Styles */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    backdrop-filter: none;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 123, 255, 0.2);
}

.skill-icon {
    background: linear-gradient(45deg, #007bff, #00bcd4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.9;
}

.skill-card h3 {
    color: #2c3e50;
}

.skill-item span {
    color: #4a5568;
}

.progress-bar {
    background: rgba(0, 0, 0, 0.05);
}

.progress {
    background: linear-gradient(45deg, #007bff, #00bcd4);
}

/* Section Title Styles */
#skills .section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
    color: #2c3e50;  /* Dark color for light mode */
    font-weight: 600;
}

#skills .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(45deg, #007bff, #00bcd4);
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

/* Dark mode adjustment */
[data-theme="dark"] #skills .section-title {
    color: #ffffff;
}

/* Optional: Add a subtle animation */
#skills .section-title {
    animation: fadeInDown 1s ease-out;
}

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

/* Dark mode adjustments */
[data-theme="dark"] #skills {
    background: linear-gradient(rgba(30, 30, 30, 0.97), rgba(30, 30, 30, 0.97)),
        url('https://images.unsplash.com/photo-1523961131990-5ea7c61b2107?q=80&w=2074&auto=format&fit=crop');
}

[data-theme="dark"] .skill-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .skill-card h3 {
    color: #ffffff;
}

[data-theme="dark"] .skill-item span {
    color: rgba(255, 255, 255, 0.9);
}

/* Add subtle pattern overlay */
#skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .skills-container {
        grid-template-columns: 1fr;
    }
}

/* Chat Bot Styles */
.chat-bot-container {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 1000;
}

.chat-bot-button {
    position: fixed;
    bottom: 30px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #007bff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 999;
    transition: transform 0.3s ease;
}

/* Cute Robot SVG Styles */
.cute-robot {
    width: 100%;
    height: 100%;
}

.cute-robot .head {
    fill: white;
    stroke: #2c3e50;
    stroke-width: 0.5;
}

.cute-robot .antenna-ball {
    animation: rainbowGlow 4s infinite;
    filter: drop-shadow(0 0 4px rgba(255, 107, 107, 0.8))
           drop-shadow(0 0 8px rgba(255, 107, 107, 0.6));
}

.cute-robot .antenna-stick {
    stroke: #2c3e50;
    stroke-width: 0.8;
    animation: stickColorChange 4s infinite;
}

.cute-robot .eye {
    fill: #2c3e50;
    animation: blink 3s infinite;
}

.cute-robot .mouth {
    stroke: #2c3e50;
    stroke-width: 0.8;
    stroke-linecap: round;
    transition: all 0.3s ease;
}

.cute-robot .body,
.cute-robot .arm {
    fill: white;
    stroke: #2c3e50;
    stroke-width: 0.5;
}

/* Hover Effects */
.chat-bot-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.chat-bot-button:hover .mouth {
    d: path('M9 11.5C10.5 13.5 13.5 13.5 15 11.5');
}

/* Blinking Animation */
@keyframes blink {
    0%, 90%, 100% { transform: scaleY(1); }
    95% { transform: scaleY(0.1); }
}

/* Smile Animation */
@keyframes smile {
    0% { d: path('M9 12.5C10.5 14 13.5 14 15 12.5'); }
    100% { d: path('M9 12C10.5 13.5 13.5 13.5 15 12'); }
}

/* Dark mode adjustments */
[data-theme="dark"] .cute-robot .head,
[data-theme="dark"] .cute-robot .body,
[data-theme="dark"] .cute-robot .arm {
    fill: white;
    stroke: #2c3e50;
}

[data-theme="dark"] .cute-robot .eye {
    fill: #2c3e50;
}

[data-theme="dark"] .cute-robot .mouth {
    stroke: #2c3e50;
}

.chat-label {
    position: absolute;
    right: 70px;
    background: rgba(0, 0, 0, 0.8);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.chat-bot-button:hover .chat-label {
    opacity: 1;
}

/* Chat Interface Styles */
.chat-interface {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 350px;
    max-height: 500px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
}

.chat-interface.active {
    display: flex;
    animation: slideIn 0.3s ease;
}

.chat-header {
    background: linear-gradient(45deg, #007bff, #00bcd4);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    margin: 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.close-chat {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 80%;
}

.message.bot {
    align-self: flex-start;
}

.message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-content {
    padding: 10px 15px;
    border-radius: 15px;
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.message.user .message-content {
    background: #007bff;
    color: white;
}

.chat-input {
    padding: 15px;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
}

.chat-input button {
    background: #007bff;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Dark mode adjustments */
[data-theme="dark"] .chat-interface {
    background: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .chat-messages {
    background: #2d2d2d;
}

[data-theme="dark"] .message-content {
    background: #333;
    color: white;
}

[data-theme="dark"] .chat-input {
    background: #1a1a1a;
    border-top-color: #333;
}

[data-theme="dark"] .chat-input input {
    background: #2d2d2d;
    border-color: #444;
    color: white;
}

/* Robot Animations */
.cute-robot .arm {
    transform-origin: top center;
    transition: transform 0.3s ease;
}

.cute-robot .arm.left {
    animation: waveLeft 2s infinite;
}

.cute-robot .arm.right {
    animation: waveRight 2s infinite;
}

/* Wave Animations */
@keyframes waveLeft {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(-15deg); }
}

@keyframes waveRight {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(15deg); }
}

/* Arms Animation */
.cute-robot .arm.left {
    animation: waveLeft 2s infinite;
}

.cute-robot .arm.right {
    animation: waveRight 2s infinite;
}

/* Faster Wave on Hover */
.chat-bot-button:hover .arm.left {
    animation: waveFastLeft 0.5s infinite;
}

.chat-bot-button:hover .arm.right {
    animation: waveFastRight 0.5s infinite;
}

/* Wave Animations */
@keyframes waveFastLeft {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(-20deg); }
}

@keyframes waveFastRight {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(20deg); }
}

/* Body Bounce */
.cute-robot .body {
    animation: bounce 2s infinite;
}

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

/* Antenna Ball Animation */
.cute-robot .antenna-ball {
    animation: rainbowGlow 4s infinite;
    filter: drop-shadow(0 0 4px rgba(255, 107, 107, 0.8))
           drop-shadow(0 0 8px rgba(255, 107, 107, 0.6));
}

/* Rainbow Glow Animation */
@keyframes rainbowGlow {
    0% {
        fill: #ff6b6b;
        filter: drop-shadow(0 0 5px rgba(255, 107, 107, 0.9));
    }
    20% {
        fill: #ffd93d;
        filter: drop-shadow(0 0 5px rgba(255, 217, 61, 0.9));
    }
    40% {
        fill: #6ce5b1;
        filter: drop-shadow(0 0 5px rgba(108, 229, 177, 0.9));
    }
    60% {
        fill: #6bcbef;
        filter: drop-shadow(0 0 5px rgba(107, 203, 239, 0.9));
    }
    80% {
        fill: #b49cff;
        filter: drop-shadow(0 0 5px rgba(180, 156, 255, 0.9));
    }
    100% {
        fill: #ff6b6b;
        filter: drop-shadow(0 0 5px rgba(255, 107, 107, 0.9));
    }
}

/* Antenna Stick Glow */
@keyframes stickGlow {
    0%, 100% {
        stroke: #2c3e50;
        filter: none;
    }
    50% {
        stroke: #ff8787;
        filter: drop-shadow(0 0 3px rgba(255, 107, 107, 0.4));
    }
}

/* Dark mode adjustment for antenna */
[data-theme="dark"] .cute-robot .antenna-stick {
    stroke: #2c3e50;
}

[data-theme="dark"] .cute-robot .antenna-ball {
    filter: drop-shadow(0 0 6px currentColor)
           drop-shadow(0 0 10px currentColor);
}

/* Antenna Stick Color Animation */
@keyframes stickColorChange {
    0% {
        stroke: #ff6b6b;
        filter: drop-shadow(0 0 2px rgba(255, 107, 107, 0.6));
    }
    20% {
        stroke: #ffd93d;
        filter: drop-shadow(0 0 2px rgba(255, 217, 61, 0.6));
    }
    40% {
        stroke: #6ce5b1;
        filter: drop-shadow(0 0 2px rgba(108, 229, 177, 0.6));
    }
    60% {
        stroke: #6bcbef;
        filter: drop-shadow(0 0 2px rgba(107, 203, 239, 0.6));
    }
    80% {
        stroke: #b49cff;
        filter: drop-shadow(0 0 2px rgba(180, 156, 255, 0.6));
    }
    100% {
        stroke: #ff6b6b;
        filter: drop-shadow(0 0 2px rgba(255, 107, 107, 0.6));
    }
}

/* Hover Enhancement */
.chat-bot-button:hover .antenna-ball {
    animation: rainbowGlowFast 2s infinite;
}

@keyframes rainbowGlowFast {
    0% {
        fill: #ff6b6b;
        filter: drop-shadow(0 0 8px rgba(255, 107, 107, 0.9))
               drop-shadow(0 0 12px rgba(255, 107, 107, 0.6));
    }
    20% {
        fill: #ffd93d;
        filter: drop-shadow(0 0 8px rgba(255, 217, 61, 0.9))
               drop-shadow(0 0 12px rgba(255, 217, 61, 0.6));
    }
    40% {
        fill: #6ce5b1;
        filter: drop-shadow(0 0 8px rgba(108, 229, 177, 0.9))
               drop-shadow(0 0 12px rgba(108, 229, 177, 0.6));
    }
    60% {
        fill: #6bcbef;
        filter: drop-shadow(0 0 8px rgba(107, 203, 239, 0.9))
               drop-shadow(0 0 12px rgba(107, 203, 239, 0.6));
    }
    80% {
        fill: #b49cff;
        filter: drop-shadow(0 0 8px rgba(180, 156, 255, 0.9))
               drop-shadow(0 0 12px rgba(180, 156, 255, 0.6));
    }
    100% {
        fill: #ff6b6b;
        filter: drop-shadow(0 0 8px rgba(255, 107, 107, 0.9))
               drop-shadow(0 0 12px rgba(255, 107, 107, 0.6));
    }
}

/* Dark mode adjustments */
[data-theme="dark"] .cute-robot .antenna-ball {
    filter: drop-shadow(0 0 6px currentColor)
           drop-shadow(0 0 10px currentColor);
}

[data-theme="dark"] .cute-robot .antenna-stick {
    stroke: #2c3e50;
}

/* Add these styles to your existing CSS */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 8px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: #007bff;
    border-radius: 50%;
    animation: typing 1s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.message.typing .message-content {
    background: #f0f0f0;
    min-width: 60px;
}

[data-theme="dark"] .message.typing .message-content {
    background: #2d2d2d;
}

/* Projects Section Styles */
.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.project-card:nth-child(even) {
    background: var(--card-bg-alt);
}

/* Hover effect for project features */
.project-features span:hover {
    transform: translateX(5px);
    transition: transform 0.3s ease;
}

/* Animation for project cards */
.project-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.project-card:nth-child(2) {
    animation-delay: 0.2s;
}

.project-card:nth-child(3) {
    animation-delay: 0.4s;
}

.project-card:nth-child(4) {
    animation-delay: 0.6s;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.project-content {
    padding: 40px;
}

.project-logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.project-logo {
    max-height: 60px;
    width: auto;
}

.project-name {
    font-size: 2rem;
    font-weight: 600;
    color: #fff !important;
    margin: 0;
    text-align: center;
}

.project-subtitle {
    color: #ccc !important;
    font-size: 1.1rem;
    text-align: center;
    margin: 10px 0 25px;
}

.project-description {
    color: #aaa !important;
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 30px;
    text-align: center;
}

.project-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 12px;
    transition: transform 0.2s ease;
}

.highlight-item:hover {
    transform: translateX(5px);
}

.highlight-item i {
    color: #e31837; /* Architects Hive red color */
    font-size: 1.2rem;
}

.highlight-item span {
    color: #ddd !important;
    font-weight: 500;
}

.project-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 25px 0;
    justify-content: center;
}

.stack-item {
    background: #e31837;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e31837;
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    margin-top: 20px;
    transition: transform 0.2s ease, background 0.2s ease;
}

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

/* Dark mode adjustments */
[data-theme="dark"] .project-card {
    background: #1a1a1a;
}

[data-theme="dark"] .project-name {
    color: #fff;
}

[data-theme="dark"] .project-subtitle,
[data-theme="dark"] .project-description {
    color: #aaa;
}

[data-theme="dark"] .highlight-item {
    background: rgba(255, 255, 255, 0.05) !important;
}

[data-theme="dark"] .highlight-item span {
    color: #ddd !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .project-content {
        padding: 25px;
    }

    .project-name {
        font-size: 1.75rem;
    }

    .project-highlights {
        grid-template-columns: 1fr;
    }
}

/* Updated Contact Section Styles */
.contact-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 60px auto;
    padding: 0 30px;
    flex-wrap: nowrap;
}

.contact-card {
    flex: 0 0 300px;
    min-height: 200px;
    background: #ffffff;
    border-radius: 12px;
    padding: 35px;
    text-align: left;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: transparent;
    transition: all 0.3s ease;
}

.contact-card:nth-child(1)::before { background: #ea4335; }
.contact-card:nth-child(2)::before { background: #0077b5; }
.contact-card:nth-child(3)::before { background: #333; }
.contact-card:nth-child(4)::before { background: #25D366; }

.icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 25px;
    background: #f8f9fa;
}

.contact-card:nth-child(1) .icon-wrapper i { color: #ea4335; }
.contact-card:nth-child(2) .icon-wrapper i { color: #0077b5; }
.contact-card:nth-child(3) .icon-wrapper i { color: #333; }
.contact-card:nth-child(4) .icon-wrapper i { color: #25D366; }

.icon-wrapper i {
    font-size: 32px;
    transition: all 0.3s ease;
}

.contact-card h3 {
    color: #2d3436;
    font-size: 1.4rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.contact-card p {
    color: #636e72;
    font-size: 1rem;
    margin-bottom: 25px;
    line-height: 1.5;
}

.contact-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 1rem;
    padding: 12px 20px;
    border-radius: 18px;
    background: #f8f9fa;
    text-decoration: none;
    color: #2d3436;
    transition: all 0.3s ease;
}

/* Hover Effects */
.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.contact-card:hover .icon-wrapper {
    transform: scale(1.1);
}

.contact-card:hover .contact-link {
    color: white;
}

/* Email (Red) */
.contact-card:nth-child(1):hover .contact-link { 
    background: #ea4335; 
}

/* LinkedIn (Blue) */
.contact-card:nth-child(2):hover .contact-link { 
    background: #0077b5; 
}

/* GitHub (Black) */
.contact-card:nth-child(3):hover .contact-link { 
    background: #333; 
}

/* WhatsApp (Green) */
.contact-card:nth-child(4):hover .contact-link { 
    background: #25D366; 
}

/* Contact Footer Styles */
.contact-footer {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 50px;
    padding: 20px;
}

.location-info,
.availability-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: #f8f9fa;
    border-radius: 30px;
    font-size: 0.95rem;
    color: #2d3436;
}

.location-info i,
.availability-info i {
    color: #007bff;
    font-size: 1.2rem;
}

/* Section Title Enhancement */
.section-title {
    font-size: 2.5rem;
    color: var(--text-color) !important;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #007bff;
    margin: 20px auto 0;
    border-radius: 2px;
}

/* Responsive Design */
@media (max-width: 1300px) {
    .contact-grid {
        overflow-x: auto;
        padding: 20px 30px;
        margin: 40px -20px;
        scroll-padding: 0 30px;
    }

    .contact-card {
        flex: 0 0 280px;
        margin-bottom: 10px;
    }
}

.contact-grid::-webkit-scrollbar {
    display: none;
}

.contact-grid {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

@media (max-width: 768px) {
    .contact-footer {
        flex-direction: column;
        gap: 15px;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Update dark mode styles */
@media (prefers-color-scheme: dark) {
    #contact {
        background: var(--bg-dark);
    }

    .section-title {
        color: #ffffff;
    }

    .contact-icon-link {
        /* Increase opacity for better visibility in dark mode */
        background: rgba(255, 255, 255, 0.1);
    }

    /* Individual icon colors in dark mode */
    .contact-icon-link:nth-child(1) {
        color: #ff6b6b; /* Brighter red for dark mode */
        background: rgba(255, 255, 255, 0.1);
    }

    .contact-icon-link:nth-child(2) {
        color: #4da3ff; /* Brighter blue for dark mode */
        background: rgba(255, 255, 255, 0.1);
    }

    .contact-icon-link:nth-child(3) {
        color: #ffffff; /* White for GitHub in dark mode */
        background: rgba(255, 255, 255, 0.1);
    }

    .contact-icon-link:nth-child(4) {
        color: #4cd137; /* Brighter green for dark mode */
        background: rgba(255, 255, 255, 0.1);
    }

    /* Hover effects in dark mode */
    .contact-icon-link:hover {
        transform: translateY(-5px);
    }

    .contact-icon-link:nth-child(1):hover {
        background: #ff6b6b;
        color: #000000;
    }

    .contact-icon-link:nth-child(2):hover {
        background: #4da3ff;
        color: #000000;
    }

    .contact-icon-link:nth-child(3):hover {
        background: #ffffff;
        color: #000000;
    }

    .contact-icon-link:nth-child(4):hover {
        background: #4cd137;
        color: #000000;
    }

    /* Update section title underline in dark mode */
    .section-title::after {
        background: #4da3ff;
    }
}

/* Responsive Design Updates */
@media (max-width: 1200px) {
    .about-container, .skills-container, .projects-grid {
        padding: 0 2rem;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .about-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .about-image {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .key-points {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    nav {
        padding: 1rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--nav-background);
        flex-direction: column;
        justify-content: center;
        transition: 0.3s ease;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        text-align: center;
    }
    
    .theme-switch-wrapper {
        margin: 2rem 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .key-points {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .education-timeline::before {
        left: 20px;
    }
    
    .timeline-content {
        width: calc(100% - 50px);
        margin-left: 50px !important;
    }
    
    .timeline-dot {
        left: 20px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .about-text h3 {
        font-size: 1.5rem;
    }
    
    .skill-card, .project-card {
        padding: 1.5rem;
    }
    
    .contact-icon-link {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .resume-download-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .chat-bot-button {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
    }
    
    .chat-interface {
        width: 100%;
        height: 100vh;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }
}

/* Fix for devices with notches */
@supports (padding: max(0px)) {
    .nav {
        padding-left: max(4rem, env(safe-area-inset-left));
        padding-right: max(4rem, env(safe-area-inset-right));
    }
    
    .hero {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
}

/* Fix for ultra-wide screens */
@media (min-width: 2000px) {
    .container {
        max-width: 1800px;
        margin: 0 auto;
    }
    
    .hero h1 {
        font-size: 5rem;
    }
}

/* Landscape mode fixes */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 150vh;
    }
    
    .nav-menu {
        padding: 1rem;
    }
    
    .section {
        min-height: 150vh;
    }
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    z-index: 1000;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
}

/* Update About Section Background for Dark Mode */
[data-theme="dark"] #about {
    background: linear-gradient(rgba(26, 26, 26, 0.95), rgba(26, 26, 26, 0.95)),
        url('https://images.unsplash.com/photo-1607799279861-4dd421887fb3?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-color);
}

/* Ensure text and elements are visible in dark mode */
[data-theme="dark"] #about .section-title,
[data-theme="dark"] #about .about-text h3,
[data-theme="dark"] #about .about-description,
[data-theme="dark"] #about .point h4,
[data-theme="dark"] #about .point p {
    color: var(--text-color);
}

[data-theme="dark"] #about .point {
    background: rgba(45, 45, 45, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] #about .point:hover {
    background: rgba(45, 45, 45, 0.8);
}

/* Education Section Title - White in Both Themes */
#education .section-title {
    color: #ffffff !important; /* Using !important to override any other styles */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Ensure the underline gradient is visible */
#education .section-title::after {
    background: linear-gradient(45deg, #007bff, #00bcd4);
    opacity: 0.8;
}

/* Additional specificity for theme overrides */
[data-theme="light"] #education .section-title,
[data-theme="dark"] #education .section-title {
    color: #ffffff !important;
}

/* Add smooth scrolling to the HTML element */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Adjust based on your navbar height */
}

/* For users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Smoother scrolling with custom timing */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Adjust based on your navbar height */
}

/* Custom scrollbar for smoother feel */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

