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

:root {
    --primary-color: #00ffff;
    --primary-dark: #00b3b3;
    --primary-glow: rgba(0, 255, 255, 0.3);
    --secondary-color: #ff00aa;
    --secondary-glow: rgba(255, 0, 170, 0.2);
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --bg-light: #1a1a1a;
    --text-primary: #fff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --card-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    --card-glow: 0 5px 15px rgba(0, 255, 255, 0.1);
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(0, 255, 255, 0.03) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(0, 255, 255, 0.03) 0%, transparent 30%);
    color: var(--text-primary);
    overflow-x: hidden;
    cursor: none;
    line-height: 1.6;
}

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

h1, h2, h3 {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
}

.highlight {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-glow);
}

/* Custom Cursor */
.custom-cursor {
    width: 30px;
    height: 30px;
    border: 2px solid rgba(0, 255, 255, 0.5);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    will-change: transform;
    backdrop-filter: blur(2px);
    transition: width 0.3s, height 0.3s, border-color 0.3s;
}

.cursor-inner {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px var(--primary-color);
    will-change: transform;
    transition: width 0.3s, height 0.3s, transform 0.3s;
}

.custom-cursor.hover {
    width: 50px;
    height: 50px;
    border-color: rgba(0, 255, 255, 0.8);
    mix-blend-mode: difference;
}

.cursor-inner.hover {
    transform: translate(-50%, -50%) scale(0);
}

/* Page Transitions */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Navigation Bar */
header {
    background-color: rgba(5, 5, 5, 0.85);
    padding: 1.2rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 255, 255, 0.05);
    width: 100%;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: translateY(0);
}

/* Header animation on scroll */
header.scroll-up {
    transform: translateY(0);
    background-color: rgba(5, 5, 5, 0.92);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 255, 255, 0.08);
}

header.scroll-down {
    transform: translateY(-100%);
}

/* Navbar container */
.navbar-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* Main navigation */
nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 3rem;
    cursor: none;
    flex-wrap: wrap;
    position: relative;
}

nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: none;
    position: relative;
    display: inline-block;
    padding: 0.5rem 1rem;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    border-radius: 4px;
    overflow: hidden;
    z-index: 1;
    text-transform: uppercase;
    font-weight: 500;
    opacity: 0.85;
    transform: translateY(0);
}

nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: rgba(0, 255, 255, 0.08);
    transition: height 0.3s ease;
    z-index: -1;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    transition: width 0.3s ease;
}

nav a:hover, nav a.active {
    color: var(--primary-color);
    transform: translateY(-2px);
    text-shadow: 0 0 8px var(--primary-glow);
    opacity: 1;
}

nav a:hover::before, nav a.active::before {
    height: 100%;
}

nav a:hover::after, nav a.active::after {
    width: 80%;
}

/* Nav item animation on load */
nav ul li {
    animation: navItemFade 0.5s forwards;
    animation-delay: calc(0.1s * var(--nav-item-index, 0));
    opacity: 0;
    transform: translateY(-20px);
}

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

/* Responsive navbar adjustments */
@media (max-width: 768px) {
    .navbar-container {
        padding: 0 1rem;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
    
    .logo-icon {
        width: 30px;
        height: 30px;
    }
    
    /* Ensure nav items don't animate in mobile menu */
    nav ul li {
        animation: none;
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.1rem;
        letter-spacing: 1px;
    }
    
    .logo-icon {
        width: 25px;
        height: 25px;
    }
    
    .logo-icon .inner-circle {
        width: 10px;
        height: 10px;
    }
}

/* Hero Section with enhanced effects */
.hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at center, rgba(0, 255, 255, 0.05) 0%, transparent 60%);
    padding: 2rem 0;
    width: 100%;
}

.hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 30%, var(--bg-darker) 100%);
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.05) 0%, transparent 50%);
    z-index: 0;
    animation: pulse 8s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% { opacity: 0.3; }
    100% { opacity: 0.8; }
}

.hero-content {
    text-align: center;
    z-index: 1;
    animation: fadeIn 1s ease-out;
    padding: 2rem;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    border: none;
    max-width: 900px;
    width: 90%;
    margin: 0 auto;
}

