:root {
    /* Colors */
    --bg-dark: #0a0e17;
    --bg-card: rgba(255, 255, 255, 0.03);
    --text-main: #ffffff;
    --text-muted: #a0a0b0;
    --primary: #00f2ff;
    --secondary: #bd00ff;
    --accent: #4c6ef5;
    --gradient-main: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius: 12px;
    --section-spacing: 120px;

    /* Effects */
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    --glow: 0 0 80px rgba(0, 242, 255, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

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

body.loading {
    overflow: hidden;
}

/* Loading Screen */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0e17 0%, #1a1e2e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-wrapper.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    text-align: center;
}

.loader-logo {
    position: relative;
    margin-bottom: 40px;
}

.loader-orb {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    animation: pulse-loader 1.5s ease-in-out infinite;
    box-shadow: 0 0 40px rgba(0, 242, 255, 0.5);
}

@keyframes pulse-loader {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.loader-text {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.3em;
    animation: glow-text 2s ease-in-out infinite;
}

@keyframes glow-text {

    0%,
    100% {
        filter: drop-shadow(0 0 10px rgba(0, 242, 255, 0.5));
    }

    50% {
        filter: drop-shadow(0 0 20px rgba(0, 242, 255, 0.8));
    }
}

.loader-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loader-progress {
    height: 100%;
    background: var(--gradient-main);
    border-radius: 2px;
    animation: loading-progress 2s ease-in-out infinite;
}

@keyframes loading-progress {
    0% {
        width: 0%;
    }

    50% {
        width: 70%;
    }

    100% {
        width: 100%;
    }
}

/* Animated Background Effects */
.background-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.background-glow::before,
.background-glow::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    animation: float-glow 25s infinite ease-in-out;
}

.background-glow::before {
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.background-glow::after {
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    bottom: -200px;
    left: -200px;
    animation-delay: -12s;
}

@keyframes float-glow {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(50px, -80px) scale(1.1);
    }

    50% {
        transform: translate(-30px, 50px) scale(0.9);
    }

    75% {
        transform: translate(80px, 30px) scale(1.05);
    }
}

/* Particle Effects */
.particle {
    position: absolute;
    background: radial-gradient(circle, rgba(0, 242, 255, 0.6) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: float-particle linear infinite;
}

@keyframes float-particle {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(-100vh) translateX(50px);
        opacity: 0;
    }
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section {
    padding: var(--section-spacing) 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-main);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 242, 255, 0.3);
    border: none;
}

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: var(--glass-border);
    backdrop-filter: blur(10px);
}

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

