* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: "Poppins", sans-serif;
}

:root {
    --bg-color: #0a0a0a;
    --second-bg-color: #1a1a2e;
    --text-color: #ffffff;
    --main-color: #00ff87;
    --accent-color: #ff006e;
    --secondary-accent: #00d9ff;
    --box-shadow: #8d8a8a;
}

body {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    font-family: "Poppins", sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(0, 255, 135, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 0, 110, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: bgPulse 10s ease-in-out infinite;
}

@keyframes bgPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

html::-webkit-scrollbar {
    width: 0.8rem;
}

html::-webkit-scrollbar-track {
    background: var(--bg-color);
}

html::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--main-color), var(--accent-color));
    border-radius: 1rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 9%;
    height: 7rem;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 1.5rem 9%;
    height: 6rem;
    box-shadow: 0 5px 30px rgba(0, 255, 135, 0.1);
}

.logo {
    font-size: 2.5rem;
    background: linear-gradient(45deg, #00ff87, #00d9ff, #ff006e);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s ease;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px var(--main-color));
}

.color {
    background: linear-gradient(45deg, #00ff87, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.navbar ul li a {
    color: var(--text-color);
    font-size: 1.7rem;
    position: relative;
    transition: 0.3s ease;
    padding: 0.5rem 0;
}

.navbar ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--main-color), var(--secondary-accent));
    transition: width 0.3s ease;
}

.navbar ul li a:hover::after,
.navbar ul li a.active::after {
    width: 100%;
}

.navbar ul li a:hover,
.navbar ul li a.active {
    color: var(--main-color);
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--main-color);
    display: none;
    cursor: pointer;
    transition: 0.3s ease;
}

#menu-icon:hover {
    color: var(--secondary-accent);
    transform: scale(1.1);
}

/* Home Section */
.home {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2rem;
    padding: 10rem 9% 5rem;
    min-height: 100vh;
}

.home-img {
    position: relative;
    margin: 3rem 0;
}

.home-img .glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 25vw;
    height: 25vw;
    background: radial-gradient(circle, rgba(0, 255, 135, 0.2), transparent 70%);
    border-radius: 50%;
    animation: glowPulse 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes glowPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

.home-img img {
    position: relative;
    border-radius: 50%;
    width: 22vw;
    height: 22vw;
    min-width: 250px;
    min-height: 250px;
    object-fit: cover;
    border: 5px solid transparent;
    background: linear-gradient(var(--bg-color), var(--bg-color)) padding-box,
                linear-gradient(45deg, var(--main-color), var(--accent-color), var(--secondary-accent)) border-box;
    cursor: pointer;
    transition: 0.5s ease;
}

.home-img img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 30px var(--main-color));
}

.home-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.home-content h1 {
    font-size: 6rem;
    font-weight: 700;
    margin-top: 1.5rem;
    line-height: 1;
    background: linear-gradient(45deg, #ffffff, var(--main-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-content h3 {
    position: relative;
    font-size: 3.5rem;
    color: #1a1a2e;
    -webkit-text-stroke: 0.3vw #383d52;
    text-transform: uppercase;
    margin: 2rem 0;
}

.home-content h3::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--main-color), var(--secondary-accent), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border-right: 4px solid var(--main-color);
    overflow: hidden;
    animation: typing 4s steps(20) infinite;
}

@keyframes typing {
    0%, 10%, 100% { width: 0; }
    70%, 90% { width: 100%; }
}

.home-content p {
    font-size: 1.6rem;
    font-weight: 400;
    max-width: 900px;
    line-height: 1.8;
    margin: 2rem 0;
    color: rgba(255, 255, 255, 0.8);
}

.social-icon {
    display: flex;
    gap: 2rem;
    margin: 3rem 0;
}

.social-icon a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 5rem;
    height: 5rem;
    font-size: 2.5rem;
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-icon a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--main-color), var(--secondary-accent));
    transform: translateY(100%);
    transition: 0.3s ease;
    z-index: -1;
}

.social-icon a:hover::before {
    transform: translateY(0);
}

.social-icon a:hover {
    transform: translateY(-5px);
    color: var(--bg-color);
    border-color: var(--main-color);
}

.btn {
    display: inline-block;
    padding: 1.2rem 3.5rem;
    background: linear-gradient(45deg, var(--main-color), var(--secondary-accent));
    font-size: 1.6rem;
    border-radius: 5rem;
    color: var(--bg-color);
    font-weight: 600;
    transition: 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--secondary-accent), var(--accent-color));
    transform: translateX(-100%);
    transition: 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    transform: translateX(0);
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 255, 135, 0.5);
}

/* Section Styles */
section {
    min-height: 100vh;
    padding: 8rem 9% 5rem;
}

