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

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Cursor and Hover Effects - Desktop Only */
:root {
    --cursor-size: 50px;
    --cursor-hover-size: 70px;
    --cursor-transition: 0.3s ease;
    --cursor-x: 50vw;
    --cursor-y: 50vh;
}

@keyframes cursorAura {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* Only apply custom cursor on desktop */
@media (min-width: 769px) {
    html {
        cursor: none;
    }

    body::before {
        content: '';
        position: fixed;
        width: var(--cursor-size);
        height: var(--cursor-size);
        left: var(--cursor-x);
        top: var(--cursor-y);
        transform: translate(-50%, -50%);
        background: var(--text-primary);
        border-radius: 50%;
        pointer-events: none;
        mix-blend-mode: difference;
        z-index: 9999;
        transition: transform var(--cursor-transition), width var(--cursor-transition), height var(--cursor-transition);
    }

    body {
        cursor: none;
    }

    body:active::before {
        transform: scale(0.8);
    }

    /* Hover effect on interactive elements - Desktop only */
    a:hover,
    button:hover,
    .btn:hover,
    input:hover,
    textarea:hover,
    [onclick]:hover,
    .social-icon:hover,
    .work:hover {
        cursor: pointer;
    }

    a:hover ~ ::before,
    button:hover ~ ::before,
    .btn:hover ~ ::before,
    input:hover ~ ::before,
    textarea:hover ~ ::before,
    [onclick]:hover ~ ::before,
    .social-icon:hover ~ ::before,
    .work:hover ~ ::before {
        transform: scale(1.5);
        mix-blend-mode: difference;
    }
}
html{
    scroll-behavior: smooth;
}

/* Full-screen sections for desktop with scroll snap */
@media (min-width: 769px) {
    html {
        scroll-snap-type: y mandatory;
    }
    
     
    #cta-section
     {
        min-height: 100vh;
        display: flex;
        align-items: center;
        position: relative;
        scroll-snap-align: start;
    }

    .container{
        margin-top: 5%;
        scroll-snap-align: center;
        min-height: 60vh;
    }
    
    /* Special positioning for header */
    #header {
        align-items: flex-start;
        padding-top: 0;
    }
    
    /* Ensure containers are properly centered */
        #cta-section .container
     {
        width: 100%;
        margin: 0 auto;
    }
}

/* ================= FLOATING NAVIGATION BAR ================= */
.floating-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    z-index: 5000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

.floating-nav.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.floating-nav-content {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 4px 16px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    max-width: fit-content;
    min-width: 280px;
    gap: 20px;
    transition: all 0.3s ease;
}

.floating-nav-content:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        0 6px 20px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Dark mode glassmorphism */
[data-theme="dark"] .floating-nav-content {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 4px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .floating-nav-content:hover {
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        0 6px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.floating-nav-logo {
    flex-shrink: 0;
}

.floating-nav-logo img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.floating-nav-links {
    display: flex;
    list-style: none;
    gap: 15px;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
}

.floating-nav-links li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.5px;
}

.floating-nav-links li a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.floating-nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.floating-nav-links li a:hover::after {
    width: 80%;
}

.floating-nav-links li a.active {
    background: rgba(255, 255, 255, 0.15);
    color: var(--accent-primary);
}

.floating-nav-links li a.active::after {
    width: 80%;
}

.floating-theme-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    flex-shrink: 0;
}

.floating-theme-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

[data-theme="dark"] .floating-theme-toggle {
    background: rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .floating-theme-toggle:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Desktop navigation dark mode improvements */
[data-theme="dark"] .floating-nav-links li a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent-primary);
}

[data-theme="dark"] .floating-nav-links li a.active {
    background: rgba(255, 255, 255, 0.12);
    color: var(--accent-primary);
}

/* Mobile floating nav */
@media only screen and (max-width: 768px) {
    .floating-nav-content {
        min-width: auto;
        padding: 8px 12px;
        gap: 8px;
        max-width: 95vw;
        flex-wrap: nowrap; /* Prevent wrapping */
        overflow: hidden; /* Prevent overflow */
    }
    
    .floating-nav-links {
        gap: 4px;
        flex-wrap: nowrap; /* Prevent wrapping */
        overflow: hidden; /* Prevent overflow */
        flex-shrink: 1; /* Allow shrinking */
    }
    
    .floating-nav-links li a {
        font-size: 10px;
        padding: 4px 6px;
        letter-spacing: 0.2px;
        white-space: nowrap; /* Prevent text wrapping */
        flex-shrink: 1; /* Allow shrinking */
        min-width: 0; /* Allow shrinking below content size */
        border-radius: 12px; /* Smaller border radius */
    }
    
    /* Fix active state to prevent layout shift */
    .floating-nav-links li a.active {
        background: var(--accent-primary);
        color: var(--text-primary);
        padding: 4px 6px; /* Keep same padding as normal state */
        transform: none; /* Prevent transform that might cause overflow */
    }
    
    /* Hover state adjustments for mobile */
    .floating-nav-links li a:hover {
        background: var(--accent-primary);
        color: var(--text-primary);
        transform: none; /* Remove hover transform on mobile */
        padding: 4px 6px; /* Keep consistent padding */
    }
    
    /* Remove underline effect on mobile to prevent overflow */
    .floating-nav-links li a::after,
    .floating-nav-links li a:hover::after,
    .floating-nav-links li a.active::after {
        display: none; /* Disable underline completely on mobile */
    }
    
    /* Ensure the theme toggle doesn't cause issues */
    .floating-theme-toggle {
        width: 30px;
        height: 30px;
        font-size: 14px;
        flex-shrink: 0; /* Don't let it shrink */
    }
    
    /* Ensure logo doesn't cause issues */
    .floating-nav-logo {
        flex-shrink: 0; /* Don't let it shrink */
    }
    
    .floating-nav-logo img {
        width: 24px;
        height: 24px;
    }
}

/* Extra small screens - further optimization */
@media only screen and (max-width: 480px) {
    .floating-nav-content {
        padding: 6px 10px;
        gap: 6px;
        max-width: 98vw;
    }
    
    .floating-nav-links {
        gap: 2px;
    }
    
    .floating-nav-links li a {
        font-size: 9px;
        padding: 3px 5px;
        letter-spacing: 0.1px;
        border-radius: 10px;
    }
    
    .floating-nav-links li a.active,
    .floating-nav-links li a:hover {
        padding: 3px 5px; /* Keep consistent padding */
    }
    
    /* Remove underline effect on extra small screens too */
    .floating-nav-links li a::after,
    .floating-nav-links li a:hover::after,
    .floating-nav-links li a.active::after {
        display: none; /* Disable underline completely */
    }
    
    .floating-theme-toggle {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }
    
    .floating-nav-logo img {
        width: 20px;
        height: 20px;
    }
}
    
