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

/* consistant  fonts, colors spacing in all the pages*/
/* consistant style to the body */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Header and Navigation Styles */
/* Style the navigation menu so links are aligned horizontally. */
header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    width: 95%;
    position: relative;
    /* Use relative so content flows below */
    margin: 2% 2.5% 0 2.5%;
    border-radius: 20px;
    z-index: 100;
}

/* nav consistant style horizontal links */
nav {

    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         
    overflow:hidden;
    
}

/* logo is my name take you to the home page on click */
.logo {
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(135deg, #ffd700, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    float: left;
    line-height: 2.5rem;
    transition: all 0.3s ease;
}

.logo:hover {
    background: linear-gradient(135deg, #ff9a56, #ffed4e, #667eea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: scale(1.05);
}


.nav-links {

    list-style: none;
    float: right;
}

.nav-links a {
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: larger;
    text-decoration: none;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    display: block;
    line-height: 1.5rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background-origin: border-box;
}

.nav-links a:hover {
    background: linear-gradient(135deg, #ffd700, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border: 2px solid;
    border-image: linear-gradient(135deg, #ffd700, #ff6b6b, #4ecdc4) 1;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.nav-links li {
    float: left;
    margin-right: 2rem;
}

/* Main Layout */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.highlight {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

/* Home Page Styles */
.home-header {
    text-align: center;
    margin-bottom: 3rem;
    color: white;
}

.home-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.home-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    overflow: hidden; /* Clearfix for floated children */
}

.text-content {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.9;
    float: left;
    width: 65%;
    margin-right: 3rem;
}

.text-content h2 {
    color: #ffd700;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

aside {
    text-align: center;
    float: right;
    width: 30%;
}

aside img {
    width: 100%;
    max-width: 300px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.image-caption {
    margin-top: 1rem;
    color: #ffd700;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Skills Page Styles */
.skills-header {
    text-align: center;
    margin-bottom: 3rem;
    color: white;
}

.skills-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.skills-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.skills-grid {
    overflow: hidden; /* Clearfix for floated children */
}

.skill-category {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    float: left;
    width: 31%;
    margin: 1% 1% 2rem 1%;
    box-sizing: border-box;
}

/* Clear every 3rd item for proper row arrangement */
.skill-category:nth-child(3n+1) {
    clear: left;
}

.skill-category h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
    color: #ffd700;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    padding-bottom: 0.5rem;
}

.skill-list {
    list-style: none;
}

.skill-list li {
    background: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border-left: 4px solid #ffd700;
    opacity: 0.9;
}

/* Projects Page Styles */
.projects-header {
    text-align: center;
    margin-bottom: 3rem;
    color: white;
}

.projects-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.projects-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.projects-grid {
    margin-bottom: 2rem;
    overflow: hidden; /* Clearfix for floated children */
}

.project-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    float: left;
    width: 48%;
    margin: 1% 1% 2rem 1%;
    box-sizing: border-box;
}

/* Clear every 2nd project for proper row arrangement */
.project-card:nth-child(2n+1) {
    clear: left;
}

.project-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.file-system .project-icon {
    background: linear-gradient(45deg, #ff9a56, #ffad56);
}

.search-engine .project-icon {
    background: linear-gradient(45deg, #667eea, #764ba2);
}

.bfs-graph .project-icon {
    background: linear-gradient(45deg, #f093fb, #f5576c);
}

.website-clone .project-icon {
    background: linear-gradient(45deg, #4facfe, #00f2fe);
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffd700;
}

.project-description {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    opacity: 0.9;
}

.tech-stack {
    margin-bottom: 1.5rem;
}

.tech-stack h4 {
    margin-bottom: 0.5rem;
    color: #ffd700;
    font-size: 1rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.project-links {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

/* Gallery Page Styles */
.gallery-header {
    text-align: center;
    margin-bottom: 3rem;
    color: white;
}

.gallery-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.gallery-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.gallery-grid {
    margin-bottom: 2rem;
    overflow: hidden; /* Clearfix for floated children */
}

.gallery-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    transition: all 0.3s ease;
    float: left;
    width: 48%;
    margin: 1% 1% 2rem 1%;
    box-sizing: border-box;
}

/* Clear every 2nd item for proper row arrangement */
.gallery-item:nth-child(2n+1) {
    clear: left;
}

.gallery-item:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.gallery-item #kali {
    object-fit: contain;
}

.gallery-item:hover img {
    transform: scale(1.02);
}

.image-title {
    color: #ffd700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.image-description {
    margin-bottom: 1.5rem;
    opacity: 0.9;
    font-size: 1rem;
    line-height: 1.6;
    color: white;
}


/* Hobbies Page Styles */
.hobbies-header {
    text-align: center;
    margin-bottom: 3rem;
    color: white;
}

.hobbies-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hobbies-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.hobbies-grid {
    margin-bottom: 2rem;
    overflow: hidden; /* Clearfix for floated children */
}

.hobby-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 1, 0.2);
    color: white;
    float: left;
    width: 31%;
    margin: 1% 1% 2rem 1%;
    box-sizing: border-box;
}

/* Clear every 3rd hobby for proper row arrangement */
.hobby-card:nth-child(3n+1) {
    clear: left;
}

.hobby-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.cricket .hobby-icon {
    background: linear-gradient(45deg, #ff9a56, #ffad56);
}

.coding .hobby-icon {
    background: linear-gradient(45deg, #667eea, #764ba2);
}

.math .hobby-icon {
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
}

/* Contact Page Styles */
.contact-header {
    text-align: center;
    margin-bottom: 3rem;
    color: white;
}

.contact-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.contact-grid {
    overflow: hidden; /* Clearfix for floated children */
}

.contact-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    text-align: center;
    float: left;
    width: 31%;
    margin: 1% 1% 2rem 1%;
    box-sizing: border-box;
}

/* Clear every 3rd contact card for proper row arrangement */
.contact-card:nth-child(3n+1) {
    clear: left;
}

.contact-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #ffd700;
}

.contact-card a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
}