html {
    scroll-behavior: smooth;
}
* {
}

.active-nav {
    color: #ff9900;
}
:root {
    --fade-distance: 30px;
    --fade-duration: 0.8s;
    --fade-timing: cubic-bezier(0.25, 0.1, 0.25, 1);
    --primary: #ff9900;
    --primary-dark: #e68a00;
    --primary-light: #ffad33;
    --white: #ffffff;
    --dark: #333333;
    --gray: #f5f5f5;
    --shadow: rgba(0, 0, 0, 0.1);
    --gradient-color-1: #ff9900;
    --gradient-color-2: #ff3030;
    --gradient-color-3: #ffad33;
    --animation-speed: 8s;
    --portal-orange: #ff7700;
    --portal-gold: #ffcc00;
    --portal-amber: #ff9900;
}

.gradient-text {
    background: linear-gradient(
        90deg,
        var(--gradient-color-1),
        var(--gradient-color-2)
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.back-btn {
    transition: all 0.3s ease;
}

.back-btn:hover {
    transform: translateX(-5px);
}

.service-item {
    position: relative;
    padding-left: 1.5rem;
}

.service-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 0.5rem;
    height: 0.5rem;
    background: var(--primary);
    border-radius: 50%;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 0.5rem;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item.large {
    grid-column: span 2;
}

.project-info-card {
    background: linear-gradient(145deg, var(--color-darker), var(--color-dark));
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.tag {
    background-color: rgba(255, 153, 0, 0.2);
    color: var(--primary);
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-block;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.divider {
    height: 1px;
    background: linear-gradient(
        90deg,
        rgba(255, 153, 0, 0),
        rgba(255, 153, 0, 0.5),
        rgba(255, 153, 0, 0)
    );
    margin: 1.5rem 0;
}

@media (max-width: 768px) {
    .image-gallery {
        grid-template-columns: 1fr;
    }

    .gallery-item.large {
        grid-column: span 1;
    }
}
/* navbar */
.navbar {
    background: rgba(0, 0, 0, 0.8);
}
/* Fade-in animation base styles */
.fade-in {
    opacity: 0;
    transform: translateY(var(--fade-distance));
    transition: opacity var(--fade-duration) var(--fade-timing),
        transform var(--fade-duration) var(--fade-timing);
    will-change: opacity, transform;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
/* Demo styles */
.demo-element {
    padding: 2rem;
    background-color: #e6f7ff;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
}

.demo-staggered > * {
    opacity: 0;
    transform: translateY(var(--fade-distance));
}
.radial-mask-left {
    background: #000000;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0) 85%,
        rgba(0, 0, 0, 1) 100%
    );
    pointer-events: none; /* Allow clicks to pass through */
}
.radial-mask-right {
    background: #000000;
    background: linear-gradient(
        -90deg,
        rgba(0, 0, 0, 0) 85%,
        rgba(0, 0, 0, 1) 100%
    );
    pointer-events: none; /* Allow clicks to pass through */
}

.bg-grid-lines {
    background-image: linear-gradient(
            to right,
            rgba(245, 245, 245, 0.07) 1px,
            transparent 1px
        ),
        linear-gradient(
            to bottom,
            rgba(245, 245, 245, 0.07) 1px,
            transparent 1px
        );
    background-size: 40px 40px; /* size of each grid cell */
}

/* Mask overlay */
.black-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: .7;
    pointer-events: none; /* Allow clicks to pass through */
    z-index: 2;
    mix-blend-mode: normal;
}

/* Typewriter base styles */
.typewriter {
    position: relative;
    display: inline-block;
    color: inherit;
    overflow: hidden;
    white-space: nowrap;
    border-right: 0.15em solid transparent;
}
/* Base Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
    font-family: inherit;
}

/* Button Variations */

/* 1. Default Button */
.btn-default {
    background-color: var(--primary);
    color: var(--white);
}

.btn-default:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 153, 0, 0.3);
}

.btn-default:active {
    transform: translateY(0);
}

/* 2. Outline Button */
.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 8px rgba(255, 153, 0, 0.3);
}

/* 3. Ghost Button */
.btn-ghost {
    background-color: transparent;
    color: var(--primary);
}

.btn-ghost:hover {
    background-color: rgba(255, 153, 0, 0.1);
    transform: translateY(-2px);
}

/* 4. Rounded Button */
.btn-rounded {
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50px;
}

.btn-rounded:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 4px 8px rgba(255, 153, 0, 0.3);
    transform: translateY(-2px);
}

/* 5. Gradient Button */
.btn-gradient {
    background: linear-gradient(45deg, var(--primary), var(--primary-light));
    color: var(--white);
}