.floating-nav-logo img {
    width: 22px;
    height: 22px;
}

.floating-theme-toggle {
    width: 28px;
    height: 28px;
    font-size: 13px;
}

/* Extra small screens */
@media only screen and (max-width: 480px) {
    .floating-nav-content {
        padding: 6px 10px;
        min-width: auto;
        max-width: 95vw;
        gap: 8px;
    }
    
    .floating-nav-links li a {
        font-size: 10px;
        padding: 4px 6px;
    }
    
    /* Even more compact active state for small screens */
    .floating-nav-links li a.active {
        background: rgba(255, 0, 79, 0.08);
        padding: 4px 5px; /* Very tight padding */
    }
    
    .floating-nav-links {
        gap: 4px;
    }
    
    .floating-nav-logo img {
        width: 20px;
        height: 20px;
    }
    
    .floating-theme-toggle {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }
}

/* Very small screens */
@media only screen and (max-width: 360px) {
    .floating-nav-content {
        padding: 5px 8px;
        gap: 6px;
    }
    
    .floating-nav-links li a {
        font-size: 9px;
        padding: 3px 5px;
    }
    
    /* Minimal active state for very small screens */
    .floating-nav-links li a.active {
        background: rgba(255, 0, 79, 0.06);
        padding: 3px 4px; /* Minimal padding */
    }
    
    .floating-nav-links {
        gap: 3px;
    }
    
    .floating-nav-logo img {
        width: 18px;
        height: 18px;
    }
    
    .floating-theme-toggle {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }
}

/* Professional CTA Section */
#cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(255, 0, 79, 0.1), rgba(0, 0, 0, 0.2));
    margin: 50px 0;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.8rem;
    color: var(--text-color);
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 0, 81, 0.3);
    line-height: 1.2;
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--text-color);
    opacity: 0.9;
    margin-bottom: 40px;
    line-height: 1.6;
}

.cta-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin: 50px 0;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-primary);
    font-family: 'Orbitron', sans-serif;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-top: 10px;
}

/* Mobile responsive for CTA */
@media only screen and (max-width: 768px) {
    .cta-content h2 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .cta-stats {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Contact Section Styles */

/* ================= TABLET OPTIMIZATION ================= */
/* Tablet-specific fixes for awkward intermediate screen sizes */
@media only screen and (min-width: 481px) and (max-width: 1024px) {
    /* 1. Reduce header height to minimize gap between sections */
    #header {
        height: 80vh; /* Reduced from 100vh */
    }
    
    .header-text {
        top: 30%; /* Adjust positioning for smaller header */
    }
    
    /* 2. Improve About section layout for tablets */
    #about {
        padding: 60px 0; /* Reduced padding */
    }
    
    .about-intro-section {
        gap: 30px;
        margin-bottom: 40px;
    }
    
    .about-image-col {
        flex-basis: 40%;
    }
    
    .about-text-col {
        flex-basis: 55%;
    }
    
    .about-intro-card {
        padding: 30px;
    }
    
    .sub-title {
        font-size: 45px; /* Smaller title for tablets */
        margin-bottom: 25px;
    }
    
    .about-intro-text {
        font-size: 16px; /* Slightly larger text */
        line-height: 1.7; /* Better line spacing */
        margin-bottom: 20px;
    }
}


/* Large tablets and small laptops */
@media only screen and (min-width: 769px) and (max-width: 1024px) {
    #header {
        height: 75vh; /* Even more compact for larger tablets */
    }
    
    .header-text {
        top: 35%;
    }
    
    .about-image-col {
        flex-basis: 38%;
    }
    
    .about-text-col {
        flex-basis: 58%;
    }
    
    .sub-title {
        font-size: 50px;
    }
}

/* Mobile responsive for new about layout */
@media only screen and (max-width: 768px) {
    .about-intro-section {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 40px;
        text-align: center;
    }
    
    .about-image-col,
    .about-text-col {
        flex-basis: 100%;
    }
    
    .about-intro-card {
        padding: 25px;
        margin: 0 10px;
    }
    
    .sub-title {
        font-size: 35px;
        margin-bottom: 20px;
    }
    
    .about-intro-text {
        font-size: 15px;
        line-height: 1.6;
    }
   
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    margin: 50px 0;
    align-items: stretch;
}

.contact-details, .contact-form {
    display: flex;
    flex-direction: column;
}

