*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    line-height: 1.5;
}

:root {
    /* Colors */
    --color-bg: #0a0e27;
    --color-bg-secondary: #141b3d;
    --color-bg-card: #1a2248;
    --color-text: #e0e7ff;
    --color-text-secondary: #94a3b8;
    --color-accent: #60a5fa;
    --color-accent-hover: #3b82f6;
    --color-border: #2d3a5f;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
    
    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    --font-mono: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

html{
    scroll-behavior:smooth;
}

.nav{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(11, 16, 53, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
}

.navBar{
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo{
    font-size: 1.5rem;
    font-weight: 700; /*bold*/
    color: var(--color-accent);
    text-decoration: none;
    font-family: var(--font-mono);
    cursor: pointer;
}

.nav-content{
    display: flex;
    gap: var(--spacing-lg);
    list-style: none;
}

.nav-content a{
    color: var(--color-text);
    text-decoration: none;
    transition: var(--transition);
}

.nav-content a:hover{
    cursor: pointer;
    color: var(--color-accent);
}
.hero{
    display: flex;
    min-height: 800px;
    /* margin-top: 200px; */
    justify-content: center;
    align-items: center;
    position: relative;
}

/* .container{
    align-items: center;
    justify-content: center;
} */

.my-content{
    z-index: 1;
    color: white;
    text-align: center;
    justify-content: center;
    padding: 10px;
    position: relative;
}
.name{
    font-size: 90px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subheader{
    font-size: 30px;
    font-family: var(--font-mono);
    text-align: center;
}
.subtitle{
    color: rgb(48, 147, 227);
    font-family: var(--font-mono);
    font-size: 30px;
    margin-bottom: 30px;  
}

.description{
    font-family: var(--font-mono);
    margin-bottom: 50px;
}

.main-cta{
    display: flex;
    justify-content: space-between;
    gap: 20px;
    cursor: pointer;
}

.btn{
    border-radius: 7px;
    height: 60px;
    width: 100px;
    text-align: center;
    padding: 17px;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.btn-project{
    font-weight: 600;
    flex: 1;
    margin-left: 30px;
    color: black;
    background-color: rgb(32, 120, 221);

}
.btn-project:hover{
    background-color: var(--color-accent-hover);
    transform: translateY(-4px);
    box-shadow: 0px 5px 30px rgba(96, 165, 250, 0.3);
}

.btn-contact-nav{
    background-color: transparent;
    margin-right: 30px;
    color: white;
}

.btn-contact{
    flex: 1;
    background-color: transparent;
    margin-right: 30px;
    color: white;
    border: solid 2px gray;
}
.btn-contact:hover{
    transform: translateY(-4px);
    border: solid 2px var(--color-accent);
    color: var(--color-accent);
}

.about{
    display: flex;

    justify-content: center;
    align-items: center;
    position: relative;
    background-color: var(--color-bg-secondary);

}

.about-title{
    text-align: center;
    font-size: 50px;
    margin-top: 100px;
    margin-bottom: 50px;
}
.about-content{
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 100px;
}
.about-text{
    margin-left: 200px;
}
.about-info{
    margin-left: 50px; 
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.info-item{
    max-width: 450px;
    background-color: var(--color-bg-card);
    border: solid 2px var(--color-border);
    border-radius: 7px;
    height: 100px;
    padding: 24px;
}
.info-h{
   color: var(--color-text-secondary); 
   font-size: 15px;
   font-family: var(--font-mono);
}
.info-d{
   color: var(--color-text); 
   font-size: 18px;
   font-weight: 600;  
}

.skills{
    display: flex;
    margin-top: 100px;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 120px;
}
.skill-title{
    font-size: 50px;
    margin-bottom: 50px;
    text-align: center;
}
.skill-category{
    min-width: 600px;
}

.category-title{
    margin-bottom: 20px;
    
}

.skill-grid, .framework-grid{
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    height: 8em;
    padding: 10px;
    justify-content: center;
    gap: 20px;
    margin-bottom:100px;
}
.skill-card{
    font-weight: bold;
    text-align: center;
    padding: 20px;
    height: 180px;
    width: 180px;
    border-radius: 12px;
    border: solid 2px var(--color-border);
    background-color: var(--color-bg-card);
    transition: all 0.3s ease;
    cursor: pointer;
}  

#framework{
    /* text-align: center; */
    padding-top: 30px;
    font-size: 20px;
}

.category-title{
    color: var(--color-accent);
}
.card-text{
    color: var(--color-accent);
}

.skill-card:hover{
    border: solid 2px var(--color-accent-hover);
    transform: translateY(-4px);
}

.projects{
    display: flex;
    justify-content: center;
    background-color: var(--color-bg-secondary);
}

.project-title{
    font-size: 50px;
    margin-top: 100px;
    text-align: center;
    margin-bottom: 100px;
}

.project-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1200px;
    /* min-height: 1000px; */
    margin: 0 auto 100px auto;
    padding:30px;
}
.project-card{
    border: solid 2px var(--color-border);
    border-radius: 20px;
    overflow: hidden;
    /* background-color: var(--color-bg); */
    /* display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; */
}
.project-img{
    width: 100%;
    height: 300px;
    overflow: hidden;
    background-color: var(--color-bg);
}
.project-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-info{
    padding: 30px;
    background-color: var(--color-bg-secondary);
}
.project-info h3{
    font-family: var(--font-sans);
    padding-bottom: 30px;
}
.project-info p{
    font-family: var(--font-mono);
    color: var(--color-text-secondary);
}
.project-tags{
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap; /*makes it go down if there are too many tags*/
    gap: 10px;
    width: 100%;
}
.tag{
    padding:  0.375rem 1rem;
    background-color: var(--color-bg-card);
    text-align: center;
    border: solid 3px transparent;
    border-radius: 20px;
    font-family: var(--font-mono);
    color: var(--color-accent);
}
.project-card:hover .project-img img{
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    transform: scale(1.05);
    transition: all 0.3s ease-out;
}

#contacts{
    display: none;
    margin-top: 40px;
    /* background-color: var(--color-bg-card); */
    gap: 50px;
    border-radius: 10px;
    position: absolute;
    margin-left: 20px;

    
/* 
    transform: translateY(-10px);
    transition: all 0.3s ease; */
}

/* Individual contact items */
#contacts > div {
    opacity: 0;
    transform: translateY(20px);  /* Start below */
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* > symbol represents child, nth-child(n) access a specific child */
#contacts > div:nth-child(1) {
    animation: slideDown 0.5s ease 0.1s forwards;
}

#contacts > div:nth-child(2) {
    animation: slideDown 0.5s ease 0.2s forwards;
}

#contacts > div:nth-child(3) {
    animation: slideDown 0.5s ease 0.3s forwards;
}

