:root {
    --primary: #8b5cf6;
    --primary-light: #a78bfa;
    --primary-dark: #7c3aed;
    --secondary: #ec4899;
    --dark: #0f172a;
    --dark-surface: #1e293b;
    --light: #f8fafc;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-dark: rgba(15, 23, 42, 0.7);
    
    --font-outfit: 'Outfit', sans-serif;
    --transition-base: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-primary: 0 10px 15px -3px rgba(139, 92, 246, 0.3);

    /* Slate Palette (Missing in original) */
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    
    --transition: all 0.3s ease;
}

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

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

section {
    animation: fadeIn 1s ease-out forwards;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-outfit);
    background-color: var(--light);
    color: var(--slate-900);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
    overflow-x: hidden;
}

body.dark {
    background-color: var(--dark);
    color: var(--slate-100);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

.section-padding {
    padding: 5rem 1.5rem;
}

@media (min-width: 768px) {
    .section-padding {
        padding: 5rem 3rem;
    }
}

@media (min-width: 1024px) {
    .section-padding {
        padding: 5rem 6rem;
    }
}

.text-primary { color: var(--primary); }
.text-slate-400 { color: var(--slate-400); }
.text-slate-500 { color: var(--slate-500); }
.text-slate-600 { color: var(--slate-600); }

.bg-primary { background-color: var(--primary); }
.bg-slate-50 { background-color: var(--slate-50); }
.bg-slate-100 { background-color: var(--slate-100); }
.bg-slate-800 { background-color: var(--slate-800); }
.bg-slate-900 { background-color: var(--slate-900); }

.dark .bg-slate-900\/50 { background-color: rgba(15, 23, 42, 0.5); }
.dark .bg-slate-800 { background-color: var(--slate-800); }
.dark .bg-slate-900 { background-color: var(--slate-900); }
.dark .text-slate-100 { color: var(--slate-100); }
.dark .text-slate-400 { color: var(--slate-400); }

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 0.875rem 2.5rem;
    border-radius: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-primary);
    border: none;
    cursor: pointer;
    transition: var(--transition-base);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
    border: 2px solid var(--slate-200);
    color: var(--slate-700);
    padding: 0.875rem 2.5rem;
    border-radius: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    background: transparent;
    transition: var(--transition-base);
}

.dark .btn-secondary {
    border-color: var(--slate-700);
    color: var(--slate-100);
}

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

/* Navbar */
nav {
    position: fixed;
    width: 100%;
    z-index: 50;
    transition: var(--transition);
    padding: 1.5rem 0;
}

nav.scrolled {
    background-color: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.dark nav.scrolled {
    background-color: rgba(15, 23, 42, 0.8);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

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

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-link {
    font-size: 0.875rem;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--slate-600);
}

.dark .nav-link {
    color: var(--slate-400);
}

.nav-link.active, .nav-link:hover {
    color: var(--primary);
}

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

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

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    border-top: 1px solid var(--slate-200);
    padding: 1.5rem;
    flex-direction: column;
    gap: 1rem;
}

.dark .mobile-menu {
    background-color: var(--slate-900);
    border-top-color: var(--slate-800);
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
}

.hero-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

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

.hero-badge {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    display: block;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    word-wrap: break-word;
}

@media (max-width: 400px) {
    .hero-title {
        font-size: 1.75rem;
    }
    .typewriter {
        font-size: 1.5rem;
    }
}

@media (max-width: 320px) {
    .hero-title {
        font-size: 1.5rem;
    }
    .typewriter {
        font-size: 1.25rem;
    }
}

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

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

.typewriter {
    color: var(--primary);
    border-right: 4px solid var(--primary);
    padding-right: 0.5rem;
    animation: blink 0.75s step-end infinite;
}

@keyframes blink {
    from, to { border-color: transparent }
    50% { border-color: var(--primary) }
}

.hero-description {
    color: var(--slate-600);
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    max-width: 32rem;
}

.dark .hero-description {
    color: var(--slate-400);
}

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