.contact-card, .form-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.contact-details .contact-card {
    background: rgba(38, 38, 38, 0.25);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.light-mode .contact-card {
    background: var(--bg-surface);
    border: 1px solid rgba(255, 0, 79, 0.2);
    box-shadow: 0 4px 15px rgba(255, 0, 79, 0.15);
}

.contact-card:hover {
    box-shadow: 0 8px 25px rgba(255, 0, 79, 0.2);
    transform: translateY(-5px);
}

.light-mode .contact-card:hover {
    box-shadow: 0 8px 25px rgba(255, 0, 79, 0.3);
}

.contact-card-header {
    text-align: center;
    margin-bottom: 30px;
}

.contact-card-header h3 {
    color: var(--text-color);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
}

.contact-icon-large {
    font-size: 3rem;
    color: var(--accent-primary);
    margin-bottom: 20px;
}

.contact-tagline {
    color: var(--text-primary);
    opacity: 0.8;
}

.light-mode .contact-tagline {
    color: var(--text-secondary);
    opacity: 0.9;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    padding: 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-info-item:hover {
    background: rgba(255, 0, 79, 0.1);
}

.light-mode .contact-info-item:hover {
    background: rgba(255, 0, 79, 0.05);
}

.contact-icon {
    color: var(--accent-primary);
    font-size: 1.5rem;
    margin-right: 15px;
    min-width: 30px;
}

.contact-text h4 {
    color: var(--accent-primary);
    margin-bottom: 5px;
}

.contact-text p {
    color: var(--text-primary);
    opacity: 0.9;
}

.light-mode .contact-text p {
    color: var(--text-primary);
    opacity: 0.8;
}

.contact-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.contact-socials .social-icon {
    color: var(--text-primary);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.light-mode .contact-socials .social-icon {
    color: var(--text-secondary);
}

.contact-socials .social-icon:hover {
    color: var(--accent-primary);
    transform: translateY(-3px);
}

/* Form Styles */
.form-card {
    background: rgba(38, 38, 38, 0.25);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.light-mode .form-card {
    background: var(--bg-surface);
    border: 1px solid rgba(255, 0, 79, 0.2);
    box-shadow: 0 4px 15px rgba(255, 0, 79, 0.15);
}

.form-subtitle {
    color: var(--text-primary);
    opacity: 0.8;
    margin-bottom: 30px;
}

.light-mode .form-subtitle {
    color: var(--text-primary);
    opacity: 0.9;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-primary);
}

.input-with-icon input,
.input-with-icon textarea {
    width: 100%;
    padding: 12px 15px 12px 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.light-mode .input-with-icon input,
.light-mode .input-with-icon textarea {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

.input-with-icon textarea {
    min-height: 120px;
    resize: vertical;
}

.input-with-icon input:focus,
.input-with-icon textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(255, 0, 79, 0.1);
}

.textarea-icon i {
    top: 25px;
    transform: none;
}

.form-note {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    opacity: 0.7;
    margin: 20px 0;
    font-size: 0.9rem;
}

.light-mode .form-note {
    color: var(--text-secondary);
    opacity: 0.8;
}

.form-note i {
    color: var(--accent-primary);
}

/* Thank you message */
.thank-you-message {
    display: none;
    text-align: center;
    padding: 30px;
    background: rgba(255, 0, 79, 0.1);
    border-radius: 10px;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.light-mode .thank-you-message {
    background: rgba(255, 0, 79, 0.05);
    color: var(--text-secondary);
}

.thank-you-message.visible {
    display: block;
    animation: fadeInDown 0.5s ease;
}

.thank-you-icon {
    color: var(--accent-primary);
    font-size: 3rem;
    margin-bottom: 15px;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-card {
        padding: 20px;
    }
}

:root {
    /* 
    =======================================
    HARMONIOUS COLOR SYSTEM
    =======================================
    Based on HSL color format for intuitive color relationships
    Following modern UI color design principles:
    - Neutral colors: Backgrounds, text, borders
    - Primary/Brand color: Main actions and character
    - Semantic colors: States and feedback
    =======================================
    */
    
    /* Neutral Color Palette - Dark Mode */
    --bg-base: hsl(220, 15%, 4%);           /* Very dark blue-tinted background */
    --bg-surface: hsl(220, 12%, 8%);       /* Cards and elevated elements */
    --bg-elevated: hsl(220, 10%, 12%);     /* Important/raised elements */
    
    /* Text Colors */
    --text-primary: hsl(220, 15%, 95%);    /* High contrast headings */
    --text-secondary: hsl(220, 10%, 75%);  /* Body text, slightly muted */
    --text-tertiary: hsl(220, 8%, 55%);    /* Subtle text, captions */
    
    /* Primary/Brand Color - More sophisticated */
    --accent-primary: hsl(340, 75%, 55%);  /* Softer pink-red, less aggressive */
    --accent-hover: hsl(340, 80%, 60%);    /* Slightly brighter on hover */
    --accent-muted: hsl(340, 45%, 45%);    /* Muted version for subtle elements */
    
    /* Semantic Colors */
    --success: hsl(140, 60%, 45%);
    --warning: hsl(45, 90%, 55%);
    --error: hsl(0, 70%, 55%);
    
    /* Border and Shadow Colors */
    --border-subtle: hsl(220, 15%, 15%);
    --border-default: hsl(220, 15%, 20%);
    --shadow-color: hsl(220, 20%, 2%);
    
    /* Legacy compatibility */
    --bg-color: var(--bg-base);
    --text-color: var(--text-primary);
    --accent-color: var(--accent-primary);
    --container-bg: var(--bg-surface);
    --header-bg: var(--bg-base);
    --footer-color: var(--bg-surface);
    --toggle-color: hsl(220, 10%, 75%, 0.6);
    --bg-2: url('images/background.png')
  }
  
  /* Color Utility Classes */
  .text-primary { color: var(--text-primary) !important; }
  .text-secondary { color: var(--text-secondary) !important; }
  .text-tertiary { color: var(--text-tertiary) !important; }
  .text-accent { color: var(--accent-primary) !important; }
  .text-accent-muted { color: var(--accent-muted) !important; }
  
  .bg-base { background-color: var(--bg-base) !important; }
  .bg-surface { background-color: var(--bg-surface) !important; }
  .bg-elevated { background-color: var(--bg-elevated) !important; }
  
  /* Enhanced borders with proper depth */
  .border-subtle { border-color: var(--border-subtle) !important; }
  .border-default { border-color: var(--border-default) !important; }
  
  /* Improved hover states */
  .hover-accent:hover { color: var(--accent-hover) !important; }
  .hover-lift:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
  }

  .emph {
    font-weight: 600;
    color: var(--accent-primary);
    position: relative;
    font-size: larger;
    text-decoration-style: wavy;
    -webkit-text-decoration-line: underline;
    text-decoration-line: underline;
    text-underline-offset: 8px;
    text-decoration-thickness: 2px;
    
    font-family: 'Courier New', Courier, monospace;
  }
  
  body {
    background: linear-gradient(-45deg, 
      var(--bg-base), 
      hsl(220, 20%, 6%), 
      hsl(230, 25%, 8%), 
      hsl(240, 20%, 10%)
    );
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
    color: var(--text-color);
    cursor: none;
  }
  
  /* Light mode overrides */
body.light-mode {
    /* Neutral Color Palette - Light Mode */
    --bg-base: hsl(220, 15%, 98%);         /* Very light background */
    --bg-surface: hsl(220, 20%, 94%);     /* Cards and elevated elements */
    --bg-elevated: hsl(220, 25%, 90%);    /* Important/raised elements */
    
    /* Text Colors - Inverted hierarchy */
    --text-primary: hsl(220, 15%, 15%);   /* Dark text for headings */
    --text-secondary: hsl(220, 10%, 35%); /* Body text */
    --text-tertiary: hsl(220, 8%, 55%);   /* Subtle text, captions */
    
    /* Keep accent consistent but adjust for light background */
    --accent-primary: hsl(340, 70%, 50%);
    --accent-hover: hsl(340, 75%, 45%);
    --accent-muted: hsl(340, 50%, 60%);
    
    /* Borders for light mode */
    --border-subtle: hsl(220, 15%, 85%);
    --border-default: hsl(220, 15%, 75%);
    --shadow-color: hsl(220, 20%, 80%);
    
    /* Legacy compatibility updates */
    --text-color: var(--text-primary);
    --accent-color: var(--accent-primary);
    --container-bg: var(--bg-surface);
    --header-bg: var(--bg-base);
    --footer-color: var(--bg-surface);
    --toggle-color: hsl(220, 15%, 20%, 0.6);
    
    background: linear-gradient(-45deg, 
      var(--bg-base), 
      hsl(220, 30%, 96%), 
      hsl(230, 35%, 94%), 
      hsl(240, 30%, 92%)
    );
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
  }  
  
#header {
    width: 100%;
    height: 100vh;
    position: relative;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.header-text {
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    max-width: 100%;
    padding: 0 20px;
}

.container{
    padding: 10px 5%;
    overflow-x: hidden;
}

nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 15px 0;
}

@media only screen and (max-width: 675px) {
    /* Hide navigation completely on mobile - floating nav will handle navigation */
    nav ul {
        display: none;
    }
    
    nav .fa-solid,
    nav .fa-bars,
    nav .fa-circle-xmark {
        display: none;
    }
}


.logo{
    width: 140px;
}

nav ul li{
    display: inline-block;
    list-style: none;
    margin: 10px 20px;
}

nav ul li a{
    color: var(--text-color);
    text-decoration: none;
    font-size: 18px;
    position: relative;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

nav ul li a::after{
    content: '';
    width: 0;
    height: 3px;
    background: var(--accent-primary);
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.5s;
}

nav ul li a:hover::after{
    width: 100%;
}

.header-text{
    margin-top: 20%;
    font-size: 30px;
}

.header-text p {
    font-family: 'Orbitron', sans-serif;
    position: relative;
    padding: 8px 12px;
    margin: 0 0 10px;
    z-index: 1;
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 16px;
    background: url('images/brush-effect.png');
    transform-origin: center;
    transform: scale(1);
}

.header-text p::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.5;
    z-index: -1;
}

.header-text p:hover {
    color: var(--accent-color);
    transform: scale(1.5);
    transition: all 0.3s ease;
    cursor: pointer;
}

  /* Keyframe animations */
@keyframes slideInLeft {
    0% { opacity: 0; transform: translateX(-100%); }
    100% { opacity: 1; transform: translateX(0); }
  }
  
  @keyframes slideInRight {
    0% { opacity: 0; transform: translateX(100%); }
    100% { opacity: 1; transform: translateX(0); }
  }
  
  @keyframes slideInTop {
    0% { opacity: 0; transform: translateY(-100%); }
    100% { opacity: 1; transform: translateY(0); }
  }
  
  /* Apply animations to each paragraph with delays */
  .header-text p:nth-of-type(1) {
    animation: slideInLeft 1.5s ease-out forwards;
  }
  
  .header-text p:nth-of-type(2) {
    animation: slideInRight 1.5s ease-out forwards;
    animation-delay: 0.3s;
  }
  
  .header-text p:nth-of-type(3) {
    animation: slideInTop 1.5s ease-out forwards;
    animation-delay: 0.6s;
  }

.header-text h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 42px;
    margin-top: 20px;
    line-height: 1.35;
    opacity: 0;
    transform: translateY(-50px);
    animation: slideIn 2.5s ease-out forwards;
    position: relative;
    z-index: 1;
}
@keyframes slideIn {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

.header-text h1 span {
    position: relative;
    z-index: 1;
}

.serv-desc{
    font-size: 15px;
    line-height: 1.5;
}

.header-text h1 span{
    color: var(--accent-primary);
    font-family: 'Orbitron', sans-serif;
}

/* --about --*/

#about{
    padding: 80px 0;
    color: var(--text-color);
    font-size: 15px;
}

/* Adjust padding for full-screen sections on desktop */
@media (min-width: 769px) {
    #about,
    #services,
    #portfolio,
    #cta-section,
    #contact {
        padding: 40px 0;
    }
}

/* About Introduction Section - Top part with image and intro text */
.about-intro-section {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    align-items: stretch; /* Make both columns the same height */
}

.about-image-col {
    flex-basis: 35%;
}

.about-image-col img {
    width: 100%;
    height: 100%; /* Fill the full height of the container */
    object-fit: cover; /* Maintain aspect ratio while filling */
    border-radius: 15px;
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

.about-text-col {
    flex-basis: 60%;
    display: flex; /* Make this a flex container */
}

.about-intro-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 4px 16px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    flex: 1; /* Take full height of the parent flex container */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically */
}

.about-intro-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        0 6px 20px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Dark mode glassmorphism for intro card */
[data-theme="dark"] .about-intro-card,
.light-mode .about-intro-card {
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 4px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .about-intro-card:hover,
.light-mode .about-intro-card:hover {
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.25),
        0 6px 20px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Legacy styles for compatibility */
.row{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.about-col-1{
    flex-basis: 35%;
}

.about-col-1 img{
    width: 100%;
    border-radius: 15px;
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

.about-col-2{
    flex-basis: 60%;
}

#about-x{
        font-size: 24px;
        font-family: 'Courier New', Courier, monospace;
}

.about-col-2 p{
    line-height: 1.6;
}

.sub-title{
    font-family: 'Orbitron', sans-serif;
    font-size: 60px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 20px;
    position: relative;
    text-shadow: 0 0 10px rgba(255, 0, 81, 0.3);
}

.sub-title::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: radial-gradient(circle at center, rgba(255, 0, 81, 0.2) 0%, transparent 70%);
    filter: blur(20px);
    z-index: -1;
}

/*services*/

#services {
    padding: 30px 0;
}

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

/* We style the direct div child of the list, which is our card. */
.services-list div {
    /* --- Base Card Styles --- */
    background: #1a1a2e; /* A darker, techy base color */
    padding: 40px 30px;
    border-radius: 15px;
    position: relative; /* Crucial for positioning pseudo-elements */
    overflow: hidden; /* Hides the parts of the arc that are off-card */
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;

    /* --- Content Styles --- */
    font-size: 1rem;
    font-weight: 300;
}


body.light-mode .services-list div {
    background: #fdfdff;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* === The Magic: Illuminated Border and Arc === */

/* 1. The Border Glow Effect (::before pseudo-element) */
.services-list div::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 15px;
    border: 2px solid transparent;
    background: linear-gradient(to bottom, var(--accent-primary), hsl(260, 50%, 30%)) border-box;
    -webkit-mask: linear-gradient(var(--text-primary) 0 0) padding-box, linear-gradient(var(--text-primary) 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* 2. The Sweeping Arc of Light (::after pseudo-element) */
.services-list div::after {
    content: "";
    position: absolute;
    top: -150%; /* Start way above the card */
    left: -150%;
    width: 300%;
    height: 300%;
    background: conic-gradient(
        from 180deg at 50% 50%,
        rgba(255, 255, 255, 0) 0%,
        var(--accent-primary) 22%, /* The color of the arc */
        rgba(255, 255, 255, 0) 25%,
        rgba(255, 255, 255, 0) 100%
    );
    z-index: -1;
    opacity: 0;
    transform: rotate(0deg);
    transition: opacity 0.5s ease-out, transform 0.8s ease-out;
}

/* --- Interaction State --- */

.services-list div:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* On hover, make the border and arc visible and animate them */
.services-list div:hover::before {
    opacity: 1;
}

.services-list div:hover::after {
    opacity: 0.8;
    transform: rotate(360deg); /* The sweeping rotation animation */
}

/* --- Card Content Styling --- */
.services-list div i {
    font-size: 40px;
    margin-bottom: 25px;
    color: var(--accent-primary); /* Make the icon pop */
    transition: color 0.3s ease;
}

.services-list div h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.services-list div p {
    line-height: 1.7;
    opacity: 0.8;
}

body.light-mode .services-list div p {
    opacity: 1;
}

/* A final touch: make the icon white when the card is active */
.services-list div:hover i {
    color: var(--text-primary);
}

body.light-mode .services-list div:hover i {
    color: var(--text-secondary);
}

/*portfolio*/

#portfolio {
    padding: 50px 0;
}

.work-list {
    display: grid;
    /* Mobile: Single column layout (1x1) */
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 50px;
}

/* Stagger animation for project cards */
.work {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpStagger 0.8s ease forwards;
}

.work:nth-child(1) { animation-delay: 0.1s; }
.work:nth-child(2) { animation-delay: 0.2s; }
.work:nth-child(3) { animation-delay: 0.3s; }
.work:nth-child(4) { animation-delay: 0.4s; }
.work:nth-child(5) { animation-delay: 0.5s; }
.work:nth-child(6) { animation-delay: 0.6s; }

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

/* The project card itself, now an <a> tag */
.work {
    display: block; /* Makes the <a> tag behave like a div */
    text-decoration: none; /* Removes the default link underline */
    color: var(--text-color);
    background: rgba(38, 38, 38, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 15px;
    box-shadow: 0 8px 20px 0 rgba(0, 0, 0, 0.2);
    overflow: hidden; /* Ensures the image respects the border-radius */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative; /* For positioning the icon */
}

body.light-mode .work {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 20px 0 rgba(0, 0, 0, 0.1);
    color: var(--text-secondary);
}

/* A subtle lift effect on hover/tap */
.work:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 0, 79, 0.3),
        0 0 30px rgba(255, 0, 79, 0.2);
    border-color: rgba(255, 0, 79, 0.4);
}

body.light-mode .work:hover {
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 0, 79, 0.3),
        0 0 30px rgba(255, 0, 79, 0.1);
    border-color: rgba(255, 0, 79, 0.4);
}

