/* 
  Clites Tech - Style System 
  Modern Dark Theme with vibrant neon accents and glassmorphism.
*/

:root {
    /* Colors */
    --bg-main: #181a20;
    --bg-alt: #101216;
    --text-main: #ffffff;
    --text-muted: #a0a4b0;
    
    /* Logo Accents */
    --accent-primary: #f25f00; /* Fox Orange */
    --accent-secondary: #ff9500; /* Lighter Orange */
    --gradient-accent: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.5);
    
    /* Typography */
    --font-main: 'Outfit', sans-serif;
    
    /* Spacing */
    --section-padding: 100px 0;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.bg-darker {
    background-color: var(--bg-alt);
}

.section-padding {
    padding: var(--section-padding);
}

/* Typography Utilities */
.text-gradient {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 3rem;
}

.text-center {
    text-align: center;
}
.text-center .section-desc {
    margin-left: auto;
    margin-right: auto;
}

/* Glassmorphism Card Utility */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--glass-shadow);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: rgba(242, 95, 0, 0.4);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(242, 95, 0, 0.15);
}

/* Buttons */
.btn-primary, .btn-primary-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--gradient-accent);
    color: #fff;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.btn-primary-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-primary::before, .btn-primary-sm::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
    z-index: -1;
    transition: opacity 0.4s ease;
    opacity: 0;
}

.btn-primary:hover::before, .btn-primary-sm:hover::before {
    opacity: 1;
}

.btn-primary:hover, .btn-primary-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(242, 95, 0, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--text-main);
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    border: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    border-color: var(--text-main);
    background: rgba(255, 255, 255, 0.1);
}

.w-100 {
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
    padding: 20px 0;
    background: rgba(24, 26, 32, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar.scrolled {
    background: rgba(24, 26, 32, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 15px 0;
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 160px;
    width: auto;
}

.logo-accent {
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a:not(.btn-primary-sm) {
    font-size: 1.1rem;
    font-weight: 600;
    position: relative;
}

.nav-links a:not(.btn-primary-sm):hover {
    color: var(--accent-secondary);
}

.nav-links a:not(.btn-primary-sm)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: width 0.3s ease;
}

.nav-links a:not(.btn-primary-sm):hover::after,
.nav-links a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('../images/backdrop_1.png') no-repeat center center/cover;
    opacity: 0.6;
    z-index: -2;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, transparent, var(--bg-main));
    z-index: -1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    max-width: 800px;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(242, 95, 0, 0.1);
    border: 1px solid rgba(242, 95, 0, 0.3);
    border-radius: 50px;
    color: var(--accent-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-main);
    font-weight: 500;
    margin-bottom: 40px;
    max-width: 600px;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: var(--text-muted);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-15px) translateX(-50%); }
    60% { transform: translateY(-7px) translateX(-50%); }
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.founder-card {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--accent-primary);
    padding: 24px;
    border-radius: 0 12px 12px 0;
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.founder-img {
    width: 150px;
    height: 200px;
    border-radius: 16px;
    object-fit: cover;
    border: 2px solid var(--accent-primary);
    flex-shrink: 0;
}