.hero h1 {
    font-size: 5.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 15px var(--primary-glow), 0 0 30px var(--primary-glow);
    animation: glow 2s ease-in-out infinite alternate, float 6s ease-in-out infinite;
    transition: var(--transition);
    position: relative;
    line-height: 1.2;
    white-space: nowrap;
    overflow: visible;
    width: auto;
    display: inline-block;
}

.hero h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    transform: translateX(-50%);
    animation: line-expand 2s ease-out forwards 0.5s;
}

@keyframes line-expand {
    0% { width: 0; }
    100% { width: 300px; }
}

.hero h1:hover {
    text-shadow: 0 0 25px rgba(0, 255, 255, 0.6);
    transform: scale(1.03);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    opacity: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 0.5s;
}

.hero p:nth-of-type(2) {
    animation-delay: 0.8s;
}

.hero .btn {
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 1.2s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typing Effect with enhanced hover */
.inline-wrapper {
    display: inline-flex !important;
    align-items: baseline;
    white-space: nowrap !important;
    position: relative;
    justify-content: center;
    width: 100%;
    flex-wrap: nowrap !important;
    overflow: visible;
}

#typing-effect {
    display: inline-block;
    position: relative;
    min-width: 1ch;
    white-space: nowrap !important;
    transition: var(--transition);
    color: var(--primary-color);
    text-shadow: 0 0 15px var(--primary-glow);
    font-weight: 700;
    vertical-align: baseline;
    margin-left: 3px;
    min-height: 1em;
    line-height: inherit;
    overflow: visible;
}

#typing-effect:hover {
    text-shadow: 0 0 25px var(--primary-glow), 0 0 40px var(--primary-glow);
    letter-spacing: 3px;
}

#typing-effect::after {
    content: "|";
    position: absolute;
    right: -5px;
    top: 0;
    animation: blink 0.7s infinite;
    color: var(--primary-color);
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px var(--primary-glow);
    }
    to {
        text-shadow: 0 0 20px var(--primary-glow), 0 0 30px var(--secondary-glow);
    }
}

/* Buttons with enhanced hover effect */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    font-size: 1rem;
    cursor: none;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    font-weight: 500;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2), 0 0 15px rgba(0, 255, 255, 0.1);
    text-transform: uppercase;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.btn:hover {
    background-color: var(--primary-color);
    color: var(--bg-dark);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.4);
    letter-spacing: 1.5px;
}

.btn:hover::before {
    left: 100%;
}

/* Section styling with consistent aesthetics */
.about, .projects, .contact, .projects-details, .blog-posts, .about-details, .contact-form-section {
    padding: 8rem 0;
    position: relative;
    animation: fadeIn 1s ease-out;
}

.about, .contact, .about-details, .contact-form-section {
    background-color: var(--bg-darker);
}

.projects, .projects-details, .blog-posts {
    background-color: var(--bg-dark);
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    margin: 0;
    padding: 0;
    width: 100%;
}

/* Section Headings */
.about h2,
.projects h2,
.contact h2,
.projects-details h2,
.blog-posts h2,
.about-details h2,
.contact-form-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    transition: var(--transition);
}

.about h2::after,
.projects h2::after,
.contact h2::after,
.projects-details h2::after,
.blog-posts h2::after,
.about-details h2::after,
.contact-form-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.about h2:hover,
.projects h2:hover,
.contact h2:hover,
.projects-details h2:hover,
.blog-posts h2:hover,
.about-details h2:hover,
.contact-form-section h2:hover {
    text-shadow: 0 0 15px var(--primary-glow);
    transform: scale(1.03);
}

.about p, 
.projects p, 
.contact p,
.projects-details p,
.blog-posts p,
.about-details p,
.contact-form-section p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Skills display */
.skills, .skills-grid {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.skill {
    padding: 0.8rem 1.5rem;
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 30px;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.skill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 255, 255, 0.1),
        transparent
    );
    transition: 0.5s;
}

