:root {
    --primary: #4FACFE;
    --secondary: #00F2FE;
    --dark: #0E2439;
    --light: #FFFFFF;
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--dark);
    color: var(--light);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: 0.3s;
    background: rgba(14, 36, 57, 0.8);
    backdrop-filter: blur(10px);
}

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

/* Logo Switcher */
.logo-switcher a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    width: 150px;
    /* Adjust as needed */
    text-decoration: none;
}

.logo-img,
.logo-text {
    position: absolute;
    transition: opacity 1s ease-in-out;
    opacity: 0;
}

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

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light);
    white-space: nowrap;
    text-shadow: 0 0 10px rgba(79, 172, 254, 0.5);
}

.logo-img.active,
.logo-text.active {
    opacity: 1;
}

/* Ensure container has proper width */
.logo {
    width: 150px;
    height: 60px;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: 0.3s;
}

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

.menu-badge {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9em;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    width: 50%;
    z-index: 10;
    animation: slideUp 1s ease-out;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--light), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: #cbd5e1;
    margin-bottom: 30px;
}

.cta-btn {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: var(--dark);
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: 0.3s;
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.5);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(79, 172, 254, 0.8);
}

/* Visual Elements */
.hero-visual {
    position: absolute;
    right: -10%;
    top: 50%;
    transform: translateY(-50%);
    width: 60%;
    height: 80%;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

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

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

.glass-card {
    position: absolute;
    background: rgba(14, 36, 57, 0.6);
    border: 1px solid rgba(79, 172, 254, 0.3);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 20px;
    animation: float 8s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: var(--secondary);
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.2);
    transform: scale(1.02);
}

/* AI Processing Dot */
.processing-dot {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
    box-shadow: 0 0 10px var(--secondary);
}

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

    50% {
        opacity: 1;
        transform: scale(1.5);
    }

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

/* Scan Line Animation */
.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(79, 172, 254, 0.1), transparent);
    transform: translateY(-100%);
    animation: scan 4s linear infinite;
    pointer-events: none;
}

