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

:root {
    --cream: #FFF3E0;
    --pretzel-orange: #F07C27;
    --text-dark: #111;
    --white: #ffffff;
    --gray-light: #f5f5f5;
    --gray-medium: #666;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--cream);
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

/* Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

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

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

/* Header */
.header {
    background: var(--white);
    padding: 0.25rem 0;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 1000;
}

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

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.3rem;
    padding: 0.35rem 0.8rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--pretzel-orange);
    background: var(--cream);
    transform: translateY(-1px);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--pretzel-orange);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 80%;
}

/* Responsive navigation */
@media (max-width: 767px) {
    .nav-links {
        gap: 0.8rem;
        justify-content: center;
        width: 100%;
        max-width: 100%;
    }
    
    .nav-links a {
        font-size: clamp(1rem, 3vw, 1.5rem);
        padding: 0.3rem 0.5rem;
        flex-shrink: 0;
        white-space: nowrap;
    }
}


/* Hero Section */
.hero {
    padding: 0 0 0.1rem 0; /* Reduced from 0.5rem to 0.1rem */
    text-align: center;
    min-height: 20vh; /* Reduced from 25vh to 20vh */
    display: flex;
    align-items: center;
}

/* Contact Button Section */
.contact-button-section {
    padding: 1rem 0;
    text-align: center;
    background: var(--white);
    margin: 0 -20px; /* Extend beyond container to cover full width */
    padding-left: 20px;
    padding-right: 20px;
}

.contact-button {
    display: inline-block;
    background: var(--pretzel-orange);
    color: var(--white);
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: var(--shadow);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-button:hover {
    background: #e06a1a;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.hero-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0; /* Reduced from 0.2rem to 0 - no gap at all */
}

/* Pretzel Wrap Container */
.pretzel-wrap {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0; /* Reduced from 0.1rem to 0 */
}

.pretzel-image {
    width: 100%;
    height: auto;
    display: block;
    max-width: 500px;
    transition: var(--transition);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

@media (max-width: 768px) {
    .pretzel-image {
        max-width: 350px;
    }
}

/* Salt Dots Container */
.salt-dots-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.salt-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--white);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
    z-index: 3;
    transform: translate(-50%, -50%);
}

.salt-dot:hover {
    transform: translate(-50%, -50%) scale(1.4);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.salt-dot.pulsing {
    animation: pulse 1.5s ease-in-out infinite;
}

.salt-dot.removed {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.6);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    }
}

/* Coupon Styles */
.coupon-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    cursor: pointer;
    filter: drop-shadow(0 16px 48px rgba(0, 0, 0, 0.3));
}

.coupon {
    position: relative;
    width: 400px;
    height: 240px;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.coupon.flipped {
    transform: rotateY(180deg);
}

.coupon-front,
.coupon-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    overflow: hidden;
}

.coupon-back {
    transform: rotateY(180deg);
}

.coupon-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .coupon {
        width: 300px;
        height: 180px;
    }
}

/* Confetti Animation */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--pretzel-orange);
    animation: confetti-fall 3s linear forwards;
    z-index: 1;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-50px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(50px) rotate(720deg);
        opacity: 0;
    }
}

/* Hero Text Layout */
.hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0; /* Reduced from 0.05rem to 0 - no gap at all */
    max-width: 100%;
    margin-top: 0; /* Reduced from -0.1rem to 0 */
}

.main-title {
    font-size: clamp(3rem, 10vw, 5.5rem);
    font-weight: 900;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.subtitle {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--text-dark);
    margin: 0;
    font-weight: 500;
    line-height: 1.2;
    opacity: 0.8;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Desktop-only margin for subtitle */
@media (min-width: 769px) {
    .hero-text p {
        margin-bottom: 3.5rem;
    }
}

@media (max-width: 768px) {
    .hero-text {
        gap: 0.3rem;
    }
    
    .main-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }
    
    .subtitle {
        font-size: clamp(1rem, 3vw, 1.5rem);
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 16px;
}

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

.btn-primary:hover {
    background: #e06a1a;
    border-color: #e06a1a;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--pretzel-orange);
    border-color: var(--pretzel-orange);
}

.btn-secondary:hover {
    background: var(--pretzel-orange);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Projects Section */
.projects {
    padding: 1rem 0;
    background: var(--white);
    margin: 0 -20px; /* Extend beyond container to cover full width */
    padding-left: 20px;
    padding-right: 20px;
}

.projects h2 {
    text-align: center;
    margin-bottom: 1rem;
}

/* Projects Grid - Desktop Layout */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Force 4 columns */
    gap: 1.5rem; /* Reduced gap to fit better */
    max-width: 1200px;
    margin: 0 auto;
}

.projects-grid .project-card {
    margin: 0; /* Remove margin for grid layout */
    min-width: auto; /* Remove min-width constraint */
}

.projects-grid .project-image {
    height: 0;
    padding-bottom: 70%; /* Reduced from 100% to match carousel and eliminate unnecessary space */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px 16px 0 0; /* Match the top corners of the project card */
    overflow: hidden; /* Ensure content doesn't peek out */
}

.projects-grid .project-image img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px; /* Slightly smaller radius for the image itself */
}

