/* style.css - Clean Scrolling & Clickable Navigation */
:root {
    --bg-primary: #0a0f1a;
    --bg-secondary: #1a1f2e;
    --bg-card: rgba(255, 255, 255, 0.05);
    --text-primary: #ffffff;
    --text-secondary: #e0e4e8;
    --text-muted: #a0a4b0;
    --border-color: #2a2f3e;
    --card-bg: #1e2436;
    --about-bg: #1a1f2e;
    --service-front-bg: #1e2436;
    --form-bg: #1e2436;
    --input-bg: #2a2f3e;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --section-bg-alt: #131724;
    --home-overlay: rgba(0, 0, 0, 0.6);
    --video-overlay-dark: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Segoe UI', 'Cambria', 'Cochin', Georgia, Times, serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* Video Background */
#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    filter: brightness(0.85) contrast(1.1);
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--video-overlay-dark);
    z-index: -1;
    pointer-events: none;
}

.home {
    position: relative;
    min-height: 100vh;
    background: transparent;
}

/* Header & Navigation - FIXED CLICKABLE */
.header {
    padding: 1rem 2rem;
    position: relative;
    z-index: 100;
}

.header a {
    font-size: clamp(1.5rem, 5vw, 2rem);
    text-decoration: none;
    background: linear-gradient(90deg, #007bff, #00c6ff, #007bff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: textAnimation 6s linear infinite;
    font-weight: bold;
    pointer-events: auto;
}

@keyframes textAnimation {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.nav__bar {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem 2rem;
    margin-top: -3.5rem;
    position: relative;
    z-index: 100;
}

.nav__bar a {
    margin: 0 0.75rem;
    text-decoration: none;
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    pointer-events: auto;
    z-index: 101;
}

.nav__bar a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #007bff;
    transition: width 0.3s ease;
}

.nav__bar a:hover::after {
    width: 100%;
}

.nav__bar a:hover {
    color: #007bff;
    transform: translateY(-2px);
}

/* Hero Section */
.mainsection {
    text-align: center;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
    z-index: 5;
}

.intro h1 {
    color: #ffffff;
    font-size: clamp(1.5rem, 6vw, 3rem);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.intro span {
    color: #007bff;
    text-shadow: 0 0 15px rgba(0, 123, 255, 0.8);
}

.im-a h2 {
    color: #ffffff;
    font-size: clamp(1.2rem, 4.5vw, 2rem);
    margin-top: 0.5rem;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.im-a span {
    color: #00c6ff;
    font-weight: bold;
    border-right: 2px solid #007bff;
    padding-right: 5px;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { border-color: #007bff; }
    50% { border-color: transparent; }
}

.btn__box {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.btn__box a {
    text-decoration: none;
    background: #007bff;
    color: white;
    display: inline-flex;
    width: clamp(130px, 25vw, 155px);
    height: 45px;
    align-items: center;
    justify-content: center;
    border-radius: 40px;
    border: 2px solid #007bff;
    font-weight: 600;
    font-size: clamp(0.9rem, 3vw, 1rem);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn__box a:nth-child(2) {
    background: transparent;
    color: white;
    backdrop-filter: blur(5px);
}

.btn__box a:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.4);
}

.btn__box a:nth-child(1):hover {
    background: transparent;
    color: white;
}

.btn__box a:nth-child(2):hover {
    background: #007bff;
    color: white;
}

/* Section Appearance/Disappearance Animations */
.fade-section {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* About Section */
#about-me {
    background: var(--about-bg);
    padding: 4rem 1.5rem;
    position: relative;
    z-index: 2;
}

.about__me {
    max-width: 1200px;
    margin: 0 auto;
}

.about {
    text-align: center;
    margin-bottom: 2rem;
}

.about h1 {
    font-size: clamp(2rem, 6vw, 2.8rem);
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

.about h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #007bff;
}

.about-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px var(--shadow-color);
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem;
}

.about-img-wrapper {
    flex: 0 0 200px;
    text-align: center;
}

.about-img {
    width: 100%;
    max-width: 200px;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #007bff;
    box-shadow: 0 10px 25px var(--shadow-color);
}

.about-info {
    flex: 1;
}

.about-info p {
    margin-bottom: 0.75rem;
    font-size: clamp(0.9rem, 3vw, 1rem);
    color: var(--text-secondary);
}

.about-text {
    line-height: 1.6;
    margin-top: 1rem;
    color: var(--text-secondary);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    text-decoration: none;
    padding: 0.7rem 1.2rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.github-link {
    background: #24292e;
    color: white;
}

.cv-link {
    background: #007bff;
    color: white;
}

.social-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--shadow-color);
}

/* Skills Section */
#skills {
    background: var(--bg-secondary);
    padding: 4rem 1.5rem;
    position: relative;
    z-index: 2;
}

.name__tag h1 {
    text-align: center;
    font-size: clamp(2rem, 6vw, 2.8rem);
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.skills-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.skills-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    border: 1px solid var(--border-color);
}

.skill-box {
    margin: 1.8rem 0;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.title {
    font-size: clamp(0.9rem, 3vw, 1rem);
    font-weight: 600;
    color: #00c6ff;
}

.skill-percentage {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-primary);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
}

.skill-bar {
    height: 10px;
    width: 100%;
    background: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.skill-per {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 10px;
    background: linear-gradient(90deg, #007bff, #00c6ff);
    position: relative;
    transition: width 1.5s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.tooltip {
    position: absolute;
    right: -10px;
    top: -28px;
    font-size: 0.7rem;
    background: #007bff;
    color: white;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: bold;
    pointer-events: none;
    white-space: nowrap;
}

.tooltip::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #007bff;
}

/* SERVICES SECTION */
.services__section {
    background: var(--section-bg-alt);
    padding: 5rem 1.5rem;
    position: relative;
    z-index: 2;
}

.section__title {
    text-align: center;
    font-size: clamp(2rem, 6vw, 2.8rem);
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.services-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1rem;
}

.services__container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.service__card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.service__card:hover {
    transform: translateY(-8px);
    border-color: #007bff;
    box-shadow: 0 20px 35px rgba(0, 123, 255, 0.2);
}

.service__icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #007bff20, #00c6ff20);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.service__card:hover .service__icon {
    background: linear-gradient(135deg, #007bff, #00c6ff);
    transform: scale(1.05);
}

.service__icon i {
    font-size: 2rem;
    color: #007bff;
    transition: all 0.3s ease;
}

.service__card:hover .service__icon i {
    color: white;
}

.service__card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service__card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.service__hover-effect {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #00c6ff);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service__card:hover .service__hover-effect {
    transform: scaleX(1);
}

/* Contact Section */
#contacts {
    background: var(--bg-primary);
    padding: 4rem 1.5rem;
    position: relative;
    z-index: 2;
}

.contact__form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--form-bg);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 20px 40px var(--shadow-color);
    border: 1px solid var(--border-color);
}

