:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --secondary: #F97316;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
    --text-main: #334155;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --container-width: 1200px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: transparent;
    line-height: 1.6;
    overflow-x: hidden;
}


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

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
    background: transparent;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

/* Header Text Color - Default (Dark Bg) */
header .logo {
    color: var(--white);
}

header .nav-links a {
    color: rgba(255, 255, 255, 0.9);
}

header .nav-links a:hover {
    color: var(--secondary);
}

header .menu-toggle {
    color: var(--white);
}

/* Header Text Color - Scrolled (Light Bg) */
header.scrolled .logo {
    color: var(--dark);
}

header.scrolled .nav-links a {
    color: var(--dark-light);
}

header.scrolled .nav-links a:hover {
    color: var(--primary);
}

header.scrolled .menu-toggle {
    color: var(--dark);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 12rem 0 8rem;
    background: var(--dark);
    color: var(--white);
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-text {
    max-width: 700px;
}

.hero-text h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 2rem;
}

.gradient-text {
    background: linear-gradient(90deg, #6366f1, #0ea5e9);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 3rem;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    display: inline-block;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.hero-visual {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.abstract-shape {
    position: absolute;
    filter: blur(60px);
    opacity: 0.6;
    border-radius: 50%;
    z-index: 1;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary) 0%, rgba(99, 102, 241, 0) 70%);
    top: -150px;
    right: -100px;
    animation: floating 10s infinite alternate ease-in-out;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--secondary) 0%, rgba(14, 165, 233, 0) 70%);
    bottom: -100px;
    right: 20%;
    animation: floating 12s infinite alternate-reverse ease-in-out;
}

.cursor {
    display: inline-block;
    color: var(--primary);
    animation: blink 0.7s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@keyframes floating {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(50px, 30px) rotate(10deg);
    }
}

/* Section Common */
.section-header {
    text-align: center;
    margin-bottom: 5rem;
    padding-top: 8rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
}

.section-header .line {
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 0 auto;
    border-radius: 2px;
}

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

.service-card {
    background: var(--white);
    padding: 3.5rem 2.5rem;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.4);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.service-card p {
    color: var(--gray);
}

/* Portfolio & Filters */
.portfolio-filter {
    transition: all 0.3s ease;
}

.portfolio-filter.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.1), 0 2px 4px -1px rgba(99, 102, 241, 0.06);
}

.portfolio-item {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item.hidden {
    display: none;
    opacity: 0;
    transform: scale(0.95);
}

.portfolio-item.show {
    display: block;
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

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

.blog-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.blog-img {
    width: 100%;
    aspect-ratio: 16/9;
    background: #e2e8f0;
}

.blog-content {
    padding: 1.5rem;
}

.blog-content .date {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
    display: block;
}

.blog-content h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.blog-content p {
    font-size: 0.95rem;
    color: var(--gray);
}

/* Blog Filters */
.blog-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--gray);
    border-radius: 50px;
    background: transparent;
    color: var(--gray);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

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

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.team-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.team-img {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary);
    padding: 3px;
}

.placeholder-avatar {
    width: 100%;
    height: 100%;
    background: var(--dark-light);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    border-radius: 50%;
}

.team-info h3 {
    margin-bottom: 0.25rem;
    color: var(--dark);
}

.team-info .role {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 1rem;
}

.team-info p {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.team-social a {
    color: var(--gray);
    transition: var(--transition);
}

.team-social a:hover {
    color: var(--primary);
    transform: scale(1.2);
}

/* CTA Section */
.cta-section {
    padding: 8rem 0;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCI+CjxwYXRoIGQ9Ik0wIDBoNDB2NDBIMHoiIGZpbGw9Im5vbmUiLz4KPGNpcmNsZSBjeD0iMjAiIGN5PSIyMCIgcj0iMSIgZmlsbD0icmdiYSgyNTUsIDI1NSwgMjU1LCAwLjAzKSIvPgo8L3N2Zz4=');
    opacity: 0.3;
}

.cta-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    color: #cbd5e1;
}

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(99, 102, 241, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
}

/* Contact */
.contact-section {
    padding-bottom: 10rem;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 5rem;
    background: var(--dark);
    padding: 5rem;
    border-radius: 40px;
    color: var(--white);
}

.contact-info h2 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.contact-info p {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 3rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.detail-item i {
    color: var(--primary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray);
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 12px;
    color: var(--white);
    font-family: inherit;
    transition: var(--transition);
}

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

.full-width {
    width: 100%;
}

/* Footer */
footer {
    padding: 5rem 0 2rem;
    background: #f1f5f9;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    margin-top: 1rem;
    color: var(--gray);
}

.footer-links h4,
.footer-social h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--dark);
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a {
    color: var(--gray);
}

.footer-links ul li a:hover {
    color: var(--primary);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--dark);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.social-icons a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
    color: var(--gray);
    font-size: 0.9rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
}

.modal-content {
    background: var(--white);
    margin: 5% auto;
    padding: 3rem;
    width: 90%;
    max-width: 800px;
    border-radius: 30px;
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    right: 2rem;
    top: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--dark);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

/* Dynamic Background Patterns */
.bg-grid-pattern {
    background-image: linear-gradient(to right, rgba(99, 102, 241, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(99, 102, 241, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

.dark .bg-grid-pattern {
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

.bg-dot-pattern {
    background-image: radial-gradient(rgba(99, 102, 241, 0.1) 1px, transparent 1px);
    background-size: 24px 24px;
}

.dark .bg-dot-pattern {
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}

.bg-diagonal-pattern {
    background-image: repeating-linear-gradient(45deg,
            rgba(99, 102, 241, 0.03) 0px,
            rgba(99, 102, 241, 0.03) 1px,
            transparent 1px,
            transparent 10px);
}

.dark .bg-diagonal-pattern {
    background-image: repeating-linear-gradient(45deg,
            rgba(255, 255, 255, 0.02) 0px,
            rgba(255, 255, 255, 0.02) 1px,
            transparent 1px,
            transparent 10px);
}

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

/* Mobile Responsive */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-text h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero-text h1 {
        font-size: 2.75rem;
    }

    .hero-text p {
        font-size: 1.1rem;
    }

    .contact-container {
        padding: 3rem 2rem;
    }

    .contact-info h2 {
        font-size: 2.2rem;
    }

    .cta-section {
        padding: 4rem 0;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .section-header {
        padding-top: 4rem;
        margin-bottom: 3rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}

/* Custom Animations */
@keyframes nudge-right {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(6px);
    }
}

.animate-nudge-right {
    animation: nudge-right 1.5s ease-in-out infinite;
    display: inline-block;
}

/* Utilities */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}