.work img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.work .layer {
    padding: 25px;
    /* Resetting old hover styles */
    height: auto;
    width: 100%;
    position: static;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    transition: none; /* No transition needed anymore */
}

.work .layer h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: inherit; /* Inherits color from the parent <a> tag */
}

.work .layer p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1; /* Allows description to take up available space */
    color: inherit;
    opacity: 0.85;
}

/* Project metrics styling */
.project-metrics {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.metric {
    background: rgba(255, 0, 79, 0.2);
    color: var(--accent-primary);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(255, 0, 79, 0.3);
}

.work .tech-stack {
    font-size: 0.85rem;
    color: var(--text-color);
    background-color: rgba(255, 0, 79, 0.15);
    padding: 6px 12px;
    border-radius: 5px;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
    align-self: flex-start; /* Aligns to the left */
    margin-top: 10px; /* Added spacing after metrics */
}

body.light-mode .work .tech-stack {
    background: rgba(255, 0, 79, 0.1);
    color: var(--text-secondary);
}

/* The small external link icon as a visual cue */
.project-link-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 14px;
    transition: transform 0.3s ease;
}

.layer a {
    margin-top: 20px;
    color: var(--accent-primary);
    font-size: 18px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.layer a:hover {
    transform: translateY(-5px);
    color: var(--text-primary);
}

.work{
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.work:hover .project-link-icon {
    transform: scale(1.1);
}

/* --- DESKTOP ADAPTATION --- */
/* On larger screens, switch to a 2-column grid for better space usage */
@media (min-width: 769px) {
    .work-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

.work img{
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    transition: transform 0.5s;
}

.layer{
    width: 100%;
    height: 0;
    background: linear-gradient(rgba(0,0,0,0.6), #ff0051b5);
    border-radius: 10px;
    position: absolute;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    font-size: 14px;
    transition: height 0.5s, box-shadow 0.5s;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37),
                0 0 10px rgba(255, 0, 79, 0.2),
                inset 0 0 15px rgba(255, 0, 79, 0.1);
}

.layer h3{
    font-weight: 500;
    margin-bottom: 20px;
}

.layer a{
    margin-top: 20px;
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 18px;
    line-height: 60px;
    background: var(--text-primary);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
}

#certifications a{
    color: var(--accent-primary);
    text-decoration: none;
    padding-left: 5px;
}

.work:hover img{
    transform: scale(1.1);
}

.work:hover .layer{
    height: 100%;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37),
                0 0 20px rgba(255, 0, 79, 0.4),
                inset 0 0 25px rgba(255, 0, 79, 0.2);
}

.btn {
    display: block;
    margin: 50px auto;
    width: fit-content;
    border: 1px solid var(--accent-primary);
    padding: 14px 50px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-color);
    position: relative; /* enable ripple positioning */
    overflow: hidden;   /* hide overflow of ripple */
    cursor: none;
    transition: all 0.3s ease;
}

