@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Inter:wght@300;400;500;600;700&display=swap");

:root {
    --primary-glow: #00ffff;
    --secondary-glow: #ff00ff;
    --accent-glow: #ffff00;
    --background-start: #05020b;
    --background-end: #000000;
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-color: #ffffff;
    --text-muted: #b0b0b0;
    --shadow-glow: 0 0 50px rgba(0, 255, 255, 0.08);
}

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

body {
    font-family: "Inter", sans-serif;
    background: linear-gradient(135deg,
            var(--background-start) 0%,
            var(--background-end) 100%);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

#threejs-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-bar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 24px;
    border-radius: 50px;
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-glow);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 200;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    width: 50px;
    height: 50px;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(25px);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.mobile-menu-toggle:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: var(--primary-glow);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background: var(--primary-glow);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background: var(--primary-glow);
}

/* Mobile Navigation Menu */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(30px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 150;
    transition: right 0.3s ease;
    display: none;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-content {
    display: flex;
    flex-direction: column;
    padding: 80px 30px 30px;
    gap: 20px;
}

.mobile-nav-item {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    padding: 15px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
    background: rgba(0, 255, 255, 0.1);
    color: var(--primary-glow);
    border-color: var(--primary-glow);
    text-shadow: 0 0 10px var(--primary-glow);
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

.nav-item {
    padding: 12px 24px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    border-radius: 25px;
    font-size: 0.9rem;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(0, 255, 255, 0.15);
    color: var(--primary-glow);
    text-shadow: 0 0 10px var(--primary-glow);
}

.section {
    min-height: 100vh;
    padding: 120px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.liquid-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 60px 40px;
    border-radius: 30px;
    box-shadow:
        0 0 40px rgba(0, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    max-width: 1200px;
    width: 100%;
    position: relative;
}

.liquid-card::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg,
            var(--primary-glow),
            var(--secondary-glow),
            var(--accent-glow));
    border-radius: 32px;
    z-index: -1;
    opacity: 0.05;
    animation: glow-pulse 4s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
    0% {
        opacity: 0.05;
    }

    100% {
        opacity: 0.15;
    }
}

.hero {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 60px;
    text-align: center;
}

@media (min-width: 992px) {
    .hero {
        grid-template-columns: 1.3fr 1fr;
        text-align: left;
    }
}

.hero-content h1 {
    font-family: "Orbitron", sans-serif;
    font-size: clamp(3rem, 7vw, 6rem);
    margin-bottom: 24px;
    background: linear-gradient(45deg,
            var(--primary-glow),
            var(--secondary-glow),
            var(--accent-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.5));
    font-weight: 700;
}

.hero-content .role {
    font-size: clamp(1.4rem, 3vw, 2rem);
    margin-bottom: 16px;
    font-weight: 600;
    color: var(--text-color);
}

.hero-content .subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-muted);
    margin-bottom: 40px;
    font-weight: 400;
}

.image-container {
    position: relative;
    width: 100%;
    max-width: 350px;
    height: 350px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow-glow);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.image-container:hover .profile-image {
    transform: scale(1.05);
}

.cta-button {
    display: inline-block;
    padding: 18px 40px;
    background: linear-gradient(45deg,
            var(--primary-glow),
            var(--secondary-glow));
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 0, 255, 0.4);
}

.section-title {
    font-family: "Orbitron", sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-align: center;
    margin-bottom: 80px;
    background: linear-gradient(45deg,
            var(--primary-glow),
            var(--text-color),
            var(--secondary-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.3));
}

.skills-grid,
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    width: 100%;
}

.skill-card,
.project-card {
    background: rgba(255, 255, 255, 0.02);
    padding: 40px 30px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    transition: all 0.4s ease;
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
}

.project-card {
    display: flex;
    flex-direction: column;
    min-height: 280px;
}

.project-card h3 {
    margin-bottom: 16px;
}

.project-card p {
    flex-grow: 1;
    margin-bottom: 20px;
}

.skill-card::before,
.project-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
            var(--primary-glow),
            var(--secondary-glow));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.skill-card:hover::before,
.project-card:hover::before {
    transform: scaleX(1);
}

.skill-card:hover,
.project-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.3),
        var(--shadow-glow);
    border-color: var(--primary-glow);
}

.skill-card h3,
.project-card h3 {
    font-size: 1.3rem;
    margin-bottom: 16px;
    color: var(--text-color);
    font-weight: 600;
}

