/* Reset and Base Styles */
:root {
    /* Brand Colors - Light Theme with Authentic Logo Colors */
    --color-bg: #f8fafc;
    /* Very light blue-gray background */
    --color-bg-light: #ffffff;
    /* White elements */
    --color-blue: #024E7F;
    /* Brand Dark Blue */
    --color-blue-neon: #0366a6;
    /* Lighter brand blue */
    --color-orange: #F5931E;
    /* Brand Orange */
    --color-orange-neon: #ffaa44;
    --color-text: #475569;
    /* Slate-600 */
    --color-heading: #0f172a;
    /* Slate-900 */

    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
}

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-heading);
    font-weight: 700;
}

.text-blue {
    color: var(--color-blue);
}

.text-orange {
    color: var(--color-orange);
}

.text-gradient {
    background: linear-gradient(90deg, var(--color-blue), #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 900;
}

.subtitle {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-blue-neon);
    margin-bottom: 1rem;
    font-weight: 600;
}

.text-large {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: #64748b;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 6rem 0;
    position: relative;
    z-index: 10;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    font-weight: 800;
}

.section-subtitle {
    color: #64748b;
    font-size: 1.1rem;
    max-width: 600px;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Background Effects */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
}

.bg-shape-blue {
    width: 600px;
    height: 600px;
    background: var(--color-blue);
    top: -200px;
    left: -200px;
}

.bg-shape-orange {
    width: 500px;
    height: 500px;
    background: #60a5fa;
    /* Replaced orange shape with soft blue for cleaner look */
    bottom: -100px;
    right: -100px;
}

.stars-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Soft dark dots for light mode */
    background-image: radial-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.8;
    z-index: 0;
    pointer-events: none;
}

/* Light Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--color-blue);
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.btn-secondary {
    background: #ffffff;
    color: var(--color-blue);
    border: 1px solid rgba(37, 99, 235, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: var(--color-blue);
}

.btn-outline {
    background: transparent;
    color: var(--color-blue);
    border: 1px solid var(--color-blue);
}

.btn-outline:hover {
    background: rgba(37, 99, 235, 0.05);
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.1);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-glow {
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.btn-glow:hover {
    box-shadow: 0 15px 25px rgba(37, 99, 235, 0.4);
}

.glow-on-hover:hover {
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.2);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

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

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--color-heading);
    letter-spacing: 1px;
}

.logo-img {
    height: 65px;
    width: auto;
}

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

.nav-link {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--color-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-blue);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-heading);
}

/* Hero Immersive Redesign */
.hero-immersive {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
    user-select: none;
    -webkit-user-select: none;
}

.hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.bg-cyber {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.4) 50%, rgba(15, 23, 42, 0.85) 100%);
}

.immersive-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    grid-template-areas:
        "subtitle title"
        "desc     title"
        "actions  widget"
        "stats    widget";
    row-gap: 1.5rem;
    column-gap: 4rem;
    align-items: center;
    height: 100%;
}

.title-creative {
    grid-area: title;
    text-align: right;
    justify-self: end;
    align-self: end;
    /* Push down to align visually with the text on the left */
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 0.9;
    font-weight: 900;
    color: white;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    user-select: none;
    -webkit-user-select: none;
}



.description-creative {
    grid-area: desc;
    color: #cbd5e1;
    font-size: 1.15rem;
    max-width: 450px;
    line-height: 1.8;
}

.hero-actions-creative {
    grid-area: actions;
}

.subtitle-creative {
    grid-area: subtitle;
    align-self: end;
    color: var(--color-orange);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-stats-glass {
    grid-area: stats;
    display: flex;
    gap: 20px;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: fit-content;
}

.stat-box {
    display: flex;
    flex-direction: column;
}

.stat-box i {
    font-size: 1.5rem;
    color: var(--color-blue-neon);
    margin-bottom: 10px;
}

.stat-box h4 {
    font-size: 1.4rem;
    color: white;
    margin-bottom: 2px;
}

.stat-box p {
    font-size: 0.85rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.text-stroke {
    color: transparent;
    -webkit-text-stroke: 2px white;
}

.hero-widget {
    grid-area: widget;
    justify-self: end;
    align-self: start;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    max-width: 400px;
    text-align: left;
}

.widget-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--color-orange);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.5rem;
}

.widget-content h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.widget-content p {
    color: #cbd5e1;
    font-size: 0.85rem;
    line-height: 1.3;
}

.huge-background-text {
    position: absolute;
    bottom: -50px;
    left: -20px;
    font-size: 20vw;
    font-family: var(--font-heading);
    font-weight: 900;
    color: rgba(255, 255, 255, 0.04);
    z-index: 1;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
}

.cursor {
    display: inline-block;
    width: 10px;
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--color-text);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid #94a3b8;
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--color-blue);
    border-radius: 2px;
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

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

.feature-card {
    padding: 2.5rem;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(37, 99, 235, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.feature-card:hover .icon-wrap {
    transform: scale(1.1);
    background: rgba(37, 99, 235, 0.1);
}

.icon-wrap {
    width: 60px;
    height: 60px;
    background: rgba(241, 245, 249, 1);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.feature-card p {
    color: var(--color-text);
    font-size: 0.95rem;
}

/* Services */
.services-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.check-list {
    list-style: none;
    margin-bottom: 2rem;
}

.check-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text);
}

.services-display {
    height: 400px;
    border-radius: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: white;
}

.tech-circle {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 2px dashed rgba(37, 99, 235, 0.2);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tech-circle::before {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-top-color: var(--color-blue);
    animation: spin 10s linear infinite reverse;
}

.inner-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 3px solid rgba(241, 245, 249, 1);
    border-right-color: var(--color-blue);
    border-bottom-color: var(--color-orange);
    animation: spin 6s linear infinite;
}

.center-icon {
    position: absolute;
    font-size: 4rem;
    color: var(--color-blue);
    text-shadow: 0 0 20px rgba(37, 99, 235, 0.2);
}

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

/* CTA Section */
.cta-section {
    padding: 4rem 0 8rem;
    position: relative;
    z-index: 10;
}

.cta-box {
    text-align: center;
    padding: 5rem 2rem;
    border-radius: 30px;
    background: linear-gradient(135deg, #eff6ff, #f8fafc);
    border: 1px solid white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.05) 0%, transparent 60%);
    z-index: -1;
}