.heading {
    font-size: 5rem;
    text-align: center;
    margin-bottom: 5rem;
    background: linear-gradient(45deg, var(--main-color), var(--secondary-accent), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.heading::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--main-color), var(--accent-color));
    border-radius: 2px;
}

/* Services Section */
.services {
    background: var(--bg-color);
}

.services-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 3rem;
}

.services-box {
    flex: 1 1 30rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    padding: 3rem 2rem;
    border-radius: 2rem;
    border: 2px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: 0.5s ease;
    position: relative;
    overflow: hidden;
}

.services-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 255, 135, 0.1), rgba(0, 217, 255, 0.1));
    transform: translateY(100%);
    transition: 0.5s ease;
    z-index: -1;
}

.services-box:hover::before {
    transform: translateY(0);
}

.services-box:hover {
    transform: translateY(-10px);
    border-color: var(--main-color);
    box-shadow: 0 10px 40px rgba(0, 255, 135, 0.2);
}

.services-box i {
    font-size: 5rem;
    margin-bottom: 2rem;
    background: linear-gradient(45deg, var(--main-color), var(--secondary-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.services-box h3 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
}

.services-box p {
    font-size: 1.5rem;
    margin: 1rem 0 2rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    text-align: center;
}

/* Education Section */
.education {
    background: var(--second-bg-color);
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: linear-gradient(180deg, var(--main-color), var(--accent-color));
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.container {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.container::after {
    content: '\f501';
    position: absolute;
    width: 30px;
    height: 30px;
    line-height: 30px;
    right: -19px;
    background: linear-gradient(45deg, var(--main-color), var(--secondary-accent));
    border: 4px solid var(--bg-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    text-align: center;
    font-weight: 900;
    font-family: "Font Awesome 5 Free";
    font-size: 16px;
    color: var(--bg-color);
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.left::before {
    content: '';
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid var(--main-color);
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent var(--main-color);
}

.right::before {
    content: '';
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid var(--main-color);
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--main-color) transparent transparent;
}

.right::after {
    left: -19px;
}

.content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    color: var(--text-color);
    position: relative;
    border-radius: 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: 0.5s ease;
}

.content:hover {
    transform: scale(1.02);
    border-color: var(--main-color);
    box-shadow: 0 0 30px rgba(0, 255, 135, 0.2);
}

.tag {
    padding: 2rem 2rem 1rem;
}

.tag h2 {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--main-color);
}

.dece {
    padding: 0 2rem 2rem;
}

.dece p {
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

/* Skills Section */
.skill {
    background: var(--bg-color);
}

.skill-bar {
    margin-top: 3rem;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-radius: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.bar {
    margin: 1rem 0;
}

.info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.info span {
    color: var(--text-color);
    font-weight: 500;
    font-size: 1.6rem;
}

.percentage {
    color: var(--main-color);
}

.progress-line {
    height: 12px;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.progress-line span {
    height: 100%;
    position: absolute;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--main-color), var(--secondary-accent));
    transition: width 1.5s ease;
    animation: progressAnimation 2s ease-in-out;
}

@keyframes progressAnimation {
    0% { width: 0; }
}

.progress-line.nuxt span { width: 70%; }
.progress-line.vue span { width: 75%; }
.progress-line.html span { width: 90%; }
.progress-line.css span { width: 85%; }
.progress-line.javascript span { width: 80%; }
.progress-line.laravel span { width: 65%; }
.progress-line.tailwind span { width: 88%; }
.progress-line.shadcn span { width: 70%; }

/* Contact Section */
.contact {
    background: var(--second-bg-color);
}

.contact form {
    max-width: 70rem;
    margin: 2rem auto;
    text-align: center;
}

.input-box {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.input-box input {
    flex: 1 1 48%;
    min-width: 250px;
}

.contact form input,
.contact form textarea {
    width: 100%;
    padding: 1.5rem 2rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    margin: 1rem 0;
    resize: none;
    transition: 0.3s ease;
    font-family: "Poppins", sans-serif;
}

.contact form input:focus,
.contact form textarea:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 20px rgba(0, 255, 135, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.contact form input::placeholder,
.contact form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.contact form textarea {
    min-height: 200px;
}

.contact form .btn {
    margin-top: 2rem;
}

/* Footer */
.footer {
    position: relative;
    bottom: 0;
    width: 100%;
    padding: 4rem 0 2rem;
    background: linear-gradient(180deg, var(--bg-color), var(--second-bg-color));
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .social {
    text-align: center;
    padding-bottom: 2rem;
}

.footer .social a {
    font-size: 2.5rem;
    color: var(--text-color);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 5rem;
    height: 5rem;
    margin: 0 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: 0.3s ease;
    position: relative;
    overflow: hidden;
}

.footer .social a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--main-color), var(--secondary-accent));
    transform: translateY(100%);
    transition: 0.3s ease;
    z-index: -1;
}

.footer .social a:hover::before {
    transform: translateY(0);
}

.footer .social a:hover {
    transform: translateY(-5px);
    color: var(--bg-color);
    border-color: var(--main-color);
}

.footer ul {
    margin: 2rem 0;
    padding: 0;
    font-size: 1.6rem;
    line-height: 1.8;
    text-align: center;
}

.footer ul li {
    display: inline-block;
    padding: 0 1.5rem;
}

.footer ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: 0.3s ease;
    position: relative;
}

.footer ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--main-color);
    transition: 0.3s ease;
}

.footer ul li a:hover::after {
    width: 100%;
}

.footer ul li a:hover {
    color: var(--main-color);
}

.footer .copyright {
    margin-top: 3rem;
    text-align: center;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 1285px) {
    html {
        font-size: 55%;
    }
    
    .services-container {
        padding-bottom: 5rem;
    }
}

@media (max-width: 991px) {
    .header {
        padding: 2rem 5%;
    }
    
    section {
        padding: 8rem 5% 5rem;
    }
    
    .home {
        padding: 10rem 5% 5rem;
    }
}

@media (max-width: 895px) {
    .home {
        flex-direction: column;
        margin: 3rem 2rem;
    }
    
    .home-content h1 {
        font-size: 4rem;
        margin-top: 2rem;
    }
    
    .home-content h3 {
        font-size: 2.8rem;
    }
    
    .home-content p {
        max-width: 600px;
        font-size: 1.5rem;
    }
    
    .home-img img {
        width: 60vw;
        height: 60vw;
        min-width: 300px;
        min-height: 300px;
    }
    
    .home-img .glow-effect {
        width: 65vw;
        height: 65vw;
    }
    
    .heading {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    #menu-icon {
        display: block;
    }
    
    .navbar {
        position: absolute;
        top: 100%;
        right: 0;
        width: 50%;
        min-width: 250px;
        padding: 1rem 3%;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(20px);
        border-left: 2px solid var(--main-color);
        border-bottom: 2px solid var(--main-color);
        border-bottom-left-radius: 2rem;
        display: none;
        animation: slideIn 0.3s ease;
    }
    
    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translateX(20px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    .navbar.active {
        display: block;
    }
    
    .navbar ul {
        flex-direction: column;
        gap: 0;
    }
    
    .navbar ul li {
        width: 100%;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navbar ul li:last-child {
        border-bottom: none;
    }
    
    .navbar ul li a {
        display: block;
        padding: 1.5rem 1rem;
        font-size: 1.8rem;
    }
    
    .navbar ul li a::after {
        display: none;
    }
    
    .navbar ul li a:hover,
    .navbar ul li a.active {
        background: rgba(0, 255, 135, 0.1);
        border-left: 4px solid var(--main-color);
        padding-left: 2rem;
    }
    
    .input-box {
        flex-direction: column;
    }
    
    .input-box input {
        flex: 1 1 100%;
    }
}

@media (max-width: 600px) {
    .timeline::after {
        left: 31px;
    }
    
    .container {
        width: 100%;
        padding-left: 8rem;
        padding-right: 2rem;
    }
    
    .container::after {
        left: 15px;
    }
    
    .container::before {
        left: 60px;
        border: medium solid var(--main-color);
        border-width: 10px 10px 10px 0;
        border-color: transparent var(--main-color) transparent transparent;
    }
    
    .left::after,
    .right::after {
        left: 15px;
    }
    
    .right {
        left: 0;
    }
    
    .home-content h1 {
        font-size: 3.5rem;
    }
    
    .home-content h3 {
        font-size: 2.2rem;
    }
    
    .heading {
        font-size: 3.5rem;
    }
    
    .social-icon a {
        width: 4.5rem;
        height: 4.5rem;
        font-size: 2rem;
    }
    
    .services-box {
        padding: 2.5rem 1.5rem;
    }
    
    .skill-bar {
        padding: 2rem;
    }
}

@media (max-width: 450px) {
    html {
        font-size: 50%;
    }
    
    .header {
        padding: 1.5rem 5%;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .home-content h1 {
        font-size: 3rem;
    }
    
    .home-content h3 {
        font-size: 2rem;
    }
    
    .home-img img {
        width: 70vw;
        height: 70vw;
        min-width: 250px;
        min-height: 250px;
    }
    
    .footer ul li {
        display: block;
        padding: 0.5rem 0;
    }
}
