/* Finally October - Web Development Company Styles */

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

/* CSS Variables for Colors */
:root {
    --raisin-black: #2D2928;
    --coyote: #7F705E;
    --papaya-whip: #FDEBCC;
    --rust: #AB5631;
    --teal: #58a4b0;
    --cerulean: #007EA7;
    --moonstone: #58A4B0;
    --sky-blue: #8ACDEA;
    --azul: #016FB9;
    --air-superiority-blue: #6CA6C1;
    --verdigris: #05A8AA;
    
    /* Typography */
    --font-primary: 'Libre Baskerville', serif;
    --font-secondary: 'Open Sans', sans-serif;
    
    /* Spacing */
    --section-padding: 80px 0;
    --container-max-width: 1200px;
    --border-radius: 8px;
    
    /* Shadows */
    --shadow-light: 0 2px 10px rgba(45, 41, 40, 0.1);
    --shadow-medium: 0 4px 20px rgba(45, 41, 40, 0.15);
    --shadow-heavy: 0 8px 30px rgba(45, 41, 40, 0.2);
}

/* Base Typography */
body {
    font-family: var(--font-secondary);
    line-height: 1.6;
    color: var(--raisin-black);
    background-color: var(--papaya-whip);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.3;
    color: var(--raisin-black);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.3rem; }

p {
    margin-bottom: 1rem;
    color: var(--coyote);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--border-radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
}

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

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

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

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

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--raisin-black) !important; /* Always brown */
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-light);
    transition: none !important;
    display: block;
    min-height: 112px; /* 88px logo + 24px margin */
    box-sizing: border-box;
    padding-top: 20px; /* Add top padding to header to prevent logo from touching the top */
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-text {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--raisin-black);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--papaya-whip) !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--teal) !important;
}

/* Mobile Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--papaya-whip);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 180px 0 100px; /* Increased top padding for more space from header */
    background: linear-gradient(135deg, var(--papaya-whip) 0%, rgba(127, 112, 94, 0.05) 50%, rgba(88, 164, 176, 0.1) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="%23AB5631" opacity="0.1"/><circle cx="50" cy="50" r="1" fill="%237F705E" opacity="0.1"/><circle cx="80" cy="80" r="1" fill="%2358a4b0" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex-direction: column-reverse;
}

.hero-text {
    animation: slideInLeft 1s ease-out;
    text-align: left; /* Left align for desktop */
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    color: var(--raisin-black);
    font-weight: 700;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(45, 41, 40, 0.1);
    background: linear-gradient(135deg, var(--raisin-black) 0%, var(--rust) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--rust);
    margin-bottom: 2rem;
    font-weight: 600;
    font-family: var(--font-primary);
    position: relative;
}

.highlighted-word {
    position: relative;
}

.highlighted-word::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--rust), var(--teal));
    border-radius: 2px;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--coyote);
    margin-bottom: 3rem;
    line-height: 1.8;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.hero-buttons .btn {
    font-size: 1.1rem;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.hero-buttons .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.hero-buttons .btn:hover::before {
    left: 100%;
}

.hero-image {
    position: relative;
    animation: slideInRight 1s ease-out;
    margin-bottom: 2rem;
    order: -1;
}

.hero-image-art {
    border-radius: 20px !important;
    box-shadow: 0 20px 60px rgba(45, 41, 40, 0.3) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 2;
}

.hero-image-art:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 80px rgba(45, 41, 40, 0.4) !important;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    background: linear-gradient(135deg, var(--teal), var(--rust));
    border-radius: 20px;
    opacity: 0.3;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}

.hero-image::after {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    background: linear-gradient(45deg, var(--rust), var(--cerulean));
    border-radius: 20px;
    opacity: 0.2;
    z-index: 1;
    animation: float 6s ease-in-out infinite reverse;
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

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

.section-title {
    margin-bottom: 1rem;
    color: var(--raisin-black);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--coyote);
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    padding: var(--section-padding);
    background-color: white;
}

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

