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

:root {
    --primary: #00b4d8;
    --secondary: #0096c7;
    --accent: #0077b6;
    --dark-blue: #023e8a;
    --darkest: #03045e;
    --bg-dark: #05080f;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;

    /* Premium Glass Effect */
    --card-bg: rgba(30, 41, 59, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    /* More subtle border */
    --glass-shine: rgba(255, 255, 255, 0.03);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    /* App-like feel: prevent text selection and default cursor */
    cursor: default;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Re-enable text selection/cursor for inputs */
input,
textarea,
[contenteditable] {
    cursor: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

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

/* Background Gradients (Atmosphere) */
.bg-glow-top {
    position: fixed;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.15) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
}

.bg-glow-bottom {
    position: fixed;
    bottom: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(3, 4, 94, 0.2) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
}

/* Layout - Grid System */
.app-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 350px 1fr;
    /* Fixed Profile Card + Fluid Content */
    gap: 30px;
    padding-top: 40px;
}

/* 1. Profile Sidebar (Floating Card Style) */
.profile-sidebar {
    position: sticky;
    top: 40px;
    height: fit-content;
    background: #101624;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    /* Slightly reduced radius */
    padding: 1.5rem 1.2rem;
    /* Reduced padding significantly */
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.profile-img-container {
    width: 110px;
    /* Reduced from 150px */
    height: 110px;
    margin: 0 auto 1rem;
    /* Reduced bottom margin */
    position: relative;
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: #fdfdfd;
    padding: 2px;
}

/* "AYAZ K." Badge Style */
.brand-badge {
    background: rgba(0, 180, 216, 0.1);
    color: var(--primary);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: inline-block;
}

.profile-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.profile-role {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* Sidebar Contact Info */
.info-list {
    text-align: left;
    margin-bottom: 1.5rem;
    /* Reduced from 2rem */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
    /* Reduced from 2rem */
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    /* Reduced gap */
    margin-bottom: 0.8rem;
    /* Reduced from 1.2rem */
}

.info-icon-box {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.info-content .label {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-content .value {
    font-size: 0.95rem;
    color: #fff;
    font-weight: 500;
}

.btn-sidebar-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--primary);
    color: #fff;
    width: 100%;
    padding: 0.75rem;
    /* Reduced padding */
    border-radius: 10px;
    font-size: 0.9rem;
    /* Slightly smaller text */
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.btn-sidebar-contact:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 180, 216, 0.2);
}

/* 2. Main Content Area */
.main-content {
    background: #101624;
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    height: fit-content;
    max-width: 850px;
    /* Fixed width limitation as requested */
    width: 100%;
}

/* Hero Buttons */
.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(16, 22, 36, 0.8);
    border: 1px solid var(--primary);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: 0.3s;
    box-shadow: 0 0 15px rgba(0, 180, 216, 0.2);
    text-decoration: none;
}

.btn-hero-primary:hover {
    box-shadow: 0 0 25px rgba(0, 180, 216, 0.4);
    background: rgba(0, 180, 216, 0.1);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #00f0ff;
    /* Bright cyan for dot */
    border-radius: 50%;
    box-shadow: 0 0 10px #00f0ff;
    animation: pulse 2s infinite;
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-size: 0.95rem;
    transition: 0.3s;
    text-decoration: none;
}

.btn-hero-secondary:hover {
    border-color: #fff;
    color: #fff;
}

.btn-hero-secondary.active {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(0, 180, 216, 0.05);
}

.btn-hero-primary.active {
    box-shadow: 0 0 25px rgba(0, 180, 216, 0.4);
    background: rgba(0, 180, 216, 0.1);
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
        box-shadow: 0 0 15px #00f0ff;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.7;
    }
}

/* Navbar - Hidden on Desktop, Shown on Mobile */
.navbar {
    display: none;
}

.nav-link {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 5px;
}

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