@media only screen and (max-width: 768px) {
    .btn {
        cursor: pointer !important;
    }
}

.btn:hover {
    background: var(--accent-primary);
    color: var(--text-primary);
    transition: all 0.3s;
}

/* Ripple element style */
.ripple {
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none; /* let clicks pass through */
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}


/*contact-left*/

.contact-left{
    flex-basis: 35%;
}


.contact-right{
    flex-basis: 60%;
}

.contact-left p{
    margin-top: 30px;
    color: var(--text-color);
    font-size: 18px;
}

.contact-left p i{
    color: var(--accent-primary);
    margin-right: 15px;
    font-size: 25px;
}

.light-mode .contact-left p {
    color: var(--text-secondary);
}

.social-icons{
    margin-top: 30px;
}

.social-icons a{
    text-decoration: none;
    font-size: 30px;
    margin-right: 15px;
    color: var(--toggle-color);
    display: inline-block;
    transition: transform 0.5s;
}

.social-icons a:hover{
    color: var(--accent-primary);
    transform: translateY(-5px);
}

.btn.btn2{
    display: inline-block;
    background-color: var(--accent-primary);
    color: var(--text-primary);
}

/* Enhanced resume button */
.resume-btn {
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, var(--accent-primary), #ff6b6b);
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(255, 0, 79, 0.3);
    transition: all 0.3s ease;
    border: none;
}