.skill-card p,
.project-card p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 1rem;
}

.contact-form {
    max-width: 600px;
    width: 100%;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 15px;
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-family: "Inter", sans-serif;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-glow);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    color: var(--primary-glow);
    font-size: 12px;
    letter-spacing: 3px;
    opacity: 0.8;
    font-weight: 500;
}

.scroll-indicator::after {
    content: "";
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--primary-glow), transparent);
    animation: scroll-bounce 2s infinite;
}

@keyframes scroll-bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 0;
    }

    50% {
        transform: translateX(-50%) translateY(15px);
        opacity: 1;
    }
}

/* Logo Styles */
.logo {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 100;
}

.logo-image {
    width: 190px;
    height: auto;
    max-width: 100%;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.5));
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}

/* Social Icons Styles */
.social-icons {
    position: fixed;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.social-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-color);
    font-size: 20px;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.social-icon::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
            var(--primary-glow),
            var(--secondary-glow));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.social-icon:hover::before {
    opacity: 0.1;
}

.social-icon:hover {
    transform: translateX(5px) scale(1.1);
    border-color: var(--primary-glow);
    box-shadow:
        0 10px 30px rgba(0, 255, 255, 0.4),
        0 0 20px rgba(0, 255, 255, 0.2);
    color: var(--primary-glow);
    background: rgba(0, 255, 255, 0.1);
}

.social-icon i {
    transition: transform 0.3s ease;
}

.social-icon:hover i {
    transform: scale(1.2);
}


/* Certifications Section */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.certification-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 15px;
    padding: 25px 20px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.certification-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
            var(--primary-glow),
            var(--secondary-glow));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

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

.certification-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--primary-glow);
}

.certification-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.certification-issuer {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.certification-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.certification-verify {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.verify-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-glow);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border: 1px solid var(--primary-glow);
    border-radius: 20px;
    background: rgba(0, 255, 255, 0.05);
}

.verify-link:hover {
    background: rgba(0, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3);
    text-decoration: none;
    color: var(--primary-glow);
}

.verify-link i {
    font-size: 0.8rem;
}

/* Project Links Styles */
.project-links {
    display: flex;
    gap: 12px;
    margin-top: auto;
    flex-wrap: wrap;
}

.project-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(45deg, var(--secondary-glow), var(--accent-glow));
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 0, 255, 0.3);
    text-decoration: none;
}

.project-link:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 255, 0, 0.4);
    text-decoration: none;
    color: white;
}

.project-link i {
    font-size: 1rem;
}

/* Mobile responsiveness for project links */
@media (max-width: 768px) {
    .project-links {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .project-link,
    .video-preview-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 0.9rem;
    }
    
    .project-link i,
    .video-preview-btn i {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .project-links {
        gap: 8px;
    }
    
    .project-link,
    .video-preview-btn {
        padding: 12px 18px;
        font-size: 0.85rem;
        border-radius: 20px;
    }
    
    .project-link i,
    .video-preview-btn i {
        font-size: 0.9rem;
    }
}

/* Tools & Technologies */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 40px;
}

.tool-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.tool-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
            var(--primary-glow),
            var(--secondary-glow));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tool-item:hover::before {
    transform: scaleX(1);
}

.tool-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-glow);
    box-shadow: 0 10px 25px rgba(0, 255, 255, 0.1);
}

.tool-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px auto;
}

.tool-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.3));
    transition: all 0.3s ease;
}

.tool-item:hover .tool-icon img {
    filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.6));
    transform: scale(1.1);
}

.tool-name {
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 500;
}

