:root {
    /* Warm Aesthetic Palette */
    --bg-dark: #120c0a; /* Very dark brown/black */
    --bg-card: #1e1614; /* Dark warm grey */
    --primary: #ff6b35; /* Vibrant Sunset Orange */
    --secondary: #ffbc42; /* Warm Gold */
    --accent: #d43f3f; /* Deep Red */
    --text-main: #f3e5dc; /* Cream */
    --text-muted: #a89b93;
    --glass: rgba(30, 22, 20, 0.7);
    --border: rgba(255, 107, 53, 0.2);
}

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

body, html {
    cursor: auto;
}

@media (pointer: fine) and (min-width: 769px) {
    body {
        cursor: none;
    }
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
}

/* Custom Cursor */
.cursor {
    width: 20px;
    height: 20px;
    border: 1px solid var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.2s ease;
    transform: translate(-50%, -50%);
}
.cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--secondary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

/* 3D Background Canvas */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 0.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(18, 12, 10, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid var(--border);
    height: 85px;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    pointer-events: auto;
    flex-shrink: 0;
}

.logo img {
    height: 40px;
    width: auto;
    max-width: 50px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(255, 107, 53, 0.4));
    transition: filter 0.3s, transform 0.3s;
}

.logo:hover img {
    filter: drop-shadow(0 0 15px rgba(255, 107, 53, 0.8));
    transform: scale(1.1);
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 400;
    transition: color 0.3s;
    cursor: pointer;
    pointer-events: auto;
}

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

.btn-primary {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    border: none;
    border-radius: 50px;
    color: white !important;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-block;
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 10;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 53, 0.3);
}

.btn-primary i {
    color: white !important;
}

/* Hero Section */
section {
    padding: 5rem 10%;
    position: relative;
}

.hero {
    min-height: 100vh;
    padding-top: 8rem;
    padding-bottom: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero span.highlight {
    color: var(--primary);
    -webkit-text-fill-color: var(--primary);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-secondary {
    padding: 0.8rem 1.5rem;
    background: transparent;
    border: 2px solid var(--primary);
    border-radius: 50px;
    color: var(--primary) !important;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 10;
}

.btn-secondary:hover {
    background: var(--primary);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 53, 0.3);
}

.btn-secondary i {
    color: inherit;
}

.badge {
    background: rgba(255, 188, 66, 0.1);
    color: var(--secondary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: inline-block;
    border: 1px solid var(--secondary);
}

/* Skills Section */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-family: 'Space Grotesk', sans-serif;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-title::after {
    content: '';
    height: 1px;
    flex-grow: 1;
    background: linear-gradient(to right, var(--primary), transparent);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: transform 0.3s, border-color 0.3s;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.skill-card h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Projects Section (3D Cards) */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: var(--glass);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    transition: transform 0.1s;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.project-content {
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 107, 53, 0.05) 0%, rgba(0,0,0,0) 100%);
    z-index: 1;
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.project-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.tech-stack {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: var(--secondary);
}

.project-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-demo, .btn-code, .btn-info {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: 1px solid;
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 10;
}

.btn-demo {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white !important;
    border-color: transparent;
}

.btn-demo:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.4);
}

.btn-demo i {
    color: white !important;
    font-size: 1rem;
}

.btn-code {
    background: rgba(255, 188, 66, 0.1);
    color: var(--secondary) !important;
    border-color: var(--secondary);
}

.btn-code:hover {
    background: var(--secondary);
    color: var(--bg-dark) !important;
    transform: translateY(-2px);
}

.btn-code i {
    color: inherit;
    font-size: 1rem;
}

.btn-info {
    background: rgba(243, 229, 220, 0.05);
    color: var(--text-main) !important;
    border-color: rgba(243, 229, 220, 0.3);
}

.btn-info:hover {
    background: rgba(243, 229, 220, 0.15);
    border-color: var(--text-main);
    transform: translateY(-2px);
}

.btn-info i {
    color: var(--text-main);
    font-size: 1rem;
}

/* About / Stats */
.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 20px;
    margin-top: 3rem;
    border: 1px solid var(--border);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Contact */
.contact {
    text-align: center;
    padding: 8rem 10%;
}

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

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    font-size: 1.5rem;
}

.social-links a {
    color: var(--text-muted);
    transition: color 0.3s, transform 0.3s;
    cursor: pointer;
    pointer-events: auto;
}

