* {
    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;
    --sec-bg-color: #131313;
    --text-color: #ffffff;
    --main-color: #00ffee;
    --accent-color: #00d4c4;
    --dark-accent: #008f84;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

/* Animated Background */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--main-color);
    top: -10%;
    right: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-color);
    bottom: -10%;
    left: -10%;
    animation-delay: 7s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: var(--main-color);
    top: 50%;
    left: 50%;
    animation-delay: 14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -50px) scale(1.1); }
    50% { transform: translate(-30px, 30px) scale(0.9); }
    75% { transform: translate(40px, 20px) scale(1.05); }
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem 10%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 255, 238, 0.1);
}

.logo {
    font-size: 3.5rem;
    color: var(--text-color);
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s ease;
    letter-spacing: -1px;
}

.logo:hover {
    transform: translateY(-3px);
}

.logo span {
    color: var(--main-color);
    text-shadow: 0 0 25px var(--main-color);
}

.navbar a {
    font-size: 1.7rem;
    color: var(--text-color);
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    position: relative;
}

.navbar a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--main-color);
    transition: 0.3s ease;
}

.navbar a:hover::after,
.navbar a.active::after {
    width: 100%;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--main-color);
    display: none;
    cursor: pointer;
}

/* Section Styles */
section {
    min-height: 100vh;
    padding: 10rem 10% 5rem;
}

/* Home Section */
.home {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8rem;
}

.home-content {
    max-width: 60rem;
}

.intro-text {
    margin-bottom: 3rem;
}

.greeting {
    font-size: 2rem;
    color: var(--main-color);
    font-weight: 500;
    display: block;
    margin-bottom: 1rem;
}

.home-content h1 {
    font-size: 6.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.highlight {
    background: linear-gradient(90deg, var(--main-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-animation {
    font-size: 3rem;
    font-weight: 600;
    min-width: 280px;
}

.text-animation span {
    position: relative;
}

.text-animation span::before {
    content: "Backend Developer";
    color: var(--main-color);
    animation: words 20s infinite;
}

.text-animation span::after {
    content: "";
    background-color: var(--bg-color);
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    border-left: 3px solid var(--main-color);
    right: -8px;
    animation: cursor 0.6s infinite, typing 20s steps(14) infinite;
}

@keyframes cursor {
    to { border-left: 2px solid var(--main-color); }
}

@keyframes words {
    0%, 20% { content: "Backend Developer"; }
    21%, 40% { content: "Frontend Developer"; }
    41%, 60% { content: "DevOps Engineer"; }
    61%, 80% { content: "Database Designer"; }
    81%, 100% { content: "System Engineer"; }
}

@keyframes typing {
    10%, 15%, 30%, 35%, 50%, 55%, 70%, 75%, 90%, 95% { width: 0; }
    5%, 20%, 25%, 40%, 45%, 60%, 65%, 80%, 85% { width: calc(100% + 8px); }
}

.bio-text {
    font-size: 1.6rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    text-align:justify
}

.social-icons {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 5rem;
    height: 5rem;
    background: rgba(0, 255, 238, 0.1);
    border: 2px solid var(--main-color);
    font-size: 2.5rem;
    border-radius: 50%;
    color: var(--main-color);
    transition: 0.3s ease;
}

.social-icons a:hover {
    background: var(--main-color);
    color: var(--bg-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 238, 0.4);
}

.btn-group {
    display: flex;
    gap: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.4rem 3.5rem;
    border-radius: 5rem;
    font-size: 1.6rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 20px rgba(0, 255, 238, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 255, 238, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--main-color);
    border: 2px solid var(--main-color);
}

.btn-secondary:hover {
    background: var(--main-color);
    color: var(--bg-color);
    transform: translateY(-3px);
}

/* Home Image */
.home-img {
    position: relative;
}

.img-wrapper {
    position: relative;
    width: 35rem;
    height: 35rem;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--main-color);
    box-shadow: 0 0 50px rgba(0, 255, 238, 0.4);
    transition: 0.4s ease;
}

.img-wrapper:hover img {
    box-shadow: 0 0 80px rgba(0, 255, 238, 0.6);
    transform: scale(1.05);
}

.img-backdrop {
    position: absolute;
    top: -2rem;
    right: -2rem;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--main-color), var(--accent-color));
    border-radius: 50%;
    z-index: -1;
    opacity: 0.3;
}

/* Skills Showcase */
.skill-showcase {
    padding: 5rem 10%;
    background: var(--sec-bg-color);
    overflow: hidden;
}

.skill-carousel {
    display: flex;
    gap: 4rem;
    animation: scroll 30s linear infinite;
}

.skill-item {
    flex-shrink: 0;
}

.skill-item img {
    width: 6rem;
    height: 6rem;
    object-fit: contain;
    filter: grayscale(0%);
    opacity: 1;
    transition: 0.3s ease;
}

.skill-item img:hover {
    filter: grayscale(100%);
    opacity: 0.7;
    transform: scale(1.2);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-6rem * 10 - 4rem * 10)); }
}

/* Heading Styles */
.heading {
    font-size: 5rem;
    text-align: center;
    margin-bottom: 6rem;
    font-weight: 700;
}

.heading span {
    color: var(--main-color);
}

/* Education Section */
.education {
    background: var(--sec-bg-color);
}