.btn-gradient:hover {
    background: linear-gradient(45deg, var(--primary-dark), var(--primary));
    box-shadow: 0 4px 8px rgba(255, 153, 0, 0.3);
    transform: translateY(-2px);
}

/* 6. Shadow Button */
.btn-shadow {
    background-color: var(--white);
    color: var(--primary);
    box-shadow: 0 4px 6px rgba(255, 153, 0, 0.2);
}

.btn-shadow:hover {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 6px 12px rgba(255, 153, 0, 0.3);
    transform: translateY(-2px);
}

/* 7. Slide Button */
.btn-slide {
    background-color: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
    z-index: 1;
}

.btn-slide::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--primary);
    transition: all 0.3s ease;
    z-index: -1;
}

.btn-slide:hover {
    color: var(--white);
}

.btn-slide:hover::before {
    width: 100%;
}

/* 8. Pulse Button */
.btn-pulse {
    background-color: var(--primary);
    color: var(--white);
}

.btn-pulse:hover {
    animation: pulse 1s infinite;
    box-shadow: 0 0 0 0.5rem rgba(255, 153, 0, 0);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 153, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 0.5rem rgba(255, 153, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 153, 0, 0);
    }
}

/* 9. 3D Button */
.btn-3d {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 6px 0 var(--primary-dark);
    transform: translateY(-4px);
}

.btn-3d:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 0 var(--primary-dark);
}

.btn-3d:active {
    transform: translateY(0);
    box-shadow: 0 0 0 var(--primary-dark);
}

/* 10. Icon Button */
.btn-icon {
    background-color: var(--primary);
    color: var(--white);
    padding-right: 3rem;
}

.btn-icon::after {
    content: "→";
    position: absolute;
    right: 1.5rem;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-10px);
}

.btn-icon:hover {
    background-color: var(--primary-dark);
    padding-right: 3.5rem;
}

.btn-icon:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* 11. Shine Button */
.btn-shine {
    background-color: var(--primary);
    color: var(--white);
    overflow: hidden;
}

.btn-shine::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.btn-shine:hover::before {
    animation: shine 1s;
}

@keyframes shine {
    0% {
        transform: rotate(45deg) translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: rotate(45deg) translateX(100%);
        opacity: 0.6;
    }
}

/* 12. Border Animation Button */
.btn-border-anim {
    background-color: transparent;
    color: var(--primary);
    border: none;
}

.btn-border-anim::before,
.btn-border-anim::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: all 0.3s ease;
}

.btn-border-anim::before {
    top: 0;
    left: 0;
}

.btn-border-anim::after {
    bottom: 0;
    right: 0;
}

.btn-border-anim:hover::before,
.btn-border-anim:hover::after {
    width: 100%;
}

.btn-border-anim span {
    position: relative;
    display: inline-block;
    width: 100%;
    height: 100%;
}

.btn-border-anim span::before,
.btn-border-anim span::after {
    content: "";
    position: absolute;
    height: 0;
    width: 2px;
    background-color: var(--primary);
    transition: all 0.3s ease;
}

.btn-border-anim span::before {
    top: 0;
    right: 0;
}

.btn-border-anim span::after {
    bottom: 0;
    left: 0;
}

.btn-border-anim:hover span::before,
.btn-border-anim:hover span::after {
    height: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .buttons-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        min-width: 120px;
    }
}

