/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@300;400;500;600;700&display=swap');

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto Mono', monospace;
    font-size: 16px;
    line-height: 1.6;
    color: #334155;
    background-color: #f8fafc;
    transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode - Now using Tailwind's dark: prefix */

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navigation */
.nav {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 3rem);
    max-width: 64rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 1rem;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav:hover {
    background: rgba(255, 255, 255, 0.95);
}

.dark .nav {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.dark .nav:hover {
    background: rgba(15, 23, 42, 0.95);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.5rem;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #3b82f6;
}

.nav-menu {
    display: none;
    align-items: center;
    gap: 2rem;
}

.nav-menu.show {
    display: flex;
}

.nav-link {
    position: relative;
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.dark .nav-link {
    color: #cbd5e1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -0.25rem;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #3b82f6;
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    color: #3b82f6;
}

.dark .nav-link:hover {
    color: #60a5fa;
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #475569;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 197, 253, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dark .nav .theme-toggle {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}

.theme-toggle:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.25);
}

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

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

.theme-toggle i {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Special animation for system theme indicator */
.theme-toggle[data-theme="system"] {
    animation: gentlePulse 3s ease-in-out infinite;
}

@keyframes gentlePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    }
}

.theme-toggle-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #475569;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

.theme-toggle-mobile::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 197, 253, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dark .nav .theme-toggle-mobile {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}

