/* PREMIUM GLASSMORPHIC CYBERPUNK BASE */
:root {
    --bg-main: #0a030f;
    --bg-card: rgba(25, 10, 35, 0.4);
    --border-glass: rgba(255, 0, 127, 0.15);
    --border-glow: rgba(255, 0, 127, 0.4);

    --accent-pink: #ff007f;
    --accent-cyan: #00f0ff;

    --text-primary: #fdfdfd;
    --text-secondary: #a89db1;
    --text-gradient: linear-gradient(90deg, #ff007f, #00f0ff);

    --font-heading: 'Outfit', system-ui, sans-serif;
    --font-body: 'Outfit', system-ui, sans-serif;
    --font-mono: 'Fira Code', monospace;

    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

/* TYPOGRAPHY */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    font-weight: 800;
}

p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
}

a {
    color: var(--accent-pink);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

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

.mono-label {
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 1rem;
}

.center {
    text-align: center;
}

/* LAYOUT & UTILS */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

section {
    padding: 120px 0;
    position: relative;
    z-index: 10;
}

/* AMBIENT LIGHTING ORBS */
.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    opacity: 0.5;
    animation: floatOrb 20s infinite ease-in-out alternate;
}

.orb-pink {
    top: 5%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: rgba(255, 0, 127, 0.4);
}

.orb-cyan {
    bottom: 20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(0, 240, 255, 0.3);
    animation-delay: -5s;
}

@keyframes floatOrb {
    0% {
        transform: translate(0, 0) scale(1);
    }

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

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

/* GLASSMORPHISM CARDS */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 3rem;
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: var(--border-glow);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 0, 127, 0.1);
    transform: translateY(-5px);
}

/* NAVIGATION */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    /* Glass nav base */
    background: rgba(10, 3, 15, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

#navbar.scrolled {
    padding: 1rem 5%;
    background: rgba(10, 3, 15, 0.85);
    border-bottom: 1px solid var(--border-glass);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-brand {
    font-size: 1.4rem;
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: 0.05em;
}

.brand-accent {
    color: var(--accent-pink);
}

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

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--accent-cyan);
}

.nav-cta-link {
    color: var(--accent-pink) !important;
    border: 1px solid var(--accent-pink);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
}

.nav-cta-link:hover {
    background: rgba(255, 0, 127, 0.1);
    box-shadow: 0 0 15px rgba(255, 0, 127, 0.3);
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 1.1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    text-align: center;
}

.primary-btn {
    background: var(--text-gradient);
    color: #fff;
    box-shadow: 0 10px 20px rgba(255, 0, 127, 0.3);
    border: none;
}

.primary-btn:hover {
    box-shadow: 0 15px 30px rgba(0, 240, 255, 0.4);
    transform: translateY(-3px);
}

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

.secondary-btn:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.cta-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

/* HERO SECTION */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 15vh;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 50px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-cyan);
    margin-bottom: 2rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-cyan);
    animation: pulse 2s infinite;
}

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

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }

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

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-desc {
    font-size: 1.35rem;
    max-width: 600px;
}

/* HERO IMAGE (Modern Masking) */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.image-wrapper {
    width: 100%;
    max-width: 450px;
    aspect-ratio: 4/5;
    padding: 1rem;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    transform: rotate(2deg);
    transition: var(--transition-smooth);
}

.image-wrapper:hover {
    transform: rotate(0deg) scale(1.02);
}

.profile-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    filter: contrast(1.1) brightness(0.9);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(10, 3, 15, 0.8) 0%, rgba(10, 3, 15, 0) 50%);
    pointer-events: none;
}

/* ABOUT SECTION */
.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
}

.section-subtitle {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 1rem 0 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
}

.about-text p {
    font-size: 1.2rem;
}

/* TAG LIST */
.tech-stack h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.tag-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tag-list li {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.tag-list li:hover {
    border-color: var(--accent-pink);
    color: var(--accent-pink);
    background: rgba(255, 0, 127, 0.05);
    transform: translateY(-2px);
}

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

.service-card {
    padding: 3.5rem 2.5rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    background: rgba(25, 10, 35, 0.8);
}

.pink-glow {
    color: var(--accent-pink);
    box-shadow: 0 0 30px rgba(255, 0, 127, 0.2);
    border: 1px solid rgba(255, 0, 127, 0.3);
}

.cyan-glow {
    color: var(--accent-cyan);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.2);
    border: 1px solid rgba(0, 240, 255, 0.3);
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

/* TIMELINE (TRACK RECORD) */
.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 2rem;
    border-left: 2px solid var(--border-glass);
}

.timeline-item {
    position: relative;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.6rem;
    top: 3rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-main);
    border: 3px solid var(--accent-pink);
    box-shadow: 0 0 10px var(--accent-pink);
}

.timeline-meta {
    margin-bottom: 1.5rem;
}

.timeline-meta h3 {
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
}

/* WRITING & OPEN SOURCE CARDS */
.writing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 3rem;
}

.writing-card {
    display: block;
    text-decoration: none;
    color: var(--text-primary);
    padding: 3rem;
}

.writing-meta {
    margin-bottom: 1.5rem;
}

.writing-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    transition: var(--transition-smooth);
}

/* BLOG INDEX 3-COLUMN CARDS */
.blog-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    transition: var(--transition-smooth);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid var(--border-glass);
}

.blog-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-meta {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    opacity: 0.8;
}

.blog-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-card .read-more {
    margin-top: auto;
    align-self: flex-start;
}


.read-more {
    display: inline-block;
    margin-top: 1.5rem;
    font-weight: 600;
    color: var(--accent-pink);
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    transition: var(--transition-smooth);
}