@media (max-width: 480px) {
    .hero-btns {
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100%;
    }
    .hero-btns a {
        width: 100% !important;
        justify-content: center !important;
        margin-right: 0 !important;
    }
}

.hero-image-wrapper {
    position: relative;
    width: 16rem;
    height: 16rem;
    margin: 0 auto;
}

@media (min-width: 480px) {
    .hero-image-wrapper {
        width: 20rem;
        height: 20rem;
    }
}

@media (min-width: 768px) {
    .hero-image-wrapper {
        width: 28rem;
        height: 28rem;
    }
}

@media (min-width: 1024px) {
    .hero-image-wrapper {
        width: 32rem;
        height: 32rem;
    }
}

.rotating-border {
    position: absolute;
    inset: -1rem;
    border: 2px dashed rgba(139, 92, 246, 0.2);
    border-radius: 50%;
    animation: rotate 30s linear infinite;
}

.profile-img-container {
    position: absolute;
    inset: 1rem;
    background: linear-gradient(135deg, #fff, #f1f5f9);
    border-radius: 50%;
    overflow: hidden;
    padding: 1rem;
    box-shadow: var(--shadow-xl);
    border: 8px solid rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark .profile-img-container {
    background: linear-gradient(135deg, var(--dark-surface), var(--dark));
    border-color: rgba(30, 41, 59, 0.8);
}

.profile-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.floating-badge {
    position: absolute;
    background: var(--glass);
    backdrop-filter: blur(8px);
    padding: 1.25rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: float 4s ease-in-out infinite;
}

.dark .floating-badge {
    background: var(--glass-dark);
    border-color: rgba(255, 255, 255, 0.1);
}

/* About Section */
.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .section-title h2 {
        font-size: 3rem;
    }
}

.title-underline {
    width: 5rem;
    height: 0.25rem;
    background-color: var(--primary);
    margin: 0 auto;
    border-radius: 9999px;
}

.about-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 768px) {
    .about-grid {
        flex-direction: row;
    }
    .about-image, .about-content {
        width: 50%;
    }
}

.image-card {
    position: relative;
}

.image-card::before {
    content: '';
    position: absolute;
    inset: -1rem;
    background-color: rgba(168, 85, 247, 0.2);
    border-radius: 1rem;
    filter: blur(12px);
    z-index: -1;
}

.about-img {
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid var(--slate-200);
}

.dark .about-img {
    border-color: var(--slate-700);
}

.about-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.about-content p {
    color: var(--slate-600);
    margin-bottom: 1.5rem;
}

.dark .about-content p {
    color: var(--slate-400);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

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

.info-card {
    padding: 1rem;
    background-color: var(--white);
    border-radius: 0.75rem;
    border: 1px solid var(--slate-100);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.dark .info-card {
    background-color: var(--slate-800);
    border-color: var(--slate-700);
}

.info-card i {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    display: block;
}

.info-card h4 {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.info-card p {
    font-size: 0.875rem;
    color: var(--slate-500);
    margin-bottom: 0;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 64rem;
    margin: 0 auto;
}

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

.skill-category {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--slate-100);
}

.dark .skill-category {
    background-color: var(--slate-800);
    border-color: var(--slate-700);
}

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

.category-header i {
    font-size: 2rem;
    color: var(--primary);
}

.category-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-item {
    width: 100%;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.skill-name {
    font-weight: 500;
}

.skill-percentage {
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 700;
}

.progress-bar {
    height: 0.5rem;
    background-color: var(--slate-100);
    border-radius: 9999px;
    overflow: hidden;
}

.dark .progress-bar {
    background-color: var(--slate-700);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 9999px;
    width: 0;
    transition: width 1s ease-out;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

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

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

.service-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--slate-100);
    text-align: center;
    transition: var(--transition);
}

.dark .service-card {
    background-color: var(--slate-800);
    border-color: var(--slate-700);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(168, 85, 247, 0.3);
}

.service-icon {
    width: 5rem;
    height: 5rem;
    background-color: rgba(168, 85, 247, 0.1);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary);
    font-size: 2.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--slate-600);
    font-size: 0.875rem;
}