/* Hero Section */
.hero-section {
    padding: 5rem 4rem;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.hero-subtitle {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #fff;
}

.hero-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.stats-row {
    display: flex;
    gap: 4rem;
    margin-top: 2rem;
}

/* Profile Image */
.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: #f0f0f0;
    /* Off-white background as requested */
    padding: 2px;
    /* Slight padding to show bg */
}

/* ... existing code ... */

/* Stats Cards with Rotating Border */
.stat-item {
    position: relative;
    background: rgba(16, 22, 36, 0.6);
    padding: 1.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    overflow: hidden;
    min-width: 140px;
    z-index: 1;
}

.stat-item::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: conic-gradient(transparent, var(--primary), transparent 30%);
    top: -25%;
    left: -25%;
    animation: rotate-border 4s linear infinite;
    z-index: -2;
}

.stat-item::after {
    content: '';
    position: absolute;
    inset: 2px;
    /* Border width */
    background: #0a0f1c;
    /* Inner card bg */
    border-radius: 14px;
    z-index: -1;
}

@keyframes rotate-border {
    0% {
        transform: rotate(0deg);
    }

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

.stat-item h3 {
    font-size: 2.2rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.stat-item p {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Projects Section */
.projects-section {
    padding: 4rem;
    border-top: 1px solid var(--glass-border);
}

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

.project-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.04);
}

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}

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

.project-content {
    padding: 1.5rem;
}

.project-tags {
    font-size: 0.75rem;
    color: var(--primary);
    background: rgba(0, 180, 216, 0.1);
    padding: 3px 8px;
    border-radius: 5px;
    margin-bottom: 10px;
    display: inline-block;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 1rem;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Marquee / Technologies */
.tech-section {
    padding: 3rem 0;
    border-top: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin-top: 2rem;
}

.marquee-content {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: scroll 20s linear infinite;
}

.tech-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 1rem 2rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    white-space: nowrap;
    min-width: 140px;
    justify-content: center;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-reverse {
    0% {
        transform: translateX(-50%);
    }

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

.marquee-content-reverse {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: scroll-reverse 25s linear infinite;
    margin-top: 20px;
}

/* Services */
.services-section {
    padding: 4rem;
    border-top: 1px solid var(--glass-border);
}

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

.service-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 16px;
    transition: 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 180, 216, 0.3);
}

.section-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.service-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
    color: var(--primary);
}

/* Contact */
.contact-section {
    padding: 4rem;
    border-top: 1px solid var(--glass-border);
}

.contact-form .row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-control {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    padding: 1.2rem;
    border-radius: 12px;
    color: #fff;
}

/* Dynamic Content Sections */
.content-section {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* About Section */
.about-section {
    padding: 4rem;
    border-top: 1px solid var(--glass-border);
}

.about-content {
    display: grid;
    gap: 3rem;
}

.about-mission blockquote {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text-muted);
    line-height: 2;
    padding: 2rem 3rem;
    border-left: 4px solid var(--primary);
    background: rgba(0, 180, 216, 0.03);
    border-radius: 12px;
    margin: 0;
}

.about-mission blockquote::before {
    content: '"';
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.3;
}

/* Hero Button Icon Spacing */
.btn-hero-primary i,
.btn-hero-secondary i {
    margin-left: 8px;
}

