/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
}

/* Hidden honeypot field for spam protection */
.hidden {
    display: none;
}

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

/* Form success message */
.form-success {
    background-color: #d1fae5;
    color: #065f46;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #10b981;
}

.form-error {
    background-color: #fee2e2;
    color: #991b1b;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #ef4444;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--navbar-bg);
    backdrop-filter: blur(5px);
    z-index: 1000;
    padding: 1rem 0;
    transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

.navbar.scrolled {
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-logo a:hover {
    color: #1d4ed8;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    height: 100%;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 0.5rem;
}

/* Dark mode navigation link adjustments */
[data-theme="dark"] .nav-link {
    color: var(--text-primary);
}

.nav-link:hover {
    color: var(--accent-color);
}

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

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



.hamburger {
    display: none;
    flex-direction: row;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 60px;
    background: transparent;
    border: none;
    padding: 0;
    gap: 4px;
}

.bar {
    width: 4px;
    height: 20px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Dark mode hamburger bar adjustments */
[data-theme="dark"] .bar {
    background-color: var(--text-primary);
}



.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: visible;
    padding-top: 80px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    min-height: calc(100vh - 80px);
}

.hero-content {
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-heading);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--accent-color);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 600px;
}

.hero-description ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-description li {
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(37, 99, 235, 0.2);
    transition: all 0.3s ease;
}

.hero-description li:hover {
    background: rgba(37, 99, 235, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #fbbf24;
    color: #1f2937;
}

.btn-primary:hover {
    background: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(251, 191, 36, 0.3);
}

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

.btn-secondary:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.profile-placeholder {
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

/* Profile image styling */
.profile-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #2563eb;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.4);
}

/* Responsive profile image */
@media (max-width: 768px) {
    .profile-image {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 480px) {
    .profile-image {
        width: 200px;
        height: 200px;
    }
}

/* Section Styles */
section {
    padding: 80px 0;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-heading);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* About Section */
.about {
    background: var(--bg-secondary);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 2;
}

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

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

.stat {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.stat h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    line-height: 1.2;
    white-space: nowrap;
    text-align: center;
}

.stat p {
    color: var(--text-secondary);
    font-weight: 500;
    text-align: center;
}

/* Projects Section */
.project-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    overflow-x: auto;
    white-space: nowrap;
    padding: 0.5rem 0;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--accent-color);
    background: transparent;
    color: var(--accent-color);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    transition: all 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.project-card.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

/* Project Cards */
.project-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

@media (max-width: 375px) {
    .project-card {
        padding: 1rem;
    }
    
    .project-image {
        height: 150px;
    }
}

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

.project-image {
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-placeholder {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.7);
}

.project-content {
    padding: 2rem;
}

/* Project Titles */
.project-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-heading);
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

