/* Main CSS for ClyrLabs Website */

/* Color Variables */
:root {
    --primary-blue: #0066cc;
    --primary-blue-light: #0088ff;
    --primary-blue-dark: #004080;
    --accent-purple: #6a3de8;
    --accent-cyan: #1de9b6;
    --accent-blue-glow: rgba(0, 102, 204, 0.5);
    --light-blue: #e6f2ff;
    --navy: #1a3353;
    --light-gray: #f5f7fa;
    --dark-gray: #333333;
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #767676;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-purple) 100%);
    --gradient-dark: linear-gradient(135deg, var(--navy) 0%, var(--primary-blue-dark) 100%);
    --gradient-light: linear-gradient(135deg, var(--light-blue) 0%, var(--white) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-cyan) 0%, var(--primary-blue-light) 100%);
    
    /* Shadows */
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-strong: 0 15px 35px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 5px 20px var(--accent-blue-glow);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Titillium Web', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 {
    font-size: 3.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2.5rem;
    position: relative;
    margin-bottom: 1.5rem;
}

h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    bottom: -10px;
    left: 0;
    border-radius: 3px;
}

.section-title h2::after {
    left: 50%;
    transform: translateX(-50%);
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: var(--primary-blue);
    transition: all 0.3s ease;
    position: relative;
}

a:hover {
    color: var(--primary-blue-light);
}

a.link-underline::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

a.link-underline:hover::after {
    width: 100%;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

section {
    padding: 7rem 0;
    position: relative;
    overflow: hidden;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title p {
    color: var(--text-light);
    max-width: 700px;
    margin: 1rem auto 0;
}

/* Buttons */
.btn {
    display: inline-block;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 0.9rem 2rem;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 1;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-accent);
    transition: all 0.6s ease;
    z-index: -1;
}

.btn:hover {
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn:hover::before {
    left: 0;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
}

.btn-outline::before {
    background: var(--primary-blue);
}

.btn-outline:hover {
    color: var(--white);
}

/* Floating Shapes - Futuristic Elements */
.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    background-color: var(--primary-blue);
    opacity: 0.05;
    border-radius: 50%;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    left: -100px;
    animation: float-slow 15s linear infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 50%;
    right: -100px;
    animation: float-slow 12s linear infinite reverse;
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: -75px;
    left: 30%;
    animation: float-slow 10s linear infinite;
}

/* Circuit Board Pattern */
.circuit-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: url('../images/illustrations/circuit-pattern.svg');
    background-size: cover;
    opacity: 0.03;
    z-index: 0;
}

/* Neural Network Pattern */
.neural-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: url('../images/illustrations/neural-pattern.svg');
    background-size: cover;
    opacity: 0.03;
    z-index: 0;
}

/* Animations */
@keyframes float-slow {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(180deg);
    }
    100% {
        transform: translateY(0) rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes glow {
    0% {
        box-shadow: 0 0 5px var(--accent-blue-glow);
    }
    50% {
        box-shadow: 0 0 20px var(--accent-blue-glow);
    }
    100% {
        box-shadow: 0 0 5px var(--accent-blue-glow);
    }
}

/* Text animation */
.typing-effect {
    display: inline-block;
    border-right: 2px solid var(--primary-blue);
    white-space: nowrap;
    overflow: hidden;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--primary-blue) }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 5px;
}

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

/* Utility Classes */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glow-effect {
    animation: glow 3s infinite;
}

.pulse-effect {
    animation: pulse 3s infinite;
}

.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.blur-bg {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.glassmorphism {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}