.dark .service-card p {
    color: var(--slate-400);
}

/* Projects Section */
.projects-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .projects-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }
}

.projects-title {
    max-width: 42rem;
}

.projects-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.projects-title p {
    color: var(--slate-600);
}

.dark .projects-title p {
    color: var(--slate-400);
}

.view-all {
    color: var(--primary);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-all:hover {
    text-decoration: underline;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

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

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

.project-card {
    background-color: var(--white);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--slate-100);
    transition: var(--transition);
}

.dark .project-card {
    background-color: var(--slate-800);
    border-color: var(--slate-700);
}

.project-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.project-image-box {
    position: relative;
    height: 16rem;
    overflow: hidden;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(168, 85, 247, 0.2);
    transition: var(--transition);
    z-index: 10;
}

.project-card:hover .project-overlay {
    background-color: transparent;
}

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

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

.project-icon-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--primary);
    color: var(--white);
    padding: 0.75rem;
    border-radius: 0.75rem;
    z-index: 20;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.project-content {
    padding: 2rem;
}

@media (max-width: 480px) {
    .project-content {
        padding: 1.5rem;
    }
}

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

.project-tag {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: var(--slate-100);
    color: var(--slate-600);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

.dark .project-tag {
    background-color: var(--slate-700);
    color: var(--slate-300);
}

.project-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.project-content p {
    color: var(--slate-600);
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.dark .project-content p {
    color: var(--slate-400);
}

.project-links {
    display: flex;
    gap: 1rem;
}

.demo-link {
    flex: 1;
    background-color: var(--primary);
    color: var(--white);
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 500;
}

@media (max-width: 480px) {
    .demo-link {
        padding: 1rem;
        font-size: 1rem;
    }
}

.github-link {
    padding: 0.5rem;
    border: 1px solid var(--slate-200);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-600);
}

.dark .github-link {
    border-color: var(--slate-700);
    color: var(--slate-300);
}

.github-link:hover {
    color: var(--primary);
    border-color: var(--primary);
}

/* GitHub Stats Section */
.stats-section {
    background-color: var(--slate-900);
    color: var(--white);
}

.stats-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .stats-grid {
        flex-direction: row;
    }
    .stats-text, .stats-visual {
        width: 50%;
    }
}

.stats-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.stats-text p {
    color: var(--slate-400);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.stats-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-card {
    padding: 1.5rem;
    background-color: rgba(30, 41, 59, 0.5);
    border-radius: 1.5rem;
    border: 1px solid var(--slate-700);
}

.stat-icon {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--slate-500);
}