/* Projects Carousel - Mobile Layout */
.projects-carousel {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    display: none; /* Hidden by default, shown on mobile */
    text-align: center; /* Center the carousel */
}

.carousel-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 600px; /* Limit width for better mobile experience */
    margin: 0 auto; /* Center the carousel */
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease-out;
    width: 100%;
}

.carousel-track .project-card {
    flex: 0 0 100%; /* Each project takes full width */
    width: 100%;
    padding: 0 2rem; /* Increased padding to give more space for images */
    box-sizing: border-box;
}

/* Minimalistic Arrow Styling */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: var(--pretzel-orange);
    font-size: 2rem;
    font-weight: bold;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    /* No shadows to prevent bleeding */
    line-height: 1; /* Ensure proper vertical centering */
    padding: 0; /* Remove any default padding */
}

.carousel-arrow:hover {
    background: var(--pretzel-orange);
    color: white;
    transform: translateY(-50%) scale(1.1);
    /* No hover shadow to prevent bleeding */
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    .carousel-track .project-card {
        padding: 0 1rem; /* Balanced padding for mobile */
    }
    
    .carousel-arrow {
        width: 36px;
        height: 36px;
        font-size: 1.5rem;
    }
    
    .carousel-prev {
        left: 5px;
    }
    
    .carousel-next {
        right: 5px;
    }
    
    /* Adjust carousel container for mobile */
    .carousel-container {
        margin: 0 20px; /* Add margin to make room for arrows */
        max-width: calc(100% - 40px); /* Adjust max-width for mobile */
    }
    
    /* Extend white background on mobile */
    .contact-button-section,
    .projects {
        margin: 0 -16px; /* Extend beyond container on mobile */
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* Project Cards */
.project-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    min-width: 0; /* Allow cards to shrink */
    position: relative; /* Ensure proper shadow containment */
    /* No shadows to prevent any bleeding */
}

.project-card:hover {
    transform: translateY(-8px);
    /* No hover shadow to prevent bleeding */
}

.project-image {
    width: 100%;
    height: 0;
    padding-bottom: 70%; /* Reduced from 100% to eliminate unnecessary vertical space */
    position: relative;
    background: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px 16px 0 0; /* Match the top corners of the project card */
    overflow: hidden; /* Ensure content doesn't peek out */
}

.project-image img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%; /* Ensure image fits within container */
    max-height: 90%; /* Ensure image fits within container */
    width: auto;
    height: auto;
    object-fit: contain; /* Show full image without cropping */
    border-radius: 12px; /* Slightly smaller radius for the image itself */
}

.project-content {
    padding: 1rem; /* Reduced from 1.25rem to 1rem */
}

.project-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem; /* Reduced from 0.5rem to 0.25rem */
    color: var(--text-dark);
}

.project-description {
    color: var(--gray-medium);
    font-size: 13px;
    line-height: 1.3; /* Reduced from 1.4 to 1.3 */
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--cream); /* Changed from var(--white) to var(--cream) */
    padding: 1rem 0;
}

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

.footer-bio p {
    font-size: 18px;
    max-width: 600px;
    line-height: 1.6;
    color: var(--cream); /* Ensure text is cream */
}

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

.footer-social a {
    color: var(--cream); /* Changed from var(--white) to var(--cream) */
    transition: var(--transition);
    padding: 8px;
    border-radius: 8px;
}