.skill:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 255, 255, 0.15);
    color: var(--primary-color);
}

.skill:hover::before {
    left: 100%;
}

/* Project cards with enhanced styles */
.project-grid, .post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin: 0 auto;
    max-width: 1200px;
}

.project-card, .post-card {
    background: linear-gradient(145deg, #121212, #0a0a0a);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 255, 0.05);
    transition: var(--transition);
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
    min-height: 350px;
    display: flex;
    flex-direction: column;
}

.project-card::before, .post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover, .post-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: rgba(0, 255, 255, 0.1);
    box-shadow: var(--card-glow), 0 15px 35px rgba(0, 0, 0, 0.3);
}

.project-card:hover::before, .post-card:hover::before {
    opacity: 1;
}

.project-card h3, .post-card h3 {
    font-size: 1.7rem;
    margin-bottom: 1.2rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    transition: var(--transition);
}

.project-card h3:hover, .post-card h3:hover {
    text-shadow: 0 0 10px var(--primary-glow);
    transform: scale(1.03);
}

.project-card p, .post-card p {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: var(--text-secondary);
    flex-grow: 1;
}

.project-tags {
    margin: 1.5rem 0;
    display: flex;
    gap: 0.7rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.tag {
    background-color: rgba(0, 255, 255, 0.07);
    color: var(--primary-color);
    padding: 0.35rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: var(--transition);
    border: 1px solid rgba(0, 255, 255, 0.1);
}

.tag:hover {
    background-color: rgba(0, 255, 255, 0.15);
    transform: translateY(-3px) scale(1.1);
    border-color: var(--primary-color);
    box-shadow: 0 5px 10px rgba(0, 255, 255, 0.1);
}

/* Contact form with enhanced styling */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    background: rgba(10, 10, 10, 0.3);
    padding: 3rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0, 255, 255, 0.05);
}

.form-group {
    position: relative;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1.2rem;
    background-color: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 180px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
    transform: scale(1.01);
    background-color: rgba(26, 26, 26, 0.8);
}

.contact-form .btn {
    align-self: center;
    min-width: 180px;
}

/* Footer with enhanced styling */
footer {
    padding: 3rem 0;
    background-color: var(--bg-darker);
    text-align: center;
    border-top: 1px solid rgba(0, 255, 255, 0.05);
    position: relative;
    width: 100%;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

footer p {
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

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

.social-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--transition);
    position: relative;
    display: inline-block;
    padding: 0.5rem;
}

.social-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color);
    transform: scale(1.15) translateY(-3px);
    text-shadow: 0 0 10px var(--primary-glow);
}

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

/* Responsive Design - Enhanced */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 4rem;
    }
    
    .inline-wrapper {
        white-space: nowrap;
        display: inline-flex;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .about p, 
    .projects p, 
    .contact p,
    .projects-details p,
    .blog-posts p,
    .about-details p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .skills, .skills-grid {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .skill {
        width: 80%;
        text-align: center;
    }

    .project-grid, .post-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .project-card, .post-card {
        padding: 2rem;
    }

    .contact-form {
        padding: 2rem;
        margin: 0 1rem;
    }

    nav ul {
        gap: 1rem;
    }
    
    .hero-content {
        padding: 1.5rem;
        margin: 0 1rem;
        width: 95%;
    }

    .inline-wrapper {
        white-space: nowrap;
        display: inline-flex;
        flex-wrap: nowrap;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .inline-wrapper {
        white-space: nowrap;
        display: inline-flex;
        flex-wrap: nowrap;
    }
}

@media (max-width: 480px) {
    header {
        padding: 1rem 0.5rem;
    }
    
    nav ul {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.8rem;
        padding: 0;
    }
    
    nav a {
        font-size: 0.95rem;
        padding: 0.3rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }

    .about h2,
    .projects h2,
    .contact h2,
    .projects-details h2,
    .blog-posts h2,
    .about-details h2,
    .contact-form-section h2 {
        font-size: 2rem;
    }

    .container {
        padding: 0 1rem;
    }
    
    .project-card h3, .post-card h3 {
        font-size: 1.4rem;
    }
    
    .social-links {
        gap: 1rem;
    }

    .inline-wrapper {
        white-space: nowrap;
        display: inline-flex;
        flex-wrap: nowrap;
    }

    footer {
        padding: 2rem 0;
    }
    
    footer p {
        margin-bottom: 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 360px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    nav ul {
        gap: 0.5rem;
    }
    
    nav a {
        font-size: 1rem;
    }

    .hero-content {
        padding: 0.5rem;
    }
    
    .social-links a {
        font-size: 1rem;
        padding: 0.3rem;
    }
    
    footer p {
        font-size: 0.8rem;
    }
    
    .section-divider {
        margin: 0 auto;
        width: 95%;
    }

    .inline-wrapper {
        white-space: nowrap;
        display: inline-flex;
        flex-wrap: nowrap;
    }
}

/* Page Transition Animation */
@keyframes fadeInPage {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply fade-in to main content */
body > header ~ * {
    animation: fadeInPage 0.8s ease-out;
}

/* Enhanced About Page Styling */
.page-header {
    height: 40vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at center, rgba(0, 255, 255, 0.05) 0%, transparent 70%);
    z-index: 1;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.05) 0%, transparent 50%);
    z-index: -1;
}

.page-header h1 {
    font-size: 5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary-color);
    text-shadow: 0 0 15px var(--primary-glow);
    animation: float 6s ease-in-out infinite;
    position: relative;
}