.writing-card:hover .read-more,
.service-card:hover .read-more {
    background: rgba(255, 0, 127, 0.1);
    border-color: var(--accent-pink);
    transform: translateX(10px);
}

/* AGENCY BANNER */
.agency-banner {
    display: flex;
    padding: 5rem;
    gap: 4rem;
    align-items: center;
}

.glow-border {
    position: relative;
    overflow: hidden;
}

.glow-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--text-gradient);
}

.agency-content {
    flex: 2;
}

.agency-content h2 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.agency-btn {
    margin-top: 2rem;
}

.agency-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.cyber-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 2px dashed var(--accent-cyan);
    position: relative;
    animation: rotate 20s linear infinite;
}

.cyber-circle::before {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    border: 1px solid rgba(255, 0, 127, 0.5);
    animation: rotate 15s linear infinite reverse;
}

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

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

/* CONTACT SECTION */
.contact-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 6rem 4rem;
}

.contact-card h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

/* FOOTER */
footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(10, 3, 15, 0.8);
}

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

.footer-heading {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-list {
    list-style: none;
}

.footer-list li {
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.footer-link {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-link:hover {
    color: var(--accent-pink);
}

.footer-copy .nav-brand {
    margin-bottom: 1rem;
}

/* RESPONSIVE */
@media (max-width: 1024px) {

    .hero-grid,
    .about-grid,
    .agency-banner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .agency-banner {
        flex-direction: column;
        padding: 3rem;
        text-align: center;
    }

    .cta-group {
        flex-direction: column;
    }
}

/* MOBILE TOGGLE (Safari Flex Bug Proof) */
.mobile-toggle {
    display: none;
    width: 48px;
    height: 48px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    position: relative;
    padding: 0;
}

.mobile-toggle .bar {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 5px;
    position: absolute;
    left: 9px;
    transition: var(--transition-smooth);
}

.mobile-toggle .bar:nth-child(1) { top: 13px; }
.mobile-toggle .bar:nth-child(2) { top: 22px; }
.mobile-toggle .bar:nth-child(3) { top: 31px; }

/* Active states */
.mobile-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.mobile-toggle.active .bar:nth-child(2) {
    opacity: 0;
}
.mobile-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(10, 3, 15, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
    }

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

    .nav-links a {
        font-size: 1.5rem;
        display: block;
        padding: 1rem 2rem;
    }

    #hero {
        padding-top: 150px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .contact-links {
        flex-direction: column;
    }
}

/* MEDIUM STYLE ARTICLE LAYOUT */
.blog-article {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 1rem 4rem;
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.blog-article h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 2rem;
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.02em;
    background: var(--text-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.blog-article h2,
.blog-article h3,
.blog-article h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: 2rem;
    color: var(--text-primary);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.article-byline {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-glass);
}

.byline-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--text-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

.byline-info {
    display: flex;
    flex-direction: column;
}

.byline-name {
    font-weight: 600;
    font-size: 1.05rem;
}

.byline-meta {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.blog-article p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.85);
}

.blog-article ul,
.blog-article ol {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    padding-left: 2rem;
    color: rgba(255, 255, 255, 0.85);
}

.blog-article li {
    margin-bottom: 0.5rem;
}

.blog-article pre {
    background: rgba(0, 0, 0, 0.5);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 2rem;
    border: 1px solid var(--border-glass);
}

.blog-article pre code {
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    white-space: pre;
}

.blog-article img {
    margin: 3rem auto;
    width: 100vw;
    max-width: 1000px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    display: block;
    border-radius: 8px;
}

.geo-snippet {
    padding: 1rem;
    margin: 1.5rem 0;
    border-left: 3px solid var(--accent-color);
    background: rgba(0, 255, 204, 0.05);
    font-size: 0.95rem;
    font-style: italic;
    color: #e0e0e0;
}

/* CYBERPUNK TABLES */
.blog-article table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--accent-cyan);
    display: block;
    overflow-x: auto;
}

.blog-article th,
.blog-article td {
    padding: 1rem;
    border: 1px solid var(--accent-cyan);
    text-align: left;
    color: var(--text-secondary);
}

.blog-article th {
    background: rgba(0, 240, 255, 0.05);
}

.blog-article th strong,
.blog-article td strong {
    color: var(--accent-pink);
    font-weight: 600;
}

/* NEWS SECTION CSS GRID */
.news-list-container {
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1rem;
}

.news-list-header {
    display: grid;
    grid-template-columns: 15rem 15rem 1fr;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: var(--font-mono);
}

.news-item {
    display: grid;
    grid-template-columns: 15rem 15rem 1fr;
    padding: 1.5rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
    align-items: center;
}

.news-item:hover {
    background: rgba(255, 255, 255, 0.02);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item .col-date {
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.95rem;
}

.news-item .col-category {
    color: var(--accent-cyan);
    font-weight: 600;
    font-size: 0.95rem;
}

.news-item .col-title {
    color: var(--text-primary);
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.4;
    transition: var(--transition-smooth);
}

.news-item:hover .col-title {
    color: var(--accent-pink);
}

/* Responsive adjustments for the News Section */
@media (max-width: 768px) {
    .news-list-header {
        display: none;
    }
    
    .news-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 1.5rem;
    }
    
    .news-item .col-date,
    .news-item .col-category {
        font-size: 0.85rem;
        display: inline-block;
        margin-right: 1rem;
    }
    
    .news-item .col-title {
        font-size: 1.1rem;
        margin-top: 0.5rem;
    }
}
