/* Style.css */

:root {
    --bg: #0d0f10;
    --text: #d3d9e1;
    --primary: #6bb77b;
    --accent: #d76f30;
    --glass-border: 1px solid rgba(255, 255, 255, 0.12);
    --muted: #a6b0c3;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0, 0, 0, 1px rgba(255,255,255, 0.06);


}
* {
    box-sizing: border-box;
    max-width: 100vw; /* Prevent any element from being wider than viewport */
}

html {
    scroll-behavior: smooth;
    

}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background: var(--bg);
    color: var(--text);

    

    
}

a {
    color: inherit;
    text-decoration: none;

}

.container {
    max-width: 1160px;
    margin: 0 auto;
    margin-bottom: 80px;
    

}

/* Navigation Bar Style */
.navwrap {
    position: sticky;
    top: 10px;
    z-index: 1000;

}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;

    /* Box glass design */
    background: linear-gradient(180deg, rgba(18, 20, 23, 0.35));

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);

    backdrop-filter: saturate(1.2) blur(14px);
    -webkit-backdrop-filter: saturate(1.2) blur(14px);

    padding: 12px 14px;
    margin: 0 auto; /* little gap from edges */
    max-width: 1160px; /* match container width */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);

}

.logo {
    font-weight: 800;
    letter-spacing: 0.4px;

}

.logo b {
    color: #eef2f7;

}

.navLinks {
    display: flex;
    gap: 18px;
    align-items: center;

}

.navLinks a {
    padding: 8px 10px;
    border-radius: 12px;
    transition: 0.2s;
    opacity: 0.85;

}

.navLinks a:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.06);
}

.hamb {
    display: none; /* Hides the hamburger button by default. It's intended to be visible only on smaller screens. */
}

/*only applies when the screen width is 860 pixels or less (mobile/tablet view). */
@media (max-width:860px) {
    .navLinks {
        display: none; /* Hides the navigation links div */
    }

    .hamb {
        display: inline-flex; /*Shows the hamburger menu button */
    }

}

section {
    scroll-margin: 90px;
    overflow: hidden; /* Prevent horizontal scroll due to any overflowing content */
    max-width: 100%; /* Ensure sections do not exceed viewport width */

}

/* Hero Section */
.hero {
    padding: 40px 20px;
}

.hero .inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
    min-height: 60vh;

}

.headline {
    font-size: clamp(28px, 4.5vw, 54px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.6px;
    /* margin-left: 20px; */
    margin: 0;
    

}


.subtitle {
    margin-top: 14px;
    color: var(--muted);
    max-width: 60ch;
    margin-left: 0;
    font-size: 1.1rem;
    line-height: 1.6;

}

.cta {
    display: flex;
    gap: 12px;
    margin-top: 26px;
    flex-wrap: wrap;
    margin-left: 0;


}

.btn {
    border-radius: 14px;
    padding: 12px 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;

}

.btn:hover {
    transform: translateY(-2px);    
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);

}

.btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #0c1310;
    border: none;
    font-weight: 600;

}

.btn.primary:hover {
    background: linear-gradient(135deg, #7bc88c, #e57d3a);

}

/* Hero Section Image styling */
.tilt-card {
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;

}

.tilt {
    border-radius: 50%;
    width: 300px;
    height: 300px;
    display: grid;
    place-items: center;
    overflow: hidden;
    /* margin-top: 20px; */
    justify-self: center;
    
}

.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* border-radius: 50%; */
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
    border: var(--glass-border);
    box-shadow: var(--shadow);
    max-width: 100%;
    

}

.profile-pic:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}


@media (max-width: 860px) {
    .hero .inner {
        grid-template-columns: 1fr;
        text-align: center;
        justify-content: center;

    }

    .tilt {
        width: 220px;
        height: 220px;
        margin-top: 2rem;
        
    }

    .cta {
        justify-content: center;
    }


}


/* glass + section-title */
.glass {
    border-radius: 22px;
    border: var(--glass-border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    box-shadow: var(--shadow);

}

.section-title {
    font-size: clamp(22px, 3vw, 30px);
    margin-bottom: 24px;

}


/* About Section */
.about p {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    
}

@media (max-width: 860px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

.skill-card {
    padding: 18px;
}

.skill-card h4 {
    margin: 6px 0 12px;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0, 0, 0, 1px rgba(255,255,255, 0.06);
    transition: all 0.3s ease;

}

.skill {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.);
}

.skill img {
    width: 34px;
    height: 34px;
    filter: grayscale(1);
    transition: filter 0.2s, transform 0.15s;

}

.skill:hover img {
    filter: grayscale(0);
    transform: translateY(-5px);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;

}

@media (max-width: 1024px) {
    .projects-grid {
    grid-template-columns: repeat(2, 1fr);

    }

}

@media (max-width: 700px) {
    .projects-grid {
    grid-template-columns: 1fr;

    }

}

.project {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: auto;
}

.project:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0, 0, 0, 1px rgba(255,255,255, 0.06);
    transition: all 0.3s ease;

}

.project .thumb {
    height: 180px;
    display: flex;
    background: #161a1e;
     /* place-items: center; */

    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;


}