.page-header h1::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Background Animation */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    opacity: 0.5;
}

.animated-background .grid {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg);
    animation: grid-movement 30s linear infinite;
}

.animated-background .particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.animated-background .particle {
    position: absolute;
    background-color: var(--primary-color);
    width: 2px;
    height: 2px;
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-color);
    animation: particle-movement 10s linear infinite;
}

@keyframes grid-movement {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(50px); }
}

@keyframes particle-movement {
    0% { transform: translateY(100vh); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh); opacity: 0; }
}

/* Enhanced About Content Section */
.about-content {
    padding: 6rem 0;
    background-color: var(--bg-darker);
    position: relative;
    z-index: 1;
}

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

.about-text {
    position: relative;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
}

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

.about-text h3, .about-timeline h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 2.5rem 0 1.5rem;
    position: relative;
    display: inline-block;
}

.skill-category {
    margin-bottom: 2rem;
}

.skill-category h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-family: 'Orbitron', sans-serif;
}

.skills {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.skill-category .skill {
    display: inline-block;
    margin: 0.5rem 0.5rem 0.5rem 0;
    transition: all 0.3s ease;
}

.skill-category .skill:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 255, 255, 0.2);
}

/* Timeline Enhancement */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), transparent);
}

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

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-date {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    display: inline-block;
    padding: 0.3rem 1rem;
    background: rgba(0, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 255, 0.1);
}

.timeline-content {
    position: relative;
    padding-left: 1.5rem;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -2.3rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
    z-index: 1;
}

.timeline-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.timeline-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Responsiveness for About Page */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .page-header h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .page-header {
        height: 30vh;
    }
    
    .page-header h1 {
        font-size: 3rem;
    }
    
    .about-content {
        padding: 4rem 0;
    }
    
    .about-text h2 {
        font-size: 2rem;
    }
    
    .skills {
        flex-direction: column;
    }
    
    .skill-category {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .timeline {
        padding-left: 1.5rem;
    }
    
    .timeline-content {
        padding-left: 1rem;
    }
    
    .timeline-content::before {
        left: -1.8rem;
    }
}

/* Enhanced Section Intro */
.section-intro {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.8;
    color: var(--text-secondary);
    text-align: center;
    padding: 0 1rem;
    opacity: 0.9;
}

/* Blog Cards Styling */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    margin: 0 auto;
}

.blog-card {
    background: linear-gradient(145deg, #121212, #0a0a0a);
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 255, 0.05);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
    min-height: 280px;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), transparent);
    opacity: 0;
    transition: var(--transition);
}

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

.blog-card:hover::before {
    opacity: 1;
}

