/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    opacity: 0.3;
}

/* Overlay for better contrast */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.7) 0%, rgba(26, 26, 46, 0.8) 50%, rgba(22, 33, 62, 0.9) 100%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
header {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

.profile-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    transition: all 0.3s ease;
}

.profile-logo:hover {
    border-color: #ff6b6b;
    box-shadow: 0 0 30px rgba(255, 107, 107, 0.7);
}

.logo {
    font-size: 1.8rem;
    background: linear-gradient(45deg, #00d4ff, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.nav-links a:hover {
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-2px);
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #00d4ff, #ff6b6b);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::before {
    width: 100%;
}

/* Hero Section */
#hero {
    color: #ffffff;
    padding: 8rem 0 6rem 0;
    text-align: center;
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

#hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #00d4ff, #ff6b6b, #4ecdc4, #45b7d1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGlow 2s ease-in-out infinite alternate;
    font-weight: bold;
}

@keyframes textGlow {
    from { filter: brightness(1); }
    to { filter: brightness(1.2) drop-shadow(0 0 20px rgba(0, 212, 255, 0.5)); }
}

#hero p {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    color: #e0e0e0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.btn {
    display: inline-block;
    background: linear-gradient(45deg, #00d4ff, #ff6b6b);
    color: #fff;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.5);
}

/* Sections */
section {
    padding: 8rem 0 6rem;
    position: relative;
    scroll-margin-top: 100px;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.5), transparent);
}

section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 3rem;
    background: linear-gradient(45deg, #00d4ff, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
    position: relative;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(45deg, #00d4ff, #ff6b6b);
    border-radius: 2px;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 1rem;
}

.skill {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    padding: 1.1rem;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}

.skill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: left 0.5s;
}

.skill:hover::before {
    left: 100%;
}

.skill:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 212, 255, 0.16);
}

.skill-heading {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.skill-heading i {
    color: #00d4ff;
    font-size: 1.4rem;
}

.skill h3 {
    color: #00d4ff;
    margin: 0;
    font-size: 1.1rem;
}

.skill p {
    color: #e0e0e0;
    margin: 0.45rem 0 0.6rem;
    font-size: 0.9rem;
}

.skill progress {
    width: 100%;
    height: 6px;
    display: block;
    border: 0;
    border-radius: 4px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
}

.skill progress::-webkit-progress-bar {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
}

.skill progress::-webkit-progress-value {
    background: linear-gradient(45deg, #00d4ff, #ff6b6b);
    border-radius: 4px;
    transition: width 1.2s ease;
}

.skill progress::-moz-progress-bar {
    background: linear-gradient(45deg, #00d4ff, #ff6b6b);
    border-radius: 4px;
}

.skill-value {
    display: block;
    margin-top: 0.35rem;
    color: #8bffa8;
    font-size: 0.8rem;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

@media (max-width: 600px) {
    .skills-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
    }

    .skill {
        padding: 0.8rem;
    }

    .skill-heading i {
        font-size: 1.2rem;
    }

    .skill h3 {
        font-size: 0.98rem;
    }

    .skill p {
        font-size: 0.82rem;
    }
}

@media (max-width: 360px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 212, 255, 0.05), rgba(255, 107, 107, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project:hover::before {
    opacity: 1;
}

.project:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.2);
}

.project h3 {
    color: #ff6b6b;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.project p {
    color: #e0e0e0;
    margin-bottom: 1.5rem;
}

.about {
    color: #e0e0e0;
    line-height: 1.8;
    font-size: 1.1rem;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text h3 {
    color: #00d4ff;
    margin: 2rem 0 1rem 0;
    font-size: 1.4rem;
}

.vision-goals {
    margin-top: 1.5rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
}

.vision-goals h3 {
    margin: 0 0 0.5rem;
}

.vision-intro,
.vision-lead,
.vision-note,
.vision-motto {
    margin: 0.45rem 0;
    color: #e0e0e0;
    line-height: 1.55;
}

.vision-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem 1.25rem;
    margin: 0.65rem 0;
    padding-left: 1.2rem;
    color: #e0e0e0;
    line-height: 1.45;
}

.vision-motto {
    color: #00d4ff;
}

@media (max-width: 600px) {
    .vision-goals {
        padding: 0.8rem;
    }

    .vision-goals h3 {
        font-size: 1.2rem;
    }

    .vision-list {
        grid-template-columns: 1fr;
        gap: 0.3rem;
    }
}

.skills-list {
    list-style: none;
    padding: 0;
}

.skills-list li {
    margin-bottom: 0.8rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 4px solid #00d4ff;
}

.games-list {
    background: rgba(255, 107, 107, 0.1);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
    font-weight: bold;
}

/* Contact Form */
#contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

#contact-form input,
#contact-form textarea {
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    color: #ffffff;
    transition: all 0.3s ease;
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

#contact-form textarea {
    height: 150px;
    resize: vertical;
}

#contact-form button {
    align-self: center;
    padding: 1rem 3rem;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    color: #fff;
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.chat-widget-header {
    background: linear-gradient(45deg, #00d4ff, #ff6b6b);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.chat-widget-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chat-widget-body {
    padding: 1.5rem;
    color: #e0e0e0;
    display: flex;
    flex-direction: column;
    height: 400px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 1rem;
    padding: 0.5rem;
}

.message {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 10px;
    max-width: 80%;
    word-wrap: break-word;
}

.bot-message {
    background: rgba(0, 212, 255, 0.1);
    border-left: 3px solid #00d4ff;
    align-self: flex-start;
}

.user-message {
    background: rgba(255, 107, 107, 0.1);
    border-left: 3px solid #ff6b6b;
    align-self: flex-end;
    margin-left: auto;
}

.chat-input-container {
    display: flex;
    gap: 0.5rem;
}

.chat-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.9rem;
}

.chat-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.chat-input:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.send-btn {
    padding: 0.75rem 1rem;
    background: linear-gradient(45deg, #00d4ff, #ff6b6b);
    border: none;
    border-radius: 20px;
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.send-btn:hover {
    transform: scale(1.05);
}

.chat-widget-body p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #00d4ff, #ff6b6b);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
}

.chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 212, 255, 0.6);
}

