/* Portfolio Main Styles */
.portfolio-section {
    /* Theme Variables */
    --bg-color: #0A0A0A;
    --text-color: #FFFFFF;
    --accent-color: #6B46C1;
    --accent-light: #9F7AEA;
    --card-bg: rgba(107, 70, 193, 0.1);
    --border-color: rgba(107, 70, 193, 0.2);
    --font-primary: 'Space Grotesk', sans-serif;

    /* Base Styles */
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: none !important; /* Hide default cursor */

    /* Hide default cursor on all interactive elements */
    a, button, input[type="button"], input[type="submit"], input[type="reset"],
    .project-card, .social-link, .nav-link, .theme-toggle {
        cursor: none !important;
    }

    /* Mobile Menu */
    .mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-color);
        z-index: 99;
        display: none;
        align-items: center;
        justify-content: center;
    }

    .mobile-menu.active {
        display: flex;
    }

    .mobile-menu-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .mobile-link {
        color: var(--text-color);
        text-decoration: none;
        font-size: 1.5rem;
        position: relative;
        padding: 0.5rem;
        transition: color 0.3s ease;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;

        &::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--accent-color);
            transition: width 0.3s ease;
        }

        &:hover::after {
            width: 100%;
        }
    }

    .mobile-menu.active .mobile-link {
        opacity: 1;
        transform: translateY(0);
    }

    /* Mobile Nav Toggle */
    .mobile-nav-toggle {
        display: none;
        cursor: pointer;
        z-index: 100;
        padding: 1rem;
    }

    .hamburger {
        width: 30px;
        height: 20px;
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .hamburger span {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--text-color);
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .mobile-nav-toggle.active .hamburger span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-nav-toggle.active .hamburger span:nth-child(2) {
        opacity: 0;
    }

    .mobile-nav-toggle.active .hamburger span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Custom Cursor */
    .cursor-outer {
        width: 30px;
        height: 30px;
        border: 2px solid var(--accent-color);
        border-radius: 50%;
        position: fixed;
        pointer-events: none;
        z-index: 9999;
        transform: translate(-50%, -50%);
        transition: all 0.15s ease-out;
        transform-origin: center center;
        mix-blend-mode: difference;
        animation: cursorPulse 2s ease infinite;
        will-change: transform;
        backface-visibility: hidden;
    }

    .cursor-inner {
        width: 6px;
        height: 6px;
        background-color: var(--accent-color);
        border-radius: 50%;
        position: fixed;
        pointer-events: none;
        z-index: 9999;
        transform: translate(-50%, -50%);
        transition: all 0.08s ease-out;
        mix-blend-mode: difference;
        will-change: transform;
        backface-visibility: hidden;
    }

    /* Navigation */
    .main-nav {
        position: fixed;
        top: 0;
        width: 100%;
        padding: 2rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        z-index: 100;
        backdrop-filter: blur(10px);
    }

    .logo {
        font-size: 2rem;
        font-weight: 700;
        color: var(--text-color);
        user-select: none;
        cursor: pointer;
    }

    .nav-links {
        display: flex;
        gap: 2rem;
        margin-left: auto;
    }

    .nav-link {
        color: var(--text-color);
        text-decoration: none;
        position: relative;
        padding: 0.5rem;
        transition: color 0.3s ease;

        &::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--accent-color);
            transition: width 0.3s ease;
        }

        &:hover::after {
            width: 100%;
        }
    }

    /* Theme Toggle Button */
    .theme-toggle {
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--text-color);
        transition: color 0.3s ease;
    }

    .theme-toggle:hover {
        color: var(--accent-color);
    }

    .sun-icon, .moon-icon {
        width: 24px;
        height: 24px;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    /* Hero Section */
    .hero {
        height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 0 2rem;
        position: relative;
        margin-top: -4rem;
    }

    .hero h1 {
        font-size: 4.5rem;
        margin-bottom: 1rem;
        animation: fadeInUp 1s ease;
    }

    .hero h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
        animation: fadeInUp 1s ease 0.2s;
        animation-fill-mode: both;
    }

    .hero .tagline {
        font-size: 1.4rem;
        margin-bottom: 2rem;
        animation: fadeInUp 1s ease 0.4s;
        animation-fill-mode: both;
    }

    .subtitle {
        font-size: 2rem;
        margin-bottom: 1rem;
        opacity: 0.9;
    }

    .highlight {
        color: var(--accent-color);
        font-weight: 600;
    }

    /* Canvas */
    #particleCanvas {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
        pointer-events: none;
        opacity: 1;
        background-color: transparent;
    }

    /* About Section */
    .about {
        padding: 8rem 2rem;
        background: linear-gradient(
            to bottom,
            var(--bg-color),
            rgba(107, 70, 193, 0.1),
            var(--bg-color)
        );
    }

    .about-content {
        max-width: 1200px;
        margin: 0 auto;
    }

    .section-title {
        font-size: 3rem;
        margin-bottom: 3rem;
        text-align: center;
        position: relative;
        transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        transform: translateY(20px);
        opacity: 0;

        &.visible {
            transform: translateY(0);
            opacity: 1;
        }

        &::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 3px;
            background: var(--accent-color);
            transition: width 0.3s ease;
        }

        &:hover::after {
            width: 150px;
        }
    }

    /* Skills List */
    .skills-list {
        list-style: none;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-top: 2rem;

        li {
            position: relative;
            padding-left: 1.5rem;
            transition: transform 0.2s ease, color 0.2s ease;
            opacity: 0;
            animation: fadeInStagger 0.5s ease forwards;

            &:hover {
                transform: translateX(5px);
                color: var(--accent-color);
            }

            &::before {
                content: '▹';
                position: absolute;
                left: 0;
                color: var(--accent-color);
                transition: transform 0.2s ease;
            }

            &:hover::before {
                transform: scale(1.2);
            }
        }
    }

    /* Animations */
    @keyframes fadeInStagger {
        from {
            opacity: 0;
            transform: translateX(-20px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    @keyframes cursorPulse {
        0% {
            transform: scale(1) translate(-50%, -50%);
            opacity: 1;
        }
        50% {
            transform: scale(1.2) translate(-50%, -50%);
            opacity: 0.7;
        }
        100% {
            transform: scale(1) translate(-50%, -50%);
            opacity: 1;
        }
    }

    @keyframes fadeInPage {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Responsive Design */
    @media (max-width: 768px) {
        .hero h1 {
            font-size: 3rem;
        }
        
        .nav-links {
            display: none;
        }
        
        .logo {
            font-size: 1.5rem;
        }
        
        .about {
            padding: 4rem 1rem;
        }
        
        .section-title {
            font-size: 2.5rem;
        }
        
        .skills-list {
            grid-template-columns: 1fr;
        }

        .mobile-nav-toggle {
            display: block;
        }
    }

    /* Work Section */
    .work {
        padding: 4rem 2rem;
        background: linear-gradient(
            to bottom,
            var(--bg-color),
            rgba(107, 70, 193, 0.05)
        );
    }

    .work-content {
        max-width: 1200px;
        margin: 0 auto;
    }

    .project-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 2rem;
        width: 100%;
    }

    .project-card {
        background: var(--card-bg);
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        height: 100%;
        display: flex;
        flex-direction: column;

        &:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(107, 70, 193, 0.2);
        }
    }

    .project-image {
        position: relative;
        overflow: hidden;
        aspect-ratio: 16/9;
    }

    .project-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    .project-card:hover .project-image img {
        transform: scale(1.05);
    }

    .project-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        display: flex;
        justify-content: center;
        align-items: center;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .project-card:hover .project-overlay {
        opacity: 1;
    }

    .project-links {
        display: flex;
        gap: 1rem;
    }

    .project-link {
        padding: 0.6rem 1.2rem;
        background: var(--accent-color);
        color: white;
        border-radius: 30px;
        text-decoration: none;
        font-weight: 500;
        transition: all 0.3s ease;

        &:hover {
            background: white;
            color: var(--accent-color);
            transform: translateY(-3px);
        }
    }

    .project-info {
        padding: 1.5rem;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }

    .project-info h3 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
        color: var(--text-color);
    }

    .project-info p {
        color: var(--secondary-text);
        margin-bottom: 1.2rem;
        line-height: 1.5;
        flex-grow: 1;
    }

    .project-tech {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-top: auto;
    }

    .project-tech span {
        padding: 0.3rem 0.8rem;
        background: rgba(107, 70, 193, 0.1);
        color: var(--accent-color);
        border-radius: 20px;
        font-size: 0.8rem;
        font-weight: 500;
    }

    /* Project Placeholder Styling */
    .project-placeholder {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        padding: 2rem;
        text-align: center;
        background: rgba(107, 70, 193, 0.05);
        border-radius: 8px;
    }

    .coming-soon-icon {
        font-size: 3rem;
        margin-bottom: 1rem;
        color: var(--accent-color);
    }

    .coming-soon-text {
        max-width: 80%;
    }

    .coming-soon-text h3 {
        margin-bottom: 1rem;
        color: var(--text-color);
    }

    .coming-soon-text p {
        color: var(--text-color);
        opacity: 0.8;
        line-height: 1.6;
    }

    .blog-link {
        color: var(--accent-color);
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s ease;
        position: relative;
    }

    .blog-link:hover {
        color: var(--accent-light);
    }

    .blog-link::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--accent-color);
        transition: width 0.3s ease;
    }

    .blog-link:hover::after {
        width: 100%;
    }

    /* Contact Section */
    .contact {
        padding: 8rem 2rem;
        background: linear-gradient(
            to bottom,
            var(--bg-color),
            rgba(107, 70, 193, 0.1),
            var(--bg-color)
        );
    }

    .contact-content {
        max-width: 1200px;
        margin: 0 auto;
    }

    .contact-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        margin-top: 4rem;
    }

    .contact-form {
        background: var(--card-bg);
        padding: 2rem;
        border-radius: 10px;
        border: 1px solid var(--border-color);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .form-group {
        position: relative;
        margin-bottom: 2rem;

        input,
        textarea {
            width: 100%;
            background: transparent;
            border: none;
            color: var(--text-color);
            padding: 0.5rem 0;
            font-size: 1rem;
            font-family: var(--font-primary);
            border-bottom: 1px solid var(--border-color);
            transition: border-color 0.3s ease;
        }

        input:focus,
        textarea:focus {
            outline: none;
            border-color: var(--accent-color);
        }

        textarea {
            min-height: 100px;
            resize: vertical;
        }

        label {
            position: absolute;
            top: 0.5rem;
            left: 0;
            color: var(--secondary-text);
            transition: all 0.3s ease;
            pointer-events: none;
        }

        input:focus ~ label,
        textarea:focus ~ label,
        input:not(:placeholder-shown) ~ label,
        textarea:not(:placeholder-shown) ~ label {
            top: -1.2rem;
            font-size: 0.8rem;
            color: var(--accent-color);
        }
    }

    .submit-btn {
        background: var(--accent-color);
        color: white;
        border: none;
        padding: 1rem 2rem;
        border-radius: 50px;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        margin-top: 1rem;

        &:hover {
            background: var(--accent-light);
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(107, 70, 193, 0.2);
        }

        .btn-icon {
            transition: transform 0.3s ease;
        }

        &:hover .btn-icon {
            transform: translateX(5px);
        }
    }

    /* Footer */
    .footer {
        background: linear-gradient(
            to bottom,
            var(--bg-color),
            rgba(107, 70, 193, 0.1)
        );
        padding: 4rem 2rem 2rem;
        margin-top: 4rem;
    }

    .footer-content {
        max-width: 1200px;
        margin: 0 auto;
    }

    .footer-grid {
        display: grid;
        grid-template-columns: 2fr 1fr 1fr;
        gap: 4rem;
        margin-bottom: 3rem;
    }

    .footer-info {
        max-width: 400px;
    }

    .footer-logo {
        font-size: 2rem;
        font-weight: 700;
        color: var(--accent-color);
        margin-bottom: 1rem;
    }

    .footer-links h4,
    .footer-social h4 {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
        color: var(--text-color);
        position: relative;
        padding-bottom: 0.5rem;

        &::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 30px;
            height: 2px;
            background: var(--accent-color);
        }
    }

    .footer-links nav {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
    }

    .footer-links a {
        color: var(--secondary-text);
        text-decoration: none;
        transition: color 0.3s ease, transform 0.3s ease;
        display: inline-block;

        &:hover {
            color: var(--accent-color);
            transform: translateX(5px);
        }
    }

    .social-links {
        display: flex;
        gap: 1.5rem;
    }

    .social-link {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: var(--text-color);
        text-decoration: none;
        transition: color 0.3s ease, transform 0.3s ease;

        &:hover {
            color: var(--accent-color);
            transform: translateY(-3px);
        }
    }

    .social-icon {
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(107, 70, 193, 0.1);
        border-radius: 50%;
        font-size: 1rem;
    }

    .social-text {
        font-size: 0.9rem;
    }

    .footer-bottom {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-top: 2rem;
        border-top: 1px solid var(--border-color);
    }

    .copyright-text {
        font-size: 0.9rem;
        color: var(--secondary-text);
    }

    .footer-easter-eggs {
        text-align: right;
    }

    .footer-easter-egg {
        font-size: 0.8rem;
        color: var(--secondary-text);
        opacity: 0.7;
        margin: 0.3rem 0;
        transition: opacity 0.3s ease;

        &:hover {
            opacity: 1;
        }
    }

    /* Responsive Design - Additional Breakpoints */
    @media (max-width: 1024px) {
        .footer-grid {
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
        }

        .contact-grid {
            grid-template-columns: 1fr;
            gap: 2rem;
        }
    }

    @media (max-width: 480px) {
        .footer-grid {
            grid-template-columns: 1fr;
        }

        .social-links {
            flex-wrap: wrap;
        }

        .project-grid {
            grid-template-columns: 1fr;
        }
    }

    /* Resume Section */
    .resume {
        padding: 4rem 2rem;
        background: linear-gradient(
            to bottom,
            var(--bg-color),
            rgba(107, 70, 193, 0.05)
        );
    }

    .resume-content {
        max-width: 1200px;
        margin: 0 auto;
    }

    .resume-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        margin-bottom: 2rem;
    }

    .resume-section {
        margin-bottom: 2rem;
    }

    .resume-section h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        color: var(--accent-color);
        position: relative;
        padding-bottom: 0.5rem;

        &::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 50px;
            height: 2px;
            background: var(--accent-color);
        }
    }

    .resume-item {
        margin-bottom: 1.5rem;
        padding: 1rem;
        background: rgba(107, 70, 193, 0.05);
        border-radius: 8px;
        transition: transform 0.3s ease, box-shadow 0.3s ease;

        &:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }
    }

    .resume-item h4 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
        color: var(--text-color);
    }

    .resume-item p {
        color: var(--secondary-text);
        margin-bottom: 0.5rem;
    }

    .resume-item .year {
        display: inline-block;
        font-size: 0.9rem;
        color: var(--accent-color);
        margin-bottom: 0.5rem;
    }

    .resume-item ul {
        margin-top: 0.5rem;
        padding-left: 1.5rem;
    }

    .resume-item li {
        margin-bottom: 0.3rem;
        color: var(--secondary-text);
    }

    .resume-download {
        text-align: center;
        margin-top: 2rem;
    }

    .download-btn {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.8rem 1.5rem;
        background: var(--accent-color);
        color: white;
        border-radius: 30px;
        text-decoration: none;
        font-weight: 500;
        transition: all 0.3s ease;
        box-shadow: 0 4px 10px rgba(107, 70, 193, 0.3);

        &:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 15px rgba(107, 70, 193, 0.4);
        }

        svg {
            transition: transform 0.3s ease;
        }

        &:hover svg {
            transform: translateY(3px);
        }
    }

    /* New Skills Section Styling */
    .skills-section {
        grid-column: 1 / -1;
    }

    .skills-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .skills-column {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .skill-category h4 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
        color: var(--text-color);
    }

    .skill-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .skill-tag {
        display: inline-block;
        padding: 0.4rem 0.8rem;
        background: rgba(107, 70, 193, 0.1);
        color: var(--text-color);
        border-radius: 20px;
        font-size: 0.9rem;
        transition: all 0.3s ease;

        &:hover {
            background: var(--accent-color);
            color: white;
            transform: translateY(-2px);
        }
    }

    /* Character Stats */
    .character-panel {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 20px;
        padding: 2rem;
        margin-top: 3rem;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    }

    .character-stats {
        display: grid;
        gap: 2rem;
    }

    .stat-group {
        background: rgba(255, 255, 255, 0.03);
        border-radius: 15px;
        padding: 1.5rem;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .stat-group:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }

    .class-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
        color: var(--accent-color);
        text-align: center;
        font-weight: 600;
    }

    .stat-item {
        display: flex;
        align-items: center;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
        padding: 1rem;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 12px;
        transition: transform 0.3s ease;
    }

    .stat-item:hover {
        transform: translateX(5px);
    }

    .stat-icon {
        font-size: 1.8rem;
        color: var(--accent-color);
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .stat-info {
        flex: 1;
    }

    .stat-label {
        font-size: 1.1rem;
        font-weight: 500;
        margin-bottom: 0.5rem;
        display: block;
    }

    .progress-bar {
        height: 8px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 4px;
        overflow: hidden;
        margin: 0.5rem 0;
    }

    .progress-fill {
        height: 100%;
        background: var(--accent-color);
        border-radius: 4px;
        transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .stat-detail {
        font-size: 0.9rem;
        opacity: 0.8;
        margin-top: 0.5rem;
    }

    .specializations {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .spec-tag {
        background: rgba(107, 70, 193, 0.2);
        color: var(--accent-color);
        padding: 0.5rem 1rem;
        border-radius: 20px;
        font-size: 0.9rem;
        transition: all 0.3s ease;
    }

    .spec-tag:hover {
        background: rgba(107, 70, 193, 0.3);
        transform: translateY(-2px);
    }

    /* Responsive Design */
    @media (max-width: 768px) {
        .character-stats {
            gap: 1.5rem;
        }

        .stat-group {
            padding: 1.2rem;
        }

        .stat-item {
            flex-direction: column;
            text-align: center;
            gap: 0.8rem;
        }

        .stat-icon {
            margin: 0 auto;
        }

        .specializations {
            gap: 0.6rem;
        }

        .spec-tag {
            font-size: 0.8rem;
            padding: 0.4rem 0.8rem;
        }
    }
} 