:root {
    --primary: #D7AA58;
    --primary-light: #FCEA86;
    --primary-dark: #C68C2E;
    --bg-cream: #FFFCF5;
    --bg-cream-dark: #EEDFC2;
    --text-dark: #4A2D0B;
    --text-brown: #6A3E11;
}

@font-face {
    font-family: 'RatingFont';
    src: url('assets/front/english.ttf') format('truetype');
}

/* Dansal Akuru wala front eka methano huuuuuuu */
@font-face {
    font-family: 'SinhalaFont';
    src: url('assets/front/39.ttf') format('truetype');
}

.sinhala-font {
    font-family: 'SinhalaFont', sans-serif !important;
}

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    background-color: var(--bg-cream);
    color: var(--text-dark);
}

img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

h1,
h2,
h3 {
    font-family: 'Outfit', sans-serif;
}

.glass-card {
    background: rgba(255, 252, 245, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(215, 170, 88, 0.2);
    box-shadow: 0 8px 32px 0 rgba(74, 45, 11, 0.05);
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float 8s ease-in-out infinite;
    animation-delay: 1s;
}

.gradient-bg {
    background: radial-gradient(circle at 80% 20%, rgba(215, 170, 88, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 10% 80%, rgba(252, 234, 134, 0.15) 0%, transparent 40%);
}

.hero-blob {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(232, 201, 120, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    filter: blur(40px);
}

.gold-gradient-btn {
    background: linear-gradient(135deg, #E2B660 0%, #C68C2E 100%);
    color: white;
}

.gold-gradient-btn:hover {
    background: linear-gradient(135deg, #f0c575 0%, #d49a3a 100%);
}

.pink-gradient-text {
    background: linear-gradient(135deg, #F344D5 0%, #D240F9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gold-gradient-text {
    background: linear-gradient(135deg, #D7AA58 0%, #C68C2E 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.yellow-glow {
    filter: drop-shadow(0 0 10px rgba(245, 218, 76, 0.4));
}

.pink-glow {
    filter: drop-shadow(0 0 10px rgba(242, 161, 214, 0.4));
}

.cyan-glow {
    filter: drop-shadow(0 0 10px rgba(156, 229, 240, 0.4));
}

.warm-red-gradient {
    background: linear-gradient(135deg, #FC7063 0%, #ff9a8b 100%);
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.stagger-reveal>* {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger-reveal.active>* {
    opacity: 1;
    transform: translateY(0);
}

.stagger-reveal.active>*:nth-child(1) {
    transition-delay: 0.1s;
}

.stagger-reveal.active>*:nth-child(2) {
    transition-delay: 0.2s;
}

.stagger-reveal.active>*:nth-child(3) {
    transition-delay: 0.3s;
}

.stagger-reveal.active>*:nth-child(4) {
    transition-delay: 0.4s;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

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

/* Developer Section Styles */
.dev-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3.5rem;
}

.dev-card {
    position: relative;
    width: 100px;
    height: 100px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.dev-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background-color: #fff;
    border: 3px solid transparent;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: grayscale(100%);
}

.dev-card:hover,
.dev-card:focus {
    z-index: 100;
    outline: none;
}

.dev-card:hover .dev-avatar,
.dev-card:focus .dev-avatar {
    filter: grayscale(0%);
    border-color: var(--primary);
    transform: translateY(-10px) scale(1.15);
    box-shadow: 0 20px 40px rgba(74, 45, 11, 0.15);
}

.dev-info-overlay {
    position: absolute;
    top: 105%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #FFFCF5;
    backdrop-filter: blur(10px);
    padding: 12px 18px;
    border-radius: 16px;
    border: 1px solid rgba(215, 170, 88, 0.4);
    box-shadow: 0 15px 35px rgba(74, 45, 11, 0.15);
    width: max-content;
    max-width: 220px;
    opacity: 0;
    pointer-events: none;
    z-index: 110;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dev-card:hover .dev-info-overlay,
.dev-card:focus .dev-info-overlay {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.dev-name {
    display: block;
    color: #4A2D0B;
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.3;
    margin-bottom: 4px;
    text-align: center;
}

[id^="verified-"] {
    display: inline-block !important;
    vertical-align: middle;
}

.dev-title {
    display: block;
    color: #8C6239;
    font-size: 0.7rem;
    line-height: 1.2;
    font-weight: 500;
    opacity: 0.9;
}

/* Tooltip Arrow */
.dev-info-overlay::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid rgba(215, 170, 88, 0.3);
}

@media (max-width: 768px) {
    .dev-card {
        width: 80px;
        height: 80px;
    }

    /* Mobile Scroll highlight */
    .dev-card.mobile-active .dev-avatar {
        filter: grayscale(0%);
        border-color: var(--primary);
        transform: scale(1.1);
        box-shadow: 0 10px 20px rgba(74, 45, 11, 0.15);
    }
}

/* Ratings Section Styles */
.rating-card {
    background: #FFFFFF;
    padding: 1.5rem;
    border-radius: 20px;
    width: 400px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    font-family: 'RatingFont', sans-serif !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px solid #EDEDED;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}


.rating-card * {
    font-family: 'RatingFont', sans-serif !important;
}

.rating-card:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.rating-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.rating-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rating-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    background: #000;
}

.rating-name-date {
    display: flex;
    flex-direction: column;
}

.rating-user-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: #000;
    margin-bottom: -2px;
}

.rating-date {
    font-size: 0.85rem;
    color: #6c757d;
}

.rating-source-icon {
    width: 26px;
    height: 26px;
}


.rating-stars-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-stars {
    display: flex;
    gap: 2px;
}

.rating-star-icon {
    width: 18px;
    height: 18px;
    color: #FFD700;
    /* Yellow stars */
    fill: #FFD700;
}


.verified-badge {
    width: 16px;
    height: 16px;
    color: white;
    fill: #3897F0;
}


.rating-text {
    font-size: 1rem;
    line-height: 1.4;
    color: #000;
    font-weight: 500;
    margin-top: 4px;
}

#ratings-track {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}


@media (max-width: 768px) {
    .rating-card {
        width: 320px;
        padding: 1.25rem;
    }
}

/* FAQ Section Styles */
.faq-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(74, 45, 11, 0.08);
}

.faq-question i {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Navbar & Header Styles */
header {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled {
    padding-top: 1rem;
}

#navbar {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled #navbar {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 40px rgba(74, 45, 11, 0.1);
    border-radius: 999px;
    max-width: 1200px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    margin-top: 0;
}

@media (max-width: 768px) {
    header.scrolled #navbar {
        width: 92%;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

.nav-link-active {
    background: rgba(215, 170, 88, 0.1);
    color: var(--primary) !important;
}

/* Fix for Sinhala font in Navbar */
.sinhala-font {
    font-family: 'SinhalaFont', sans-serif !important;
    letter-spacing: 0.05em;
}