:root {
    --bg-color: #050d0a;
    --text-color: #ffffff;
    --accent-color: #c4f45d;
    --secondary-text: #94a3b8;
    --grid-color: rgba(255, 255, 255, 0.05);
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Grid */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -1;
    pointer-events: none;
}

.bg-grid::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, transparent 0%, var(--bg-color) 80%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
header {
    padding: 1.5rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.logo-icon {
    width: 32px;
    height: 32px;
    color: white;
    background: linear-gradient(135deg, var(--accent-color), #4ade80);
    border-radius: 8px;
    padding: 4px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary-text);
    font-size: 0.95rem;
    font-weight: 400;
    transition: var(--transition);
}

.nav-links a:hover {
    color: white;
}

/* Hero Section */
.hero {
    padding-top: 10rem;
    padding-bottom: 5rem;
    text-align: center;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 2rem;
    letter-spacing: -3px;
    position: relative;
    z-index: 1;
}

.hero h1::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: var(--accent-color);
    filter: blur(150px);
    opacity: 0.15;
    z-index: -1;
}

.gradient-text {
    background: linear-gradient(90deg, #c4f45d, #4ade80);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtext {
    color: var(--secondary-text);
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 4rem;
    line-height: 1.6;
}

/* Slider */
.slider-container {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
}

.slider-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: scroll 40s linear infinite;
}

.slider-item {
    width: 180px;
    height: 320px;
    border-radius: 20px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.slider-item:nth-child(even) {
    height: 280px;
    margin-top: 20px;
}

.slider-item:nth-child(3n) {
    height: 350px;
    margin-top: -15px;
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
    transition: var(--transition);
}

.slider-item:hover {
    transform: scale(1.05);
    border-color: var(--accent-color);
    z-index: 10;
}

.slider-item:hover img {
    filter: brightness(1.1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}


/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards ease-out;
}

.fade-in-delay {
    opacity: 0;
    animation: fadeIn 1s 0.3s forwards ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Blogs Section - LIGHT THEME (Based on Reference Image) */
.blogs-section {
    padding: 10rem 0;
    background-color: #ffffff;
    /* White background as requested */
    color: #333333;
    position: relative;
    z-index: 10;
}

.blogs-hero {
    width: 100%;
    margin-bottom: 8rem;
    display: flex;
    justify-content: center;
}

.blogs-banner {
    position: relative;
    width: 90%;
    max-width: 1100px;
    height: 500px;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    filter: grayscale(1);
}

.banner-overlay {
    position: absolute;
    text-align: center;
}

.banner-overlay h2 {
    font-size: clamp(3rem, 12vw, 10rem);
    font-weight: 300;
    letter-spacing: 40px;
    color: white;
    margin: 0;
    text-transform: uppercase;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6rem 4rem;
    padding-top: 4rem;
}

.blog-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.blog-card:active {
    transform: scale(0.98);
}

.blog-img-frame {
    position: relative;
    width: 100%;
    max-width: 320px;
    margin-bottom: 3rem;
    padding: 0 20px 20px 0;
}

.blog-img-frame::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 0;
    bottom: 0;
    left: 20px;
    border: 3px solid var(--accent-color);
    z-index: 1;
}

.blog-img-wrapper {
    position: relative;
    z-index: 2;
    aspect-ratio: 1/1.2;
    overflow: hidden;
    background: #f5f5f5;
    border: 1px solid #ddd;
}

.blog-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.1);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover .blog-img-wrapper img {
    transform: scale(1.05);
    filter: grayscale(0.5) contrast(1.1);
}

.blog-name-tag {
    position: absolute;
    bottom: 20px;
    right: 0;
    background: #111;
    color: white;
    padding: 0.8rem 2rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    z-index: 3;
    text-transform: uppercase;
}

.blog-info {
    width: 100%;
    max-width: 300px;
}

.blog-info h4 {
    font-size: 1rem;
    letter-spacing: 1.5px;
    color: #111;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
}

.blog-info p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.8;
    font-style: italic;
}

/* Responsive */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .nav-links {
        display: none;
    }

    .hero-subtext {
        font-size: 1rem;
    }

    .slider-item {
        width: 140px;
        height: 240px;
    }

    .banner-overlay h2 {
        font-size: 3rem;
        letter-spacing: 15px;
    }
}

/* Filter Section */
.filter-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

.filter-btn {
    background: transparent;
    border: 1px solid #ddd;
    color: #666;
    padding: 0.6rem 1.5rem;
    border-radius: 100px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--accent-color);
    color: #000;
}

