@import url('https://fonts.googleapis.com/css2?family=Architects+Daughter&family=Caveat:wght@400;700&display=swap');

/* Pencil Drawing / Sketch Theme */
:root {
    --primary: #333;
    --dark: #222;
    --light: #fdfbf7; /* Paper color */
    --text-muted: #555;
}

body {
    font-family: 'Architects Daughter', cursive;
    background-color: var(--light);
    color: var(--dark);
    scroll-behavior: smooth;
    padding-top: 90px;
    /* Technology Background */
    background-image: url("../images/tech_bg.png");
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    /* Multi-color pencil effect */
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #f9ca24, #ff9ff3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Navbar */
.navbar {
    padding-top: 1rem;
    padding-bottom: 1.5rem; /* Push the menu border down */
    background: rgba(253, 251, 247, 0.8) !important; /* Glass background */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05); /* Subtle shadow */
}

.bg-dark {
    background-color: transparent !important;
    border-bottom: 3px solid #333;
    border-radius: 2px 255px 3px 25px / 255px 5px 225px 3px;
}
.navbar-dark .navbar-nav .nav-link, .navbar-brand {
    color: #333 !important;
    font-size: 1.2rem;
}
.navbar-dark .navbar-nav .nav-link:hover {
}
.text-white {
    color: #333 !important;
}

/* Fix Mobile Navbar Toggle Visibility */
.navbar-toggler {
    border-color: #333 !important;
}
.navbar-toggler-icon {
    filter: invert(1) brightness(0) !important;
}


/* Hero Carousel */
.hero-img {
    height: 80vh;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.2);
    border: 4px solid #333;
    border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
    margin: 20px;
    width: calc(100% - 40px) !important;
}

.carousel-caption {
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    background: rgba(253, 251, 247, 0.8);
    border: 3px solid #333;
    border-radius: 25px 255px 15px 25px / 255px 5px 225px 15px;
    padding: 20px;
    color: #333;
    max-width: 600px;
    margin: 0 auto;
    left: 10%;
    right: 10%;
    box-shadow: 4px 4px 0px #333;
}

/* Buttons */
.btn {
    font-family: 'Architects Daughter', cursive;
    background: transparent;
    color: #333;
    border: 2px solid #333;
    border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
    box-shadow: 3px 3px 0px #333;
    transition: all 0.2s ease;
    font-weight: bold;
}

.btn:hover, .btn-primary:hover, .btn-outline-dark:hover {
    background: #333;
    color: var(--light);
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0px #555;
}

.btn-primary {
    background: #fdfbf7;
    color: #333;
    border-color: #333;
}

.btn-light {
    background: #fff;
    color: #333;
    border-color: #333;
}

/* Sketchy Cards */
.card, .premium-card {
    background: transparent;
    border: 2px solid #333;
    border-radius: 15px 225px 15px 255px/255px 15px 225px 15px;
    box-shadow: 5px 5px 0px #333;
    transition: transform 0.3s ease;
    margin-bottom: 20px;
}

.card:hover, .premium-card:hover {
    transform: translateY(-5px) rotate(-1deg);
    box-shadow: 8px 8px 0px #333;
}

/* Images sketchy */
img {
    filter: grayscale(80%) sepia(20%);
}

/* Ensure logo is original image with no effects */
img[src*="logo.png"] {
    filter: none !important;
}

/* Portfolio Hover */
.portfolio-item {
    position: relative;
    cursor: pointer;
    border: 3px solid #333;
    border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
    overflow: hidden;
    margin-bottom: 30px;
}
.portfolio-item img {
    transition: transform 0.5s ease;
}
.portfolio-item:hover img {
    transform: scale(1.05) rotate(1deg);
}

/* Accordion Styling */
.accordion-button {
    font-family: 'Architects Daughter', cursive;
    background: transparent !important;
    color: #333 !important;
    border: 2px solid #333;
    border-radius: 15px 225px 15px 255px/255px 15px 225px 15px !important;
    margin-bottom: 10px;
    box-shadow: 3px 3px 0px #333;
}
.accordion-item {
    border: none;
    background: transparent;
}

/* WhatsApp Floating Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #fff;
    color: #333;
    width: 60px;
    height: 60px;
    border: 3px solid #333;
    border-radius: 50% 40% 60% 40% / 40% 50% 40% 60%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    z-index: 1000;
    text-decoration: none;
    box-shadow: 4px 4px 0px #333;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.1) rotate(5deg);
    background-color: #f0f0f0;
    color: #000;
}

/* Scroll-to-Top Button */
#scrollTopBtn {
    display: none;
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 999;
    background-color: #fff;
    color: #333;
    border: 3px solid #333;
    border-radius: 40% 60% 50% 40% / 50% 40% 60% 50%;
    cursor: pointer;
    width: 50px;
    height: 50px;
    font-size: 20px;
    box-shadow: 3px 3px 0px #333;
    transition: all 0.3s ease;
}
#scrollTopBtn:hover {
    background-color: #f0f0f0;
    transform: translateY(-3px) rotate(-5deg);
}

/* Sections */
.bg-light, .bg-white {
    background-color: transparent !important;
}

/* Typography Overrides */
.text-primary {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #f9ca24, #ff9ff3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradientShift 5s ease infinite;
}
.text-muted {
    color: #666 !important;
}
.display-4, .display-5 {
    color: #222 !important;
}

/* Footer */
footer.bg-dark {
    background-color: transparent !important;
    border-top: 3px solid #333;
    color: #333 !important;
}
footer a {
    color: #555 !important;
    transition: color 0.3s ease;
}
footer a:hover {
    color: #000 !important;
}
footer .btn-outline-light {
    border-color: #333;
    color: #333;
    border-radius: 50% 40% 60% 40% / 40% 50% 40% 60%;
}
footer .btn-outline-light:hover {
    background: #333;
    color: #fff;
}
footer h4, footer h5 {
    color: #222 !important;
}

/* X Logo Hover Effect */
footer .btn-outline-light img[alt="X"] {
    transition: all 0.3s ease;
    filter: none !important;
}

footer .btn-outline-light:hover img[alt="X"] {
    content: url("https://abs.twimg.com/responsive-web/client-web/icon-ios.77d25eba.png") !important;
    filter: invert(1) !important;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    .carousel-caption {
        width: 90% !important;
        left: 5% !important;
        right: 5% !important;
    }
    .carousel-caption .py-4.px-5 {
        padding: 1.5rem !important;
    }
    .carousel-caption h1.display-4 {
        font-size: 2.2rem;
    }
    .carousel-caption p.lead {
        font-size: 1rem;
    }
    .display-5 {
        font-size: 2.2rem;
    }
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
    #scrollTopBtn {
        width: 40px;
        height: 40px;
        font-size: 18px;
        bottom: 80px;
        right: 20px;
    }
    .navbar {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
}

