/* 
========================================
Siddhi Web Technology - Main Stylesheet
========================================
*/

/* --- Variables --- */
:root {
    --primary: #0B1F3A;
    --secondary: #1E88E5;
    --accent: #00C2FF;
    --cta: #FF6B00;
    --success: #00C853;
    --background: #F8FAFC;
    --dark: #0F172A;
    --white: #FFFFFF;
    
    --font-heading: 'Chakra Petch', sans-serif;
    --font-body: 'Urbanist', sans-serif;
    --font-button: 'Manrope', sans-serif;
    
    --transition: all 0.3s ease;
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-accent: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* --- Base Styles --- */
body {
    font-family: var(--font-body);
    background-color: var(--background);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

p {
    font-size: 1.125rem;
    color: #475569;
    margin-bottom: 1.5rem;
}

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

a:hover {
    color: var(--accent);
}

/* --- Typography --- */
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-accent { color: var(--accent) !important; }
.text-cta { color: var(--cta) !important; }

/* --- Buttons --- */
.btn {
    font-family: var(--font-button);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--cta);
    border-color: var(--cta);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

.btn-primary:hover {
    background-color: #e66000;
    border-color: #e66000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
}

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

.btn-outline-primary:hover {
    background-color: var(--cta);
    color: var(--white);
    transform: translateY(-2px);
}

/* --- Custom Cursor --- */
.cursor {
    width: 10px;
    height: 10px;
    background: var(--cta);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 107, 0, 0.5);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease, width 0.3s, height 0.3s;
}

/* --- Navbar --- */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.5rem 0;
}

.navbar-brand .brand-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.nav-link {
    font-family: var(--font-button);
    font-weight: 600;
    color: var(--dark) !important;
    position: relative;
    padding: 0.5rem 1rem !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--secondary);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 80%;
}

/* --- Preloader --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader {
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-top: 5px solid var(--accent);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Layout Utilities --- */
.section-padding {
    padding: 100px 0;
}

.section-title {
    text-transform: uppercase;
    color: var(--secondary);
    letter-spacing: 2px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.section-heading {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary);
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    padding-top: 120px;
    display: flex;
    align-items: center;
    background: var(--background);
    position: relative;
    overflow: hidden;
}

.hero-blob {
    position: absolute;
    width: 500px;
    height: 500px;
    background: var(--gradient-primary);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    top: -100px;
    right: -100px;
    animation: pulse 10s infinite alternate;
}

.hero-heading {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 2rem;
}

.hero-feature-item {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-feature-item i {
    color: var(--success);
}

/* Hero 3D Mockup Container */
.hero-mockup-container {
    position: relative;
    width: 100%;
    height: 500px;
    perspective: 1000px;
}

.mockup-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.3s;
}

/* --- Services Section --- */
.service-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--gradient-primary);
    transition: var(--transition);
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    height: 100%;
}

.service-card:hover h4, .service-card:hover p, .service-card:hover i {
    color: var(--white);
}

.service-icon {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 20px;
    transition: var(--transition);
}

/* --- Process Section --- */
.process-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 50px;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #e2e8f0;
    z-index: -1;
}

.process-step {
    text-align: center;
    position: relative;
    flex: 1;
}

.process-icon {
    width: 60px;
    height: 60px;
    background: var(--white);
    border: 2px solid var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
    color: var(--secondary);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.process-step:hover .process-icon {
    background: var(--secondary);
    color: var(--white);
    transform: scale(1.1);
}

/* --- Portfolio Grid --- */
.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    background: transparent;
    border: none;
    font-family: var(--font-button);
    font-weight: 600;
    color: var(--dark);
    padding: 8px 20px;
    border-radius: 50px;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.portfolio-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 30px;
}

.portfolio-img {
    width: 100%;
    height: auto;
    transition: transform 0.5s;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 31, 58, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.1);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h4 {
    color: var(--white);
    transform: translateY(20px);
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay h4 {
    transform: translateY(0);
}

/* --- Statistics Section --- */
.stats-section {
    background: var(--primary);
    color: var(--white);
    padding: 80px 0;
    position: relative;
}

.stat-item h3 {
    color: var(--accent);
    font-size: 3.5rem;
    margin-bottom: 5px;
}

/* --- Footer --- */
.footer-section {
    background: var(--dark);
    color: #cbd5e1;
}

.footer-brand .brand-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
}

.footer-title {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #cbd5e1;
}

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

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    margin-right: 10px;
}

.social-btn:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-3px);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--cta);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}