.theme-toggle-mobile:hover {
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.theme-toggle-mobile:hover::before {
    opacity: 1;
}

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

.theme-toggle-mobile i {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.btn-primary-mobile {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    text-decoration: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.btn-primary-mobile:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.nav-mobile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: none;
    border: none;
    color: #3b82f6;
    cursor: pointer;
    font-size: 1.5rem;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
}

.dark .mobile-menu {
    background: rgba(15, 23, 42, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu.show {
    display: flex;
}

/* Hero Section */
.hero {
    padding-top: 8rem;
    padding-bottom: 5rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    position: relative;
    overflow: hidden;
}

.dark .hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.2);
    animation: float 4s ease-in-out infinite;
}

.hero-shape.shape-1 {
    width: 5rem;
    height: 5rem;
    top: 5rem;
    left: 10%;
}

.hero-shape.shape-2 {
    width: 4rem;
    height: 4rem;
    top: 15rem;
    right: 15%;
    animation-delay: 1s;
}

.hero-shape.shape-3 {
    width: 6rem;
    height: 6rem;
    bottom: 5rem;
    left: 30%;
    animation-delay: 2s;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    position: relative;
    z-index: 10;
}

@media (min-width: 768px) {
    .hero-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

.hero-text {
    flex: 1;
    text-align: center;
}

@media (min-width: 768px) {
    .hero-text {
        text-align: left;
    }
}

.hero-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1e293b;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out;
}

.dark .hero .hero-title {
    color: #f1f5f9;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #3b82f6;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 2rem;
    }
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

@media (min-width: 768px) {
    .hero-tags {
        justify-content: flex-start;
    }
}

.tag {
    padding: 0.25rem 0.75rem;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-radius: 9999px;
    font-size: 0.875rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.hero-description {
    font-size: 1.125rem;
    color: #64748b;
    margin-bottom: 2rem;
    max-width: 32rem;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.dark .hero .hero-description {
    color: #94a3b8;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

@media (min-width: 640px) {
    .hero-actions {
        flex-direction: row;
    }
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: 1px solid #3b82f6;
    background: rgba(255, 255, 255, 0.7);
    color: #3b82f6;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.hero-social {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 0.8s ease-out 1s both;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #475569;
    text-decoration: none;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: #3b82f6;
    border-color: #3b82f6;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    animation: float 4s ease-in-out infinite;
}

.profile-container {
    width: 16rem;
    height: 16rem;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.profile-container:hover {
    transform: scale(1.03);
}

.profile-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0f2fe, #f0f9ff);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.dark .profile-placeholder {
    background: linear-gradient(135deg, #1e293b, #334155);
}

.profile-initials {
    font-size: 4rem;
    color: white;
    font-weight: bold;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section.about {
    background: white;
}

.dark .section.about {
    background: #0f172a;
}

.section.skills {
    background: #f8fafc;
}

.dark .section.skills {
    background: #0f172a;
}

.section.experience {
    background: white;
}

.dark .section.experience {
    background: #0f172a;
}

.section.education {
    background: #f8fafc;
}

.dark .section.education {
    background: #0f172a;
}

.section.projects {
    background: white;
}

.dark .section.projects {
    background: #0f172a;
}

.section.contact {
    padding: 8rem 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    position: relative;
    overflow: hidden;
}

.dark .section.contact {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

/* Section Titles */
.section-title {
    position: relative;
    font-size: 2.25rem;
    font-weight: bold;
    color: #1e293b;
    text-align: center;
    margin-bottom: 3rem;
}

.dark .section-title {
    color: #f1f5f9;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 3.125rem;
    height: 3px;
    background-color: #3b82f6;
}

/* About Section */
.about-grid {
    display: grid;
    gap: 3rem;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.about-text {
    font-size: 1.125rem;
    color: #475569;
    margin-bottom: 2rem;
}

.about.dark .about-text {
    color: #cbd5e1;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.feature-card {
    padding: 1rem;
    background: #f0f9ff;
    border-radius: 0.5rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.15);
}

.about.dark .feature-card {
    background: #1e293b;
}

.dark .about .feature-card:hover {
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.feature-icon {
    font-size: 1.5rem;
    color: #3b82f6;
    margin-bottom: 0.5rem;
}

.feature-title {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.about.dark .feature-title {
    color: #f1f5f9;
}

.feature-text {
    font-size: 0.875rem;
    color: #64748b;
}

.about.dark .feature-text {
    color: #94a3b8;
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.about.dark .sidebar-title {
    color: #f1f5f9;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.tech-tag {
    padding: 0.25rem 0.75rem;
    background: #3b82f6;
    color: white;
    border-radius: 9999px;
    font-size: 0.875rem;
}

.about-summary {
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 0.5rem;
}

.about.dark .about-summary {
    background: #1e293b;
}

.summary-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.about.dark .summary-title {
    color: #f1f5f9;
}

.summary-text {
    color: #475569;
}

.about.dark .summary-text {
    color: #cbd5e1;
}

/* Skills Section */
.skills-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.skill-card {
    padding: 1.5rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.skill-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
}

.skills.dark .skill-card {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark .skills .skill-card:hover {
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.4);
}

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

.skill-icon {
    font-size: 1.5rem;
    color: #3b82f6;
    margin-right: 0.75rem;
}

.skill-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
}

.skills.dark .skill-title {
    color: #f1f5f9;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    padding: 0.25rem 0.5rem;
    background: #f1f5f9;
    color: #374151;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

.skills.dark .skill-tag {
    background: #334155;
    color: #e2e8f0;
}

/* Experience Section */
.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 1.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
}

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 1rem;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: #3b82f6;
}

.timeline-item:last-child::before {
    background: #3b82f6;
}

.experience-card {
    padding: 1.5rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.experience-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.15);
}

.experience.dark .experience-card {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark .experience .experience-card:hover {
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.3);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

@media (max-width: 640px) {
    .experience-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

.experience-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #3b82f6;
    margin-bottom: 0.25rem;
}

.experience-company {
    font-size: 1.125rem;
    font-weight: 500;
    color: #374151;
}

.experience.dark .experience-company {
    color: #d1d5db;
}

.date-badge {
    padding: 0.25rem 0.75rem;
    background: #3b82f6;
    color: white;
    border-radius: 9999px;
    font-size: 0.875rem;
}

.experience-list {
    list-style: disc;
    padding-left: 1.5rem;
    color: #475569;
}

.experience.dark .experience-list {
    color: #cbd5e1;
}

.experience-list li {
    margin-bottom: 0.5rem;
}

/* Education Section */
.education-content {
    display: flex;
    justify-content: center;
}

.education-card {
    display: flex;
    align-items: center;
    padding: 2rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    max-width: 32rem;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.education-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.15);
}

.education.dark .education-card {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark .education .education-card:hover {
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.3);
}

.education-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.education-degree {
    font-size: 1.25rem;
    font-weight: 600;
    color: #3b82f6;
    margin-bottom: 0.25rem;
}

.education-institution {
    font-size: 1.125rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.25rem;
}

.education.dark .education-institution {
    color: #d1d5db;
}

.education-details {
    color: #64748b;
}

.education.dark .education-details {
    color: #94a3b8;
}

/* Projects Section */
.projects-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.project-card {
    padding: 1.5rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
}

.projects.dark .project-card {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark .projects .project-card:hover {
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.4);
}

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

.project-icon {
    font-size: 1.5rem;
    color: #3b82f6;
    margin-right: 0.75rem;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
}

.projects.dark .project-title {
    color: #f1f5f9;
}

.project-description {
    color: #475569;
    margin-bottom: 1rem;
}

.projects.dark .project-description {
    color: #cbd5e1;
}

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

.project-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: #1d4ed8;
}

.projects.dark .project-link {
    color: #60a5fa;
}

.dark .projects .project-link:hover {
    color: #3b82f6;
}

/* Contact Section */
.contact-content {
    max-width: 32rem;
    margin: 0 auto;
    text-align: center;
}

.contact-intro {
    margin-bottom: 2rem;
}

.contact-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.contact.dark .contact-title {
    color: #f1f5f9;
}

.contact-text {
    color: #64748b;
}

.contact.dark .contact-text {
    color: #94a3b8;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .contact-actions {
        flex-direction: row;
        justify-content: center;
    }
}

.btn-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #3b82f6;
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-contact:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.contact-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Glass Card */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.15);
}

.contact.dark .glass-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.dark .contact .glass-card:hover {
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.3);
}

/* Contact Form */
.contact-form {
    margin-bottom: 2rem;
}

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

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

.contact.dark .form-label {
    color: #d1d5db;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact.dark .form-input,
.contact.dark .form-textarea {
    background: #374151;
    border-color: #4b5563;
    color: #f9fafb;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 8rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
}

/* Footer */
.footer {
    background: #1e293b;
    color: white;
    padding: 2rem 0;
}

.dark .footer {
    background: #0f172a;
}

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

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-brand {
    text-align: center;
}

@media (min-width: 768px) {
    .footer-brand {
        text-align: left;
    }
}

.footer-name {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.footer-title {
    color: #60a5fa;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-copyright {
    text-align: center;
}

@media (min-width: 768px) {
    .footer-copyright {
        text-align: right;
    }
}


/* Theme transition utilities */
.theme-transition {
    transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

@keyframes subtlePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

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

@keyframes softGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(59, 130, 246, 0.3);
    }
    50% {
        box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
    }
}

/* Utility Classes */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-subtle-pulse {
    animation: subtlePulse 2s ease-in-out infinite;
}

.animate-gentle-float {
    animation: gentleFloat 3s ease-in-out infinite;
}

.animate-soft-glow {
    animation: softGlow 3s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .section {
        padding: 3rem 0;
    }

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

    .about-features {
        grid-template-columns: 1fr;
    }

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