.contact__header {
    text-align: center;
    margin-bottom: 2rem;
}

.contact__header h1 {
    font-size: clamp(1.8rem, 5vw, 2.2rem);
    color: var(--text-primary);
}

.contact__header p {
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.input {
    margin-bottom: 1.5rem;
}

.input label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.input input, .input textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    background: var(--input-bg);
    color: var(--text-primary);
}

.input input:focus, .input textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.error-message {
    color: #dc3545;
    font-size: 0.75rem;
    display: block;
    margin-top: 0.3rem;
}

button {
    width: 100%;
    padding: 1rem;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

button:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 0.8rem;
    border-radius: 12px;
    margin-top: 1rem;
    text-align: center;
}

.error-message-display {
    background: #f8d7da;
    color: #721c24;
    padding: 0.8rem;
    border-radius: 12px;
    margin-top: 1rem;
    text-align: center;
}

/* Responsive Breakpoints */
@media screen and (max-width: 768px) {
    .nav__bar {
        justify-content: center;
        margin-top: 0;
        gap: 0.2rem;
        padding: 1rem;
    }
    
    .nav__bar a {
        margin: 0 0.4rem;
        font-size: 0.85rem;
    }
    
    .header {
        text-align: center;
        padding: 1rem;
    }
    
    .about-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .skills-container {
        padding: 1.5rem;
    }
    
    .services__container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service__card {
        padding: 1.5rem;
    }
    
    .contact__form {
        padding: 1.5rem;
    }
}

@media screen and (max-width: 480px) {
    .btn__box a {
        width: 120px;
        height: 40px;
        font-size: 0.8rem;
    }
    
    .about-img {
        max-width: 150px;
    }
    
    .service__icon {
        width: 60px;
        height: 60px;
    }
    
    .service__icon i {
        font-size: 1.6rem;
    }
    
    .service__card h3 {
        font-size: 1.1rem;
    }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
    .services__container {
        grid-template-columns: repeat(2, 1fr);
    }
}