/* Base Gradient Text Styles */
.gradient-text {
    background-size: 300% 300%;
    background-image: linear-gradient(
        45deg,
        var(--gradient-color-1),
        var(--gradient-color-2),
        var(--gradient-color-3),
        var(--gradient-color-2),
        var(--gradient-color-1)
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradient-shift var(--animation-speed) ease infinite;
    display: inline-block;
}

/* Animation for gradient movement */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Variations */
.gradient-text-large {
    font-size: 4rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.gradient-text-medium {
    font-size: 2.5rem;
    letter-spacing: 1px;
}

.gradient-text-small {
    font-size: 1.5rem;
}

/* Different gradient directions */
.gradient-horizontal {
    background-image: linear-gradient(
        90deg,
        var(--gradient-color-1),
        var(--gradient-color-2),
        var(--gradient-color-3),
        var(--gradient-color-2),
        var(--gradient-color-1)
    );
}

.gradient-vertical {
    background-image: linear-gradient(
        180deg,
        var(--gradient-color-1),
        var(--gradient-color-2),
        var(--gradient-color-3),
        var(--gradient-color-2),
        var(--gradient-color-1)
    );
}

.gradient-radial {
    background-image: radial-gradient(
        circle,
        var(--gradient-color-1),
        var(--gradient-color-2),
        var(--gradient-color-3),
        var(--gradient-color-2)
    );
}

/* Animation speed variations */
.gradient-fast {
    --animation-speed: 4s;
}

.gradient-slow {
    --animation-speed: 12s;
}

/* Text with glow effect */
.gradient-glow {
    text-shadow: 0 0 10px rgba(255, 153, 0, 0.5),
        0 0 20px rgba(0, 102, 255, 0.3), 0 0 30px rgba(153, 0, 255, 0.3);
}
/* portal animation */
@keyframes slow-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.rotate-slow {
    animation: slow-spin 20s linear infinite;
}

/* tools icon */
.tools-icon {
    width: 35px;
    height: 35px;
    object: cover;
}

/* project slider */
.slider-container {
    overflow: hidden;
    position: relative;
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.card {
    flex: 0 0 auto;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
}

.slider-nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.slider-nav-button:hover {
    color: white;
}

.prev-button {
    left: 10px;
}

.next-button {
    right: 10px;
}

.progress-dots {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #cbd5e1;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--color-primary);
    width: 20px;
    border-radius: 5px;
}

@media (max-width: 640px) {
    .slider-nav-button {
        width: 40px;
        height: 40px;
    }
}

.gradient-border {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    z-index: -2;
    border-radius: 12px;
    background: linear-gradient(
        45deg,
        var(--gradient-color-1),
        var(--gradient-color-2),
        var(--gradient-color-3),
        var(--gradient-color-1)
    );
    background-size: 400% 400%;
    animation: gradientBorder 3s ease infinite;
}

@keyframes gradientBorder {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Different border width variations */
.border-sm::before {
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
}

.border-md::before {
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
}

.border-lg::before {
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
}

/* Different animation speed variations */
.speed-slow::before {
    animation-duration: 6s;
}

.speed-normal::before {
    animation-duration: 3s;
}

.speed-fast::before {
    animation-duration: 1.5s;
}

/* custom list design */
.custom-list li::marker {
    color: #ff9900; /* Example: yellow-400 */
}

.contact-card {
    background-color: #1e1e1e;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.contact-method {
    background-color: #252525;
    border-radius: 10px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.contact-method:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
    border-left: 3px solid #ff9900;
}

.contact-icon {
    background-color: rgba(255, 153, 0, 0.15);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff9900;
}

.contact-form input,
.contact-form textarea {
    background-color: #252525;
    border: 1px solid #333;
    color: #e0e0e0;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #ff9900;
    box-shadow: 0 0 0 2px rgba(255, 153, 0, 0.2);
    outline: none;
}

.send-btn {
    background-color: #ff9900;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.send-btn:hover {
    background-color: #e68a00;
}

.send-btn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.send-btn:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

.social-icon {
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    color: #ff9900;
}

.contact-divider {
    height: 3px;
    background: linear-gradient(
        90deg,
        rgba(255, 153, 0, 0) 0%,
        rgba(255, 153, 0, 1) 50%,
        rgba(255, 153, 0, 0) 100%
    );
    margin: 2rem 0;
}

.footer {
    background-color: #1a1a1a;
    border-top: 1px solid #333;
}

.footer-wave {
    position: relative;
    height: 70px;
    overflow: hidden;
}

.footer-wave svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.social-icon {
    transition: all 0.3s ease;
    background-color: #252525;
}

.social-icon:hover {
    transform: translateY(-5px);
    background-color: #ff9900;
    color: #121212;
}

.footer-link {
    position: relative;
    transition: all 0.3s ease;
    color: #b0b0b0;
}

.footer-link:hover {
    color: #ff9900;
}

.footer-link::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #ff9900;
    transition: width 0.3s ease;
}

.footer-link:hover::after {
    width: 100%;
}

.newsletter-input {
    background-color: #252525;
    border: 1px solid #333;
    color: #e0e0e0;
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    border-color: #ff9900;
    box-shadow: 0 0 0 2px rgba(255, 153, 0, 0.2);
    outline: none;
}

.subscribe-btn {
    background-color: #ff9900;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.subscribe-btn:hover {
    background-color: #e68a00;
}

.subscribe-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: all 0.6s ease;
    z-index: -1;
}

.subscribe-btn:hover::before {
    left: 100%;
}

.back-to-top {
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    background-color: #ff9900;
}

.footer-divider {
    height: 1px;
    background: linear-gradient(
        90deg,
        rgba(255, 153, 0, 0) 0%,
        rgba(255, 153, 0, 0.5) 50%,
        rgba(255, 153, 0, 0) 100%
    );
}

.theme-toggle {
    position: relative;
    width: 60px;
    height: 30px;
    border-radius: 15px;
    background-color: #252525;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle.active {
    background-color: #ff9900;
}

.toggle-circle {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #fff;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #252525;
}

.theme-toggle.active .toggle-circle {
    left: 33px;
    background-color: #1a1a1a;
    color: #ff9900;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 153, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 153, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 153, 0, 0);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