.service-card {
    background: var(--papaya-whip);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--teal);
}

.service-icon {
    height: 80px !important;
    width: auto !important;
    margin-bottom: 1.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.service-title {
    margin-bottom: 1rem;
    color: var(--raisin-black);
}

.service-description {
    color: var(--coyote);
    line-height: 1.7;
}

/* About Section */
.about {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--papaya-whip) 0%, rgba(88, 164, 176, 0.1) 100%);
    position: relative;
    overflow: hidden;
}

/* Subtle decorative elements */
.about::before {
    content: '';
    position: absolute;
    top: 20%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(88, 164, 176, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: gentleFloat 15s ease-in-out infinite;
}

.about::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: -5%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(171, 86, 49, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: gentleFloat 20s ease-in-out infinite reverse;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.about-content {
    flex-direction: column-reverse;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.about-features {
    display: grid;
    gap: 1.5rem;
}

.feature {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(88, 164, 176, 0.1);
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateX(8px);
    padding-left: 8px;
    border-left: 3px solid var(--teal);
}

.feature h4 {
    color: var(--teal);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.feature p {
    color: var(--coyote);
    margin: 0;
}

/* Enhanced Polaroid Photo Display */
.about-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
}

/* Subtle cork board background */
.about-image::before {
    content: '';
    position: absolute;
    width: 420px;
    height: 350px;
    background: 
        radial-gradient(circle at 25% 25%, rgba(139, 119, 101, 0.08) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(139, 119, 101, 0.08) 1.5px, transparent 1.5px),
        radial-gradient(circle at 50% 10%, rgba(139, 119, 101, 0.06) 1px, transparent 1px),
        linear-gradient(135deg, rgba(217, 196, 166, 0.15) 0%, rgba(194, 178, 128, 0.1) 100%);
    border-radius: 12px;
    z-index: 0;
    opacity: 0.7;
    box-shadow: inset 0 2px 8px rgba(139, 119, 101, 0.08);
}

.polaroid-frame {
    position: relative;
    background: linear-gradient(145deg, #fafafa 0%, #f5f5f5 100%);
    padding: 28px 28px 80px 28px;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.15),
        0 8px 20px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(0, 0, 0, 0.03);
    border-radius: 6px;
    transform: rotate(-2deg);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: gentleFloat 10s ease-in-out infinite;
    max-width: 460px;
    cursor: pointer;
    z-index: 3;
    border: 1px solid rgba(255, 255, 255, 0.7);
}

/* Realistic photo frame effect */
.polaroid-frame::before {
    content: '';
    position: absolute;
    top: -12px;
    right: 35px;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, #e74c3c 35%, #c0392b 75%);
    border-radius: 50%;
    box-shadow: 
        0 3px 6px rgba(0, 0, 0, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
    z-index: 4;
    transition: all 0.3s ease;
}

/* Handwritten caption */
.polaroid-frame::after {
    content: 'Carmen & Robert Snow\A"Finally October" - NW Arkansas';
    position: absolute;
    bottom: 22px;
    left: 28px;
    right: 28px;
    text-align: center;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #2d2d2d;
    white-space: pre-line;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.7);
    transform: rotate(1deg);
    letter-spacing: 0.3px;
    font-weight: 500;
}

.polaroid-frame:hover {
    transform: rotate(0deg) scale(1.08);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.2),
        0 15px 30px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 0 25px rgba(88, 164, 176, 0.15);
    animation-play-state: paused;
}

.polaroid-frame:hover::before {
    transform: scale(1.1);
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

.about-image-art {
    width: 100%;
    height: auto;
    max-width: 404px;
    border-radius: 4px;
    display: block;
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
    filter: 
        sepia(0.05) 
        contrast(1.06) 
        brightness(1.02) 
        saturate(0.96)
        hue-rotate(-1deg);
}

.polaroid-frame:hover .about-image-art {
    filter: 
        sepia(0.02) 
        contrast(1.08) 
        brightness(1.04) 
        saturate(1.01)
        hue-rotate(0deg);
}

/* Floating animation for decorative elements */
@keyframes gentleFloat {
    0%, 100% {
        transform: rotate(-2deg) translateY(0px);
    }
    33% {
        transform: rotate(-1deg) translateY(-6px);
    }
    66% {
        transform: rotate(-3deg) translateY(-3px);
    }
}

/* Contact Section */
.contact {
    padding: var(--section-padding);
    background-color: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    margin-bottom: 1rem;
    color: var(--raisin-black);
}

.contact-info p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-item strong {
    color: var(--teal);
    font-family: var(--font-primary);
}

/* Contact Form */
.contact-form {
    background: var(--papaya-whip);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--raisin-black);
    font-family: var(--font-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--coyote);
    border-radius: var(--border-radius);
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(88, 164, 176, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background-color: var(--raisin-black);
    color: var(--papaya-whip);
    padding: 3rem 0 1rem;
}

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

.footer-brand h3 {
    color: var(--papaya-whip);
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--coyote);
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.footer-column h4 {
    color: var(--teal);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul li a {
    color: var(--coyote);
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--teal);
}

.footer-bottom {
    border-top: 1px solid var(--coyote);
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--coyote);
    margin: 0;
}

/* Footer thank you message color matches brand (papaya whip) */
.footer-bottom .footer-thankyou {
    color: var(--papaya-whip);
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Navigation */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--papaya-whip);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-medium);
        padding: 2rem 0;
    }

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

    .nav-menu li {
        margin: 1rem 0;
    }

    .nav-link {
        color: #3a2a1a !important; /* dark brown for contrast on mobile */
        font-weight: 600;
        font-size: 1.1rem;
    }

    .nav-link:hover, .nav-link:focus {
        color: #b86b2b !important; /* accent color on interaction */
    }

    .hamburger {
        display: flex;
    }

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

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Hero */
    .hero {
        padding: 160px 0 80px; /* Even more top padding for mobile spacing */
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
        flex-direction: column-reverse;
    }

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

    .hero-image {
        margin-bottom: 2rem;
        order: -1;
    }

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

    .hero-subtitle {
        font-size: 1.4rem;
        text-align: center;
        position: relative;
        display: inline-block;
    }

    .highlighted-word::after {
        bottom: -6px; /* Slightly closer for mobile */
        height: 2px; /* Slightly thinner for mobile */
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image::before,
    .hero-image::after {
        display: none;
    }

    /* About */
    .about::before,
    .about::after {
        display: none; /* Hide decorative elements on mobile */
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        order: -1;
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .polaroid-frame {
        max-width: 280px;
        animation: none; /* Disable animations on mobile for performance */
        transform: rotate(-1deg);
        padding: 18px 18px 50px 18px;
    }
    
    .polaroid-frame:hover {
        transform: rotate(0deg) scale(1.05);
    }
    
    .about-image-art {
        max-width: 244px;
    }
    
    .feature:hover {
        transform: none; /* Disable hover transforms on mobile */
        padding-left: 0;
        border-left: none;
    }

    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    /* Typography */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }

    /* Sections */
    :root {
        --section-padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }

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

    .hero-description {
        font-size: 1rem;
    }

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

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        font-size: 1rem;
        padding: 14px 28px;
    }

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

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

    .contact-form {
        padding: 1.5rem;
    }
}

/* Mobile navbar link styling already handled in main responsive section */

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

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

::-webkit-scrollbar-track {
    background: var(--papaya-whip);
}

::-webkit-scrollbar-thumb {
    background: var(--teal);
    border-radius: 4px;
}

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

/* Focus styles for accessibility */
*:focus {
    outline: 2px solid var(--teal);
    outline-offset: 2px;
}

/* Animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
