/* ===== VARIABLES ===== */
:root {
    --primary: #02bcc9;
    --primary-dark: #029ca8;
    --primary-light: rgba(2, 188, 201, 0.1);
    --primary-gradient: linear-gradient(145deg, #02bcc9, #029ca8);
    --primary-glow: 0 0 20px rgba(2, 188, 201, 0.3);
    
    --light: #ffffff;
    --light-gray: #f8fafc;
    --light-medium: #f1f5f9;
    --light-dark: #e2e8f0;
    --light-border: #e9eef3;
    
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(2, 188, 201, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(2, 188, 201, 0.1);
    
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    --card-bg: rgba(255, 255, 255, 0.9);
    --card-border: rgba(2, 188, 201, 0.15);
    --card-shadow: 0 15px 35px rgba(2, 188, 201, 0.08);
    
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #02bcc9;
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: radial-gradient(circle at 20% 30%, #f0f9ff, #e6f3f5);
    color: var(--text-primary);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* ===== ANIMATED BACKGROUND ===== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(2, 188, 201, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(2, 188, 201, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(2, 188, 201, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 90% 20%, rgba(2, 188, 201, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-medium);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 20px;
    transition: all 0.3s;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
    box-shadow: var(--primary-glow);
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    position: sticky;
    top: 20px;
    z-index: 1000;
    padding: 0.8rem 2rem;
    margin: 20px 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    box-shadow: var(--glass-shadow);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===== UPDATED LOGO STYLES (Image based) ===== */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 0 10px;
    position: relative;
}

.logo-img {
    height: 45px;
    width: auto;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo:hover .logo-img {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(2, 188, 201, 0.5));
}

/* Optional: Add a subtle glow animation */
@keyframes logoGlow {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(2, 188, 201, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(2, 188, 201, 0.5));
    }
}

.logo-img {
    animation: logoGlow 3s ease-in-out infinite;
}

/* ===== MAIN MENU ===== */
.nav-links {
    display: flex;
    list-style: none;
    gap: 1rem;
    align-items: center;
}

.nav-links > li {
    position: relative;
}

.nav-links > li > a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.nav-links > li > a i {
    font-size: 1.1rem;
    color: var(--primary);
}

.nav-links > li > a:hover {
    color: var(--primary);
    background: var(--primary-light);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(2, 188, 201, 0.15);
}

/* ===== DROPDOWN MENU (DevOps Job Ready) ===== */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.2rem;
    width: 600px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: var(--glass-shadow);
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid transparent;
}

.dropdown-menu a i {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: 8px;
    color: var(--primary);
    font-size: 0.9rem;
}

.dropdown-menu a:hover {
    background: rgba(2, 188, 201, 0.1);
    border-color: rgba(2, 188, 201, 0.2);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(2, 188, 201, 0.1);
}

/* ===== LOGIN BUTTON SPECIAL ===== */
.login-btn {
    background: var(--primary-gradient) !important;
    color: white !important;
    box-shadow: 0 8px 25px rgba(2, 188, 201, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(2, 188, 201, 0.4);
}

/* ===== HERO SECTION ===== */
.hero {
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-primary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(2, 188, 201, 0.2);
    transform: perspective(1000px) rotateY(-15deg);
    transition: transform 0.5s;
}

.hero-image:hover img {
    transform: perspective(1000px) rotateY(0deg);
}

/* ===== MAIN CONTAINER - UPDATED (Full Width) ===== */
.container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 40px;
    display: block;
}

/* ===== UPDATED BLOG POSTS GRID (3 Columns) ===== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}

/* ===== UPDATED POST CARD WITH HEIGHT MANAGEMENT ===== */
.post-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 1.8rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    height: auto;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--card-shadow);
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.4s;
}

.post-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(2, 188, 201, 0.3);
    box-shadow: 0 30px 60px rgba(2, 188, 201, 0.15);
}

.post-card:hover::before {
    transform: scaleX(1);
}

.post-category {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid rgba(2, 188, 201, 0.2);
    align-self: flex-start;
}

/* ===== UPDATED POST TITLE WITH LINE CLAMP ===== */
.post-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.6rem;
}

.post-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.post-title a:hover {
    color: var(--primary);
}

.post-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.post-meta i {
    color: var(--primary);
    margin-right: 5px;
}

/* ===== UPDATED POST EXCERPT WITH LINE CLAMP ===== */
.post-excerpt {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== UPDATED READ MORE BUTTON ===== */
.read-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: gap 0.3s;
    margin-top: auto;
}

.read-more i {
    transition: transform 0.3s;
}