.resume-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 0, 79, 0.4);
    background: linear-gradient(45deg, #ff6b6b, var(--accent-primary));
}

.btn-shine {
    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.6s ease;
}

.resume-btn:hover .btn-shine {
    left: 100%;
}

.light-mode .btn.btn2:hover {
    background-color: #d6003f;
}

.contact-right form{
    width: 100%;
}

form input, form textarea{
    width: 100%;
    border: 0;
    outline: none;
    padding: 15px;
    margin: 15px 0;
    font-size: 18px;
    border-radius: 6px;
    background: var(--container-bg);
    color: var(--text-color);
    resize: none;
    /* You might want to add a border color as well */
}

form .btn2{
    padding: 14px 60px;
    font-size: 18px;
    margin-top: 20px;
    cursor: none;
}

.copyright{
    width: 100%;
    text-align: center;
    padding: 25px 0;
    font-weight: 300;
    color: var(--text-color);
    margin-top: 20px;
}

/*------css for small screens----*/
nav .fa-solid{
    display: none;
}

@media only screen and (max-width: 675px) {
    nav .fa-solid {
        display: block;
        font-size: 25px;
    }
    
    /* Hamburger menu icon */
    nav .fa-bars {
        position: absolute;
        top: 25px;
        right: 25px;
        cursor: pointer;
        z-index: 1002;
        color: var(--text-color);
    }
}

#mobileThemeToggle {
    display: none;
  }

  .vertical-text {
    position: absolute;
    top: 40%;
    left: 20px; /* adjust as needed */
    transform: translateY(-30%);
    writing-mode: vertical-rl;
    text-orientation: sideways-right;
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    color: var(--text-color);
    letter-spacing: 10px;
  }

  .vertical-text span{
    color: var(--accent-primary);
  }

@media only screen and (max-width: 768px) {
    body {
        cursor: auto !important;
        overflow-x: hidden;
        width: 100%;
    }
    
    .custom-cursor,
    .custom-pointer,
    body::before {
        display: none !important;
    }
    
    /* Side menu styles */
    nav ul {
        background: #080808;
        position: fixed;
        top: 0;
        right: -500px;
        width: 200px;
        height: 100vh;
        padding-top: 50px;
        z-index: 1001;
        transition: right 0.3s ease;
    }
    
    nav ul.show {
        right: 0;
    }

    nav ul li {
        display: block;
        margin: 25px;
    }

    nav ul .fa-circle-xmark {
        position: absolute;
        top: 25px;
        right: 25px;
        cursor: pointer;
        color: var(--text-color);
    }

    nav .fa-bars {
        display: block;
        position: fixed;
        top: 25px;
        right: 25px;
        font-size: 25px;
        cursor: pointer;
        z-index: 1002;
        color: var(--text-color);
    }
    
    /* Enable default cursor for all clickable elements on mobile */
    a, button, .btn, input, textarea, [onclick], .social-icon, .work {
        cursor: auto !important;
    }
    
    /* Fix container width */
    .container {
        padding: 10px 15px;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* Adjust work cards */
    .work {
        margin: 0 auto;
        max-width: 100%;
    }
    
    .work img {
        height: 250px;
    }
    
    /* Fix services cards */
    .services-list div {
        padding: 25px;
        margin: 0 auto;
        width: 85%;
    }
    
    /* Adjust contact form */
    .contact-grid {
        padding: 0 10px;
    }


    .vertical-text {
        font-size: 10px; /* Smaller font for mobile */
        letter-spacing: 10px; /* Adjust letter spacing if needed */
        left: 5px;
      }

    #mobileThemeToggle {
        background: none;
        display: block;
        position: relative;
        top: 10px;
        left: 10px;
        padding: 8px 8px;
        font-size: larger;
        z-index: 1000;
        border-radius: 30px;
        cursor: none;
      }

    #theme-toggle:hover{
        transition: 0.8s;
        background-color: var(--toggle-color);
    }

      .theme-toggle{
        display: none;
      }
   
    #header{
        margin-bottom: -50%;
    }
    .header-text {
        margin-top: 40%;
        font-size: 16px;
        padding: 0 15px;
        width: 100%;
        box-sizing: border-box;
    }
    .header-text h1 {
        font-size: 28px;
        line-height: 1.3;
    }
    .header-text p {
        font-size: 14px;
        margin-bottom: 15px;
    }

    nav .fa-solid{
        display: block;
        font-size: 25px;
    }

    nav .fa-bars{
        position: absolute;
        top: 25px;
        right: 20px;
        cursor: pointer;
        z-index: 2;
        color: var(--text-color);
        padding: 10px;
    }

    /* The side menu container */
    nav ul#sidemenu {
        position: fixed;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        top: 0;
        right: -250px;
        width: 250px;
        height: 100vh;
        padding: 60px 0 20px 0;
        z-index: 1001;
        transition: right 0.5s ease;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }

    /* Side menu list items */
    nav ul#sidemenu li {
        display: block;
        margin: 15px 0;
        width: 100%;
        text-align: center;
    }
    
    /* The close icon for the menu */
    nav ul#sidemenu .fa-circle-xmark {
        position: absolute;
        top: 25px;
        left: 25px;
        cursor: pointer;
        font-size: 25px;
        color: var(--text-color);
    }
    .sub-title{
        font-size: 40px;
    }

    .about-col-1, .about-col-2 {
        flex-basis: 100%;
        padding: 0 15px;
    }
    .about-col-1 {
        margin-bottom: 30px;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
    .about-col-1 img {
        width: 100%;
        height: auto;
    }
    
    .emph{
        font-size: 1.5rem;
        text-decoration-thickness: -6px;
    }
    .about-col-2{
        font-size: 14px;
        max-width: 100%;
        width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .contact-left, .contact-right{
        flex-basis: 100%;
    }
    .copyright{
        font-size: 14px;
    }

    .custom-cursor{
        display: none !important;
    }
} 

#msg{
    color: var(--text-primary);
    margin-top: -40px;
    display: block;
}

