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

:root {
    /* Light theme colors */
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --footer-bg: #1f2937;
    --footer-text: #9ca3af;
}

[data-theme="dark"] {
    /* Dark theme colors */
    --primary-color: #3b82f6;
    --secondary-color: #2563eb;
    --accent-color: #fbbf24;
    --text-dark: #f9fafb;
    --text-light: #d1d5db;
    --bg-light: #111827;
    --bg-white: #1f2937;
    --border-color: #374151;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    --footer-bg: #0f172a;
    --footer-text: #64748b;
}

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

html {
    scroll-behavior: smooth;
}

/* Utility Classes */
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 80rem;
    padding: 0 2rem;
    margin: auto;
}

.contact-form-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 80rem;
    padding: 0 2rem;
    margin: auto;
    gap: 3rem;
}

.about-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.skills-container {
    max-width: 90rem;
    margin: 0 auto;
    padding: 0 2rem;

    /* display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 80rem;
    padding: 0 2rem;
    margin: auto; */
}

.contact-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    text-align: center !important;
    color: var(--text-light);
}

.contact-container > h3 {
    font-size: 1.4rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.contact-container > ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    list-style: none;
    font-size: 1.2rem;
    text-decoration: none;

}

.contact-container > ul > li {
    display: inline-flex;
    gap: 0.6rem;
    justify-content: center;
    align-items: center;
    color: var(--text-light);
}

.contact-container > ul > li a {
    color: var(--text-light);
}

.footer-container {
    max-width: 90%;
}

li a {
    text-decoration: none;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

li a:hover {
    color: var(--primary-color) !important;
}

.attribution {
    text-decoration: none;
    color: var(--footer-text);
    transition: color 0.3s ease;
}

.attribution:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

@media (max-width: 10000000px) {
    .lump-sum-mobile {
        display: none !important;
    }
}

@media (max-width: 1036px) {
    .hero-container {
        /* h1 width 407.2 */
        flex-direction: column;
        text-align: center !important;
    }

    /* .hero-left {
        width: ;
    } */

    .hero-content {
        justify-content: center;
        align-items: center !important;
        max-width: 600px !important;
    }

    .hero-content > h1 {
        text-align: center !important;
        max-width: 15ch !important;
    }

    .description,
    .hero-content > span {
        text-align: center !important;
    }

    .about-text > p {
        max-width: 600px;
    }

    .skills-grid {
        flex-direction: column !important;
    }

    .skill-category {
        width: 100% !important;
    }

    .lump-sum-desktop {
        display: none !important;
    }

    .lump-sum-mobile {
        display: flex !important;
    }

    .contact-intro {
        flex-direction: column;
        justify-content: center !important;
        align-items: center !important;
    }

    .contact-container {
        width: 50%;
        justify-content: center !important;
        align-items: center !important;
    }

    .bread {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
    }
}

@media (max-width: 845px) {
    .contact-form-container {
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .hero-content .contact-info label, .contact-form-field {
        width: 100% !important;
    }
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255);
    /* backdrop-filter: blur(10px); */
    z-index: 1000;
    /* transition: all 0.3s ease; */
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .header {
    background: rgba(31, 41, 55);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 90rem;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    /* position: absolute; */
}

.nav-links {
    display: flex;
    justify-content: center;
    list-style: none;
    height: 4.6rem;
    /* width: 100%; */
    font-size: 0.9rem;
    text-transform: uppercase;
    gap: 2rem;
    align-items: center;

}

.theme-button {
    display: grid;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    height: 4.6rem;
    align-self: end;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 700;
    transition: color 0.3s ease;
}

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

.theme-toggle {
    background: none;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--text-dark);
}

.nav-right {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.theme-toggle:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: scale(1.1);
}

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

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.mobile-menu-overlay.active {
    display: block;
}

/* Hero Section */
.hero {
    padding: 12rem 0 8rem;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
}

.duncan-silo {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    border: 1px solid blue;
}

.hero-left {
    max-width: 40rem;
    /* height: 633.833px; */
    /* position: absolute; */
    /* margin-left: 5rem; */
    z-index: 999;
    gap: 5rem !important;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    z-index: -1;
}

.hero-content h1 {
    font-size: clamp(2.4375rem, 5vw, 3.8125rem);
    /* font-size: 3.5rem; */
    font-weight: 700;
    line-height: 1.2em;
    margin: 0 0 1rem 0;
    text-align: left;
    text-transform: uppercase;
}

.hero-content h2 {
    text-align: left;
}

.hero-content .subtitle {
    font-size: clamp(1rem, 1.5vw, 1.4rem);
    color: var(--text-light);
    /* margin-bottom: 2rem; */
    font-weight: 800;
    text-transform: uppercase;
    text-align: left;
}
.section-title .subtitle {
    font-weight: 800;
    text-transform: uppercase;
}

.hero-content .description {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--text-light);
    text-align: left;
    font-weight: 600;
    max-width: 600px;
    margin: 0 0 3rem;
}