.read-more:hover {
    gap: 15px;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* ===== SIDEBAR - HIDDEN (Not in use) ===== */
.sidebar {
    display: none;
}

/* ===== UPDATED SEARCH SECTION (Full Width) ===== */
.search-section {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 40px;
}

.search-container {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 60px;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    box-shadow: var(--card-shadow);
}

.search-form {
    display: flex;
    width: 100%;
}

.search-input-large {
    flex: 1;
    padding: 1.2rem 2rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
}

.search-input-large:focus {
    outline: none;
}

.search-input-large::placeholder {
    color: var(--text-muted);
}

.search-button-large {
    background: var(--primary-gradient);
    border: none;
    color: white;
    padding: 0 3rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.search-button-large:hover {
    transform: translateX(-5px);
    box-shadow: 0 10px 30px rgba(2, 188, 201, 0.3);
}

/* ===== UPDATED AD CONTAINER (Full Width) ===== */
.ad-container {
    background: linear-gradient(145deg, rgba(2, 188, 201, 0.1), rgba(2, 156, 168, 0.05));
    border: 1px solid rgba(2, 188, 201, 0.2);
    border-radius: 30px;
    padding: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 40px auto;
    max-width: 1400px;
}

.ad-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(2, 188, 201, 0.1) 0%, transparent 70%);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.ad-content {
    position: relative;
    z-index: 1;
}

.ad-placeholder {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px dashed var(--primary);
    color: var(--text-secondary);
}

/* ===== TAGS CLOUD (Not in use but kept for reference) ===== */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: var(--light-medium);
    color: var(--text-secondary);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.85rem;
    border: 1px solid var(--light-dark);
    transition: all 0.3s;
}

.tag:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--primary-glow);
}

/* ===== UPDATED DEV OPS TOOLS SECTION ===== */
.tools-section {
    max-width: 1400px;
    margin: 80px auto;
    padding: 0 40px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.section-header h2 span {
    color: var(--primary);
}

.section-header p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.tool-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 2rem 1.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: auto;
    min-height: unset;
    width: 100%;
    box-shadow: var(--card-shadow);
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.4s;
}

.tool-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(2, 188, 201, 0.3);
    box-shadow: 0 30px 60px rgba(2, 188, 201, 0.15);
}

.tool-card:hover::before {
    transform: scaleX(1);
}

.tool-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary);
}

.tool-name {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.tool-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.tool-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    margin-top: 0.5rem;
}

.tool-link i {
    transition: transform 0.3s;
}

.tool-link:hover {
    gap: 12px;
}

.tool-link:hover i {
    transform: translateX(5px);
}

/* Icons ki specific styling */
.tool-icon .fab,
.tool-icon .fas {
    transition: all 0.3s;
}

.tool-card:hover .tool-icon .fab,
.tool-card:hover .tool-icon .fas {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px var(--primary));
}

/* ===== FOOTER ===== */
.footer {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    margin-top: 80px;
    padding: 60px 0 30px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-section h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s;
}

.footer-section ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--light-medium);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid var(--light-dark);
    color: var(--text-muted);
}

/* ===== ANIMATIONS ===== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: slideIn 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ===== UPDATED RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .dropdown-menu {
        width: 90vw;
        grid-template-columns: repeat(2, 1fr);
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* Responsive logo */
    .logo-img {
        height: 40px;
    }
    
    .search-container {
        border-radius: 30px;
    }
    
    .search-input-large {
        padding: 1rem 1.5rem;
    }
    
    .search-button-large {
        padding: 0 2rem;
    }
}

@media (max-width: 768px) {
    .header {
        margin: 10px 20px;
        padding: 0.8rem 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .dropdown-menu {
        grid-template-columns: 1fr;
        width: 95vw;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .post-card {
        min-height: 350px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    /* Smaller logo for mobile */
    .logo-img {
        height: 35px;
    }
    
    .search-button-large span {
        display: none;
    }
    
    .search-button-large {
        padding: 0 1.5rem;
    }
    
    .ad-container {
        padding: 1.5rem;
    }

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .tool-card {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .search-input-large {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .search-button-large {
        padding: 0 1.2rem;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

/* ===== GLASS MORPHISM EFFECTS ===== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
}

/* ===== LOADING ANIMATION ===== */
.loading {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 3px solid rgba(2, 188, 201, 0.2);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== GLOWING TEXT EFFECT ===== */
.glow-text {
    text-shadow: 0 0 10px rgba(2, 188, 201, 0.3),
                 0 0 20px rgba(2, 188, 201, 0.2),
                 0 0 30px rgba(2, 188, 201, 0.1);
}

/* ===== 3D BUTTON EFFECT ===== */
.btn-3d {
    background: var(--primary-gradient);
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 10px 0 #017a84,
                0 15px 25px rgba(2, 188, 201, 0.3);
}

.btn-3d:active {
    transform: translateY(10px);
    box-shadow: 0 5px 0 #017a84,
                0 20px 25px rgba(2, 188, 201, 0.3);
}