/* 
   Kadyan Technologies - CSS Styles
   Theme: Modern Tech Startup, Dark Theme, Cyan/Blue Highlights
*/

:root {
    --bg-dark: #0a0d14;
    --bg-darker: #06080d;
    --bg-card: rgba(15, 20, 35, 0.35);
    --bg-card-hover: rgba(22, 30, 50, 0.55);
    
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    
    --accent-cyan: #00f2fe;
    --accent-blue: #4facfe;
    --accent-glow: rgba(0, 242, 254, 0.3);
    
    --border-color: rgba(255, 255, 255, 0.05);
    --border-highlight: rgba(79, 172, 254, 0.3);
    
    --font-sans: 'Outfit', sans-serif;
    
    --transition-fast: 0.2s cubic-bezier(0.2, 0, 0, 1);
    --transition-normal: 0.4s cubic-bezier(0.2, 0, 0, 1);
    --transition-slow: 0.8s cubic-bezier(0.2, 0, 0, 1);
}

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

html {
    scroll-behavior: smooth;
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--bg-dark);
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

a {
    color: var(--text-main);
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography */
h1, h2, h3, h4, .subtitle {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: 1.5rem;
}

p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.lead {
    font-size: 1.25rem;
    color: var(--text-main);
    font-weight: 300;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

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

/* Background Effects */
.glow-bg {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    z-index: -2;
    pointer-events: none;
}

.glow-bg.top-left {
    top: -200px;
    left: -200px;
}

.glow-bg.bottom-right {
    bottom: -200px;
    right: -200px;
    background: radial-gradient(circle, rgba(79, 172, 254, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
}

.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -3;
    pointer-events: none;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
    position: relative;
}

.bg-darker {
    background-color: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

/* UI Elements */
.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(79, 172, 254, 0.1);
    border: 1px solid var(--border-highlight);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal), background var(--transition-normal);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-highlight);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(79, 172, 254, 0.1);
    background: var(--bg-card-hover);
}

.icon-gradient {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    border-radius: 3rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    line-height: 1;
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    color: #000;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.2), 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(0, 242, 254, 0.4), 0 4px 8px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-highlight);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-highlight);
}

.btn-outline:hover {
    background: rgba(79, 172, 254, 0.1);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-text {
    color: var(--accent-cyan);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.btn-text:hover {
    color: var(--accent-blue);
    gap: 0.8rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 100;
    transition: background var(--transition-normal), padding var(--transition-normal), backdrop-filter var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(10, 13, 20, 0.65);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    padding: 0.8rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}

.logo-img {
    height: 40px;
    width: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn) {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    color: var(--text-muted);
}

.nav-links a:not(.btn):hover, .nav-links a:not(.btn).active {
    color: var(--text-main);
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
    transition: width var(--transition-fast);
}

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Sections Configuration */

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

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Hero Visuals */
.hero-visual {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 500px;
    height: 500px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.8;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.sphere {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(0, 242, 254, 0.4), rgba(7, 10, 19, 0.8));
    box-shadow: 0 0 60px rgba(0, 242, 254, 0.2), inset 0 0 40px rgba(79, 172, 254, 0.6);
    animation: float 8s ease-in-out infinite;
}

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 380px;
    height: 380px;
    border-radius: 50%;
    border: 1px dashed rgba(79, 172, 254, 0.3);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.floating-element {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--bg-card);
    border: 1px solid var(--border-highlight);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-cyan);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    backdrop-filter: blur(5px);
}

.el-1 { top: 10%; left: 20%; animation: float 6s ease-in-out infinite; }
.el-2 { bottom: 20%; right: 10%; animation: float 7s ease-in-out infinite 1s; }
.el-3 { top: 40%; right: 0%; animation: float 9s ease-in-out infinite 2s; }

/* 2. About Section */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-item h3 {
    margin-bottom: 0.5rem;
}

.stat-item p {
    margin-bottom: 0;
    font-size: 1rem;
}

/* 3. Products Section */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card p {
    flex-grow: 1;
}

.product-icon {
    width: 70px;
    height: 70px;
    background: rgba(79, 172, 254, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(79, 172, 254, 0.2);
    transition: all var(--transition-fast);
}

.product-card:hover .product-icon {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    color: #000;
    transform: scale(1.1) rotate(-5deg);
}

/* 4. Vision Section */
.vision-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 5rem 3rem;
    overflow: hidden;
}

.vision-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.vision-text {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--text-main);
    font-style: italic;
    font-weight: 300;
    line-height: 1.4;
    margin-bottom: 0;
}

.vision-visual {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20rem;
    color: rgba(255, 255, 255, 0.02);
    z-index: 0;
    pointer-events: none;
}

/* 5. Founder Section */
.founder-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 4rem;
    align-items: center;
}

.founder-image-wrapper {
    position: relative;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 0;
    overflow: hidden;
}

.founder-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    border: 3px solid rgba(79, 172, 254, 0.3);
}

.tech-rings .ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(79, 172, 254, 0.3);
}

.tech-rings .ring-1 {
    width: 110%;
    height: 110%;
    border-top-color: var(--accent-cyan);
    animation: rotate 10s linear infinite;
}

.tech-rings .ring-2 {
    width: 120%;
    height: 120%;
    border-bottom-color: var(--accent-cyan);
    animation: rotate 15s linear infinite reverse;
}

.founder-role {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 500;
}

.founder-socials {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.social-icon:hover {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    color: #000;
    transform: translateY(-3px);
    border-color: transparent;
}

/* 6. CTA Section */
.cta-section {
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse, rgba(0, 242, 254, 0.15) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.cta-text {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    color: var(--text-main);
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* 7. Footer */
.footer {
    background: #020306;
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand .tagline {
    font-style: italic;
    margin-top: 1rem;
}

.footer-logo-wrapper {
    margin-top: 1.5rem;
    display: flex;
    align-items: flex-start;
}

.footer-custom-logo {
    width: 100px;
    height: auto;
    object-fit: contain;
    transition: transform var(--transition-normal), filter var(--transition-normal);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

.footer-custom-logo:hover {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 8px 15px rgba(0, 242, 254, 0.4));
}


.footer h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.footer ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.footer-links a:hover {
    color: var(--accent-cyan);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

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

.social-links a:hover {
    color: var(--accent-cyan);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
}

/* Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.5, 0, 0, 1) forwards;
    opacity: 0;
}

.delay-1 { animation-delay: 0.2s; transition-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; transition-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; transition-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dynamic Interactive Elements */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -4;
    pointer-events: none;
    background: transparent;
}

.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.15) 0%, rgba(0, 0, 0, 0) 60%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s ease, height 0.3s ease;
    mix-blend-mode: screen;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    transition: all var(--transition-fast);
}

.logo:hover .logo-text {
    transform: scale(1.02);
    text-shadow: 0 0 15px var(--accent-glow);
}

/* Responsive Design */
@media (max-width: 992px) {
    .h1 { font-size: 3rem; }
    
    .hero-visual { display: none; }
    
    .about-container, 
    .founder-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .founder-image-wrapper {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .founder-info {
        text-align: center;
    }
    
    .founder-socials {
        justify-content: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(7, 10, 19, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        transition: left var(--transition-normal);
        padding: 2rem;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-actions, .cta-actions {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
