* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background: #0a192f;
    color: #8892b0;
}

header {
    position: fixed;
    width: 100%;
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 10%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: rotate(360deg);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #ccd6f6;
    text-decoration: none;
    transition: all 0.3s;
    padding: 0.5rem 1rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #64ffda;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: #64ffda;
    transform: translateY(-2px);
}

section {
    padding: 100px 10%;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content h1 {
    font-size: 4rem;
    color: #ccd6f6;
    margin-bottom: 1rem;
}

.highlight {
    color: #64ffda;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid #64ffda;
    color: #64ffda;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 2rem;
    transition: all 0.3s;
}

.cta-button:hover {
    background: rgba(100, 255, 218, 0.1);
}

h2 {
    color: #ccd6f6;
    font-size: 2rem;
    margin-bottom: 3rem;
    text-align: center;
}

.about-content {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.about-content img {
    width: 300px;
    border-radius: 10px;
}

.about-text {
    flex: 1;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    cursor: pointer;
}

.skill-card {
    background: #112240;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s;
}

.skill-card:hover {
    transform: translateY(-5px);
}
.skill-category {
  margin-top: 2rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: #ccd6f6; /* or any accent color you use */
  text-align: left;
}


.skill-card i {
    font-size: 3rem;
    color: #64ffda;
    margin-bottom: 1rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: #112240;
    border-radius: 10px;
    overflow: hidden;

    /* Added for bottom alignment */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding-bottom: 1rem;
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-card h3 {
    color: #ccd6f6;
    padding: 1.5rem;
}

.project-card p {
    padding: 0 1.5rem;
}

.project-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 1.5rem;
    color: #64ffda;
    text-decoration: none;
    border: 2px solid #64ffda;
    border-radius: 4px;
    transition: all 0.3s;

    /* Added to align left */
    align-self: flex-start;
}

.project-link:hover {
    background: rgba(100, 255, 218, 0.1);
    transform: translateY(-2px);
}


.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input, textarea {
    padding: 1rem;
    background: #112240;
    border: 1px solid #233554;
    border-radius: 4px;
    color: #ccd6f6;
    transition: border-color 0.3s;
}

input:focus, textarea:focus {
    border-color: #64ffda;
    outline: none;
}

button {
    padding: 1rem;
    background: transparent;
    color: #64ffda;
    border: 2px solid #64ffda;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

button:hover {
    background: rgba(100, 255, 218, 0.1);
    transform: translateY(-2px);
}

footer {
    text-align: center;
    padding: 2rem;
    background: #112240;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.social-links a {
    color: #8892b0;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #64ffda;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: #64ffda;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    nav {
        padding: 1rem 5%;
        flex-direction: row;
        justify-content: space-between;
    }

    .hamburger {
        display: flex;
        z-index: 100;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 100%;
        background: rgba(10, 25, 47, 0.95);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: 0.3s ease;
    }

    .nav-links.active {
        right: 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .about-content img {
        width: 250px;
    }

    section {
        padding: 80px 5%;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .project-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .about-content img {
        width: 200px;
    }
}