.cta-box h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.cta-box p {
    color: var(--color-text);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
}

/* Footer - Kept dark as per reference image */
.footer {
    background: #0f172a;
    /* Slate 900 for a deep rich navy footer */
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 10;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: white;
}

.footer-brand p {
    color: #94a3b8;
    max-width: 300px;
}

.footer h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 1rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-blue-neon);
}

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

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-icons a:hover {
    background: var(--color-blue);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #64748b;
    font-size: 0.9rem;
}

/* About Me Profile */
.profile-image-container {
    height: 100%;
    min-height: 500px;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    display: flex;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s ease;
}

.profile-image-container:hover .profile-img {
    transform: scale(1.03);
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.skill-item h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: var(--color-heading);
}

.skill-item p {
    color: var(--color-text);
    padding-left: 28px;
    font-size: 0.95rem;
}

/* Animations that are not GSAP */
.mt-2 {
    margin-top: 2rem;
}

/* Portfolio Carousel Section */
.portfolio {
    position: relative;
    z-index: 10;
}

.portfolio-carousel-wrapper {
    position: relative;
    padding: 0 10px;
    margin: 0 auto;
    max-width: 100%;
}

.portfolio-swiper {
    padding-bottom: 60px;
    /* Space for pagination */
    padding-top: 10px;
}

.portfolio-swiper .swiper-slide {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: #000;
    /* Aspect ratio for the images to look uniform */
    aspect-ratio: 16/9;
}

@media (max-width: 768px) {
    .portfolio-swiper .swiper-slide {
        aspect-ratio: 4/5;
        /* Taller on mobile */
    }
}

.portfolio-swiper .swiper-slide a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    display: block;
}

.portfolio-swiper .swiper-slide:hover .portfolio-img {
    transform: scale(1.08);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(2, 78, 127, 0.8), rgba(2, 78, 127, 0.2));
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-swiper .swiper-slide:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay i {
    color: white;
    font-size: 3rem;
    transform: scale(0.5);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.portfolio-swiper .swiper-slide:hover .portfolio-overlay i {
    transform: scale(1);
}

/* Swiper Customization */
.portfolio-swiper .swiper-pagination-bullet {
    background: var(--color-blue);
    opacity: 0.3;
    width: 10px;
    height: 10px;
    transition: all 0.3s ease;
}

.portfolio-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--color-orange);
    width: 25px;
    border-radius: 5px;
}

.portfolio-swiper .swiper-button-next,
.portfolio-swiper .swiper-button-prev {
    color: var(--color-orange);
    background: rgba(255, 255, 255, 0.9);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.portfolio-swiper .swiper-button-next:after,
.portfolio-swiper .swiper-button-prev:after {
    font-size: 1.2rem;
    font-weight: 900;
}

.portfolio-swiper .swiper-button-next:hover,
.portfolio-swiper .swiper-button-prev:hover {
    background: var(--color-blue);
    color: white;
    transform: scale(1.1);
}

/* Responsive Data */
@media (max-width: 900px) {
    .immersive-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }

    .title-creative {
        order: 1;
        font-size: clamp(3rem, 12vw, 4.5rem);
        /* Increased slightly */
        text-align: center;
        align-self: center;
        /* Center horizontally in flex column */
        width: 100%;
    }

    .subtitle-creative {
        order: 2;
        text-align: center;
        align-self: center;
        margin-top: 1rem;
        /* Restored original margin */
        font-size: 0.75rem;
        /* Decreased considerably */
        letter-spacing: 2px;
    }

    .description-creative {
        order: 3;
        text-align: center;
        align-self: center;
        margin: -1.5rem auto 0;
        /* Strong negative top margin to close the gap */
        font-size: 0.9rem;
        /* Decreased considerably */
        line-height: 1.5;
        max-width: 95%;
    }

    .hero-widget {
        order: 4;
        align-self: center !important;
        justify-self: center !important;
        width: fit-content;
        max-width: 90%;
        margin: 1rem auto 0 !important;
        padding: 1rem 1.2rem;
        gap: 1rem;
        flex-direction: row;
        text-align: left;
        border-radius: 100px;
    }

    .hero-widget .widget-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .hero-widget .widget-content h4 {
        font-size: 0.95rem;
        margin-bottom: 2px;
    }

    .hero-widget .widget-content p {
        font-size: 0.75rem;
        line-height: 1.2;
    }

    .hero-actions-creative {
        order: 5;
        margin-top: 1rem;
    }

    .hero-stats-glass {
        order: 6;
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }

    .hero>.container,
    .services-wrapper,
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero {
        padding-top: 120px;
        text-align: center;
    }

    .hero-glass-card {
        transform: none;
    }

    .nav-links {
        display: none;
        /* simple mobile hide for now, would need JS toggle */
    }

    .mobile-menu-btn {
        display: block;
    }
}