.timeline-items {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.timeline-items::before {
    content: "";
    position: absolute;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--main-color), var(--accent-color));
    left: calc(50% - 1.5px);
}

.timeline-item {
    margin-bottom: 5rem;
    width: 100%;
    position: relative;
}

.timeline-item:nth-child(odd) {
    padding-right: calc(50% + 4rem);
    text-align: right;
}

.timeline-item:nth-child(even) {
    padding-left: calc(50% + 4rem);
}

.timeline-dot {
    height: 2rem;
    width: 2rem;
    background: var(--main-color);
    box-shadow: 0 0 20px var(--main-color);
    position: absolute;
    left: calc(50% - 1rem);
    border-radius: 50%;
    top: 1rem;
}

.timeline-date {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--main-color);
    margin-bottom: 1.5rem;
}

.timeline-content {
    background: rgba(19, 19, 19, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 255, 238, 0.2);
    padding: 3rem;
    border-radius: 2rem;
    transition: 0.3s ease;
}

.timeline-content:hover {
    border-color: var(--main-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 255, 238, 0.2);
}

.timeline-content h3 {
    font-size: 2.2rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.timeline-content p {
    font-size: 1.5rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

/* Services Section */
.services {
    background: var(--bg-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: rgba(19, 19, 19, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 255, 238, 0.1);
    border-radius: 2rem;
    padding: 3.5rem 2.5rem;
    transition: 0.4s ease;
    cursor: pointer;
}

.service-card:hover {
    border-color: var(--main-color);
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0, 255, 238, 0.3);
}

.service-icon {
    font-size: 5rem;
    color: var(--main-color);
    margin-bottom: 2rem;
    display: inline-block;
    transition: 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotateY(360deg);
}

.service-card h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.service-card p {
    font-size: 1.5rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
}

/* Projects Section */
.projects {
    background: var(--sec-bg-color);
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: rgba(10, 10, 10, 0.8);
    border: 2px solid rgba(0, 255, 238, 0.1);
    border-radius: 2rem;
    overflow: hidden;
    transition: 0.4s ease;
}

.project-card:hover {
    border-color: var(--main-color);
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0, 255, 238, 0.3);
}

.project-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 255, 238, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    width: 6rem;
    height: 6rem;
    background: var(--bg-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--main-color);
    transition: 0.3s ease;
}

.project-link:hover {
    transform: rotate(360deg) scale(1.1);
}

.project-info {
    padding: 3rem;
}

.project-info h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.project-info p {
    font-size: 1.5rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tech-badge {
    padding: 0.8rem 1.5rem;
    background: rgba(0, 255, 238, 0.1);
    border: 1px solid var(--main-color);
    border-radius: 2rem;
    font-size: 1.3rem;
    color: var(--main-color);
}

/* Contact Section */
.contact {
    background: var(--bg-color);
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
}

.input-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.input-group {
    position: relative;
}

.input-group i {
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: var(--main-color);
    pointer-events: none;
}

.textarea-group i {
    top: 2.5rem;
    transform: none;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 1.8rem 2rem 1.8rem 5.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: rgba(19, 19, 19, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 255, 238, 0.2);
    border-radius: 1rem;
    resize: none;
    transition: 0.3s ease;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 20px rgba(0, 255, 238, 0.2);
}

.textarea-group {
    margin-bottom: 3rem;
}

.contact-form button {
    width: 100%;
    justify-content: center;
}

/* Footer */
.footer {
    background: var(--sec-bg-color);
    padding: 4rem 10%;
    border-top: 1px solid rgba(0, 255, 238, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    background: rgba(0, 255, 238, 0.1);
    border: 2px solid var(--main-color);
    border-radius: 50%;
    font-size: 2.2rem;
    color: var(--main-color);
    transition: 0.3s ease;
}

.social-links a:hover {
    background: var(--main-color);
    color: var(--bg-color);
    transform: translateY(-5px);
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-nav a {
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.7);
    transition: 0.3s ease;
}

.footer-nav a:hover {
    color: var(--main-color);
}

.copyright {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--main-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 1200px) {
    html { font-size: 55%; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 991px) {
    .header { padding: 2rem 5%; }
    section { padding: 10rem 5% 5rem; }
    .home { flex-direction: column-reverse; gap: 5rem; }
    .home-content { max-width: 100%; text-align: center; }
    .home-content h1 { font-size: 5rem; }
    .social-icons { justify-content: center; }
    .btn-group { justify-content: center; }
    .img-wrapper { width: 30rem; height: 30rem; margin: 0 auto; }
    .timeline-items::before { left: 0; }
    .timeline-item:nth-child(odd) { padding-right: 0; text-align: left; }
    .timeline-item:nth-child(odd), .timeline-item:nth-child(even) { padding-left: 4rem; }
    .timeline-dot { left: -1rem; }
    .projects-container { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    #menu-icon { display: block; }
    .navbar {
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        padding: 2rem 5%;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        border-top: 2px solid var(--main-color);
        display: none;
    }
    .navbar.active { display: block; }
    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 2rem 0;
    }
    .services-grid { grid-template-columns: 1fr; }
    .input-row { grid-template-columns: 1fr; }
    .home-content h1 { font-size: 4rem; }
    .text-animation { font-size: 2.5rem; }
}

@media (max-width: 480px) {
    html { font-size: 50%; }
    .home-content h1 { font-size: 3.5rem; }
    .img-wrapper { width: 25rem; height: 25rem; }
}