.project .thumb:hover img {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.project .thumb img {
    height: 180px;
    object-fit: cover;
    object-position: center;
    display: block;

}

.project .thumb::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #161a1e, #1a1f24);
    z-index: -1;
}

.project .body {
    padding: 16px;
}

.stack {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 10px 0;

}

.chip {
    font-size: 0.85rem;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.p-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;

}

/* Education Section */
.edu {
    position: relative;

}

.edu::before {
    content: "";
    position: absolute;
    left: calc(50% - 1px);
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(var(--accent), var(--primary));
    filter: blur(0.5px);

   
}

.edu-item {
    position: relative;
    width: 50%;
    padding: 16px;

}

.edu-item .card {
    padding: 18px;
    backdrop-filter: blur(8px);

}

.edu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0, 0, 0, 1px rgba(255,255,255, 0.06);
    transition: all 0.3s ease;

}

.edu-item:nth-child(even) {
    left: 0;
    padding-right: 28px;

}
 
.edu-item:nth-child(odd) {
    left: 50%;
    padding-left: 28px;

}

.edu-item .dot {
    position: absolute;
    top: 18px;
    left: calc(100% -10px);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(215, 111, 48, 0.25);

}

.edu-item:nth-child(odd) .dot {
    left: -6px;
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(107, 183, 123, 0.25);


}

.edu-item:nth-child(even) .dot {
    right: -6px;
    box-shadow: 0 0 0 4px rgba(107, 183, 123, 0.25);

}

@media (max-width: 860px) {
    .edu::before {
    content: "";
    position: absolute;
    left: calc(50% - 1px);
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(var(--accent), var(--primary));
    filter: blur(0.5px);

   
    }

    .edu-item {
        position: relative;
        width: 50%;
        padding: 16px;

    }

    .edu-item .card {
        padding: 18px;
        backdrop-filter: blur(8px);

    }

    .edu-item:nth-child(even) {
        left: 0;
        padding-right: 28px;

    }
    
    .edu-item:nth-child(odd) {
        left: 50%;
        padding-left: 28px;

    }

    .edu-item .dot {
        position: absolute;
        top: 18px;
        left: calc(100% -10px);
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: var(--accent);
        box-shadow: 0 0 0 4px rgba(215, 111, 48, 0.25);

    }

    .edu-item:nth-child(odd) .dot {
        left: -6px;
        background: var(--primary);
        box-shadow: 0 0 0 4px rgba(107, 183, 123, 0.25);


    }

    .edu-item:nth-child(even) .dot {
        right: -6px;
        box-shadow: 0 0 0 4px rgba(107, 183, 123, 0.25);

    }
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 18px;

}

@media (max-width: 860px) {
    .contact-grid {
    grid-template-columns: 1fr;

    }

    .contact-left {
        align-items: flex-start;
    }
}

/* Contact Section -> Item */
.contact-left {
    display: flex;
    flex-direction: column;
    gap: 20px
}


.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;

}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--text);
    border-radius: 50%;
    font-size: 1.2rem;

}

.contact-details h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;

}

.contact-details p {
    color: var(--text);

}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;

}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    color: var(--text);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3 ease;
    box-shadow: var(--shadow);


}

.social-link:hover {
    transform: translateY(-5px);
}

.social-link:nth-child(1):hover {
    background: #333;
    color: white;
}

.social-link:nth-child(2):hover {
    background: #0A66C2;
    color: white;

}

.social-link:nth-child(3):hover {
    background: #0fe90b;
    color: white;
}



/* Contact Section -> Form */
.contact-form {
    padding: 5px;
    border-radius: 10px;
    box-shadow: var(--shadow);

}

.contact-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0, 0, 0, 1px rgba(255,255,255, 0.06);
    transition: all 0.3s ease;

}

.form-group {
    margin-bottom: 20px;
    padding: 10px;

}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;

}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: var(--glass-border);
    border-radius: 5px;
    transition: all 0.3s ease;

}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--shadow);

}



input, textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: black;
    outline: none;

}

textarea {
    min-height: 140px;
    resize: vertical;
}

form .btn {
    padding: 12px 30px;
    
}


/* Footer Section */
footer {
    padding: 36px 20px;
    border-top: var(--glass-border);
    background: linear-gradient(180deg, rgba(18, 20, 23, 0.45));
    text-align: center;

}

.socials {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 10px;

}

.socials a {
    display: flex;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: #aeb7c8;
    transition: transform 0.12s;
    align-items: center;
    justify-content: center;

}

.socials a:hover {
    transform: translateY(-5px);
}

.ico {
    width: 48px;
    height: 48px;
    fill: currentColor; /* #aeb7c8 */
    transition: fill 0.2s;

}

.gh { 
    color: #aeb7c8; 
}
.gh:active, .gh:hover { 
    color: #171515; 
}

.li { 
    color: #aeb7c8; 
}
.li:active, .li:hover { 
    color: #0A66C2; 
}

.cm { 
    color: #aeb7c8; 
}
.cm:active, .cm:hover { 
    color: #0fe90b; 
}

.gh:hover .ico {
    fill: #171515;
}

.li:hover .ico {
    fill: #0A66C2;
}

.cm:hover .ico {
    fill: #0fe90b;
}

/* Separators */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06));
    margin: 80px 0;
}