 /* ===================================
   Global Styles & Reset
=================================== */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-image: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), url("nature.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
}

/* ===================================
   Header & Navigation
=================================== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 32px;
    font-weight: bold;
    color: #FFD700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.4s;
}

.logo:hover {
    transform: scale(1.1);
}

nav {
    display: flex;
    align-items: center;
}

nav a {
    color: white;
    text-decoration: none;
    margin-left: 25px;
    font-size: 18px;
    font-weight: bold;
    position: relative;
    transition: 0.4s;
}

nav a:hover,
nav a.active {
    color: #FFD700 !important;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 3px;
    background: #FFD700;
    transition: 0.4s;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

#theme-btn {
    background: orange;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    margin-left: 20px;
    transition: 0.3s;
}

#theme-btn:hover {
    transform: scale(1.08);
}

/* Hamburger Icon for Mobile */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    margin-left: 20px;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: #fff;
    transition: all 0.3s ease;
}

/* ===================================
   Hero Section
=================================== */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 100px 80px;
    min-height: 90vh;
}

.hero-text {
    width: 50%;
    opacity: 0;
    animation: fadeUp 1s ease forwards;
    animation-delay: 0.3s;
}

.hero-text h3 {
    font-size: 28px;
    color: orange;
}

.hero-text h1 {
    font-size: 60px;
    margin: 15px 0;
}

.hero-text h2 {
    color: cyan;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 20px;
    line-height: 32px;
    margin-bottom: 25px;
}

/* Buttons */
.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn {
    padding: 10px 20px;
    background-color: #FFD700;
    color: #000;
    font-weight: bold;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid #FFD700;
    font-size: 15px;
}

.btn:hover {
    background-color: #eab308;
    border-color: #eab308;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
}

.btn-primary {
    background-color: #FFD700;
    color: #000;
}

.btn-secondary {
    background-color: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
}

.btn-secondary:hover {
    background-color: #FFD700;
    color: #000;
}

/* Hero Profile Image */
.hero-img {
    text-align: center;
}

.hero-img img {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #FFD700;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.4);
    animation: floatImage 4s ease-in-out infinite;
}

/* ===================================
   About Section
=================================== */
.about {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 70px;
    padding: 100px 80px;
}

.about-image img {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #FFD700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.about-text {
    max-width: 600px;
}

.about-text h2 {
    color: #FFD700;
    font-size: 40px;
    margin-bottom: 15px;
}

.about-text h3 {
    font-size: 28px;
    margin-bottom: 15px;
}

.about-text p {
    font-size: 18px;
    line-height: 30px;
    margin-bottom: 15px;
}

/* ===================================
   Skills Section
=================================== */
.skills {
    padding: 100px 80px;
}

.skills h2 {
    text-align: center;
    font-size: 40px;
    color: #FFD700;
    margin-bottom: 50px;
}

.skill {
    margin-bottom: 25px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.skill p {
    font-size: 20px;
    margin-bottom: 8px;
}

.bar {
    width: 100%;
    height: 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    overflow: hidden;
}

.html { width: 90%; height: 100%; background: orange; }
.css { width: 80%; height: 100%; background: cyan; }
.js { width: 60%; height: 100%; background: #FFD700; }
.react { width: 40%; height: 100%; background: #00d8ff; }

/* ===================================
   Projects Section
=================================== */
.projects {
    padding: 100px 80px;
}

.projects h2 {
    text-align: center;
    font-size: 40px;
    color: #FFD700;
    margin-bottom: 50px;
}

.projects-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.project-card {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 12px;
    padding: 20px;
    width: 320px;
    text-align: center;
    border: 1px solid rgba(255, 215, 0, 0.2);
    transition: 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: orange;
    box-shadow: 0 15px 30px rgba(255, 165, 0, 0.3);
}

.project-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.project-card h3 {
    color: #FFD700;
    margin-bottom: 10px;
}

.project-card p {
    font-size: 14px;
    line-height: 22px;
    margin-bottom: 15px;
    color: #e0e0e0;
}

/* Tech Stack Badges Styling */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 12px 0 18px 0;
}

.tech-stack span {
    background-color: rgba(255, 215, 0, 0.15);
    color: #FFD700;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    display: inline-block;
}

.project-links {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* ===================================
   Services Section
=================================== */
.services {
    padding: 100px 80px;
}

.services h2 {
    text-align: center;
    font-size: 40px;
    color: #FFD700;
    margin-bottom: 50px;
}

.services-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.service-card {
    width: 310px;
    background: rgba(0, 0, 0, 0.7);
    padding: 30px;
    text-align: center;
    border-radius: 15px;
    transition: 0.4s;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: orange;
    box-shadow: 0 15px 30px rgba(255, 165, 0, 0.3);
}

.service-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: orange;
}

.service-card p {
    font-size: 16px;
    line-height: 26px;
    color: #e0e0e0;
}

/* ===================================
   Contact Section
=================================== */
.contact {
    padding: 100px 80px;
    text-align: center;
}

.contact h2 {
    font-size: 40px;
    color: #FFD700;
    margin-bottom: 40px;
}

form {
    max-width: 600px;
    margin: auto;
}

input, textarea {
    width: 100%;
    padding: 16px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: 0.3s;
}

input:focus, textarea:focus {
    border-color: #FFD700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

input::placeholder, textarea::placeholder {
    color: #ccc;
}

textarea {
    height: 160px;
    resize: none;
}

form button {
    width: 100%;
    padding: 16px;
    background: orange;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

form button:hover {
    background: #ff4500;
    transform: translateY(-2px);
}

/* ===================================
   Footer
=================================== */
footer {
    background: rgba(0, 0, 0, 0.9);
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
}

footer h2 {
    color: #FFD700;
    font-size: 30px;
    margin-bottom: 10px;
}

footer p {
    font-size: 16px;
    margin: 8px 0;
    color: #ccc;
}

.social {
    margin: 20px 0;
}

.social a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-size: 18px;
    transition: 0.3s;
}

.social a:hover {
    color: orange;
}

footer hr {
    width: 80%;
    margin: 20px auto;
    border: 0.5px solid #444;
}

/* ===================================
   Keyframes & Animations
=================================== */
@keyframes floatImage {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.8s ease-in-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   Dark Mode Adjustments
=================================== */
.dark-mode {
    background-image: linear-gradient(rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.88)), url("nature.jpg");
}

.dark-mode .project-card,
.dark-mode .service-card {
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.dark-mode header {
    background: rgba(0, 0, 0, 0.9);
}

/* ===================================
   Responsive Styles (Mobile & Tablet)
=================================== */
@media (max-width: 992px) {
    header { padding: 20px 30px; }
    .hero, .about { flex-direction: column; text-align: center; padding: 60px 30px; }
    .hero-text, .about-text { width: 100%; }
    .hero-buttons { justify-content: center; }
    .hero-img { margin-top: 40px; }
    .projects-container, .services-container { flex-direction: column; align-items: center; }
    .project-card, .service-card { width: 100%; max-width: 400px; }
    .skills, .projects, .services, .contact { padding: 60px 30px; }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }

    nav {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s ease;
        padding: 20px 0;
    }

    nav.active {
        left: 0;
    }

    nav a {
        margin: 15px 0;
        display: block;
    }

    #theme-btn {
        margin: 15px 0 0 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}