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

:root {
    /* Light Mode Colors - Soft Beige and White Theme */
    --primary-color: #8b7355; /* Warm brown/tan */
    --secondary-color: #a0826d; /* Light brown */
    --accent-color: #6b5d52; /* Darker beige */
    --success-color: #7a9d7e;
    --background-color: #faf8f5; /* Off-white/cream */
    --surface-color: #ffffff; /* Pure white */
    --text-primary: #3d3d3d; /* Dark gray for text */
    --text-secondary: #6b6b6b; /* Medium gray */
    --border-color: #e8e3dc; /* Light beige border */
    --hover-color: #f5f1eb; /* Very light beige hover */
    --shadow-light: 0 1px 3px 0 rgba(139, 115, 85, 0.1), 0 1px 2px 0 rgba(139, 115, 85, 0.06);
    --shadow-medium: 0 4px 6px -1px rgba(139, 115, 85, 0.15), 0 2px 4px -1px rgba(139, 115, 85, 0.1);
    --shadow-large: 0 10px 15px -3px rgba(139, 115, 85, 0.2), 0 4px 6px -2px rgba(139, 115, 85, 0.15);
}

[data-theme="dark"] {
    /* Dark Mode Colors - Pure Black and White */
    --primary-color: #ffffff;
    --secondary-color: #d1d5db;
    --accent-color: #ffffff;
    --success-color: #ffffff;
    --background-color: #0a0a0a; /* Very dark background */
    --surface-color: #1a1a1a; /* Dark surface */
    --text-primary: #ffffff;
    --text-secondary: #d1d5db;
    --border-color: #374151;
    --hover-color: #1f2937;
    --shadow-light: 0 1px 3px 0 rgba(255, 255, 255, 0.1), 0 1px 2px 0 rgba(255, 255, 255, 0.06);
    --shadow-medium: 0 4px 6px -1px rgba(255, 255, 255, 0.1), 0 2px 4px -1px rgba(255, 255, 255, 0.06);
    --shadow-large: 0 10px 15px -3px rgba(255, 255, 255, 0.1), 0 4px 6px -2px rgba(255, 255, 255, 0.05);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-color);
    background-image: 
        /* Subtle dot pattern */
        radial-gradient(circle at 1px 1px, rgba(139, 115, 85, 0.08) 1px, transparent 0),
        /* Circular glow patterns */
        radial-gradient(circle at 20% 50%, rgba(160, 130, 109, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(160, 130, 109, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(160, 130, 109, 0.02) 0%, transparent 50%),
        /* Diagonal grid pattern */
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(139, 115, 85, 0.02) 2px,
            rgba(139, 115, 85, 0.02) 4px
        ),
        /* Gradient overlay */
        linear-gradient(135deg, transparent 0%, rgba(139, 115, 85, 0.01) 50%, transparent 100%);
    background-size: 
        50px 50px,  /* Dot pattern size */
        100% 100%, 100% 100%, 100% 100%,  /* Radial gradients */
        100px 100px,  /* Grid pattern size */
        100% 100%;  /* Gradient overlay */
    background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0;
    background-attachment: fixed;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

/* Professional Button Styles - Codecademy Inspired */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    border: 2px solid transparent;
    min-width: 160px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

[data-theme="dark"] .btn-primary {
    background-color: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

[data-theme="dark"] .btn-primary:hover {
    background-color: #000000;
    color: #ffffff;
    border-color: #ffffff;
    transform: translateY(-1px);
}

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

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

[data-theme="dark"] .btn-secondary:hover {
    background-color: #1f2937;
    border-color: #ffffff;
}

.btn-accent {
    background-color: var(--accent-color);
    color: #ffffff;
    border-color: var(--accent-color);
}

.btn-accent:hover {
    background-color: transparent;
    color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-1px);
}

[data-theme="dark"] .btn-accent {
    background-color: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

[data-theme="dark"] .btn-accent:hover {
    background-color: #000000;
    color: #ffffff;
    border-color: #ffffff;
    transform: translateY(-1px);
}


/* Navigation Styles */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--background-color);
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(124, 58, 237, 0.02) 0%, transparent 50%),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(124, 58, 237, 0.01) 10px,
            rgba(124, 58, 237, 0.01) 20px
        );
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.nav-logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    position: relative;
    font-size: 15px;
}

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

.theme-toggle {
    background: var(--surface-color);
    border: 2px solid var(--border-color);
    border-radius: 4px;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
}