@keyframes scan {
    0% {
        transform: translateY(-100%);
    }

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

/* Typing Animation Logic */
.code-line {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    border-right: 2px solid transparent;
    font-family: 'Fira Code', monospace;
    /* Ensure monospace font if possible, or inherit */
    margin-bottom: 2px;
}

/* Animation Classes */
.type-anim-1 {
    animation: typing 1s steps(20, end) forwards, blink 0.5s step-end infinite alternate;
    animation-delay: 0.5s;
}

.type-anim-2 {
    animation: typing 1s steps(20, end) forwards, blink 0.5s step-end infinite alternate;
    animation-delay: 1.5s;
}

.type-anim-3 {
    animation: typing 1s steps(20, end) forwards, blink 0.5s step-end infinite alternate;
    animation-delay: 2.5s;
}

.type-anim-4 {
    animation: typing 1s steps(20, end) forwards, blink 0.5s step-end infinite alternate;
    animation-delay: 3.5s;
}

.type-anim-5 {
    animation: typing 1s steps(20, end) forwards, blink 0.5s step-end infinite alternate;
    animation-delay: 4.5s;
}

.type-anim-6 {
    animation: typing 1s steps(20, end) forwards, blink 0.5s step-end infinite alternate;
    animation-delay: 5.5s;
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink {
    50% {
        border-color: var(--secondary);
    }
}

.card-1 {
    top: 30%;
    right: 40%;
    width: 240px;
    height: auto;
    /* Allow height to fit content */
    animation-delay: -1s;
}

.card-2 {
    bottom: 20%;
    right: 15%;
    width: 260px;
    height: auto;
    /* Allow height to fit content */
    animation-delay: -4s;
    z-index: 2;
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

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

@keyframes float {

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

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

/* Mobile Responsive */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 80px;
    }

    .hero-content {
        width: 100%;
    }

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

    .hero-visual {
        display: none;
    }

    .nav-links {
        display: none;
        /* Hidden by default on mobile, shown via JS toggling class */
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(14, 36, 57, 0.98);
        backdrop-filter: blur(15px);
        padding: 20px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        animation: slideDown 0.3s ease-out;
    }

    .nav-links li {
        text-align: center;
        margin: 15px 0;
    }

    .nav-links .dropdown-menu {
        position: static;
        background: transparent;
        box-shadow: none;
        border: none;
        padding: 10px 0 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        /* Hidden sub-menu initially */
    }

    .nav-links .dropdown.active .dropdown-menu {
        display: block;
    }

    /* Hamburger Menu */
    .mobile-menu-btn {
        display: block;
        cursor: pointer;
        z-index: 1001;
    }

    .bar {
        width: 30px;
        height: 3px;
        background-color: var(--light);
        margin: 6px 0;
        transition: 0.4s;
        border-radius: 2px;
    }

    /* Animation for Hamburger */
    .mobile-menu-btn.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .mobile-menu-btn.active .bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

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

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

/* Hide Hamburger on Desktop */
@media (min-width: 901px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 280px;
    background: rgba(14, 36, 57, 0.95);
    backdrop-filter: blur(10px);
    list-style: none;
    padding: 10px 0;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.3s ease;
    border: 1px solid var(--glass-border);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    font-size: 0.95rem;
    color: var(--light);
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-menu a:hover {
    background: var(--glass);
    color: var(--primary);
    padding-left: 25px;
}

/* Modern Footer Styles */
.modern-footer {
    position: relative;
    background: #0b1118;
    color: var(--light);
    overflow: hidden;
    margin-top: 0;
    font-family: 'Outfit', sans-serif;
}

/* Marquee Scroller */
.marquee-scroller {
    background: var(--primary);
    padding: 10px 0;
    overflow: hidden;
    position: relative;
    z-index: 5;
    transform: rotate(-1deg) scale(1.05);
    /* Slight tilt for 'uncommon' feel */
    margin-bottom: 50px;
    box-shadow: 0 5px 20px rgba(79, 172, 254, 0.3);
}

.marquee-content {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 20s linear infinite;
    font-weight: 700;
    color: var(--dark);
    font-size: 1.2rem;
    letter-spacing: 2px;
}

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

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

/* Footer CTA */
.footer-cta {
    text-align: center;
    padding: 80px 0;
    background: radial-gradient(circle at center, rgba(79, 172, 254, 0.1) 0%, transparent 70%);
}

.footer-cta h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.footer-cta p {
    font-size: 1.2rem;
    color: #cbd5e1;
    margin-bottom: 40px;
}

.footer-btn {
    display: inline-block;
    padding: 18px 50px;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.footer-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--primary);
    z-index: -1;
    transition: 0.3s;
}

.footer-btn:hover::before {
    width: 100%;
}

.footer-btn:hover {
    color: var(--dark);
    box-shadow: 0 0 30px rgba(79, 172, 254, 0.6);
}

/* Footer Main */
.footer-main {
    padding: 80px 0 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(14, 36, 57, 0.3);
    /* Glassy feeling */
    backdrop-filter: blur(10px);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.footer-col h3 {
    color: var(--light);
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--secondary);
}

/* Brand Col */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 40px;
}

.footer-logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light);
}

.brand-desc {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Social Icons */
.social-links {
    display: flex;
    gap: 15px;
}

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

.social-icon:hover {
    background: var(--primary);
    color: var(--dark);
    transform: translateY(-5px);
    box-shadow: 0 0 15px var(--primary);
}

/* Links */
.footer-links,
.contact-info {
    list-style: none;
}

.footer-links li,
.contact-info li {
    margin-bottom: 15px;
}

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

.footer-links a:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #94a3b8;
}

.contact-info i {
    color: var(--secondary);
}

/* Footer Bottom */
.footer-bottom {
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: #05090d;
}

.bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #64748b;
    font-size: 0.9rem;
}