.filter-btn.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #000;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #fff;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 20px;
    position: relative;
    overflow-y: auto;
    transform: translateY(40px);
    transition: var(--transition);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    color: #000;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--accent-color);
    transform: rotate(90deg);
}

.modal-body {
    padding: 0;
}

.detail-hero {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.detail-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
}

.detail-content {
    padding: 3rem 4rem;
    color: #333;
}

.detail-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #000;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.detail-category {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #fff;
    background: #000;
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    margin-bottom: 2rem;
}

.detail-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.detail-text h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    color: #000;
    font-weight: 700;
    text-transform: uppercase;
}

.detail-text p {
    margin-bottom: 1.5rem;
    font-style: normal;
}

.detail-text ul {
    margin-left: 1.5rem;
    margin-bottom: 2rem;
    list-style: square;
}

.detail-text li {
    margin-bottom: 0.5rem;
}

@media (max-width: 640px) {
    .detail-content {
        padding: 2rem;
    }

    .detail-hero {
        height: 250px;
    }
}

/* Tools Section */
.tools-section {
    padding: 8rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 10;
}

.section-header {
    text-align: left;
    margin-bottom: 4rem;
    border-left: 4px solid var(--accent-color);
    padding-left: 1.5rem;
}

.section-header h2 {
    font-size: 3rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.section-desc {
    color: var(--secondary-text);
    font-size: 1.1rem;
}

.tools-filter {
    justify-content: flex-start !important;
    margin-bottom: 3rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1.5rem;
}

.tools-filter .filter-btn {
    border-radius: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--secondary-text);
    background: transparent;
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tools-filter .filter-btn.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #000;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.tool-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    padding: 0;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tool-card:hover {
    border-color: var(--accent-color);
}

.tool-img-box {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tool-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.1);
    transition: var(--transition);
}

.tool-card:hover .tool-img-box img {
    filter: grayscale(0) contrast(1.1);
    transform: scale(1.05);
}

.tool-card:hover .tool-img-box {
    border-bottom-color: var(--accent-color);
}

/* Offset border effect for tools */
.tool-card {
    position: relative;
}

.tool-card:hover::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: -5px;
    bottom: -5px;
    border: 1px solid var(--accent-color);
    z-index: -1;
    pointer-events: none;
}

.tool-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.tool-category-tag {
    font-size: 0.7rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.tool-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #fff;
}

.tool-card .strategy-excerpt {
    font-size: 0.9rem;
    color: var(--secondary-text);
    line-height: 1.5;
}

.playfair {
    font-family: 'Playfair Display', serif;
}

/* Specific modal adjustments for tools */
.tool-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.tool-action-box {
    border: 1px solid #ddd;
    padding: 2rem;
    background: #fdfdfd;
}

.tool-action-label {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 0.5rem;
    display: block;
}

.tool-action-value {
    font-size: 1.2rem;
    color: #000;
    font-weight: 500;
}

@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }
}

/* === HIGH-IMPACT FOOTER === */
.main-footer {
    background-color: #A3E635;
    /* Neon Green */
    color: #000000;
    font-family: 'Inter', sans-serif;
    border-top: 2px solid #000000;
    position: relative;
    z-index: 100;
    margin-top: 0;
}

.footer-row {
    border-bottom: 1px solid #000000;
    display: flex;
    width: 100%;
}

.footer-branding {
    padding: 3rem 0;
    justify-content: center;
    border-bottom: 2px solid #000000;
    overflow: hidden;
}

.footer-branding h1 {
    font-size: clamp(4rem, 18vw, 15rem);
    margin: 0;
    line-height: 0.8;
    font-weight: 900;
    letter-spacing: -8px;
    text-align: center;
    width: 100%;
    -webkit-text-stroke: 1px #000;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.nav-col {
    padding: 2.5rem 1rem;
    text-align: center;
    border-right: 1px solid #000000;
}

.nav-col:last-child {
    border-right: none;
}

.nav-col a {
    color: #000000;
    text-decoration: none;
    font-weight: 900;
    letter-spacing: 2px;
    font-size: 1.4rem;
    transition: letter-spacing 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.nav-col a:hover {
    letter-spacing: 8px;
}

.footer-credits {
    padding: 2rem;
    justify-content: space-between;
    align-items: center;
    border-bottom: none;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-credits strong {
    font-weight: 900;
    border-bottom: 2px solid #000;
}

@media (max-width: 768px) {
    .footer-nav {
        grid-template-columns: 1fr;
    }

    .nav-col {
        border-right: none;
        border-bottom: 1px solid #000000;
        padding: 1.5rem;
    }

    .footer-branding h1 {
        letter-spacing: -3px;
        font-size: 5rem;
    }

    .footer-credits {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        padding: 2rem 1rem;
    }
}