.letter {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
  }
  
  .fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
  }
  
  .fade-in.appear {
    opacity: 1;
    transform: translateY(0);
  }

    /* The custom-cursor container */
.custom-cursor {
    position: fixed;
    pointer-events: none;
    width: 20px;  /* Reduced from 30px */
    height: 20px; /* Reduced from 30px */
    transform: translate(-50%, -50%);
    z-index: 10000;
    perspective: 600px; /* Adds depth to our 3D scene */
  }
  
  /* The cube that will rotate */
  .cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 3s infinite linear;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5); /* Reduced shadow size */
  }
  
  /* Style for each face of the cube */
  .face {
    position: absolute;
    width: 20px;  /* Reduced from 30px */
    height: 20px; /* Reduced from 30px */
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--accent-primary);
  }
    /* Positioning each face */
  .face.front  { transform: translateZ(10px); }
  .face.back   { transform: rotateY(180deg) translateZ(10px); }
  .face.left   { transform: rotateY(-90deg) translateZ(10px); }
  .face.right  { transform: rotateY(90deg) translateZ(10px); }
  .face.top    { transform: rotateX(90deg) translateZ(10px); }
  .face.bottom { transform: rotateX(-90deg) translateZ(10px); }
  
  /* Cube rotation animation */
  @keyframes rotateCube {
    from { transform: rotateX(0deg) rotateY(0deg); }
    to   { transform: rotateX(360deg) rotateY(360deg); }
  }

  /* === Custom Pointer (For clickable elements) === */
.custom-pointer {
    position: fixed;
    pointer-events: none;
    width: 20px;
    height: 20px;
    transform: translate(-50%, -50%);
    z-index: 10000;
    /* Start hidden by default; you can toggle its visibility based on hover */
    display: none;
  }
  
  .arrow {
    /* Create a simple arrow shape using CSS borders */
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 12px solid #ffffff;
    /* Add subtle 3D flair with a slight tilt */
    transform: perspective(300px) rotateX(10deg) rotateY(10deg);
    box-shadow: 0 2px 4px rgb(0, 0, 0);
  }

  /* Styling for the Nigeria element */
.header-text .location {
  display: inline-block;  /* Default inline styling */
  color: #f3f3f3;
  font-size: 18px;
  font-weight: bold;
  font-family: 'Orbitron', sans-serif;
  background: linear-gradient(45deg, #c52457, #55061a);
  padding: 5px 10px;
  margin: 20px;
  border-radius: 5px;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

  .theme-toggle {
    background: none;
    border: none;
    padding: 8px 8px;
    cursor: pointer;
    border-radius: 30px;
    font-family: 'Montserrat', sans-serif;
    margin-left: auto; /* Pushes it to the far right in a flex container */
    font-size: larger;
  }
  
  .theme-toggle:hover{
    transition: 0.8s;
    background-color: var(--toggle-color);
  }

  .nav-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-right .social-icons {
    display: flex;
    gap: 15px;
}

.nav-right .social-icons a {
    color: var(--text-color);
    font-size: 20px;
    transition: color 0.3s, transform 0.3s;
}

.nav-right .social-icons a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

.nav-right .btn2 {
    margin: 0;
    padding: 8px 20px;
    font-size: 14px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    gap: 40px;
}

.social-icons-vertical {
    display: flex;
    flex-direction: column;
    gap: 25px;
    flex: 0 0 60px;
    padding: 20px 0;
    align-items: center;
}

.social-icons-vertical a {
    color: var(--text-primary);
    font-size: 24px;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    opacity: 0.8;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
}

.social-icons-vertical a i {
    line-height: 1;
}

.social-icons-vertical a:hover {
    color: var(--accent-primary);
    transform: translateY(-3px);
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-primary);
}

.text-content {
    flex: 1;
    text-align: center;
    max-width: 500px;
    position: relative;
    z-index: 1;
}

.text-content p {
    font-size: 40px;
    font-weight: 300;
    margin: 10px 0;
}

.intro-section {
    flex: 1;
    text-align: left;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.intro-section h1 {
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.resume-btn {
    margin: 0;
    padding: 10px 20px;
    font-size: 14px;
    white-space: nowrap;
    max-width: fit-content;
}

@media only screen and (max-width: 675px) {
    .nav-right {
        display: none;
    }
    
    .nav-left {
        width: 100%;
        justify-content: space-between;
    }

    .header-content {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 20px;
        gap: 30px;
        align-items: center;
    }

    .social-icons-vertical {
        flex-direction: row;
        flex: initial;
        width: 100%;
        padding: 10px 0;
        justify-content: center;
        gap: 25px;
    }

    .social-icons-vertical a {
        font-size: 20px;
        width: 40px;
        height: 40px;
    }

    .text-content {
        flex: initial;
        width: 100%;
        max-width: 100%;
        padding: 0;
        text-align: center;
    }

    .text-content p {
        font-size: 16px;
        margin: 8px 0;
    }

    .intro-section {
        flex: initial;
        width: 100%;
        max-width: 100%;
        text-align: center;
        align-items: center;
    }

    .intro-section h1 {
        font-size: 28px;
        margin: 0 0 15px 0;
        text-align: center;
    }

    .resume-btn {
        margin: 15px auto 0;
        padding: 8px 16px;
        font-size: 14px;
        text-align: center;
        display: inline-block;
    }
}


/* =================================================================== */
/* === RESPONSIVE TAB CONTAINER LAYOUTS === */
/* =================================================================== */

/* Loading Screen Styles - Add to your existing CSS */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg, #080808, #1a1a2e, #16213e, #0f3460);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    color: #ff0059;
    font-family: 'Courier New', monospace;
    transition: opacity 0.5s ease-out;
    backdrop-filter: blur(20px);
}

#loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.terminal-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 0, 217, 0.3);
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 600px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(255, 0, 174, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

/* Add a subtle animated glow effect */
.terminal-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        rgba(255, 0, 217, 0.1), 
        rgba(255, 0, 79, 0.1), 
        rgba(255, 0, 179, 0.1),
        rgba(255, 0, 217, 0.1)
    );
    border-radius: 22px;
    z-index: -1;
    animation: borderGlow 3s ease-in-out infinite alternate;
}

@keyframes borderGlow {
    0% { opacity: 0.3; }
    100% { opacity: 0.7; }
}

.terminal-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 0, 157, 0.2);
    background: rgba(255, 255, 255, 0.02);
    margin: -30px -30px 20px -30px;
    padding: 15px 30px;
    border-radius: 20px 20px 0 0;
    backdrop-filter: blur(10px);
}