.legal-links a {
    color: #64748b;
    text-decoration: none;
    margin-left: 20px;
    transition: 0.3s;
}

.legal-links a:hover {
    color: var(--light);
}

/* Responsive Footer */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .brand-col,
    .contact-col {
        grid-column: span 2;
    }

    .footer-bottom-grid {
        flex-direction: column;
        gap: 15px;
    }

    .footer-legal {
        margin-top: 10px;
    }


    .marquee-scroller {
        transform: rotate(0);
        margin-bottom: 30px;
    }

    .footer-cta h2 {
        font-size: 2.5rem;
    }
}

.footer-bottom-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #64748b;
    font-size: 0.9rem;
}

.footer-legal a {
    color: #64748b;
    text-decoration: none;
    margin-left: 20px;
    transition: 0.3s;
}

.footer-legal a:hover {
    color: var(--light);
}


@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .brand-col,
    .contact-col {
        grid-column: span 1;
    }

    .bottom-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }


    .legal-links a {
        margin: 0 10px;
    }
}

/* Coding Theme Enhancements */
.code-window {
    width: 100%;
    height: 100%;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
}

.code-header {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.code-content {
    flex: 1;
    overflow: hidden;
}

.code-line {
    display: block;
    white-space: nowrap;
}

.keyword {
    color: #f472b6;
}

/* Pink */
.function {
    color: #60a5fa;
}

/* Blue */
.string {
    color: #a3e635;
}

/* Lime Green */
.comment {
    color: #64748b;
    font-style: italic;
}

.operator {
    color: #f87171;
}

/* Red */
.class-name {
    color: #fbbf24;
}

/* Yellow */

/* Custom Cursor Styles */
body {
    cursor: none;
    /* Hide default cursor */
}

.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--secondary);
    box-shadow: 0 0 10px var(--secondary);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(79, 172, 254, 0.5);
    background: rgba(79, 172, 254, 0.05);
    /* Slight tint */
    transition: width 0.2s, height 0.2s, background-color 0.2s, border-color 0.2s;
    will-change: transform;
    /* Optimize for movement */
}

/* Hover State */
body.hovering .cursor-outline {
    width: 60px;
    height: 60px;
    background: rgba(0, 242, 254, 0.1);
    border-color: var(--secondary);
}

/* Technologies Page Styles */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.tech-card {
    position: relative;
    padding: 40px 30px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    text-align: center;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, var(--glow-color, rgba(255, 255, 255, 0.1)), transparent 70%);
    opacity: 0;
    transition: 0.4s;
}

.tech-card:hover {
    transform: translateY(-10px);
    border-color: var(--glow-color);
    box-shadow: 0 20px 40px -10px var(--glow-color-dim, rgba(0, 0, 0, 0.5));
}

.tech-card:hover::before {
    opacity: 0.3;
}

.tech-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--glow-color);
    filter: drop-shadow(0 0 10px var(--glow-color-dim));
    transition: 0.4s;
}

.tech-card:hover .tech-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px var(--glow-color));
}

.tech-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: #fff;
}

.tech-card p {
    color: #94a3b8;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Specific Tech Colors */
.tech-react {
    --glow-color: #61DAFB;
    --glow-color-dim: rgba(97, 218, 251, 0.3);
}

.tech-vue {
    --glow-color: #42b883;
    --glow-color-dim: rgba(66, 184, 131, 0.3);
}

.tech-laravel {
    --glow-color: #FF2D20;
    --glow-color-dim: rgba(255, 45, 32, 0.3);
}

.tech-php {
    --glow-color: #777BB4;
    --glow-color-dim: rgba(119, 123, 180, 0.3);
}

.tech-mysql {
    --glow-color: #00758F;
    --glow-color-dim: rgba(0, 117, 143, 0.3);
}

.tech-node {
    --glow-color: #68A063;
    --glow-color-dim: rgba(104, 160, 99, 0.3);
}

.tech-express {
    --glow-color: #ffffff;
    --glow-color-dim: rgba(255, 255, 255, 0.3);
}


/* Tech Stacks Section */
.stack-section {
    padding: 80px 0;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(11, 26, 43, 0.4);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 20%;
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
}

.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.stack-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    transition: 0.4s;
    position: relative;
    overflow: hidden;
}