/* Tablet Styles */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        gap: 40px;
    }

    .liquid-card {
        padding: 50px 30px;
    }

    .skills-grid,
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }

    .certifications-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Mobile Landscape and Small Tablets */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    /* Hide desktop nav on mobile */
    .desktop-nav {
        display: none;
    }

    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Show mobile nav */
    .mobile-nav {
        display: block;
    }

    .section {
        padding: 100px 0 80px;
        min-height: auto;
    }

    .liquid-card {
        padding: 30px 20px;
        border-radius: 20px;
    }

    .hero {
        gap: 30px;
        text-align: center;
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: clamp(2.5rem, 8vw, 4rem);
        margin-bottom: 20px;
    }

    .hero-content .role {
        font-size: clamp(1.2rem, 4vw, 1.8rem);
    }

    .hero-content .subtitle {
        font-size: clamp(1rem, 3vw, 1.2rem);
        margin-bottom: 30px;
    }

    .image-container {
        max-width: 280px;
        height: 280px;
        margin: 0 auto;
    }

    .cta-button {
        padding: 15px 30px;
        font-size: 1rem;
        margin: 5px;
        display: inline-block;
    }

    .section-title {
        font-size: clamp(2rem, 6vw, 3rem);
        margin-bottom: 50px;
    }

    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .skill-card,
    .project-card {
        padding: 25px 20px;
    }

    .project-card {
        min-height: 260px;
    }

    .certifications-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
        gap: 10px;
    }

    .tool-item {
        padding: 15px 10px;
    }

    .social-icons {
        position: fixed;
        bottom: 20px;
        right: 20px;
        left: auto;
        top: auto;
        transform: none;
        flex-direction: row;
        gap: 12px;
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(20px);
        padding: 8px 12px;
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.15);
        z-index: 150;
    }

    .logo {
        top: 15px;
        left: 15px;
    }

    .logo-image {
        width: 120px;
    }

    .social-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }


    .form-group input,
    .form-group textarea {
        padding: 15px;
        font-size: 0.9rem;
    }

    .scroll-indicator {
        bottom: 25px;
        font-size: 11px;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .mobile-menu-toggle {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }

    .hamburger-line {
        width: 20px;
    }

    .mobile-nav {
        width: 280px;
    }

    .mobile-nav-content {
        padding: 70px 25px 25px;
        gap: 15px;
    }

    .mobile-nav-item {
        font-size: 1.1rem;
        padding: 12px 18px;
    }

    .section {
        padding: 80px 0 60px;
    }

    .liquid-card {
        padding: 20px 15px;
        border-radius: 15px;
    }

    .hero {
        gap: 25px;
    }

    .hero-content h1 {
        font-size: clamp(2rem, 10vw, 3.5rem);
        margin-bottom: 15px;
        line-height: 1.2;
    }

    .hero-content .role {
        font-size: clamp(1rem, 5vw, 1.5rem);
        margin-bottom: 12px;
    }

    .hero-content .subtitle {
        font-size: clamp(0.9rem, 4vw, 1.1rem);
        margin-bottom: 25px;
        line-height: 1.5;
    }

    .image-container {
        max-width: 220px;
        height: 220px;
    }

    .cta-button {
        padding: 12px 24px;
        font-size: 0.9rem;
        margin: 3px;
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .section-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        margin-bottom: 30px;
        line-height: 1.3;
    }

    .skill-card,
    .project-card {
        padding: 20px 15px;
    }

    .project-card {
        min-height: 240px;
    }

    .skill-card h3,
    .project-card h3 {
        font-size: 1.1rem;
    }

    .skill-card p,
    .project-card p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .certification-card {
        padding: 20px 15px;
    }

    .certification-title {
        font-size: 1rem;
    }

    .certification-verify {
        margin-top: 12px;
        padding-top: 12px;
    }

    .verify-link {
        padding: 10px 14px;
        font-size: 0.85rem;
        border-radius: 18px;
    }

    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .tool-item {
        padding: 12px 8px;
    }

    .tool-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 8px;
    }

    .tool-icon img {
        width: 30px;
        height: 30px;
    }

    .tool-name {
        font-size: 0.8rem;
    }

    .social-icons {
        bottom: 15px;
        right: 15px;
        gap: 10px;
        padding: 6px 10px;
        border-radius: 15px;
    }

    .logo {
        top: 12px;
        left: 12px;
    }

    .logo-image {
        width: 100px;
    }

    .social-icon {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }


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

    .form-group input,
    .form-group textarea {
        padding: 12px;
        font-size: 0.9rem;
        border-radius: 10px;
    }

    .scroll-indicator {
        bottom: 20px;
        font-size: 10px;
        letter-spacing: 2px;
    }
}

/* Loading Screen Styles */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.5s ease-out,
        visibility 0.5s ease-out;
}

.loading-container {
    position: relative;
    width: 100%;
    transform: rotate(-35deg);
}

.loading-container .box {
    position: relative;
    left: -100px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: calc(100% + 400px);
    -webkit-box-reflect: below 1px linear-gradient(transparent, #000);
    animation: animatesurface 1.5s ease-in-out infinite;
}

@keyframes animatesurface {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-200px);
    }
}

