*{margin:0;
padding:0; 
box-sizing:border-box; 
font-family: 'Segoe UI', sans-serif;
}

:root{
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --accent: #2ecc71;
    --accent-glow: rgba(46, 204, 113, 0.4);
    --text: #ffffff;
}

html {
    scroll-behavior: smooth;
}

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

section {
  scroll-margin-top: 50px;
}

/* Navigation */
.navbar{
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
} 

.logo{
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    position: relative;
    padding-left: 2.5rem;
}

.logo img {
    height: 60px;
    width: auto;
    display: block;
    margin-left: 100px; 
}

.nav-links{
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-size: larger;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* Hamburger button */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* MOBILE STYLES */
@media (max-width: 768px) {

    .nav-toggle {
        display: block;          /* show hamburger */
    }

     .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: rgba(10,10,10,0.95);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, padding 0.4s ease;
        padding: 0;
        gap: 1rem;
    }


    .nav-links.active {
        max-height: 500px;       /* expanded height */
        padding: 1rem 0;
    }

    /* Make links full-width for mobile */
    .nav-links a {
        width: 100%;
        padding: 0.5rem 1rem;
    }
}

/* DESKTOP: keep original layout */
@media (min-width: 769px) {
    .nav-links {
        position: static;
        flex-direction: row;
        gap: 2rem;
        max-height: none;
        padding: 0;
        background-color: transparent;
    }

    .nav-toggle {
        display: none;
    }
}

/* Hero Section */
.hero{
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 12% 5%;
    background: radial-gradient(circle at 75% 30%, var(--accent-glow) 0%, transparent 40%);
    animation: fadeInUp 1.2s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content{
    flex: 1;
    padding-right: 5rem;
}

.hero-image{
    flex: 1;
    text-align: center;
    position: relative;
}

.profile-img{
    width: 440px;
    height: 480px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    box-shadow: 0 0 50px var(--accent-glow);
    animation: float 6s ease-in-out infinite;
    filter: grayscale(0.2) contrast(1.1);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.hero h1{
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, var(--accent), #aaf0c5, #ffffff, var(--accent));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 18s ease-in-out infinite;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero .subtitle {
    font-size: 1.7rem;
    font-weight: 600;
    background: #fff;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.hero .division {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text);        /* white text */
    opacity: 0.7;              /* subdued under the gradient */
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.hero p{
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    line-height: 1.4;
}

.cta-button{
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(100deg, var(--accent-glow), #27ae60);
    background-size: 200% 200%;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-size: 1.5rem;
    margin-top: 3rem;
}

.cta-button:hover{
    background-position: right center;
    box-shadow: 0 0 30px var(--accent-glow);
}

.cta-button i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: translateX(6px);
}

/* About me section */
.about {
    padding: 5rem 5%;
    background-color: var(--darker-bg);
    color: var(--text);
    margin: 0 auto;
    text-align: left;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about p {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0.9;
}

.about p.hobbies {
    font-style: italic;
    opacity: 0.8;
    color: rgba(255,255,255,0.7); /* slightly lighter than main text */
    margin-top: 1rem;
}

/* Skills section */
.skills{
    padding: 5rem 5%;
    background-color: var(--darker-bg);
}

.skills-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 1200px) {
    .skills-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.skill-card{
    padding: 2rem;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    opacity: 0;
    transform: translateX(-50px);
    transition: transform 0.6s ease-out, opacity 0.6s ease-out, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* When visible on screen */
.skill-card.visible {
    opacity: 1;
    transform: translateX(0);
}

.skill-card:hover{
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px var(--accent-glow);
}

.skill-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}


/* Projects */

.projects {
    padding: 5rem 5%;
    background-color: var(--dark-bg);
}

section h2 {
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    padding: 2rem;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    opacity: 0;
    transform: translateX(-50px);
    transition: transform 0.6s ease-out, opacity 0.6s ease-out;
}

/* Appears when it's visible*/
.project-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px var(--accent-glow);
}

.project-card h3 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.project-card p {
    color: var(--text);
    opacity: 0.9;
    margin-bottom: 1.2rem;
    font-size: 1rem;
}

.project-tags {
    margin-bottom: 1rem;
}

.project-tags span {
    display: inline-block;
    background: var(--accent);
    color: var(--dark-bg);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.project-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
    margin-right: 1.2rem;
}

.project-link:last-child {
    margin-right: 0; /* no extra space at the end */
}

.project-link:hover {
    color: var(--accent-glow);
}


/* Contact */
.contact {
    padding: 5rem 5%;
    background: radial-gradient(ellipse at 50% 50%, var(--accent-glow) 0%, transparent 40%);
}

.contact-container {
    max-width: 550px;
    margin: 0 auto;
}

.contact-container h2 {
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* space between inputs */
    width: 100%;
    margin: 0 auto; /* center the form */
}

.contact-form input,
.contact-form textarea {
  background-color: #1a1a1a; /* dark background */
  color: #fff; /* text color */
  border: 2px solid var(--accent-glow); /* your accent border */
  border-radius: 6px; /* rounded corners */
  padding: 0.75rem 1rem; /* spacing inside */
  font-size: 1.3rem;
  outline: none; /* remove default focus outline */
  transition: border-color 0.3s, box-shadow 0.3s;
}

/* Optional: change border or glow on focus */
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.contact-form button {
    padding: 0.75rem 1rem;
    background: linear-gradient(130deg, var(--accent-glow), #27ae60);
    background-size: 200% 200%;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.5rem;
    transition: background-position 0.3s ease;
}

.contact-form button:hover {
    background-position: right center;
    box-shadow: 0 0 20px var(--accent-glow);
}


/* Footer */
footer {
    background: var(--darker-bg);
    padding: 3rem 5%;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.social-links a {
    color: var(--text);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .hero{
        flex-direction: column;
        text-align: center;
        padding-top: 8rem;
    }

    .hero-content{
        padding-right: 0;
        margin-bottom: 3rem;
    }

    .profile-img{
        width: 280px;
        height: 280px;
    }

    .logo {
        font-size: 1.5rem;
        padding-left: 2rem;
    }
}