/*
Theme Name: ThreeFold Elite
Theme URI: https://3fid.com
Author: ThreeFold Identity
Author URI: https://3fid.com
Description: Premium Brand Consultancy Theme - 100% Custom coded
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: threefold
*/

/* ==========================================
   ELITE AGENCY DESIGN - CUSTOM WORDPRESS
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0F766E;
    --primary-light: #14B8A6;
    --primary-glow: rgba(20, 184, 166, 0.5);
    --dark: #0A0A0A;
    --dark-alt: #121212;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.5);
}

html { scroll-behavior: auto; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--dark);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    cursor: none;
}

/* Custom Cursor */
#cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-light);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transition: all 0.15s ease;
    mix-blend-mode: difference;
}

#cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(20, 184, 166, 0.3);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.3s ease;
}

/* Scroll Progress */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    z-index: 10001;
}

/* Canvas */
#canvas-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    opacity: 0.4;
}

/* Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(10,10,10,0.8);
    backdrop-filter: blur(30px);
    border-bottom: 1px solid var(--glass-border);
    transition: transform 0.6s ease;
}

.site-logo a {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.main-navigation ul {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.main-navigation a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-light);
    transition: width 0.3s ease;
}

.main-navigation a:hover {
    color: var(--primary-light);
}

.main-navigation a:hover::after {
    width: 100%;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    letter-spacing: -1px;
}

h1 {
    font-size: clamp(3rem, 10vw, 8rem);
    line-height: 1;
}

h2 {
    font-size: clamp(2.5rem, 6vw, 5rem);
}

/* Buttons */
.btn {
    padding: 1.3rem 3rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
    cursor: none;
    border: none;
}

.btn-primary {
    background: var(--primary-light);
    color: var(--dark);
    box-shadow: 0 10px 40px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px var(--primary-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--glass-border);
}

.btn-secondary:hover {
    border-color: var(--primary-light);
    background: var(--glass);
}

/* Sections */
.section {
    position: relative;
    padding: 10rem 5%;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 6rem;
}

.section-badge {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Cards */
.card {
    background: var(--glass);
    backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 3.5rem;
    transition: all 0.5s ease;
}

.card:hover {
    transform: translateY(-15px);
    border-color: var(--primary-light);
    box-shadow: 0 30px 80px rgba(20,184,166,0.3);
}

/* Portfolio */
.portfolio-scroll {
    display: flex;
    gap: 3rem;
    padding: 3rem 5%;
}

.portfolio-item {
    min-width: 600px;
    height: 500px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 3rem;
    overflow: hidden;
}

.portfolio-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    opacity: 0.95;
}

.portfolio-content {
    position: relative;
    z-index: 2;
}

.portfolio-item h4 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
}

.portfolio-item p {
    color: rgba(255,255,255,0.95);
}

.portfolio-metrics {
    display: flex;
    gap: 2.5rem;
    margin-top: 2rem;
}

.metric-value {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    display: block;
}

.metric-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.85);
}

/* Testimonials */
.testimonials-carousel {
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial {
    display: none;
    text-align: center;
    padding: 4rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
}

.testimonial.active {
    display: block;
}

.testimonial-quote {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

/* Footer */
.site-footer {
    padding: 5rem 5%;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .main-navigation { display: none; }
    body { cursor: auto; }
    #cursor, #cursor-follower { display: none; }
    .section { padding: 5rem 5%; }
    .portfolio-item { min-width: 90vw; }
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #FFF 0%, var(--primary-light) 50%, var(--primary) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 10s ease infinite;
}

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