.loading-container .box .cube {
    position: relative;
    width: 200px;
    height: 200px;
    background: var(--primary-glow);
    box-shadow:
        0 0 5px var(--primary-glow),
        0 0 25px var(--primary-glow),
        0 0 50px var(--primary-glow),
        0 0 150px var(--primary-glow);
    transform-origin: bottom right;
    animation: animate 1.5s ease-in-out infinite;
}

@keyframes animate {
    0% {
        transform: rotate(0deg);
    }

    60%,
    70%,
    80%,
    100% {
        transform: rotate(90deg);
    }

    65% {
        transform: rotate(85deg);
    }

    75% {
        transform: rotate(87.5deg);
    }
}

.loading-text {
    font-family: "Orbitron", sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-glow);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 50px;
    text-shadow: 0 0 10px var(--primary-glow);
    animation: loading-pulse 2s ease-in-out infinite;
}

@keyframes loading-pulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

.loading-dots {
    display: inline-block;
    animation: loading-dots 1.5s ease-in-out infinite;
}

@keyframes loading-dots {

    0%,
    20% {
        content: "";
    }

    40% {
        content: ".";
    }

    60% {
        content: "..";
    }

    80%,
    100% {
        content: "...";
    }
}

.loading-dots::after {
    content: "";
    animation: loading-dots-content 1.5s ease-in-out infinite;
}

@keyframes loading-dots-content {

    0%,
    20% {
        content: "";
    }

    40% {
        content: ".";
    }

    60% {
        content: "..";
    }

    80%,
    100% {
        content: "...";
    }
}

/* Loading Screen Mobile Improvements */
@media (max-width: 768px) {
    .loading-container {
        padding: 0 20px;
    }

    .loading-container .box {
        width: calc(100% + 200px);
        left: -50px;
    }

    .loading-container .box .cube {
        width: 120px;
        height: 120px;
    }

    .loading-text {
        font-size: 1.1rem;
        margin-top: 25px;
        padding: 0 20px;
        text-align: center;
    }

    @keyframes animatesurface {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(-100px);
        }
    }
}

@media (max-width: 480px) {
    .loading-container .box {
        width: calc(100% + 100px);
        left: -25px;
    }

    .loading-container .box .cube {
        width: 80px;
        height: 80px;
        box-shadow:
            0 0 3px var(--primary-glow),
            0 0 15px var(--primary-glow),
            0 0 30px var(--primary-glow),
            0 0 80px var(--primary-glow);
    }

    .loading-text {
        font-size: 0.9rem;
        margin-top: 15px;
        letter-spacing: 1.5px;
        padding: 0 15px;
    }

    @keyframes animatesurface {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(-50px);
        }
    }
}

/* Video Preview Button Styles */
.video-preview-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(45deg, var(--primary-glow), var(--secondary-glow));
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3);
    margin-top: auto;
    align-self: flex-start;
}

.video-preview-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 0, 255, 0.4);
}

.video-preview-btn i {
    font-size: 1rem;
}

/* Video Modal Styles */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.video-modal.active {
    opacity: 1;
    visibility: visible;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}



.video-modal.minimized .video-modal-content {
    width: 400px;
    height: 250px;
    position: fixed;
    bottom: 20px;
    right: 20px;
    top: auto;
    left: auto;
}

.video-modal-header {
    background: rgba(0, 0, 0, 0.8);
    padding: 10px 15px;
    display: flex;
    justify-content: flex-end;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.video-controls {
    display: flex;
    gap: 10px;
}

.control-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    width: 35px;
    height: 35px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.control-btn:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: var(--primary-glow);
    color: var(--primary-glow);
}

.control-btn.close-btn:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: #ff4444;
    color: #ff4444;
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.video-modal.minimized .video-container {
    padding-bottom: 0;
    height: calc(100% - 55px);
}



.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    outline: none;
}

/* Mobile Video Modal Styles */
@media (max-width: 768px) {
    .video-modal-content {
        width: 95%;
        margin: 10px;
        max-height: 90vh;
    }

    .video-modal.minimized .video-modal-content {
        width: 280px;
        height: 180px;
        bottom: 90px;
        right: 10px;
    }

    .video-modal-header {
        padding: 8px 12px;
    }

    .control-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
        border-radius: 6px;
    }

    .video-container {
        padding-bottom: 56.25%; /* Maintain 16:9 aspect ratio */
    }

    .video-modal.minimized .video-container {
        height: calc(100% - 48px);
        padding-bottom: 0;
    }
}