#contacts > div:nth-child(4) {
    animation: slideDown 0.5s ease 0.4s forwards; 
}
/* .project-description{
    display: none;
} */
    /* animation name / animation duration / animation-timing / animation-delay / animation-direction */

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translate(20px,-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from{
        opacity: 1;
        transform: translateY(0);
    }    
    to{
        opacity: 0;
        transform: translate(20px, -20px);
    }
}

.contacts-img{
    border-radius: 100%;
    max-height: 60px;
    transition: var(--transition);

}

.contacts-img:hover{
    transform: scale(1.3);

}

@media (max-width: 480px) {
    /* Navigation */
    .body{
        justify-content: center;
        align-items: center;
    }

    .nav{
        position: fixed;
    }
    .navBar {
        
        padding: var(--spacing-sm);
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .nav-content {
        gap: var(--spacing-sm);
        font-size: 1rem;
    }
    
    /* Hero Section */
    .hero {
        min-height: 500px;
    }
    
    .name {
        font-size: 40px;  /* Much smaller for phones */
    }
    
    .subtitle {
        font-size: 18px;
    }
    
    .description {
        font-size: 14px;
    }
    
    .btn {
        height: 50px;
        padding: 7px;
        font-size: 14px;
    }
    
    /* Section Titles */
    .about-title,
    .project-title {
        font-size: 32px;  /* Smaller from 50px */
        margin-top: 60px;
        margin-bottom: 30px;
    }
    .skill-title{
        margin-bottom: 30px;
        margin-top: -5px;
        font-size: 32px; 
    }

    
    /* About Section */
    .about-content{
        display: flex;
        flex-direction: column;
    }

    .about-text {
        margin-left: 15px;
        margin-right: 15px;
        margin-bottom: 20px;
    }
    
    .about-info {
        margin-left: 15px;
        margin-right: 15px;
    }
    
    .info-item {
        /* padding: 18px; */
        height: auto;
    }
    
    /* Skills Section */

    .skills{
        display: flex;
        flex-direction: column;
        margin-top: 100px;
        justify-content: center;
        align-items: center;
        position: relative;
        
    }

    .skills-category{
        margin-bottom: 300px;
    }

    .skill-grid, .framework-grid {
        grid-template-columns: repeat(2, 1fr);  /* 2 columns on phone */
        /* gap: 20px; */
    }

    
    .skill-card {
        height: 120px;
        padding: 10px;
    }
    
    .skill-card p {
        font-size: 14px;
    }
    
    .skill-card img {
        height: 35px !important;
        width: 35px !important;
    }
    

    /* Projects Section */
    .projects{
        margin-top: -200px;
    }
    .project-grid {
        padding: 0 15px;
    }
    
    .project-img {
        height: 100px;
    }
    
    .project-info {
        padding: 15px;
    }
    
    .project-info h3 {
        font-size: 1.1rem;
        padding-bottom: 15px;
    }
    
    .project-info p {
        font-size: 0.85rem;
    }
    
    .tag {
        padding: 0.25rem 0.6rem;
        font-size: 0.65rem;
    }

    .project-description{
        display: none;
    }
    
    /* Contacts */
    #contacts {
        gap: 15px;
    }
    
    .contacts-img {
        max-height: 45px;
    }
}