.social-links a:hover {
    color: var(--primary);
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        padding: 0.3rem 5%;
        flex-direction: row;
        gap: 0;
        height: auto;
    }
    
    .nav-links a {
        margin-left: 1rem;
    }
    
    section {
        padding: 3rem 5%;
    }
    
    .hero {
        padding-top: 6rem;
        text-align: center;
        align-items: center;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .section-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .contact h2 {
        font-size: 2rem;
    }
    
    .social-links {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .project-actions {
        flex-direction: column;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}

.about-image {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--primary);
    margin: 0 auto 2rem;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Page Sections */
.page-section {
    min-height: 100vh;
    padding-top: 8rem;
    padding-bottom: 3rem;
}

.nav-links a.active {
    color: var(--primary);
    position: relative;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

/* About Page */
.about-container {
    display: flex;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text p {
    line-height: 1.8;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Certifications */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.cert-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: transform 0.3s, border-color 0.3s;
    text-align: center;
}

.cert-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.cert-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.cert-card h3 {
    color: var(--text-main);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.cert-card p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.cert-issuer {
    color: var(--secondary) !important;
    font-weight: 600;
    margin-bottom: 0.5rem !important;
}

.cert-date {
    font-size: 0.85rem !important;
    color: var(--text-muted) !important;
    margin-bottom: 0.5rem !important;
}

.cert-skills {
    font-size: 0.85rem !important;
    color: var(--text-muted) !important;
    margin-bottom: 1.5rem !important;
    font-style: italic;
}

.cert-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-credential {
    padding: 0.6rem 1.2rem;
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary) !important;
    border: 1px solid var(--primary);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 10;
}

.btn-credential i {
    color: var(--primary);
    font-size: 1rem;
}

.btn-credential:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.subsection-title {
    font-size: 2rem;
    margin: 3rem 0 2rem;
    color: var(--secondary);
}

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.achievement-card {
    background: var(--glass);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    text-align: center;
    transition: transform 0.3s;
}

.achievement-card:hover {
    transform: translateY(-3px);
}

.achievement-card i {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.achievement-card h4 {
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.achievement-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.achievement-card-large {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.achievement-card-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.achievement-card-large:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.15);
}

.achievement-card-large:hover::before {
    transform: scaleX(1);
}

.achievement-card-large .achievement-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.achievement-card-large h3 {
    color: var(--text-main);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.achievement-card-large:hover h3 {
    color: var(--primary);
}

.achievement-issuer {
    color: var(--secondary) !important;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.3rem !important;
}

.achievement-date {
    font-size: 0.85rem !important;
    color: var(--text-muted) !important;
    margin-bottom: 1rem !important;
}

.achievement-desc {
    color: var(--text-muted) !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin-bottom: 0 !important;
}

@media (max-width: 768px) {
    .achievement-grid-large {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .achievement-card-large {
        padding: 1.5rem;
    }
    
    .achievement-card-large h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .achievement-grid-large {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .achievement-card-large {
        padding: 1rem;
    }
    
    .achievement-card-large h3 {
        font-size: 1rem;
    }
    
    .achievement-card-large .achievement-icon {
        font-size: 2.5rem;
    }
}

/* Certification Detail Page */
.cert-detail {
    min-height: 100vh;
    padding-top: 8rem;
    padding-bottom: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.cert-detail-header {
    text-align: center;
    margin-bottom: 3rem;
}

.cert-icon-large {
    font-size: 5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.cert-detail-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.cert-issuer {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.cert-detail-content {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--border);
}

.cert-detail-section {
    margin-bottom: 2.5rem;
}

.cert-detail-section h2 {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.cert-detail-section p {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1.05rem;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    line-height: 1.6;
}

.feature-list i {
    color: var(--primary);
    font-size: 1.1rem;
}

.cert-detail-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn-back {
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main) !important;
    border: 1px solid var(--border);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 10;
}

.btn-back i {
    color: var(--text-main);
    font-size: 1rem;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-main);
    transform: translateY(-2px);
}

/* Experience Page */
.experience-container {
    max-width: 900px;
    margin: 0 auto;
}

.experience-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    margin-bottom: 2rem;
}

.exp-header {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.exp-icon {
    font-size: 3rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.exp-icon.exp-logo {
    font-size: 1rem;
}

.exp-icon.exp-logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(255, 107, 53, 0.3));
}

.exp-info h3 {
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 0.3rem;
}

.exp-org {
    color: var(--secondary);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.exp-duration {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.exp-content p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.exp-achievements {
    list-style: none;
    padding: 0;
}

.exp-achievements li {
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    line-height: 1.6;
}

.exp-achievements i {
    color: var(--primary);
    margin-top: 0.3rem;
}

/* Project Detail Page */
.project-detail {
    min-height: 100vh;
    padding-top: 6rem;
}

#project-3d-scene {
    width: 100%;
    height: 400px;
    background: var(--bg-card);
    border-radius: 20px;
    margin-bottom: 3rem;
    overflow: hidden;
}

.project-detail-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 5%;
}

.project-detail-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tech-stack-large {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.tech-badge {
    background: var(--bg-card);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    border: 1px solid var(--border);
    color: var(--text-main);
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.tech-badge i {
    color: var(--primary);
}

.project-detail-section {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    margin-bottom: 2rem;
}

.project-detail-section h2 {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.project-detail-section p {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1.05rem;
}

.project-detail-actions {
    display: flex;
    gap: 1rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

/* Contact Page */
.contact-page {
    min-height: 100vh;
    padding-top: 12rem;
    text-align: center;
}

.contact-page h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Social Media Section */
.social-section {
    margin-top: 4rem;
    text-align: center;
}

.social-section h3 {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 2.5rem;
    font-family: 'Space Grotesk', sans-serif;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.social-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 10;
}

.social-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    background: rgba(255, 107, 53, 0.05);
}

.social-card i {
    font-size: 2.5rem;
    color: var(--primary);
    transition: color 0.3s;
}

.social-card:hover i {
    color: var(--secondary);
}

.social-card span {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-main);
}

.social-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}


/* Font Awesome Icon Fixes */
i.fas, i.fab, i.far {
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    line-height: 1;
}

/* Ensure all button icons are visible */
a i, button i {
    pointer-events: none;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Fix for gradient text affecting icons */
.logo i, .hero i, .btn-primary i, .btn-secondary i {
    -webkit-text-fill-color: currentColor;
    background: none;
}


/* Enhanced Mobile Responsiveness */
@media (max-width: 1024px) {
    nav {
        height: auto;
        padding: 0.5rem 3%;
    }
    
    .nav-links a {
        margin-left: 1rem;
        font-size: 0.9rem;
    }
    
    .logo img {
        height: 35px;
        max-width: 45px;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 0.5rem 3%;
        height: auto;
        min-height: 70px;
        flex-wrap: wrap;
    }
    
    .nav-links {
        display: flex;
        gap: 0.3rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-links a {
        margin-left: 0.8rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    
    .logo img {
        height: 35px;
        max-width: 40px;
    }
    
    section {
        padding: 2.5rem 5%;
    }
    
    .page-section {
        padding-top: 6rem;
    }
    
    .hero {
        padding-top: 5rem;
        padding-bottom: 2rem;
        text-align: center;
        align-items: center;
    }
    
    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 0.95rem;
        max-width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
        width: 100%;
    }
    
    .section-title {
        font-size: 1.8rem;
        text-align: center;
        flex-direction: column;
    }
    
    .section-title::after {
        display: none;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-content {
        padding: 1.5rem;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .contact {
        padding: 4rem 5%;
    }
    
    .contact h2 {
        font-size: 2rem;
    }
    
    .social-links {
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .social-card {
        padding: 1.5rem;
    }
    
    .social-card i {
        font-size: 2rem;
    }
    
    .about-container {
        gap: 1.5rem;
    }
    
    .about-image {
        width: 200px;
        height: 200px;
    }
    
    .cert-detail-content {
        padding: 1.5rem;
    }
    
    .project-detail-title {
        font-size: 2rem;
    }
    
    #project-3d-scene {
        height: 250px;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 0.4rem 3%;
        min-height: 65px;
    }
    
    .nav-links {
        gap: 0.2rem;
    }
    
    .nav-links a {
        margin-left: 0.5rem;
        font-size: 0.75rem;
    }
    
    .logo img {
        height: 30px;
        max-width: 35px;
    }
    
    section {
        padding: 2rem 4%;
    }
    
    .page-section {
        padding-top: 5rem;
    }
    
    .hero {
        padding-top: 4rem;
        padding-bottom: 1.5rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
        padding: 0.7rem 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .skill-card {
        padding: 1.5rem;
    }
    
    .project-title {
        font-size: 1.2rem;
    }
    
    .project-desc {
        font-size: 0.9rem;
    }
    
    .project-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-demo, .btn-code, .btn-info {
        width: 100%;
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .contact {
        padding: 3rem 4%;
    }
    
    .contact h2 {
        font-size: 1.5rem;
    }
    
    .social-links {
        gap: 0.8rem;
    }
    
    .social-grid {
        grid-template-columns: 1fr;
    }
    
    .social-card {
        padding: 1rem;
    }
    
    .social-card i {
        font-size: 1.8rem;
    }
    
    .social-card span {
        font-size: 1rem;
    }
    
    .social-card p {
        font-size: 0.8rem;
    }
    
    .about-image {
        width: 150px;
        height: 150px;
    }
    
    .about-text p {
        font-size: 1rem;
    }
    
    .cert-card {
        padding: 1.5rem;
    }
    
    .cert-icon {
        font-size: 2.5rem;
    }
    
    .cert-card h3 {
        font-size: 1.1rem;
    }
    
    .cert-detail-content {
        padding: 1rem;
    }
    
    .cert-detail-header h1 {
        font-size: 1.8rem;
    }
    
    .project-detail-title {
        font-size: 1.5rem;
    }
    
    #project-3d-scene {
        height: 200px;
    }
    
    .tech-stack-large {
        gap: 0.5rem;
    }
    
    .tech-badge {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .project-detail-section {
        padding: 1.5rem;
    }
    
    .project-detail-section h2 {
        font-size: 1.3rem;
    }
    
    .project-detail-section p {
        font-size: 0.95rem;
    }
}

/* Blogs Grid */
.blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.15);
}

.blog-card:hover::before {
    transform: scaleX(1);
}

.blog-card h3 {
    color: var(--text-main);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    line-height: 1.5;
    font-weight: 600;
    transition: color 0.3s ease;
}

.blog-card:hover h3 {
    color: var(--primary);
}

.blog-card > p:not(.blog-meta) {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    font-size: 0.95rem;
    line-height: 1.6;
}

.blog-card .btn-primary {
    align-self: flex-start;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    margin-top: auto;
}

@media (max-width: 768px) {
    .blogs-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .blog-card {
        padding: 1.5rem;
    }
    
    .blog-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .blog-card > p:not(.blog-meta) {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .blogs-grid {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .blog-card {
        padding: 1rem;
    }
    
    .blog-card h3 {
        font-size: 1rem;
        margin-bottom: 0.7rem;
    }
    
    .blog-card > p:not(.blog-meta) {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }
}

.blog-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 107, 53, 0.1);
}

.blog-meta i {
    color: var(--primary);
    font-size: 0.9rem;
}

.coder-legion-invite {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(212, 63, 63, 0.05));
    border-radius: 16px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.coder-legion-invite::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.05), transparent);
    pointer-events: none;
}

.coder-legion-invite p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

.coder-legion-invite .btn-primary {
    display: inline-flex;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .coder-legion-invite {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .coder-legion-invite p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .coder-legion-invite {
        padding: 1rem;
        margin-top: 1.5rem;
    }
    
    .coder-legion-invite p {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }
    
    .coder-legion-invite .btn-primary {
        width: 100%;
        justify-content: center;
    }
}

.coderlegion-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 50;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

.coderlegion-float.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.coderlegion-float p {
    color: white;
    margin: 0;
    font-weight: 600;
    font-size: 0.95rem;
}

.coderlegion-float .btn-primary {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    margin: 0;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .coderlegion-float {
        bottom: 1rem;
        right: 1rem;
        padding: 0.8rem 1rem;
        gap: 0.8rem;
    }
    
    .coderlegion-float p {
        font-size: 0.85rem;
    }
    
    .coderlegion-float .btn-primary {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .coderlegion-float {
        bottom: 0.8rem;
        right: 0.8rem;
        padding: 0.7rem 0.9rem;
        gap: 0.6rem;
        flex-direction: column;
    }
    
    .coderlegion-float p {
        font-size: 0.8rem;
    }
    
    .coderlegion-float .btn-primary {
        padding: 0.5rem 0.9rem;
        font-size: 0.7rem;
    }
}