.github-btn {
    margin-top: 2.5rem;
    background-color: var(--white);
    color: var(--slate-900);
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.github-btn:hover {
    background-color: var(--primary);
    color: var(--white);
}

.github-btn i {
    transition: var(--transition);
}

.github-btn:hover i {
    transform: rotate(12deg);
}

.stats-card-visual {
    background-color: var(--slate-800);
    padding: 0.5rem;
    border-radius: 1.5rem;
    border: 1px solid var(--slate-700);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    width: 100%;
}

.stats-card-visual img {
    border-radius: 1rem;
    width: 100%;
}

/* Contact Section */
.contact-box {
    max-width: 72rem;
    margin: 0 auto;
    background: var(--glass);
    backdrop-filter: blur(12px);
    padding: 3rem;
    border-radius: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: var(--shadow-xl);
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

@media (max-width: 768px) {
    .contact-box {
        padding: 2rem;
        gap: 2.5rem;
    }
}

@media (max-width: 480px) {
    .contact-box {
        padding: 1.5rem;
        border-radius: 1.5rem;
    }
}

.dark .contact-box {
    background: var(--glass-dark);
    border-color: rgba(255, 255, 255, 0.1);
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

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

@media (min-width: 1024px) {
    .contact-box {
        grid-template-columns: 1fr 1.2fr; /* More balanced ratio */
        width: 100%;
    }
}

@media (max-width: 1100px) {
    .contact-box {
        gap: 2rem;
        padding: 2.5rem;
    }
}

.dark .contact-box {
    background-color: var(--slate-800);
    border-color: var(--slate-700);
}

.contact-info-side {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.contact-info-side h3 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-info-side h3 span {
    color: var(--primary);
}

.contact-info-side p {
    color: var(--slate-500);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    overflow: hidden; /* Prevent overflow of content */
}

@media (max-width: 400px) {
    .contact-method {
        gap: 1rem;
    }
}

.method-icon {
    width: 3.5rem;
    height: 3.5rem;
    background-color: rgba(168, 85, 247, 0.1);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    transition: var(--transition);
}

.contact-method:hover .method-icon {
    background-color: var(--primary);
    color: var(--white);
}

.method-label {
    font-size: 0.875rem;
    color: var(--slate-400);
}

.method-value {
    font-weight: 700;
    word-break: break-all;
    font-size: 0.9375rem;
}

@media (min-width: 480px) {
    .method-value {
        font-size: 1rem;
    }
}

.social-links {
    padding-top: 2rem;
    border-top: 1px solid var(--slate-100);
    display: flex;
    gap: 1rem;
}

.dark .social-links {
    border-top-color: var(--slate-700);
}

.social-link {
    width: 3rem;
    height: 3rem;
    background-color: var(--slate-100);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-900);
}

.dark .social-link {
    background-color: var(--slate-700);
    color: var(--white);
}

.social-link.github:hover { background-color: var(--slate-900); color: var(--white); }
.social-link.linkedin:hover { background-color: #0077b5; color: var(--white); }
.social-link.instagram:hover { background-color: #e4405f; color: var(--white); }

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .form-row {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

.form-group {
    min-width: 0; /* Allow grid items to shrink */
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--slate-600);
    margin-left: 0.25rem;
}

.dark .form-group label {
    color: var(--slate-400);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    background-color: var(--slate-50);
    border: 1px solid var(--slate-100);
    outline: none;
    transition: var(--transition);
}

.dark .form-group input, .dark .form-group textarea {
    background-color: var(--slate-900);
    border-color: var(--slate-700);
    color: var(--white);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary);
}

.submit-btn {
    width: 100%;
    background-color: var(--primary);
    color: var(--white);
    padding: 1.25rem;
    border-radius: 1rem;
    font-size: 1.125rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.success-msg {
    text-align: center;
    color: #22c55e;
    font-weight: 700;
    margin-top: 1rem;
}

/* Footer */
footer {
    background-color: var(--white);
    padding: 5rem 1.5rem;
    border-top: 1px solid var(--slate-100);
}

.dark footer {
    background-color: var(--dark);
    border-top-color: var(--slate-800);
}

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

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.footer-nav a {
    color: var(--slate-500);
    font-weight: 500;
}

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

.footer-socials {
    display: flex;
    gap: 1.5rem;
}

.footer-socials a {
    font-size: 1.5rem;
    color: var(--slate-400);
}

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

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--slate-100);
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    color: var(--slate-400);
    font-size: 0.875rem;
}

.dark .footer-bottom {
    border-top-color: var(--slate-800);
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

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

::-webkit-scrollbar-thumb {
    background-color: var(--slate-300);
    border-radius: 9999px;
}

.dark ::-webkit-scrollbar-thumb {
    background-color: var(--slate-700);
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary);
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--slate-600);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.dark .theme-toggle-btn {
    color: var(--slate-400);
}

.theme-toggle-btn:hover {
    color: var(--primary);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
        transform: scale(1);
    }
    50% {
        transform: scale(1.05) rotate(5deg);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
        transform: scale(1) rotate(-5deg);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
        transform: scale(1) rotate(0deg);
    }
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    background-color: #128c7e;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    color: #fff;
    animation: none; /* Stop pulsing on hover */
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 25px;
        right: 20px;
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
        font-size: 20px;
    }
    /* Move it away from overlap if needed, or adjust z-index */
    .whatsapp-float {
        z-index: 200;
    }
}