/* Enhanced Button Animations */
.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn {
    position: relative;
    overflow: hidden;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(10, 14, 23, 0.8);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.logo .highlight {
    color: var(--primary);
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a:active {
    color: white;
}

.nav-btn.btn-primary {
    padding: 10px 24px;
    font-size: 0.9rem;
    color: #fff;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--header-height);
    overflow: hidden;
    background: linear-gradient(135deg, rgba(10, 14, 23, 0.95) 0%, rgba(10, 14, 23, 0.85) 100%),
        url('assets/hero-bg.png') center/cover no-repeat;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(0, 242, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(189, 0, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 242, 255, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(0, 242, 255, 0.2);
    margin-bottom: 24px;
}

.hero-section h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

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

.hero-btns {
    display: flex;
    gap: 16px;
}

/* Decorative Orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -10%;
    right: -5%;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    bottom: 10%;
    left: -5%;
    animation-delay: -10s;
}

@keyframes float {

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

    50% {
        transform: translate(30px, -50px);
    }
}

/* Services */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

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

.service-card {
    background: var(--bg-card);
    border: var(--glass-border);
    padding: 40px;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--primary);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

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

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.portfolio-item {
    position: relative;
}

.portfolio-image {
    height: 350px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.3s ease;
}

.portfolio-item:hover .portfolio-image {
    box-shadow: 0 8px 30px rgba(0, 242, 255, 0.2);
}

.img-placeholder {
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.img-placeholder.p1 {
    background: linear-gradient(45deg, #1a2a6c, #b21f1f, #fdbb2d);
}

.img-placeholder.p2 {
    background: linear-gradient(45deg, #11998e, #38ef7d);
}

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

.portfolio-info h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.portfolio-info p {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.link-arrow {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: gap 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.link-arrow:hover {
    gap: 12px;
}

/* About / Stats */
.bg-glass {
    background: rgba(255, 255, 255, 0.02);
    border-top: var(--glass-border);
    border-bottom: var(--glass-border);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.check-list {
    list-style: none;
    margin-top: 24px;
}

.check-list li {
    margin-bottom: 12px;
    padding-left: 28px;
    position: relative;
    color: var(--text-muted);
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.stat-card {
    background: rgba(0, 0, 0, 0.2);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    border: var(--glass-border);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Contact */
.contact-wrapper {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: var(--glass-border);
    border-radius: 24px;
    padding: 60px;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-link {
    font-size: 1.5rem;
    color: var(--primary);
    text-decoration: none;
    display: inline-block;
    margin-top: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

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

.full-width {
    width: 100%;
}

/* Footer */
.footer {
    padding: 60px 0;
    border-top: var(--glass-border);
}

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

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 8px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: white;
}

/* Animation Utilities */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* Mobile Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: white;
    transition: 0.3s;
}

/* Images & Tags */
.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.project-tag {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.testimonial-card {
    background: var(--bg-card);
    border: var(--glass-border);
    padding: 30px;
    border-radius: 16px;
    position: relative;
}

.quote-icon {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.1);
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: serif;
    line-height: 1;
}

.testimonial-text {
    position: relative;
    z-index: 1;
    margin-bottom: 24px;
    font-style: italic;
    color: var(--text-muted);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #333;
}

.author-avatar.c1 {
    background: linear-gradient(135deg, #FF6B6B, #556270);
}

.author-avatar.c2 {
    background: linear-gradient(135deg, #4ECDC4, #556270);
}

.author-avatar.c3 {
    background: linear-gradient(135deg, #A8E6CF, #DCEDC8);
}

.author-info h4 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.author-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Updated Form */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-details {
    margin-top: 40px;
    color: var(--text-muted);
}

.contact-details p {
    margin-bottom: 8px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 900px) {
    .hero-section h1 {
        font-size: 3rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 40px 30px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-spacing: 80px;
    }

    .container {
        padding: 0 20px;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: var(--header-height);
        height: calc(100vh - var(--header-height));
        width: 100%;
        background: var(--bg-dark);
        flex-direction: column;
        justify-content: center;
        transition: 0.4s ease;
        border-top: var(--glass-border);
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: flex;
    }

    .logo-text {
        font-size: 1.3rem;
    }

    .logo-letter {
        padding: 4px 6px;
    }

    .hero-section {
        text-align: center;
        min-height: auto;
        padding: 120px 0 80px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .hero-content {
        margin: 0 auto;
        max-width: 100%;
    }

    .hero-btns {
        justify-content: center;
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .hero-btns .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .hero-section h1 {
        font-size: 2.2rem;
        line-height: 1.3;
        margin-bottom: 20px;
    }

    .hero-section p {
        font-size: 1rem;
        margin: 0 auto 30px;
        max-width: 100%;
        line-height: 1.6;
    }

    .badge {
        font-size: 0.75rem;
        padding: 6px 14px;
        margin-bottom: 20px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .service-card {
        padding: 30px 24px;
    }

    .service-card h3 {
        font-size: 1.3rem;
    }

    .portfolio-grid {
        gap: 24px;
    }

    .portfolio-item {
        margin-bottom: 0;
    }

    .portfolio-info {
        padding: 24px 20px;
    }

    .portfolio-info h3 {
        font-size: 1.3rem;
    }

    .about-grid {
        gap: 40px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .stat-card {
        padding: 24px 20px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .contact-wrapper {
        padding: 30px 20px;
        gap: 40px;
    }

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

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .orb-1, .orb-2 {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 100px 0 60px;
    }

    .hero-content {
        padding: 0;
    }

    .hero-section h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero-section p {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .btn {
        padding: 10px 24px;
        font-size: 0.9rem;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .logo-letter {
        padding: 3px 5px;
        font-size: 0.75rem;
    }

    .contact-wrapper {
        padding: 24px 16px;
    }

    .service-card {
        padding: 24px 20px;
    }

    .portfolio-info {
        padding: 20px 16px;
    }

    .stat-card {
        padding: 20px 16px;
    }

    .orb-1, .orb-2 {
        display: none;
    }
}