/* Mobile Responsive */
/* Mobile Responsive */
@media (max-width: 1024px) {
    body {
        padding: 0;
        background-color: var(--bg-dark);
    }

    .app-container {
        display: flex;
        flex-direction: column;
        padding-top: 0;
        gap: 0;
    }

    /* 1. Profile as Header Card */
    .profile-sidebar {
        position: relative;
        top: 0;
        margin: 0;
        border-radius: 0 0 30px 30px;
        padding: 2rem 1.5rem;
        background: radial-gradient(circle at top, #101624, var(--bg-dark));
        border: none;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        z-index: 100;
    }

    .profile-img-container {
        width: 100px;
        height: 100px;
        margin-bottom: 0.5rem;
    }

    .profile-name {
        font-size: 1.4rem;
    }

    .profile-role {
        font-size: 0.85rem;
        margin-bottom: 0;
    }

    .info-list,
    .btn-sidebar-contact {
        display: none;
    }

    /* 2. Main Content Stack */
    .main-content {
        margin: 0;
        border: none;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        padding-bottom: 50px;
    }

    /* Sections Padding */
    .services-section,
    .projects-section,
    .contact-section {
        padding: 3rem 1rem;
    }

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

    /* ADDED: More spacing for mobile headers */
    .section-header p {
        margin-bottom: 2rem;
    }

    /* ADDED: Fix Contact Button Visibility on Mobile */
    .contact-form .btn-sidebar-contact {
        display: flex;
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }

    /* Redesigned Minimal Mobile Navbar */
    .navbar {
        position: sticky;
        top: 10px;
        width: 90%;
        margin: 0 auto;
        border-radius: 20px;
        background: rgba(5, 8, 15, 0.85);
        /* Dark theme match */
        backdrop-filter: blur(15px);
        padding: 0.8rem 1.5rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        overflow-x: hidden;
        border: 1px solid rgba(255, 255, 255, 0.05);
        /* Very subtle border */
        z-index: 999;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    }

    .navbar::-webkit-scrollbar {
        display: none;
    }

    .nav-link {
        font-size: 0.85rem;
        font-weight: 500;
        color: var(--text-muted);
        padding: 5px 10px;
        margin: 0;
        transition: 0.3s;
    }

    .nav-link.active,
    .nav-link:hover {
        color: #fff;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
    }

    /* Hero adjustments */
    .hero-section {
        padding: 6rem 1rem 3rem 1rem;
        /* Top padding for navbar space */
        text-align: center;
        min-height: auto;
    }

    .hero-subtitle {
        font-size: 0.8rem !important;
        letter-spacing: 4px !important;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.1;
    }

    /* Minimal Uniform Stats Row */
    .stats-row {
        display: grid;
        /* Use grid for uniformity */
        grid-template-columns: repeat(3, 1fr);
        /* 3 equal columns */
        gap: 10px;
        margin-top: 2rem;
    }

    .stat-item {
        min-width: auto;
        padding: 1rem 0.5rem;
        /* Minimal padding */
        border-radius: 12px;
    }

    .stat-item h3 {
        font-size: 1.4rem;
        /* Minimal size */
        margin-bottom: 0;
    }

    .stat-item p {
        font-size: 0.6rem;
        /* Tiny label */
        margin-top: 5px;
    }

    /* Projects Grid 1 Col */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Services Grid 2 Cols Side-by-Side */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 Columns on Mobile */
        gap: 10px;
    }

    .service-card {
        padding: 1rem;
        /* Compact padding */
    }

    .service-icon {
        width: 30px;
        height: 30px;
        margin-bottom: 0.5rem;
    }

    .service-card h3 {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }

    .service-card p {
        font-size: 0.7rem;
        line-height: 1.3;
    }

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

    /* Sections Padding */
    .services-section,
    .projects-section,
    .contact-section {
        padding: 3rem 1rem;
    }

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

    /* Tech Marquee */
    .marquee-content,
    .marquee-content-reverse {
        gap: 15px;
    }

    .tech-item {
        padding: 0.6rem 1rem;
        min-width: 100px;
        font-size: 0.8rem;
    }

    .tech-item i {
        width: 24px;
        height: 24px;
    }

    /* Hero Actions Mobile - 3 in a row */
    .hero-actions {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px !important;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        font-size: 0.75rem;
        padding: 0.6rem 0.8rem;
        justify-content: center;
        text-align: center;
    }

    .btn-hero-primary i,
    .btn-hero-secondary i {
        display: none;
        /* Hide icons on mobile for space */
    }

    .pulse-dot {
        width: 6px;
        height: 6px;
    }

    /* About Section Mobile */
    .about-mission blockquote {
        font-size: 1rem;
        padding: 1.5rem;
        line-height: 1.8;
    }
}