.theme-toggle:hover {
    background: var(--hover-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.theme-icon {
    font-size: 1.2rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 70px;
    background: var(--background-color);
    background-image: 
        /* Dot pattern */
        radial-gradient(circle at 1px 1px, rgba(124, 58, 237, 0.12) 1px, transparent 0),
        /* Circular glow patterns */
        radial-gradient(circle at 20% 50%, rgba(124, 58, 237, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(124, 58, 237, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(124, 58, 237, 0.03) 0%, transparent 50%),
        /* Hexagonal pattern overlay */
        repeating-linear-gradient(
            60deg,
            transparent,
            transparent 10px,
            rgba(124, 58, 237, 0.01) 10px,
            rgba(124, 58, 237, 0.01) 20px
        );
    background-size: 
        40px 40px,  /* Dot pattern */
        100% 100%, 100% 100%, 100% 100%,  /* Radial gradients */
        100px 100px;  /* Hexagonal pattern */
    background-attachment: fixed;
    position: relative;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.text-accent {
    color: #a78bfa; /* Light purple accent for dark background */
}

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

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--surface-color);
    border: 2px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-link:hover {
    background: #a78bfa; /* Light purple for dark background */
    color: #ffffff;
    border-color: #a78bfa;
    transform: translateY(-2px);
}

[data-theme="dark"] .social-link:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

/* Main Content */
.main-content {
    padding-top: 100px;
    min-height: 100vh;
    background-image: 
        /* Dot pattern */
        radial-gradient(circle at 1px 1px, rgba(124, 58, 237, 0.1) 1px, transparent 0),
        /* Circular glow patterns */
        radial-gradient(circle at 20% 50%, rgba(124, 58, 237, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(124, 58, 237, 0.02) 0%, transparent 50%),
        /* Grid pattern */
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(124, 58, 237, 0.015) 2px,
            rgba(124, 58, 237, 0.015) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(124, 58, 237, 0.015) 2px,
            rgba(124, 58, 237, 0.015) 4px
        );
    background-size: 
        60px 60px,  /* Dot pattern */
        100% 100%, 100% 100%,  /* Radial gradients */
        50px 50px, 50px 50px;  /* Grid patterns */
    background-attachment: fixed;
    position: relative;
}

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

.page-header {
    text-align: center;
    margin-bottom: 4rem;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Cards and Components */
.project-card, .service-card, .skill-category, .stat-card, .contact-item, .education-item, .certification-card {
    background: var(--surface-color);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.2s ease;
    position: relative;
}

.project-card:hover, .service-card:hover, .skill-category:hover, .stat-card:hover, .contact-item:hover {
    transform: translateY(-4px);
    border-color: #a78bfa; /* Light purple accent for dark background */
    box-shadow: var(--shadow-medium);
}

/* Form Styles */
.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background: var(--background-color);
    color: var(--text-primary);
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #a78bfa; /* Light purple accent for dark background */
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .process-steps {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .skill-category {
        padding: 2rem;
    }

    .process-step {
        padding: 2rem;
    }

    .contact-form-container {
        padding: 2rem;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--background-color);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 2rem;
        transition: left 0.3s ease;
        border-top: 1px solid var(--border-color);
        gap: 1rem;
    }

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

    .hamburger {
        display: flex;
    }

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

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

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

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

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .container {
        padding: 0 1rem;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .social-links {
        flex-wrap: wrap;
    }
}
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 14px;
        min-width: 140px;
    }

    .nav-link {
        padding: 1rem;
        width: 100%;
        text-align: center;
    }
}

/* Tablet Specific Styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-buttons {
        gap: 1.25rem;
    }
    
    .btn {
        min-width: 150px;
    }
}

/* Keep existing code for other sections (projects, services, about, contact, etc.) */
.projects-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 4rem;
}

.project-card.featured {
    border-color: var(--accent-color);
}

.project-card.featured::before {
    content: 'Featured';
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

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

.tech-tag {
    background: var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 500;
}

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

/* About Page Styles */
.about-content {
    margin-bottom: 4rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 4rem;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

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

.stats-grid {
    display: grid;
    gap: 2rem;
}

.stat-card {
    text-align: center;
    background: var(--surface-color);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: #a78bfa; /* Light purple accent for dark background */
    box-shadow: var(--shadow-medium);
}

.stat-card h3 {
    font-size: 2.5rem;
    color: #a78bfa; /* Light purple accent for dark background */
    margin-bottom: 0.5rem;
}

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

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.service-card {
    text-align: center;
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    margin: 0 auto 1.5rem;
    transition: all 0.2s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.05);
}
.service-process {
    margin-bottom: 4rem;
}

.service-process h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.process-step {
    text-align: center;
    padding: 2.5rem;
    background: var(--surface-color);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.process-step:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-medium);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    transition: all 0.2s ease;
}

.process-step:hover .step-number {
    transform: scale(1.1);
}

.process-step h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.process-step p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    flex-shrink: 0;
}
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--surface-color);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.contact-item:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-medium);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.contact-item:hover .contact-icon {
    transform: scale(1.05);
}

/* Fix SVG icons in dark mode */
[data-theme="dark"] .contact-icon svg {
    color: #000000;
}

[data-theme="dark"] .contact-icon {
    background: #ffffff;
    color: #000000;
}

.contact-item h3 {
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.contact-item a {
    color: #a78bfa; /* Light purple for better visibility on dark background */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.contact-item a:hover {
    color: #c4b5fd; /* Lighter purple on hover */
    text-decoration: underline;
}



/* Additional responsive adjustments */
@media (max-width: 768px) {
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

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

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus Styles for Accessibility */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}
