/* ============================================
   Putnam Renovations — Custom Styles
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --color-mint-300: #6ee7b7;
    --color-mint-400: #34d4a0;
    --color-mint-500: #059669;
    --color-mint-600: #047857;
    --color-midnight-900: #0a1628;
    --color-midnight-950: #060d1a;
    
    --font-outfit: 'Outfit', sans-serif;
    --font-dm: 'DM Sans', sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-dm);
    background-color: var(--color-midnight-900);
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-midnight-950);
}
::-webkit-scrollbar-thumb {
    background: rgba(52, 212, 160, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(52, 212, 160, 0.5);
}

/* --- Selection --- */
::selection {
    background: rgba(52, 212, 160, 0.3);
    color: #fff;
}

/* --- Utility --- */
.section {
    position: relative;
}

/* --- Badge --- */
.badge-mint {
    background: rgba(52, 212, 160, 0.15);
    color: var(--color-mint-400);
    padding: 0.4em 1em;
    border-radius: 100px;
    border: 1px solid rgba(52, 212, 160, 0.25);
}

/* --- Buttons --- */
.btn-primary {
    background: linear-gradient(135deg, var(--color-mint-400), var(--color-mint-500));
    color: var(--color-midnight-900);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(52, 212, 160, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(52, 212, 160, 0.4);
}
.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(52, 212, 160, 0.4);
    transform: translateY(-2px);
}

/* --- Inputs --- */
.input-field {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 0.875rem 1rem;
    color: #fff;
    font-family: var(--font-dm);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
    width: 100%;
}
.input-field::placeholder {
    color: rgba(255, 255, 255, 0.3);
}
.input-field:focus {
    border-color: var(--color-mint-400);
    background: rgba(52, 212, 160, 0.05);
    box-shadow: 0 0 0 3px rgba(52, 212, 160, 0.1);
}
.input-field option {
    background: var(--color-midnight-900);
    color: #fff;
}

/* --- Navbar --- */
.nav {
    background: rgba(10, 22, 40, 0.6);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
}
.nav.scrolled {
    background: rgba(6, 13, 26, 0.95);
    border-bottom-color: rgba(52, 212, 160, 0.15);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-mint-400);
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}
.nav-link:hover {
    color: var(--color-mint-300) !important;
}

/* --- Background Shapes --- */
.bg-shapes {
    z-index: 0;
}
.shape-1 {
    position: absolute;
    top: 10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(52, 212, 160, 0.06) 0%, transparent 70%);
    border-radius: 50%;
}
.shape-2 {
    position: absolute;
    bottom: 15%;
    left: -8%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(5, 150, 105, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}
.shape-3 {
    position: absolute;
    top: 50%;
    left: 30%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(110, 231, 183, 0.04) 0%, transparent 70%);
    border-radius: 50%;
}
.shape-4 {
    position: absolute;
    top: 70%;
    right: 20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(52, 212, 160, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

/* --- Hero --- */
.hero {
    background: linear-gradient(160deg, #060d1a 0%, #0a1628 30%, #0d1f35 60%, #0a1628 100%);
    position: relative;
}
.hero-orb {
    animation: orbFloat 8s ease-in-out infinite;
}
.hero-orb-2 {
    animation-delay: -3s;
    animation-duration: 10s;
}
.hero-orb-3 {
    animation-delay: -5s;
    animation-duration: 12s;
}
@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -20px) scale(1.05); }
    66% { transform: translate(-15px, 15px) scale(0.95); }
}

.hero-shape {
    animation: shapeFloat 6s ease-in-out infinite;
}
.hero-shape-2 { animation-delay: -1s; animation-duration: 7s; }
.hero-shape-3 { animation-delay: -3s; animation-duration: 5s; }
.hero-shape-4 { animation-delay: -2s; animation-duration: 8s; }
@keyframes shapeFloat {
    0%, 100% { transform: translateY(0) rotate(var(--rot, 12deg)); }
    50% { transform: translateY(-15px) rotate(var(--rot, 12deg)); }
}
.hero-shape-1 { --rot: 12deg; }
.hero-shape-3 { --rot: 45deg; }

/* --- Service Cards --- */
.service-card {
    perspective: 1000px;
}
.service-card > div {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover > div {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* --- Project Cards --- */
.project-card {
    cursor: pointer;
}

/* --- Testimonial Cards --- */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* --- Reveal Animations --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Mobile Menu --- */
.mobile-nav-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- Responsive --- */
@media (max-width: 767px) {
    .hero h1 {
        font-size: 2.75rem;
    }
    .hero h1 br {
        display: none;
    }
    .section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero h1 {
        font-size: 3.5rem;
    }
}

/* --- Print --- */
@media print {
    .bg-shapes, .hero-orb, .hero-shape, .nav {
        display: none;
    }
    body {
        background: #fff;
        color: #000;
    }
}