.footer-social a:hover {
    color: var(--pretzel-orange);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Utility Classes */
.hidden {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        gap: 1rem;
    }
    
    /* Show carousel on mobile, hide grid */
    .projects-grid {
        display: none;
    }
    
    .projects-carousel {
        display: block;
    }
    
    .project-card {
        min-width: 0;
        margin: 0;
        padding: 0 0.25rem; /* Reduce padding on mobile */
    }
    
    /* Ensure navigation arrows are visible on mobile */
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-prev {
        left: 5px;
    }
    
    .carousel-next {
        right: 5px;
    }
    
    /* Adjust carousel container for mobile */
    .carousel-container {
        margin: 0 20px; /* Add margin to make room for arrows */
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero {
        padding: 0.25rem 0 0.5rem 0; /* Reduced from 0.5rem 0 1rem 0 */
        min-height: 50vh; /* Reduced from 60vh to 50vh */
    }
    
    .projects {
        padding: 0.75rem 0; /* Reduced from 1.5rem 0 */
    }
    
    .footer {
        padding: 0.75rem 0; /* Reduced from 1.5rem 0 */
    }
    
    .footer-social {
        gap: 1rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles */
.btn:focus,
.nav-link:focus,
.carousel-btn:focus,
.salt-dot:focus {
    outline: 2px solid var(--pretzel-orange);
    outline-offset: 2px;
}

/* About Section */
.about {
    padding: 2rem 0;
    background: var(--white);
}

.about h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.bio-image {
    text-align: center;
    margin-bottom: 0;
    display: flex;
    justify-content: center;
}

.profile-photo {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--cream);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.greeting {
    text-align: center;
    color: var(--text-dark);
    font-size: 2rem;
    font-weight: 600;
    margin: 0.5rem 0 1rem 0;
    font-family: 'Quicksand', sans-serif;
}

.bio-section h3,
.skills-section h3 {
    color: var(--pretzel-orange);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.bio-section p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    background: var(--cream);
    color: var(--pretzel-orange);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 2px solid var(--pretzel-orange);
    transition: var(--transition);
}

.skill-tag:hover {
    background: var(--pretzel-orange);
    color: var(--white);
    transform: translateY(-2px);
}

/* Work Experience */
.work-experience h3 {
    color: var(--pretzel-orange);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.experience-card {
    background: var(--white);
    border: 2px solid var(--cream);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.experience-card:hover {
    border-color: var(--pretzel-orange);
    transform: translateY(-4px);
}

.experience-header {
    margin-bottom: 1rem;
}

.experience-header h4 {
    color: var(--text-dark);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.role {
    color: var(--pretzel-orange);
    font-weight: 500;
    font-size: 1rem;
}

.summary {
    color: var(--gray-medium);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.key-impact h5 {
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.key-impact ul {
    list-style: none;
    padding: 0;
}

.key-impact li {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.key-impact li::before {
    content: "•";
    color: var(--pretzel-orange);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Contact Section */
.contact {
    padding: 2rem 0;
    background: var(--cream);
}

.contact h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    gap: 2rem;
}

.contact-item h3 {
    color: var(--pretzel-orange);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.contact-link {
    display: block;
    text-align: center;
    color: var(--text-dark);
    font-size: 1.2rem;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

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

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dark);
    text-decoration: none;
    padding: 1rem 1.5rem;
    background: var(--white);
    border-radius: 12px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.social-link:hover {
    color: var(--pretzel-orange);
    border-color: var(--pretzel-orange);
    transform: translateY(-2px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* Responsive Design for About and Contact */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .profile-photo {
        width: 200px;
        height: 200px;
    }
    
    .experience-card {
        padding: 1.5rem;
    }
    
    .skills-grid {
        justify-content: center;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .social-link {
        min-width: 200px;
        justify-content: center;
    }
}

/* Clipboard Popup Styles */
.clipboard-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: var(--white);
    color: var(--text-dark);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid var(--cream);
}

.clipboard-popup.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.clipboard-popup svg {
    color: var(--pretzel-orange);
    flex-shrink: 0;
}

.clipboard-popup span {
    white-space: nowrap;
}

.site-legal{display:flex;flex-wrap:wrap;justify-content:center;gap:.75rem 1.25rem;padding:1.25rem;color:inherit;font-size:1rem}.site-legal a{color:inherit;text-decoration:underline;text-underline-offset:.2em}.business-blurb{max-width:43rem;margin:.5rem auto 1.75rem;text-align:center;line-height:1.6}.policy-content{max-width:46rem;margin:0 auto;padding:3rem 1.25rem 4rem;line-height:1.65}.policy-content h1{font-size:clamp(2.2rem,6vw,3.5rem);margin:.2em 0 .45em;line-height:1.08}.policy-content h2{font-size:1.35rem;margin:1.4em 0 .3em}.policy-content a{color:inherit;text-underline-offset:.2em}.policy-eyebrow{text-transform:uppercase;letter-spacing:.12em;font-weight:700;font-size:.875rem}.policy-content p{font-size:1rem}
