:root {
    --primary-color: #0076fe;
    --primary-gradient: linear-gradient(135deg, #0076fe 0%, #00d2ff 100%);
    --secondary-gradient: linear-gradient(135deg, #ff4d4d 0%, #f9cb28 100%);
    --bg-color: #0c0e12;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text-color: #e0e0e0;
    --text-muted: #a0a0a0;
    --accent-color: #00d2ff;
    --font-main: 'Plus Jakarta Sans', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --font-hand: 'Caveat', cursive;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --border-radius: 20px;
    --border-organic: 30% 70% 70% 30% / 30% 30% 70% 70%;
    --section-padding: 100px 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

.texture-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3%3Ffilter id='noiseFilter'%3F%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05;
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.dark-theme {
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

h1 {
    font-size: 4rem;
}

h2 {
    font-size: 3rem;
}

h3 {
    font-size: 2rem;
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hand-written {
    font-family: var(--font-hand);
    font-size: 1.5rem !important;
    letter-spacing: 0;
}

/* Scribble Effect */
.scribble-container {
    position: relative;
    display: inline-block;
}

.scribble {
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100%;
    height: 30px;
    stroke: var(--accent-color);
    stroke-width: 6;
    fill: none;
    stroke-linecap: round;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}

.active .scribble {
    animation: drawScribble 1.5s forwards ease-in-out;
}

@keyframes drawScribble {
    to {
        stroke-dashoffset: 0;
    }
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(0, 118, 254, 0.1);
    color: var(--accent-color);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 118, 254, 0.2);
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

nav.sticky {
    background: rgba(12, 14, 18, 0.85);
    backdrop-filter: blur(10px);
    height: 70px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.container-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 60px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.02);
}

.logo .accent {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: var(--transition);
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.nav-links a:hover {
    color: var(--accent-color);
    opacity: 1;
}

.nav-links li {
    display: flex;
    align-items: center;
}

/* Specific styling for the Contact link in nav if it's a link */
.nav-links a.link-contact {
    color: #fff;
    opacity: 1;
    position: relative;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-links a.link-contact:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
}

.nav-phone {
    display: flex;
    align-items: center;
}

.phone-link {
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    background: var(--primary-gradient);
    padding: 12px 28px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 20px rgba(0, 118, 254, 0.2);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.desktop-only {
    display: block;
}

.nav-phone-mobile {
    display: none;
}

.phone-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 118, 254, 0.4);
    animation: phoneShake 0.5s ease-in-out infinite;
}

@keyframes phoneShake {

    0%,
    100% {
        transform: translateY(-3px) rotate(0deg);
    }

    25% {
        transform: translateY(-3px) rotate(-3deg);
    }

    75% {
        transform: translateY(-3px) rotate(3deg);
    }
}

/* Hero */
.hero {
    position: relative;
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    background-image: url('images/hero.png');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(12, 14, 18, 0.9) 0%, rgba(12, 14, 18, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-text {
    max-width: 700px;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

/* Buttons */
.btn {
    padding: 18px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 10px 20px rgba(0, 118, 254, 0.3);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 118, 254, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Sections */
.section {
    padding: var(--section-padding);
}

.section-alt {
    background: rgba(255, 255, 255, 0.02);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.service-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 118, 254, 0.3);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.service-img {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.hand-note {
    position: absolute;
    font-family: var(--font-hand);
    color: var(--accent-color);
    font-size: 1.4rem;
    background: rgba(12, 14, 18, 0.8);
    padding: 5px 15px;
    border-radius: 10px;
    transform: rotate(-5deg);
    z-index: 5;
    pointer-events: none;
    backdrop-filter: blur(5px);
    border: 1px dashed rgba(0, 210, 255, 0.3);
    animation: wiggle 4s ease-in-out infinite alternate;
}

@keyframes wiggle {
    from {
        transform: rotate(-5deg);
    }

    to {
        transform: rotate(5deg);
    }
}

.top-right {
    top: 20px;
    right: 20px;
    animation-delay: 0.5s;
}

.bottom-left {
    bottom: 20px;
    left: 20px;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-img img {
    transform: scale(1.1);
}

.service-info {
    padding: 30px;
}

.service-info h3 {
    margin-bottom: 15px;
}

.service-info p {
    color: var(--text-muted);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-img {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.about-img img {
    width: 100%;
    border-radius: var(--border-radius);
}

.organic-border {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50% !important;
    animation: morph 10s ease-in-out infinite;
}

@keyframes morph {
    0% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }

    50% {
        border-radius: 70% 30% 50% 50% / 30% 60% 40% 70%;
    }

    100% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }
}

.img-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    background: var(--primary-gradient);
    z-index: -1;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.3;
}

.check-list {
    list-style: none;
    margin-top: 30px;
}

.check-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
    font-weight: 600;
    color: #fff;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    width: 25px;
    height: 25px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.check-list.organic li::before {
    content: '★';
    background: transparent;
    color: var(--accent-color);
    font-size: 1.2rem;
}

.contact-section {
    padding-bottom: 100px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    padding: 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 118, 254, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.contact-header {
    margin-bottom: 50px;
}

.contact-details {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
}

.contact-item .icon {
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.05);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
}

.contact-item h4 {
    margin-bottom: 0;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.contact-item p,
.contact-item a {
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
}

/* Footer */
footer {
    padding: 60px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #fff;
}

/* Animations Core */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-up {
    transform: translateY(40px);
}

.fade-right {
    transform: translateX(-40px);
}

.fade-left {
    transform: translateX(40px);
}

.scale-up {
    transform: scale(0.9);
}

.animate-on-scroll.active.scale-up {
    transform: scale(1);
}

.animate-on-scroll.active.fade-right {
    transform: translateX(0);
}

.animate-on-scroll.active.fade-left {
    transform: translateX(0);
}

/* Mobile */
@media (max-width: 968px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .services-grid,
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-img {
        order: -1;
    }

    .desktop-only {
        display: none !important;
    }

    .nav-phone-mobile {
        display: block;
        margin-left: auto;
        margin-right: 20px;
    }

    .phone-link-mini {
        font-size: 1.5rem;
        text-decoration: none;
        background: var(--primary-gradient);
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        box-shadow: 0 5px 15px rgba(0, 118, 254, 0.3);
    }

    .nav-right {
        display: none;
    }

    .nav-links.active {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(12, 14, 18, 0.98);
        backdrop-filter: blur(20px);
        padding: 60px 40px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 999;
        gap: 40px;
        text-align: center;
        animation: slideIn 0.3s forwards ease-out;
    }

    @keyframes slideIn {
        from {
            transform: translateY(-20px);
            opacity: 0;
        }

        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    .mobile-menu-btn {
        display: flex !important;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
    }

    .mobile-menu-btn span {
        width: 30px;
        height: 3px;
        background: #fff;
        transition: 0.3s;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .contact-card {
        padding: 40px 20px;
    }

    .contact-details {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }

    .contact-item {
        text-align: center;
        flex-direction: column;
    }
}