/* Responsive */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 20px;
    }

    .skills-grid,
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }

    #hero {
        padding: 3rem 0;
    }

    section {
        padding: 5rem 0 3rem;
    }

    .skills-grid,
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    /* Video responsiveness */
    #bg-video {
        height: 100vh;
        object-fit: cover;
    }
}

@media (max-width: 768px) {
    nav .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        flex-wrap: wrap;
        width: 100%;
        margin-top: 1rem;
    }

    .nav-links li {
        margin-left: 0;
        margin-right: 0.8rem;
        margin-bottom: 0.5rem;
    }

    #hero h1,
    #hero h2 {
        font-size: 2rem;
    }

    #hero p {
        font-size: 1rem;
    }

    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .skill,
    .project {
        padding: 1.2rem;
    }

    #contact-form {
        padding: 0 1rem;
    }

    #contact-form input,
    #contact-form textarea {
        font-size: 0.95rem;
    }

    /* Image responsiveness */
    .profile-logo {
        width: 120px;
        height: 120px;
    }

    /* Video on tablets */
    #bg-video {
        height: 60vh;
    }
}

@media (max-width: 600px) {
    #hero {
        text-align: center;
        padding: 2rem 0;
    }

    #hero h1 {
        font-size: 1.8rem;
    }

    #hero h2 {
        font-size: 1.6rem;
    }

    #hero p {
        font-size: 0.9rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    section {
        padding: 3rem 0 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .skill,
    .project {
        padding: 1rem;
    }

    /* Chatbot responsiveness */
    .chat-widget {
        width: 95%;
        max-width: none;
        right: 10px;
        bottom: 20px;
    }

    .chat-messages {
        max-height: 300px;
    }

    /* Video on small mobiles */
    #bg-video {
        height: 40vh;
    }
}

@media (max-width: 480px) {
    header,
    footer,
    section,
    #hero {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .btn {
        width: 100%;
        text-align: center;
        padding: 0.75rem 1rem;
    }

    #contact-form button {
        width: 100%;
    }

    #contact-form input,
    #contact-form textarea {
        padding: 0.75rem;
    }

    .profile-logo {
        width: 100px;
        height: 100px;
    }

    /* Video on very small screens */
    #bg-video {
        height: 30vh;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }

    #hero h1 {
        font-size: 1.5rem;
    }

    #hero h2 {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .skill,
    .project {
        padding: 0.8rem;
    }

    .profile-logo {
        width: 80px;
        height: 80px;
    }

    /* Chatbot on tiny screens */
    .chat-widget {
        width: 98%;
        right: 5px;
        bottom: 10px;
    }

    .chat-messages {
        max-height: 250px;
    }

    /* Video on tiny screens */
    #bg-video {
        height: 25vh;
    }
}

/* Additional responsive improvements */
@media (max-width: 768px) {
    /* Touch-friendly buttons */
    .btn {
        min-height: 44px;
        padding: 12px 20px;
    }

    /* Better spacing for mobile */
    .container {
        padding: 0 15px;
    }

    /* Improve readability */
    body {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Chatbot improvements for mobile */
    .chat-widget {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 90%;
        max-width: 350px;
        z-index: 1000;
    }

    .chat-messages {
        max-height: 60vh;
        overflow-y: auto;
    }
}

@media (max-width: 480px) {
    /* Even more touch-friendly */
    .btn {
        min-height: 48px;
        font-size: 16px;
    }

    /* Reduce motion for better performance on mobile */
    * {
        animation-duration: 0.2s !important;
        transition-duration: 0.2s !important;
    }

    /* Better text scaling */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    p { font-size: 1rem; }
}

label {
  padding-right: 10px;
  font-size: 1rem;
}
