
html {
    scroll-behavior: smooth;
}

:root {
    --primary-color: #00aeff;
    --secondary-color: #0a192f;
    --text-color: #ccd6f6;
    --highlight-color: #64ffda;
    --card-bg: #112240;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    background-color: var(--secondary-color);
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    transition: top 0.3s;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--highlight-color);
    text-decoration: none;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav li {
    margin-left: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

nav a:hover {
    color: var(--highlight-color);
}

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

nav a:hover::after {
    width: 100%;
}


#main {
    padding: 10rem 4rem 4rem;
    max-width: 1000px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.hero-text {
    flex: 1;
}

.hero-image {
    flex-basis: 300px;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    border: 2px solid var(--highlight-color);
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.hero h1 {
    font-size: clamp(40px, 8vw, 80px);
    color: var(--highlight-color);
    margin: 0;
    text-shadow: 0 0 10px rgba(100, 255, 218, 0.5), 0 0 20px rgba(100, 255, 218, 0.5);
}

.hero h2 {
    font-size: clamp(40px, 8vw, 60px);
    color: #a8b2d1;
    margin-top: 10px;
}

.hero p {
    font-size: 1.1rem;
    max-width: 540px;
    line-height: 1.6;
}

.btn {
    background-color: transparent;
    color: var(--highlight-color);
    border: 1px solid var(--highlight-color);
    padding: 1rem 1.75rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
    margin-top: 2rem;
    display: inline-block;
}

.btn:hover {
    background-color: rgba(100, 255, 218, 0.1);
}

section {
    padding: 6rem 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.section-heading {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #e6f1ff;
}

.section-heading::after {
    content: "";
    display: block;
    position: relative;
    top: 2px;
    width: 300px;
    height: 1px;
    margin-left: 20px;
    background-color: #233554;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.skill-item {
    background-color: var(--card-bg);
    border-radius: 4px;
    box-shadow: 0 10px 30px -15px rgba(2,12,27,0.7);
    transition: all 0.25s cubic-bezier(0.645,0.045,0.355,1);
    padding: 2rem;
    text-align: center;
}

.skill-item:hover {
    transform: translateY(-7px);
}

.skill-item i {
    font-size: 3rem;
    color: var(--highlight-color);
    margin-bottom: 1.5rem;
}

.skill-item h3 {
    color: #e6f1ff;
    font-size: 1.25rem;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.work-item {
    background-color: var(--card-bg);
    border-radius: 4px;
    box-shadow: 0 10px 30px -15px rgba(2,12,27,0.7);
    transition: all 0.25s cubic-bezier(0.645,0.045,0.355,1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.work-item:hover {
    transform: translateY(-7px);
}

.work-item img {
    max-width: 100%;
}

.work-item-content {
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.work-item h3 {
    color: #e6f1ff;
    font-size: 1.5rem;
}

.work-item p {
    font-size: 1rem;
    line-height: 1.5;
}

.project-links a {
    color: var(--highlight-color);
    text-decoration: none;
    margin-right: 1rem;
}

#about {
    max-width: 800px;
}

.about-content p {
    line-height: 1.6;
}

.contact-details {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-item {
    text-align: center;
}

.contact-item i {
    font-size: 2rem;
    color: var(--highlight-color);
    margin-bottom: 1rem;
}

footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
    color: #a8b2d1;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .line {
    width: 30px;
    height: 3px;
    background-color: var(--highlight-color);
    margin: 6px 0;
    transition: 0.4s;
}

/* Responsive Styles */
@media (max-width: 1080px) {
    #main, section {
        padding: 6rem 2rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1.5rem 2rem;
    }

    .hamburger {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px;
        left: 0;
        background-color: var(--secondary-color);
    }

    nav ul.active {
        display: flex;
    }

    nav li {
        margin: 1rem 0;
        text-align: center;
    }

    #main {
        padding: 8rem 2rem 4rem;
    }
    
    .hero {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-image {
        margin-bottom: 2rem;
        max-width: 200px;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .section-heading::after {
        width: 100px;
    }
    
    .work-grid {
        grid-template-columns: 1fr;
    }

    .contact-details {
        flex-direction: column;
    }

    .contact-item {
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    #main {
        padding: 6rem 1rem 3rem;
    }
    
    section {
        padding: 4rem 1rem;
    }
}