.terminal-buttons {
    display: flex;
    gap: 8px;
    margin-right: 15px;
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: transform 0.2s ease;
}

.terminal-button:hover {
    transform: scale(1.1);
}

.btn-close { 
    background: linear-gradient(135deg, #ff5f56, #ff8a80);
    box-shadow: 0 2px 8px rgba(255, 95, 86, 0.3);
}
.btn-minimize { 
    background: linear-gradient(135deg, #ffbd2e, #ffd54f);
    box-shadow: 0 2px 8px rgba(255, 189, 46, 0.3);
}
.btn-maximize { 
    background: linear-gradient(135deg, #27ca3f, #4caf50);
    box-shadow: 0 2px 8px rgba(39, 202, 63, 0.3);
}

.terminal-title {
    color: rgba(255, 0, 204, 0.9);
    font-size: 14px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 0, 204, 0.3);
}

.terminal-content {
    min-height: 200px;
    position: relative;
}

.terminal-line {
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.4;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInType 0.6s ease-out forwards;
}

@keyframes slideInType {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.terminal-line:nth-child(1) { animation-delay: 0.2s; }
.terminal-line:nth-child(2) { animation-delay: 0.8s; }
.terminal-line:nth-child(3) { animation-delay: 1.4s; }
.terminal-line:nth-child(4) { animation-delay: 2.0s; }
.terminal-line:nth-child(5) { animation-delay: 2.6s; }
.terminal-line:nth-child(6) { animation-delay: 3.2s; }
.terminal-line:nth-child(7) { animation-delay: 3.8s; }

.command-prompt {
    color: var(--accent-primary);
    font-weight: bold;
}

.success {
    color: #ea00ff;
}

.warning {
    color: #ffbd2e;
}

.info {
    color: #00bfff;
}

.loading-dots {
    display: inline-block;
    animation: loadingDots 1.5s infinite;
}

@keyframes loadingDots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

.loading-dots::after {
    content: '';
    animation: loadingDots 1.5s infinite;
}

.cursor {
    display: inline-block;
    background-color: #ff00d9;
    width: 8px;
    height: 16px;
    animation: blink 1s infinite;
    margin-left: 2px;
}

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

.progress-bar-container {
    margin: 15px 0;
    opacity: 0;
    animation: slideInType 0.6s ease-out forwards;
    animation-delay: 2.8s;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 0, 242, 0.1);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 0, 187, 0.3);
    backdrop-filter: blur(5px);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(255, 0, 221, 0.8), 
        rgba(255, 0, 79, 0.9), 
        rgba(255, 0, 179, 0.8)
    );
    width: 0%;
    animation: progressFill 2s ease-out forwards;
    animation-delay: 3s;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255, 0, 79, 0.4);
}

@keyframes progressFill {
    to { width: 100%; }
}

.skip-button {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 0, 242, 0.3);
    color: rgba(255, 0, 234, 0.9);
    padding: 8px 15px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    cursor: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
    animation-delay: 1s;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.skip-button:hover {
    background: rgba(255, 0, 204, 0.2);
    color: rgba(255, 255, 255, 0.95);
    box-shadow: 
        0 6px 20px rgba(255, 0, 234, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Mobile Responsiveness for Loading Screen */
@media only screen and (max-width: 675px) {
    .terminal-container {
        padding: 20px;
        margin: 10px;
        width: calc(100% - 20px);
    }

    .terminal-line {
        font-size: 12px;
    }

    .terminal-title {
        font-size: 12px;
    }

    .skip-button {
        bottom: 10px;
        right: 10px;
        padding: 6px 12px;
        font-size: 10px;
    }
}


/* ================================================= */
/* ========== NEW STYLES FOR ABOUT SECTION ========= */
/* ================================================= */

.about-col-1 img {
    border-radius: 15px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

/* The new card container for the right column */
.about-card {
    background: rgba(38, 38, 38, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 15px;
    padding: 30px 40px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    height: 100%;
}

body.light-mode .about-card {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 20px 0 rgba(0, 0, 0, 0.1);
}

/* The polished intro paragraph */
.about-intro-text {
    font-size: 1.3rem; /* Increased from 1.1rem for better readability */
    line-height: 1.7;
    margin-bottom: 30px;
    font-family: 'Montserrat', sans-serif; /* A more readable, professional font */
    color: var(--text-color);
    opacity: 0.9;
}

body.light-mode .about-intro-text {
    opacity: 1;
}

/* Skills Preview Section */
.skills-preview {
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.skill-category, .achievement-highlight {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-category h4, .achievement-highlight h4 {
    color: var(--accent-primary);
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-family: 'Orbitron', sans-serif;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    background: linear-gradient(45deg, var(--accent-primary), #ff6b6b);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.achievement-highlight p {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.9;
}

/* Mobile responsive for skills */
@media only screen and (max-width: 768px) {
    .skills-preview {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .skill-category, .achievement-highlight {
        padding: 15px;
    }
    
    .skill-tags {
        gap: 6px;
    }
    
    .skill-tag {
        padding: 4px 10px;
        font-size: 0.8rem;
    }
}

/* Overriding the old #about-x style just in case */
#about-x {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 1.3rem !important; /* Updated to match the new size */
}


/* ======================================================= */
/* === BOOST 1: UNIFIED INTERACTIVE GLOW EFFECT        === */
/* ======================================================= */

/* --- Glow effect for navigation links and social icons --- */
nav ul li a,
.social-icons-vertical a,
.contact-socials .social-icon {
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

nav ul li a:hover,
.social-icons-vertical a:hover,
.contact-socials .social-icon:hover {
    color: var(--text-primary); /* Make the icon/text brighter */
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.7),
                 0 0 15px var(--accent-primary); /* Main brand color glow */
}

/* --- Glow effect for all buttons --- */
.btn {
    transition: background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 10px rgba(255, 0, 79, 0.5),
                0 0 20px rgba(255, 0, 79, 0.3),
                inset 0 0 5px rgba(255, 255, 255, 0.3);
}

/* --- Special glow for the "Send Message" button --- */
#contactForm button[type="submit"]:hover {
    background: var(--accent-primary); /* Ensure background is solid on hover */
    color: var(--text-primary);
}

/* CSS for the new typewriter glitch effect */
@keyframes glitch-anim {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}
.glitch {
    display: inline-block;
    color: var(--accent-primary);
    animation: glitch-anim 0.2s infinite;
}

