/* Global Styles */
:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --danger-color: #e74c3c;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --white: #fff;
    --black: #000;
    --gray: #95a5a6;
    --dark-gray: #7f8c8d;
    --light-gray: #bdc3c7;
    --transition: all 0.3s ease;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.dark-mode {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --dark-color: #ecf0f1;
    --light-color: #2c3e50;
    --white: #2c3e50;
    --black: #ecf0f1;
    --gray: #7f8c8d;
    --dark-gray: #95a5a6;
    --light-gray: #34495e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.6;
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title span {
    color: var(--primary-color);
}

.section-line {
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 0 auto;
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    text-transform: capitalize;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: var(--box-shadow);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: var(--primary-color);
}

.btn-secondary {
    background: var(--secondary-color);
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 999;
    transition: var(--transition);
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.dark-mode .navbar {
    background-color: rgba(44, 62, 80, 0.9);
}

.navbar.scrolled {
    padding: 15px 0;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.dark-mode .navbar.scrolled {
    background-color: rgba(44, 62, 80, 0.95);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
    text-decoration: none;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: var(--dark-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.theme-toggle {
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--dark-color);
    transition: var(--transition);
}

.theme-toggle:hover {
    color: var(--primary-color);
    transform: rotate(30deg);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
}

.hamburger .bar {
    width: 100%;
    height: 3px;
    background: var(--dark-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    position: relative;
    overflow: hidden;
}

.dark-mode .hero {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.9) 0%, rgba(44, 62, 80, 0.7) 100%);
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    animation: fadeInLeft 1s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-title span {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--gray);
}

.hero-description {
    font-size: 1rem;
    margin-bottom: 30px;
    color: var(--dark-gray);
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    animation: fadeInRight 1s ease;
}

.image-wrapper {
    position: relative;
    width: 350px;
    height: 350px;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 10px solid var(--white);
    box-shadow: var(--box-shadow);
    position: relative;
    z-index: 1;
}

.circle-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    animation: pulse 3s infinite;
}

.circle-animation.delay-1 {
    animation-delay: 1s;
}

.circle-animation.delay-2 {
    animation-delay: 2s;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
    animation: fadeInLeft 1s ease;
}

.about-img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.about-img:hover {
    transform: scale(1.03);
}

.about-text {
    flex: 1;
    animation: fadeInRight 1s ease;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 15px;
    color: var(--dark-gray);
}

.about-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.info-item {
    display: flex;
    gap: 10px;
}

.info-item span {
    font-weight: 600;
    color: var(--primary-color);
}

/* Skills Section */
.skills-content {
    display: flex;
    gap: 50px;
}

.skills-text {
    flex: 1;
    animation: fadeInLeft 1s ease;
}

.skills-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.skills-text p {
    margin-bottom: 15px;
    color: var(--dark-gray);
}

.skills-bars {
    flex: 1;
    animation: fadeInRight 1s ease;
}

.skill-item {
    margin-bottom: 25px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.skill-bar {
    width: 100%;
    height: 10px;
    background: var(--light-gray);
    border-radius: 5px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    border-radius: 5px;
    background: var(--primary-color);
    position: relative;
    width: 0;
    transition: width 1.5s ease;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shine 2s infinite;
}

.web {
    width: 65%;
}

.net {
    width: 70%;
}

.hdw {
    width: 45%;
}

.gd {
    width: 85%;
}


/* Rating Section */
.rating-container {
  margin: 50px 0;
  padding: 30px;
  background: var(--light-color);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  display: inline-block;
  justify-content: center;
  align-items: center;
}

.stars {
  font-size: 36px;
  margin: 20px 0;
}

.star {
  color: #ccc;
  cursor: pointer;
  transition: all 0.2s;
  margin: 0 5px;
}

.star:hover,
.star.active {
  color: #ffcc00;
  transform: scale(1.2);
}

.rating-text {
  font-size:20px;
  color: #555;
}

/* Contact Section */
.contact-content {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
    animation: fadeInLeft 1s ease;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.info-content h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.info-content p {
    color: var(--dark-gray);
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

.contact-form {
    flex: 1;
    animation: fadeInRight 1s ease;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--white);
    color: var(--dark-color);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
}

.form-group textarea {
    height: 150px;
    resize: none;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
    position: relative;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-to-top {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transition: var(--transition);
    position: fixed;
    bottom: 30px;
    right: 30px;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

/* Animations */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

@keyframes shine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero .container,
    .about-content,
    .skills-content,
    .contact-content {
        flex-direction: column;
    }

    .hero-content,
    .hero-image,
    .about-image,
    .about-text,
    .skills-text,
    .skills-bars,
    .contact-info,
    .contact-form {
        width: 100%;
        max-width: 100%;
        text-align: center;
    }

    .hero-image {
        margin-top: 50px;
    }

    .about-image {
        margin-bottom: 30px;
    }

    .skills-text {
        margin-bottom: 30px;
    }

    .info-item {
        justify-content: center;
    }

    .about-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        transition: var(--transition);
        z-index: 998;
    }

    .dark-mode .nav-links {
        background: var(--dark-color);
    }

    .nav-links.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .image-wrapper {
        width: 250px;
        height: 250px;
    }

    .section-title {
        font-size: 1.8rem;
    }
}