.stack-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
    border-color: var(--stack-color);
    box-shadow: 0 10px 30px -5px var(--stack-glow);
}

.stack-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
}

.stack-header h3 {
    font-size: 1.8rem;
    color: #fff;
    margin: 0;
}

.stack-icons {
    display: flex;
    gap: 15px;
}

.stack-icons i {
    font-size: 1.5rem;
    color: var(--stack-color);
}

.stack-desc {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 20px;
}

.stack-components {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.stack-tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.85rem;
    color: var(--stack-color);
    border: 1px solid var(--stack-glow);
}

/* Stack Specifics */
.stack-mean {
    --stack-color: #e53e3e;
    --stack-glow: rgba(229, 62, 62, 0.3);
}

.stack-pern {
    --stack-color: #3182ce;
    --stack-glow: rgba(49, 130, 206, 0.3);
}

.stack-lamp {
    --stack-color: #805ad5;
    --stack-glow: rgba(128, 90, 213, 0.3);
}

/* Blog Styles */
:root {
    --blog-bg: #f8f9fa;
    --blog-text: #333;
    --blog-card-bg: #fff;
    --blog-accent: #007bff;
}

body.dark-mode {
    --blog-bg: #121212;
    --blog-text: #e0e0e0;
    --blog-card-bg: #1e1e1e;
    --blog-accent: #4facfe;
}

/* Base Body Transition for Theme Toggle */
body {
    transition: background-color 0.3s, color 0.3s;
}

/* Blog Hero */
.blog-hero {
    padding: 100px 0 60px;
    text-align: center;
    background: radial-gradient(circle at center, rgba(11, 26, 43, 0.8) 0%, var(--dark) 70%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.blog-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.blog-hero p {
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.8;
    color: #cbd5e1;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 60px 0;
}

.blog-card {
    background: var(--blog-card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: var(--blog-text);
    display: block;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.blog-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.blog-content {
    padding: 24px;
}

.blog-category {
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--blog-accent);
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
}

.blog-title {
    font-size: 1.4em;
    margin: 0 0 12px;
    line-height: 1.3;
    color: var(--blog-text);
}

.blog-excerpt {
    font-size: 0.95em;
    opacity: 0.8;
    margin-bottom: 20px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--blog-text);
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85em;
    opacity: 0.6;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 16px;
    color: var(--blog-text);
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--blog-accent);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    transition: transform 0.3s;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

/* Single Post Styles */
.post-header {
    position: relative;
    height: 60vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding-bottom: 60px;
}

.post-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.8));
}

.post-title-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    padding: 0 20px;
}

.post-title-content h1 {
    font-size: 3em;
    margin: 0 0 10px;
}

.post-category-badge {
    background: var(--blog-accent);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 15px;
}

.post-body {
    max-width: 800px;
    margin: -40px auto 60px;
    background: var(--blog-card-bg);
    padding: 60px 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 3;
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--blog-text);
}

.post-body h3 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.5em;
    color: var(--blog-text);
}

.post-meta-details {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 0.9em;
    opacity: 0.7;
    color: var(--blog-text);
}

.back-btn {
    position: absolute;
    top: 30px;
    left: 30px;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    backdrop-filter: blur(5px);
    z-index: 10;
    transition: background 0.3s;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.related-section {
    padding: 60px 0;
    background: rgba(0, 0, 0, 0.02);
}

/* Blog Responsive */
@media (max-width: 768px) {
    .post-header {
        height: 50vh;
    }

    .post-body {
        margin: 0;
        border-radius: 0;
        padding: 40px 20px;
    }

    .post-title-content h1 {
        font-size: 2em;
    }
}