@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #fbfbfd;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --accent: #000000;
    --accent-blue: #0071e3;
    --accent-royal: #4338ca;
    --border: rgba(0, 0, 0, 0.08);
    --radius-sm: 12px;
    --radius-md: 24px;
    --radius-lg: 40px;
    --transition-apple: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0c;
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1a6;
    --border: rgba(255, 255, 255, 0.1);
    --accent: #ffffff;
    --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Typography Gradient */
.text-gradient {
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

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

section {
    padding: 160px 0;
    position: relative;
}

.section-tag {
    display: inline-block;
    padding: 8px 24px;
    background: rgba(0, 113, 227, 0.08);
    border-radius: 980px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-blue);
    margin-bottom: 25px;
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 40px 0;
    transition: var(--transition-apple);
}

@media (max-width: 1024px) {
    .main-header {
        padding: 20px 0;
    }
}

.main-header.scrolled {
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
}

[data-theme="dark"] .main-header.scrolled {
    background: rgba(0, 0, 0, 0.8) !important;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-primary);
    letter-spacing: -1.5px;
}

.logo span {
    color: var(--accent-blue);
}

nav ul {
    display: flex;
    gap: 40px;
    list-style: none;
    align-items: center;
}

nav li {
    position: relative;
    padding: 10px 0;
}

nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition-apple);
    display: flex;
    align-items: center;
    gap: 6px;
}

nav a:hover,
nav a.active {
    color: var(--text-primary);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 12px;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-apple);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    list-style: none !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 5px;
}

.dropdown-icon {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

nav li:hover .dropdown-icon {
    transform: rotate(180deg);
}

[data-theme="dark"] .dropdown-menu {
    background: rgba(20, 20, 22, 0.8);
}

nav li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    padding: 0;
    width: 100%;
}

.dropdown-menu a {
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: block;
    width: 100%;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background: var(--bg-secondary);
    color: var(--accent-blue);
    transform: translateX(5px);
}

.dropdown-icon {
    font-size: 0.7rem;
    opacity: 0.5;
    transition: transform 0.3s ease;
}

nav li:hover .dropdown-icon {
    transform: rotate(180deg);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 16px 36px;
    border-radius: 980px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.05rem;
    transition: var(--transition-apple);
    cursor: pointer;
    border: none;
    gap: 10px;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-primary);
    transform: scale(1.05);
}

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

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

.hero h1 {
    font-size: clamp(3.5rem, 8vw, 7.5rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -5px;
    margin-bottom: 40px;
}

.hero p {
    font-size: 1.6rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin-bottom: 50px;
    font-weight: 400;
}

/* Cards & Items */
.card-premium {
    background: var(--bg-primary);
    padding: 60px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: var(--transition-apple);
    height: 100%;
}

.card-premium:hover {
    transform: translateY(-20px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.05);
    border-color: var(--accent-blue);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Background Blobs */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    animation: blobMove 25s infinite alternate;
}

[data-theme="dark"] .blob {
    opacity: 0.2;
}

.blob-1 {
    top: -20%;
    right: -10%;
    background: radial-gradient(circle, var(--accent-blue), transparent);
}

.blob-2 {
    bottom: -20%;
    left: -10%;
    background: radial-gradient(circle, #4338ca, transparent);
    animation-delay: -5s;
}

@keyframes blobMove {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(100px, 50px) scale(1.1);
    }
}

/* Magnetic Effect Placeholder */
.magnetic {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Project Cards */
.project-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    transition: var(--transition-apple);
}

.project-image {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-info {
    padding: 40px;
}

.project-category {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: block;
}

.project-title {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

/* Services Grid & Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-primary);
    padding: 50px 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: var(--transition-apple);
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.05);
}

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 30px;
}

/* Float Animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.float-anim {
    animation: float 6s ease-in-out infinite;
}

/* Stats */
.stat-item h3 {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: -3px;
    margin-bottom: 5px;
}

.stat-item p {
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

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

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 400px;
        height: 100vh;
        background: var(--bg-primary);
        z-index: 1001;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 100px 40px;
        transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: -20px 0 50px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        width: 100%;
    }

    nav a {
        font-size: 1.5rem;
        font-weight: 700;
        width: 100%;
    }

    .mobile-menu-btn {
        display: block !important;
        position: relative;
        z-index: 1002;
    }

    .has-dropdown .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        background: transparent;
        padding: 10px 0 10px 20px;
        display: flex;
        flex-direction: column;
        border: none;
        min-width: auto;
    }

    .dropdown-menu a {
        font-size: 1.1rem;
        font-weight: 500;
    }

    .btn-header {
        display: none;
    }
}

@media (max-width: 768px) {
    section {
        padding: 80px 0;
    }

    .hero h1 {
        font-size: 3rem;
        letter-spacing: -2px;
    }

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

    .container {
        padding: 0 1.25rem;
    }

    .card-premium {
        padding: 30px 20px;
    }

    .hero-elements {
        display: none;
    }
}

/* Theme Toggle Button Enhancement */
#themeToggle {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.2rem;
    transition: var(--transition-apple);
}

#themeToggle:hover {
    background: var(--bg-primary);
    transform: rotate(15deg);
}

/* Floating Widgets */
.floating-widgets {
    position: fixed;
    bottom: 40px;
    right: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 2000;
}

.widget-item {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: var(--transition-apple);
}

.widget-item:hover {
    transform: scale(1.1) translateY(-5px);
}

.widget-whatsapp {
    background: #25d366;
}

.widget-phone {
    background: var(--accent-blue);
}

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

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}
@media (min-width: 1025px) {
    .about-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)) !important;
        gap: 100px !important;
    }
    .contact-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
        gap: 80px !important;
    }
    .form-row-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}

html {
    scroll-padding-top: 100px;
}

@media (max-width: 1024px) {
    html {
        scroll-padding-top: 70px;
    }
}
