/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #f59e0b;
    --accent-color: #10b981;
    --bg-dark: #0f0f23;
    --bg-darker: #0a0a1a;
    --bg-card: #1a1a2e;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --border-color: #27272a;
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-dark);
    overflow-x: hidden;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 15, 35, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 0.25rem 0;
    transition: all 0.4s ease;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.navbar.scrolled {
    background: rgba(15, 15, 35, 0.6);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 0.2rem 0;
}

.navbar.scrolled::before {
    background: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.06) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.06) 0%, transparent 50%);
}

.nav-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    position: relative;
    min-height: 50px;
}

.nav-logo {
    position: absolute;
    left: 20px;
    z-index: 1;
    margin: 0;
    padding: 0;
}

.nav-logo h2 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.8rem;
    font-weight: 800;
}

.logo-image {
    height: 35px;
    width: auto;
    max-width: 110px;
    object-fit: contain;
    margin: 0;
    padding: 0;
    vertical-align: middle;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0 auto;
    justify-content: center;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.95rem;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.2s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    right: 20px;
    z-index: 1;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

.nav-auth-btn {
    position: absolute;
    right: 20px;
    z-index: 1;
    margin-top: 5px;
}

.nav-auth-btn .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

/* Hero Section */
.hero {
    min-height: 75vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
    overflow: visible;
    padding-top: 120px;
    padding-bottom: 60px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 20px 3rem 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-logo {
    height: 45px;
    margin-bottom: 0.5rem;
}

.brand-name {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 2rem;
    font-weight: 600;
    display: block;
    margin-top: 0.5rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 450px;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.hero-visual {
    position: relative;
    height: 500px;
    animation: fadeInRight 1s ease-out;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.floating-card {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    animation: float 6s ease-in-out infinite;
    pointer-events: auto;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.floating-card i {
    font-size: 2rem;
    color: var(--primary-color);
}

.floating-card span {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.card-1 {
    top: 20%;
    right: 60%;
    animation-delay: 0s;
}

.card-2 {
    top: 35%;
    right: 8%;
    animation-delay: 2s;
}

.card-3 {
    top: 55%;
    right: 35%;
    animation-delay: 4s;
}

.hero-curve {
    display: none;
}

/* Services Section */
.services {
    padding: 4.5rem 0;
    background: var(--bg-darker);
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
    transition: max-height 0.5s ease;
}

.services-grid.collapsed {
    max-height: 270px;
    overflow: hidden;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    height: auto;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 0.05;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    width: 50px;
    height: 50px;
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9rem;
}

.services-curve {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--bg-dark);
    clip-path: ellipse(100% 100% at 50% 100%);
}

/* Why Choose Section */
.why-choose {
    padding: 2.5rem 0 1.5rem 0;
    background: var(--bg-dark);
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 1.2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-secondary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 0.05;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 2.2rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem auto;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.4;
    font-size: 0.85rem;
    margin: 0;
}

.why-choose-curve {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: var(--bg-darker);
    clip-path: ellipse(100% 100% at 50% 100%);
}

/* Contact Section */
.contact {
    padding: 4.5rem 0;
    background: var(--bg-darker);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
    grid-template-columns: 0.9fr 1.1fr;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.contact-info p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 20px;
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.25rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-dark);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group select option {
    background: var(--bg-dark);
    color: var(--text-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    padding: 2.5rem 0 1.5rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links h4,
.footer-social h4 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.footer-links ul {
    list-style: none;
    gap: 0.5rem;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Dashboard styles moved to dashboard.css */

/* Compact UI Overrides */
.container {
    max-width: 1140px;
    padding: 0 15px;
}

/* More compact sections */
.hero, .services, .why-choose, .contact {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: 1rem;
    margin-bottom: 3rem;
}

/* Compact buttons */
.btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

/* Compact services grid */
.services-grid {
    gap: 1.5rem;
}

.service-card {
    padding: 1.5rem;
    border-radius: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    height: auto;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.service-icon {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.service-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.service-card p {
    font-size: 0.85rem;
}

/* Compact contact section */
.contact-container {
    gap: 2.5rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.contact-info p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.contact-form {
    padding: 1.5rem;
    border-radius: 16px;
}

.form-group {
    margin-bottom: 1rem;
}

/* Compact footer */
.footer {
    padding: 2.5rem 0 1.5rem;
}

.footer-content {
    gap: 2rem;
}

.footer-brand h3 {
    font-size: 1.4rem;
}

.footer-brand p {
    font-size: 0.9rem;
}

.footer-links h4, .footer-social h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.footer-links ul {
    gap: 0.5rem;
}

.footer-links a {
    font-size: 0.9rem;
}

.footer-social .social-links {
    gap: 1rem;
}

.footer-social .social-links a {
    width: 35px;
    height: 35px;
    font-size: 1rem;
}

.footer-bottom {
    margin-top: 2rem;
    font-size: 0.85rem;
}

/* Compact hero section */
.hero-container {
    gap: 2rem;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.hero-subtitle {
    font-size: 1.4rem;
}

.hero-description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* Specific compact styling for Why Choose section */
.why-choose .section-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.why-choose .section-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .services-grid.collapsed {
        max-height: 350px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
        max-width: 600px;
    }
    
    .feature-card {
        height: 160px;
        padding: 1rem;
    }
    
    .feature-card h3 {
        font-size: 0.95rem;
    }
    
    .feature-card p {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero {
        padding: 6rem 0 4rem;
    }
    
    .services, .why-choose, .contact {
        padding: 3.5rem 0;
    }
}

@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .services-grid.collapsed {
        max-height: 450px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 300px;
    }
    
    .service-card {
        margin: 0 auto;
        max-width: 180px;
        padding: 1.2rem 0.8rem;
        min-height: 200px;
    }
    
    .feature-card {
        margin: 0 auto;
        max-width: 320px;
        height: 140px;
        padding: 0.8rem;
    }
    
    .feature-icon {
        font-size: 2rem;
        margin-bottom: 0.3rem;
    }
    
    .feature-card h3 {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }
    
    .feature-card p {
        font-size: 0.75rem;
    }
}

/* Prevent text overflow in cards */
.service-card *, .feature-card * {
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Mobile adjustments */
@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .service-card {
        margin: 0 auto;
        max-width: 320px;
    }
}

/* Override any height constraints on card containers */
.why-choose, .services {
    height: auto !important;
    min-height: auto !important;
}

.why-choose .container, .services .container {
    height: auto !important;
    min-height: auto !important;
}

/* Services Toggle Button */
.services-toggle {
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.toggle-btn {
    background: var(--gradient-primary);
    border: none;
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.3);
}

.toggle-btn i {
    transition: transform 0.3s ease;
}

.toggle-btn.expanded i {
    transform: rotate(180deg);
}

/* Custom Service Card */
.custom-service-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: 1px solid var(--primary-color);
    color: white;
    position: relative;
    overflow: hidden;
}

.custom-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-service-card:hover::before {
    opacity: 1;
}

.custom-service-card .service-icon {
    color: white;
}

.custom-service-card h3,
.custom-service-card p {
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Services Grid Toggle States */
.services-grid {
    transition: all 0.5s ease;
    overflow: hidden;
}

.services-grid.collapsed {
    max-height: 400px;
    overflow: hidden;
    position: relative;
}

.services-grid.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(transparent, var(--bg-darker));
    pointer-events: none;
}