.founder-info h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.founder-info .role {
    color: var(--accent-secondary);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.founder-info .bio {
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.about-image {
    position: relative;
    height: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--accent-primary);
    filter: blur(100px);
    opacity: 0.2;
    border-radius: 50%;
    z-index: -1;
}

.decorative-card {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 50px 30px;
}

.code-icon {
    font-size: 4rem;
    color: var(--accent-secondary);
    margin-bottom: 30px;
}

.stats {
    display: flex;
    width: 100%;
    justify-content: space-around;
    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
}

.stat-item h4 {
    font-size: 1.8rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-item span {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    padding: 40px 30px;
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(242, 95, 0, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent-secondary);
    margin-bottom: 25px;
    border: 1px solid rgba(242, 95, 0, 0.2);
    transition: var(--transition-smooth);
}

.service-card:hover .icon-wrapper {
    background: var(--gradient-accent);
    color: #fff;
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Roadmap Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0; left: 20px;
    height: 100%; width: 2px;
    background: var(--glass-border);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 40px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    top: 0; left: 0;
    width: 42px; height: 42px;
    background: var(--bg-main);
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--accent-secondary);
    z-index: 1;
}

.timeline-content {
    padding: 25px;
}

.timeline-content h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.timeline-content p {
    color: var(--text-muted);
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.portfolio-item {
    padding: 0;
    overflow: hidden;
    position: relative;
    group: hover;
}

.portfolio-image {
    width: 100%;
    height: 220px;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.05);
}

.portfolio-content {
    padding: 25px;
    position: relative;
    z-index: 2;
    background: var(--glass-bg);
    border-top: 1px solid var(--glass-border);
}

.portfolio-content h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.portfolio-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.portfolio-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--accent-secondary);
    font-weight: 600;
    font-size: 0.9rem;
}

.portfolio-link:hover {
    color: var(--accent-primary);
    gap: 8px;
}

/* Contact Section */
.contact-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    padding: 50px;
}

.contact-info .section-title {
    font-size: 2.5rem;
}

.contact-methods {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-method:hover {
    transform: translateX(10px);
}

.method-icon {
    width: 50px;
    height: 50px;
    background: rgba(242, 95, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-secondary);
}

.contact-method h4 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.contact-method p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-main);
    font-family: inherit;
    transition: var(--transition-smooth);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.1);
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 60px 0 20px;
    background: var(--bg-alt);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-logo p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 10px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--text-main);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transition: opacity 1s ease;
}

.fade-in.visible {
    opacity: 1;
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-left {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Artistic & Modern Enhancements */

/* Custom Cursor */
body {
    cursor: none;
}

a, button, .menu-toggle {
    cursor: none; /* Ensure native pointer doesn't show on hover */
}

.cursor-outline {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 25px; 
    height: 35px;
    background-color: var(--accent-primary);
    clip-path: polygon(0% 0%, 100% 70%, 50% 70%, 50% 100%, 0% 80%);
    filter: drop-shadow(0 0 8px rgba(242, 95, 0, 0.9));
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    will-change: transform;
    display: block;
}

.cursor-hover {
    transform: scale(1.4) rotate(-15deg);
    background-color: #ffffff !important;
    mix-blend-mode: difference;
}

/* Background Blobs */
.bg-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -3;
    opacity: 0.15;
    animation: floatBlob 20s infinite alternate ease-in-out;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: var(--accent-primary);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-secondary);
    bottom: -50px;
    right: -100px;
    animation-delay: -5s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: #8a2be2;
    top: 40%;
    left: 50%;
    animation-delay: -10s;
}

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 100px) scale(1.1); }
}

/* Outline Typography */
.position-relative {
    position: relative;
    overflow: hidden; /* Prevent horizontal scroll from massive text */
}

.outline-text {
    position: absolute;
    font-size: clamp(8rem, 15vw, 18rem); /* Responsive sizing */
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.04);
    z-index: 0;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
    left: -5%;
}

.text-portfolio {
    left: auto;
    right: -5%;
}

.container {
    position: relative;
    z-index: 1; /* Keep content above outline text */
}

/* Asymmetrical Layout */
@media (min-width: 768px) {
    .portfolio-grid .portfolio-item:nth-child(even) {
        margin-top: 50px;
    }
}

/* Media Queries */
@media (max-width: 992px) {
    .hero-title { font-size: 3.5rem; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .contact-card { grid-template-columns: 1fr; padding: 30px; }
    .about-image { min-height: 300px; }
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-dark);
        flex-direction: column;
        justify-content: center;
        transition: left 0.4s ease;
    }
    .nav-links.active { left: 0; }
    .nav-links li { margin: 15px 0; }
    .hero-title { font-size: 2.8rem; }
    .section-title { font-size: 2.2rem; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons a { width: 100%; }
}