.blog-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.blog-date {
    color: var(--text-secondary);
}

.blog-category {
    color: var(--primary-color);
    background-color: rgba(0, 255, 255, 0.05);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 255, 255, 0.1);
}

.blog-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.blog-card p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: var(--text-secondary);
    flex-grow: 1;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
    position: relative;
    padding-bottom: 3px;
    align-self: flex-start;
}

.read-more::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.read-more:hover {
    transform: translateX(5px);
    text-shadow: 0 0 8px var(--primary-glow);
}

.read-more:hover::after {
    width: 100%;
}

/* Contact Section Styling */
.contact-section {
    padding: 6rem 0;
    background-color: var(--bg-darker);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    padding: 2rem;
    background: rgba(10, 10, 10, 0.5);
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 255, 0.05);
    box-shadow: var(--card-shadow);
}

.contact-info h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.contact-info h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
}

.contact-info p {
    margin-bottom: 2rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-family: 'Orbitron', sans-serif;
}

.contact-method p a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-method p a:hover {
    text-shadow: 0 0 8px var(--primary-glow);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: rgba(10, 10, 10, 0.5);
    padding: 2.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0, 255, 255, 0.05);
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    background-color: rgba(15, 15, 15, 0.7);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

/* Project Detail Styling */
.project-details {
    margin: 1.5rem 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.project-detail {
    padding: 1.2rem;
    background: rgba(0, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 255, 0.05);
}

.project-detail h4 {
    font-size: 1.1rem;
    margin-bottom: 0.7rem;
    color: var(--primary-color);
    font-family: 'Orbitron', sans-serif;
}

.project-detail p {
    font-size: 0.95rem;
    margin-bottom: 0;
    color: var(--text-secondary);
}

/* Responsive Styling for New Elements */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .section-intro {
        font-size: 1.1rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .blog-card-content {
        padding: 1.5rem;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .contact-info {
        padding: 1.5rem;
    }
}

/* Contact section enhancements for homepage */
.contact {
    padding: 10rem 0;
    position: relative;
    animation: fadeIn 1s ease-out;
    background-color: var(--bg-darker);
}

/* Hamburger Menu for Mobile */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 1010;
    cursor: pointer;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 5px var(--primary-glow);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
        position: fixed;
        top: 1.5rem;
        right: 2rem;
    }
    
    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background-color: rgba(5, 5, 5, 0.95);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        gap: 2.5rem;
        padding: 2rem;
        border-left: 1px solid rgba(0, 255, 255, 0.1);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
        z-index: 1000;
    }
    
    nav ul.active {
        right: 0;
    }
    
    nav a {
        font-size: 1.2rem;
        padding: 0.8rem 1.5rem;
        width: 100%;
        text-align: center;
    }
    
    nav a::after {
        bottom: 5px;
    }
    
    .navbar-container {
        justify-content: center;
    }
    
    /* Overlay for when menu is open */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(3px);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 480px) {
    header {
        padding: 1rem 1rem;
    }
    
    nav ul {
        width: 85%;
    }
    
    nav a {
        font-size: 1.1rem;
    }
}

/* Hide custom cursor on mobile/touch devices across all pages */
@media (pointer: coarse) {
  .custom-cursor, .cursor-inner {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    transform: scale(0) !important;
    z-index: -9999 !important;
    position: absolute !important;
  }
  
  body, a, button, input, textarea, .btn, .copyable, 
  .contact-link, .footer-nav a, .social-links a, 
  .nav-link, .project-card, .blog-card, 
  [class*="hover"], [class*="active"], .hamburger,
  .social-icon, .footer-nav a, .social-links a,
  *[style*="cursor"] {
    cursor: auto !important;
  }
  
  /* Restore default browser behavior for touch devices */
  body {
    cursor: auto !important;
  }

  /* Ensure no cursor styles are inherited */
  * {
    cursor: auto !important;
  }
}

/* Additional universal fix for iOS Safari and problematic mobile browsers */
@media only screen and (max-width: 768px) {
  .custom-cursor, .cursor-inner {
    display: none !important;
    opacity: 0 !important;
  }
}