.tech-tag {
    background: #e5e7eb;
    color: #374151;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Project links styling */
.project-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

/* Styling for the "View the Code" button */
.project-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.project-link:hover {
    background: rgba(37, 99, 235, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.project-link i {
    font-size: 1rem;
}

/* Styling for the descriptive meta tags */
.project-meta-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0;
}

.project-meta-tag i {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Skills Section */
.skills {
    background: var(--bg-secondary);
    padding: 5rem 0;
}

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

.skill-category {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

/* Skill Category Headers */
.skill-category h3 {
    color: var(--text-heading);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.skill-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.skill-item:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.skill-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.skill-item span {
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
}

/* Testimonials Section */
.testimonials {
    background: var(--bg-primary);
    padding: 5rem 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-content {
    margin-bottom: 2rem;
}

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    font-style: italic;
    position: relative;
    padding-left: 1.5rem;
}

.testimonial-content p::before {
    content: '"';
    font-size: 3rem;
    color: var(--accent-color);
    position: absolute;
    left: -0.5rem;
    top: -0.5rem;
    font-family: serif;
}

.testimonial-author h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
}

.testimonial-author p {
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.testimonial-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.testimonial-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.testimonial-link:hover {
    background: rgba(37, 99, 235, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.testimonial-link i {
    font-size: 1rem;
}

/* Mobile responsive styles for testimonials */
@media (max-width: 768px) {
    .testimonials {
        padding: 3rem 0;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
        margin: 0 10px;
    }
    
    .testimonial-content p {
        font-size: 1rem;
        line-height: 1.6;
        padding-left: 1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .testimonial-content p::before {
        font-size: 2.5rem;
        left: -0.25rem;
        top: -0.25rem;
    }
    
    .testimonial-author h4 {
        font-size: 1.1rem;
    }
    
    .testimonial-author p {
        font-size: 0.9rem;
    }
    
    .testimonial-links {
        gap: 0.75rem;
        margin-top: 1rem;
    }
    
    .testimonial-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        gap: 0.3rem;
    }
    
    .testimonial-link i {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .testimonial-card {
        padding: 1.25rem;
        margin: 0 5px;
        max-width: 95%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .testimonial-content p {
        font-size: 0.95rem;
        padding-left: 0.75rem;
    }
    
    .testimonial-content p::before {
        font-size: 2rem;
        left: -0.1rem;
        top: -0.1rem;
    }
    
    .testimonial-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .testimonial-link {
        justify-content: center;
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

/* Contact Section */
.contact {
    background: var(--bg-secondary);
    padding: 5rem 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 2;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-heading);
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--accent-color);
}

.contact-link i {
    font-size: 1.25rem;
    color: var(--accent-color);
}

.contact-form {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 2;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    color: var(--text-primary);
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--card-bg);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
        border-top: 1px solid var(--border-color);
    }

    .nav-menu .nav-link {
        padding: 1rem 0;
        margin: 0.5rem 0;
        border-radius: 8px;
        transition: background-color 0.3s ease;
    }

    .nav-menu .nav-link:hover {
        background-color: rgba(37, 99, 235, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        min-height: calc(100vh - 70px);
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-description ul {
        justify-content: center;
        gap: 0.5rem;
    }

    .hero-description li {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }

    .profile-placeholder {
        width: 200px;
        height: 200px;
        font-size: 3rem;
    }

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

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .about-text p {
        font-size: 1rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form,
    .contact-info {
        padding: 1.25rem;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 1rem;
    }

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

@media (max-width: 480px) {
    /* Reduce navbar height on small screens */
    .navbar {
        padding: 0.5rem 0;
    }
    
    .nav-container {
        height: 55px;
    }
    
    .nav-menu {
        top: 55px;
    }

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

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .hero-description {
        max-width: 90%;
        margin: 0 auto 2rem auto;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        width: 100%;
        text-align: center;
    }

    .skill-items {
        grid-template-columns: 1fr;
    }
    
    /* Single column stats on very small screens */
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .about-text p {
        font-size: 0.95rem;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling for anchor links */
html {
    scroll-padding-top: 80px;
}

@media (max-width: 480px) {
    html {
        scroll-padding-top: 60px;
    }
} 

/* CSS Variables for theming */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --text-primary: #333;
    --text-secondary: #6b7280;
    --text-heading: #1f2937;
    --accent-color: #2563eb;
    --border-color: #e5e7eb;
    --card-bg: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --navbar-bg: rgba(255, 255, 255, 0.95);
}

[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-heading: #ffffff;
    --accent-color: #3b82f6;
    --border-color: #334155;
    --card-bg: #1e293b;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --navbar-bg: rgba(30, 41, 59, 0.95);
}

/* Navigation Contact Icons */
.nav-contact-icons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-right: 1rem;
}

/* Hide contact icons earlier on smaller screens */
@media (max-width: 992px) {
    .nav-contact-icons {
        display: none;
    }
}

.nav-contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: transparent;
    border: 1px solid transparent;
}

.nav-contact-icon:hover {
    color: var(--accent-color);
    background: rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.nav-contact-icon i {
    font-size: 1rem;
}

/* Theme toggle button */
.theme-toggle {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
    min-width: 110px;
    position: relative;
    overflow: hidden;
    height: 40px;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.theme-toggle:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.theme-toggle:hover::before {
    opacity: 0.1;
}

.theme-toggle:active {
    transform: translateY(0);
}

[data-theme="dark"] .theme-toggle {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .theme-toggle:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

/* Responsive adjustments for theme toggle */
@media (max-width: 768px) {
    .theme-toggle {
        min-width: 90px;
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .theme-text {
        display: none;
    }
    
    .theme-toggle {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        padding: 0.5rem;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .theme-toggle {
        width: 36px;
        height: 36px;
        font-size: 0.75rem;
    }
} 

/* Animation classes */
.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.fade-in-left {
    animation: fadeInLeft 0.6s ease forwards;
}

.fade-in-right {
    animation: fadeInRight 0.6s ease forwards;
}

.scale-in {
    animation: scaleIn 0.6s ease forwards;
}

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

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Initial state for animated elements */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
} 

/* Floating Code Snippets Background */
.floating-code {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.code-snippet {
    position: absolute;
    color: rgba(37, 99, 235, 0.2);
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    line-height: 1.4;
    white-space: pre-wrap;
    word-wrap: break-word;
    animation: float 25s infinite linear;
    opacity: 0.4;
    max-width: 300px;
    min-width: 200px;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 6px;
    border: 1px solid rgba(37, 99, 235, 0.2);
    z-index: 1;
}

.code-snippet:nth-child(1) {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.code-snippet:nth-child(2) {
    top: 20%;
    right: 10%;
    animation-delay: -5s;
    animation-duration: 30s;
}

.code-snippet:nth-child(3) {
    top: 60%;
    left: 15%;
    animation-delay: -10s;
    animation-duration: 22s;
}

.code-snippet:nth-child(4) {
    top: 40%;
    right: 20%;
    animation-delay: -15s;
    animation-duration: 28s;
}

.code-snippet:nth-child(5) {
    top: 80%;
    right: 5%;
    animation-delay: -8s;
    animation-duration: 35s;
}

.code-snippet:nth-child(6) {
    top: 70%;
    left: 60%;
    animation-delay: -12s;
    animation-duration: 26s;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Dark theme adjustments */
[data-theme="dark"] .code-snippet {
    color: rgba(147, 197, 253, 0.35);
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(147, 197, 253, 0.35);
}

/* Hero Floating Code Snippets */
.hero-floating-code {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.hero-code-snippet {
    position: absolute;
    color: rgba(37, 99, 235, 0.3);
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    line-height: 1.4;
    white-space: pre-wrap;
    word-wrap: break-word;
    animation: heroFloat 15s infinite linear;
    opacity: 0.6;
    max-width: 350px;
    min-width: 250px;
    background: rgba(255, 255, 255, 0.08);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(37, 99, 235, 0.3);
}

.hero-code-snippet:nth-child(1) {
    top: 15%;
    left: 8%;
    animation-delay: 0s;
    animation-duration: 18s;
}

.hero-code-snippet:nth-child(2) {
    top: 25%;
    right: 12%;
    animation-delay: -6s;
    animation-duration: 22s;
}

.hero-code-snippet:nth-child(3) {
    top: 65%;
    left: 18%;
    animation-delay: -12s;
    animation-duration: 20s;
}

@keyframes heroFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Dark theme adjustments for hero code snippets */
[data-theme="dark"] .hero-code-snippet {
    color: rgba(147, 197, 253, 0.25);
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(147, 197, 253, 0.25);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .code-snippet {
        font-size: 0.7rem;
        max-width: 250px;
        min-width: 200px;
    }
    
    .hero-code-snippet {
        font-size: 0.6rem;
        max-width: 200px;
        min-width: 150px;
    }
}

@media (max-width: 480px) {
    .code-snippet {
        font-size: 0.6rem;
        max-width: 200px;
        min-width: 150px;
    }
    
    .hero-code-snippet {
        font-size: 0.5rem;
        max-width: 150px;
        min-width: 120px;
    }
    
    /* Hide floating code on very small screens for better performance */
    .floating-code,
    .hero-floating-code {
        display: none;
    }
} 