@media (max-width: 480px) {
    .video-modal-content {
        width: 98%;
        margin: 5px;
        max-height: 95vh;
        border-radius: 12px;
    }

    .video-modal.minimized .video-modal-content {
        width: 240px;
        height: 150px;
        bottom: 80px;
        right: 5px;
        border-radius: 8px;
    }

    .video-modal-header {
        padding: 6px 10px;
    }

    .control-btn {
        width: 28px;
        height: 28px;
        font-size: 11px;
        border-radius: 5px;
    }

    .video-controls {
        gap: 8px;
    }

    .video-container {
        padding-bottom: 56.25%;
    }

    .video-modal.minimized .video-container {
        height: calc(100% - 40px);
        padding-bottom: 0;
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .mobile-menu-toggle {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }

    .hamburger-line {
        width: 18px;
    }

    .mobile-nav {
        width: 260px;
    }

    .mobile-nav-item {
        font-size: 1rem;
        padding: 10px 15px;
    }

    .hero-content h1 {
        font-size: clamp(1.8rem, 12vw, 3rem);
    }

    .liquid-card {
        padding: 15px 10px;
    }

    .section-title {
        font-size: clamp(1.5rem, 10vw, 2rem);
    }

    .skill-card,
    .project-card {
        padding: 15px 12px;
    }

    .project-card {
        min-height: 220px;
    }

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .social-icon {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .project-links {
        gap: 6px;
    }

    .project-link,
    .video-preview-btn {
        padding: 10px 16px;
        font-size: 0.8rem;
        border-radius: 18px;
    }

    .project-link i,
    .video-preview-btn i {
        font-size: 0.85rem;
    }

    .video-modal-content {
        width: 100%;
        margin: 0;
        border-radius: 0;
        max-height: 100vh;
    }

    .video-modal.minimized .video-modal-content {
        width: 200px;
        height: 130px;
        bottom: 70px;
        right: 2px;
        border-radius: 6px;
    }

    .verify-link {
        padding: 8px 12px;
        font-size: 0.8rem;
        border-radius: 16px;
    }
}

/* Landscape Mobile Optimization */
@media (max-height: 500px) and (orientation: landscape) {
    .section {
        padding: 60px 0 40px;
        min-height: auto;
    }

    .hero {
        gap: 20px;
    }

    .image-container {
        max-width: 200px;
        height: 200px;
    }

    .section-title {
        margin-bottom: 30px;
    }

    .scroll-indicator {
        bottom: 15px;
    }

    .social-icons {
        bottom: 10px;
        right: 10px;
    }

    .video-modal-content {
        width: 90%;
        max-height: 90vh;
    }

    .video-modal.minimized .video-modal-content {
        width: 300px;
        height: 180px;
        bottom: 15px;
        right: 15px;
    }

    .project-links {
        flex-direction: row;
        gap: 8px;
    }

    .project-link,
    .video-preview-btn {
        flex: 1;
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .nav-item,
    .social-icon,
    .cta-button,
    .skill-card,
    .project-card,
    .certification-card,
    .tool-item,
    .project-link,
    .video-preview-btn,
    .verify-link,
    .control-btn {
        -webkit-tap-highlight-color: rgba(0, 255, 255, 0.1);
        touch-action: manipulation;
    }

    .nav-item {
        padding: 12px 16px;
    }

    .social-icon {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }

    .cta-button {
        padding: 16px 32px;
        min-height: 44px;
    }

    .project-link,
    .video-preview-btn {
        min-height: 44px;
        padding: 14px 20px;
    }

    .verify-link {
        min-height: 40px;
        padding: 12px 16px;
    }

    .control-btn {
        min-width: 44px;
        min-height: 44px;
    }
}



.social-icons a {
    display: inline-block;
    height: 2.5rem;
    width: 2.5rem;
    background-color: rgba(0, 255, 255, 0.1);
    color: var(--text-color);
    border-radius: 50%;
    text-align: center;
    font-size: 1.2rem;
    line-height: 2.5rem;
    margin-right: 0.5rem;
    border: 1px solid var(--primary-glow);
    transition: all 0.3s ease;
}

img {
    vertical-align: middle;
    border-style: none;
    width: 25px;
    height: 25px;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .social-icons a {
        height: 2rem;
        width: 2rem;
        font-size: 1rem;
        line-height: 2rem;
        margin-right: 0.5rem;
    }
    .social-icons img {
        width: 20px;
        height: 20px;
    }
    .cta-button {
        font-size: 0.9rem;
        padding: 12px 24px;
    }
}