.hero-content .contact-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-content .contact-info label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 48%;
}

.contact-form-field {
    width: 100%;
    height: 3rem;
    background: transparent;
    border: 1px solid var(--text-light);
    padding-left: 0.6rem;
    color: var(--text-dark);
    outline: none;
    font-size: 1.2rem;
}

.contact-form-field:hover {
    border: 1px solid var(--primary-color);
}

.message-field {
    width: 100% !important;
}

#message {
    height: 10rem;
    padding: 0.6rem 0 0 0.6rem;
    font-size: 1.2rem;
    font-family: 'Nunito', Tahoma, Geneva, Verdana, sans-serif;
}

#message:hover {
    border: 1px solid var(--primary-color);
}

.contact-form-field::placeholder {
    color: var(--footer-text);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    width: 150px;
    text-align: center;
    justify-content: center;
}

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

.hero-img {
    width: 60vw;
    max-width: 58.5rem;
    top: auto;
}

/* Button Styles */
.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

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

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

h1, h2 {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Section Styles */
section {
    padding: 4rem 0;
}

.section-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2em;
    /* margin: 0 0 1rem 0; */
    text-align: left;
    text-transform: uppercase;
    /* margin-bottom: 1rem; */
    color: var(--text-dark);
}

.section-title p {
    font-size: 1.5rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

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

.about-content {
    display: flex;
    justify-content: center;
    /* grid-template-columns: 1fr 2fr; */
    gap: 4rem;
    text-align: center;
    /* max-width: 70vw; */
    align-items: center;
}

.about-image {
    text-align: center;
}

.about-image .placeholder {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
    font-size: 4rem;
}

.about-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 550px;
}

.about-text h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.about-text p {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: var(--text-light);
}

/* Skills Section */
.skills {
    background: var(--bg-light);
}

.skills-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    /* grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); */
    gap: 0.6rem;
}

.skill-category {
    display: flex;
    flex-direction: column;
    background: var(--bg-white);
    padding: 2rem;
    align-items: center;
    justify-content: center;
    width: 85%;
    /* height: 491.833px; */
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.monthly {
    border: 2px solid rgb(49, 147, 204);
    width: 100%;
    /* height: 525px; */
}

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

.skill-category h3 {
    color: var(--primary-color);
    /* margin-bottom: 1rem; */
    display: flex;
    align-items: center;
    text-transform: uppercase;
    font-size: clamp(1.5rem, 1.5vw, 1.75rem);
    font-weight: 800;
    gap: 0.5rem;
}

.price-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    margin: 5rem 0 1rem 0;
}

.price {
    color: var(--text-light);
    line-height: 3rem;
    display: flex;
    text-transform: uppercase;
    font-size: 3rem;
    font-weight: 800;
    gap: 0.5rem;
}

.skill-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    height: 100%;
    list-style: none;
}

.skill-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.2rem 0;
    color: var(--text-light);
    width: 100%;
    /* border-bottom: 1px solid var(--border-color); */
}

.skill-list li:last-child {
    border-bottom: none;
}

/* Projects Section */
.projects {
    background: var(--bg-white);
}

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

.project-card {
    background: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    height: auto;
    width:100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.project-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

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

.tech-tag {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

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

.project-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.project-links a:hover {
    color: var(--secondary-color);
}

/* Contact Section */
.contact {
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.contact-intro {
    display: flex;
    justify-content: flex-end;
    text-align: center;
    max-width: 90%;
    margin-bottom: 3rem;
    gap: 5rem;
}

.contact-intro h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.contact-intro p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Footer */
.footer {
    background: var(--bg-light);
    color: var(--footer-text);
    padding: 2rem 0;
    /* max-width: 90%; */
}

[data-theme="dark"] .footer {
    background: var(--bg-light);
    color: var(--footer-text);
}

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

.footer-left p {
    color: var(--footer-text);
}

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

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

.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

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

.fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background: var(--bg-white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: right 0.3s ease;
        border-left: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
        z-index: 1000;
        gap: 0;
    }

    [data-theme="dark"] .nav-links {
        background: var(--bg-white);
        border-left-color: var(--border-color);
    }

    .nav-right {
        display: none;
    }

    .nav-links.mobile-open {
        right: 0;
    }

    .nav-links li {
        margin: 1rem 0;
        width: 90%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 0 1rem;
        font-size: 1.1rem;
        width: 100%;
        border-radius: 8px;
        transition: background-color 0.3s ease;
    }

    .nav-links a:hover {
        background: var(--bg-light);
    }

    .theme-toggle {
        margin: 0 auto;
    }

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

    .hero-content h1 {
        font-size: 2.5rem;
    }

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

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

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

    .container {
        padding: 0 1rem;
    }

    .nav {
        padding: 1rem;
    }

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

    .cta-buttons {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 6rem 0 3rem;
    }

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

    .section-title h2 {
        font-size: 1.8rem;
    }

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