/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables */
:root {
    --bg-color: #050505;
    --second-bg-color: #111111;
    --text-color: #ffffff;
    --main-color: #ffcc00;
    --main-color-dark: #ccaa00;
    --accent-glow: 0 0 25px rgba(255, 204, 0, 0.6);
    --secondary-color: #ffaa00;
    --bg-gradient: linear-gradient(135deg, var(--bg-color), #1a1a00, #262600, #1a1a1a);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Outfit', sans-serif;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(255, 170, 0, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(255, 204, 0, 0.08), transparent 25%);
    background-attachment: fixed;
}

section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

/* Header & Navbar */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: rgba(8, 8, 8, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: 0.3s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header.sticky {
    background: rgba(8, 8, 8, 0.95);
    padding: 1.5rem 9%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.logo {
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s ease;
}

.logo span {
    color: var(--main-color);
    text-shadow: var(--accent-glow);
}

.logo:hover {
    transform: scale(1.05);
}

.navbar a {
    font-size: 1.7rem;
    color: var(--text-color);
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s;
    position: relative;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
}

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

.navbar a:hover::after,
.navbar a.active::after {
    width: 100%;
    box-shadow: var(--accent-glow);
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--text-color);
    display: none;
    cursor: pointer;
}

/* Home Section */
.home {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5rem;
    padding-top: 15rem;
}

.home-content h3 {
    font-size: 3.2rem;
    font-weight: 700;
}

.home-content h3:nth-of-type(2) {
    margin-bottom: 2rem;
}

span.multiple-text {
    color: var(--main-color);
    text-shadow: var(--accent-glow);
}

.home-content h1 {
    font-size: 5.6rem;
    font-weight: 800;
    line-height: 1.3;
    background: linear-gradient(45deg, var(--main-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(255, 170, 0, 0.3));
}

.home-content p {
    font-size: 1.6rem;
    font-weight: 400;
    color: #ccc;
    margin-bottom: 3rem;
    max-width: 500px;
    line-height: 1.6;
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4.5rem;
    height: 4.5rem;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 2.2rem;
    color: var(--main-color);
    margin-right: 1.5rem;
    transition: .5s ease;
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.1);
}

.social-media a:hover {
    background: var(--main-color);
    color: var(--second-bg-color);
    box-shadow: var(--accent-glow);
    transform: translateY(-5px);
}

.btn {
    display: inline-block;
    padding: 1.2rem 2.8rem;
    background: var(--main-color);
    border-radius: 4rem;
    font-size: 1.6rem;
    color: var(--second-bg-color);
    letter-spacing: .1rem;
    font-weight: 600;
    transition: .5s ease;
    box-shadow: var(--accent-glow);
    margin-top: 2rem;
    border: 2px solid transparent;
}

.btn:hover {
    background: transparent;
    color: var(--main-color);
    border-color: var(--main-color);
    box-shadow: none;
}

.btn.light {
    background: transparent;
    color: var(--main-color);
    border-color: var(--main-color);
}

.btn.light:hover {
    background: var(--main-color);
    color: var(--second-bg-color);
    box-shadow: var(--accent-glow);
}

.home-img {
    position: relative;
    width: 35vw;
    height: 35vw;
    max-width: 450px;
    max-height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-img .glow-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--main-color), var(--secondary-color));
    filter: blur(60px);
    opacity: 0.4;
    animation: pulse 4s infinite alternate;
    z-index: -1;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.3; }
    100% { transform: scale(1.1); opacity: 0.6; }
}

.home-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.1);
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    background: var(--second-bg-color);
}

/* Heading Utility */
.heading {
    text-align: center;
    font-size: 4.5rem;
    margin-bottom: 5rem;
}

.heading span {
    color: var(--main-color);
    text-shadow: var(--accent-glow);
}

/* About Section */
.about {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6rem;
    background: var(--second-bg-color);
}

.about-img {
    position: relative;
    width: 35vw;
    display: flex;
    justify-content: center;
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 4rem;
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    transform: translateY(0);
    transition: 0.5s ease;
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 204, 0, 0.3);
    box-shadow: 0 20px 40px rgba(255, 204, 0, 0.1);
}

.glass-card i {
    font-size: 8rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 10px rgba(255, 170, 0, 0.5));
}

.glass-card h4 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
}

.glass-card p {
    font-size: 1.6rem;
    color: var(--main-color);
}

.about-content h2 {
    text-align: left;
    line-height: 1.2;
}

.about-content h3 {
    font-size: 2.6rem;
    margin: 1rem 0;
}

.about-content p {
    font-size: 1.6rem;
    color: #ccc;
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* Skills Section */
.skills {
    min-height: auto;
    padding-bottom: 7rem;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 5rem;
}

.skill-box {
    background: var(--second-bg-color);
    padding: 3rem 2rem 4rem;
    border-radius: 2rem;
    text-align: center;
    border: .2rem solid rgba(255,255,255,0.05);
    transition: .5s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.skill-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--main-color), var(--secondary-color));
    z-index: -1;
    transition: .5s ease;
    opacity: 0;
}

.skill-box:hover::before {
    opacity: 1;
}

.skill-box:hover {
    transform: translateY(-10px);
    border-color: transparent;
}

.skill-box i {
    font-size: 6rem;
    color: var(--main-color);
    margin-bottom: 1.5rem;
    transition: .5s ease;
}

.skill-box:hover i,
.skill-box:hover h3,
.skill-box:hover p {
    color: var(--bg-color);
}

.skill-box h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    transition: .5s ease;
}

.skill-box p {
    font-size: 1.5rem;
    color: #ccc;
    line-height: 1.6;
    transition: .5s ease;
}

/* Contact Section */
.contact {
    background: var(--second-bg-color);
}

.contact form {
    max-width: 70rem;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.contact form::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: var(--main-color);
    filter: blur(120px);
    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
}

.contact form .input-box {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.contact form .input-box input,
.contact form textarea {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: var(--bg-color);
    border-radius: .8rem;
    margin: .7rem 0;
    border: .1rem solid rgba(255, 255, 255, 0.1);
    transition: .3s;
}

.contact form .input-box input {
    width: 49%;
}

.contact form .input-box input:focus,
.contact form textarea:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.2);
}

.contact form textarea {
    resize: none;
    position: relative;
    z-index: 1;
}

.contact form .btn {
    margin-top: 2rem;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

/* Footer Section */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 9%;
    background: var(--second-bg-color);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-text p {
    font-size: 1.6rem;
    color: #ccc;
}

.footer-iconTop a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem;
    background: var(--main-color);
    border-radius: .8rem;
    transition: .5s ease;
}

.footer-iconTop a:hover {
    box-shadow: var(--accent-glow);
    background: transparent;
    border: 1px solid var(--main-color);
}

.footer-iconTop a i {
    font-size: 2.4rem;
    color: var(--second-bg-color);
}

.footer-iconTop a:hover i {
    color: var(--main-color);
}

/* Timeline Styles */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 4rem auto 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--main-color);
    top: 0;
    bottom: 0;
    left: 20px;
    margin-left: -1px;
    box-shadow: var(--accent-glow);
}

.timeline-item {
    padding: 2rem 0;
    padding-left: 6rem;
    position: relative;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    width: 15px;
    height: 15px;
    right: auto;
    left: 13px;
    top: 2.5rem;
    background: var(--main-color);
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 10px var(--main-color);
}

.timeline-date {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--main-color);
    margin-bottom: 0.5rem;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.timeline-content:hover {
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.1);
    border-color: rgba(255, 204, 0, 0.3);
}

.box-glow {
    background: var(--second-bg-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.box-glow:hover {
    transform: translateY(-5px);
}

.timeline-content h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    font-size: 1.6rem;
    color: #ccc;
    font-weight: 400;
    margin-bottom: 1rem;
}

.timeline-content p {
    font-size: 1.4rem;
    color: #aaa;
    line-height: 1.6;
}

/* Experience Section */
.experience {
    background: var(--bg-color);
}

/* Certifications Section */
.certifications {
    background: var(--second-bg-color);
}

.cert-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-bottom: 5rem;
}

.cert-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    text-align: center;
    width: 300px;
    transition: 0.4s ease;
    cursor: pointer;
}

.cert-box:hover {
    transform: translateY(-10px);
    border-color: var(--main-color);
    box-shadow: var(--accent-glow);
}

.cert-icon {
    font-size: 5rem;
    color: var(--main-color);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(255, 204, 0, 0.3);
}

.cert-box h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cert-box p {
    font-size: 1.4rem;
    color: #aaa;
}

.sub-heading {
    text-align: center;
    font-size: 3rem;
    margin: 3rem 0;
    color: var(--text-color);
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.activity-item {
    background: rgba(255, 255, 255, 0.02);
    padding: 1.5rem 2rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.6rem;
    border-left: 3px solid var(--secondary-color);
    transition: 0.3s;
}

.activity-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.activity-item i {
    color: var(--main-color);
    font-size: 2rem;
}

.contact-info-footer {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    font-size: 1.8rem;
    color: var(--main-color);
}

.contact-info-footer p {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
    html { font-size: 55%; }
}

@media (max-width: 991px) {
    .header { padding: 2rem 3%; }
    .header.sticky { padding: 1.5rem 3%; }
    section { padding: 10rem 3% 2rem; }
    .footer { padding: 2rem 3%; }
    
    .home {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }
    
    .home-content h3 { font-size: 2.6rem; }
    .home-content h1 { font-size: 5rem; }
    .home-content p { margin: 2rem auto; }
    
    .home-img {
        width: 60vw;
        height: 60vw;
    }
    
    .about {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .about-content h2 { text-align: center; }
    .glass-card { margin: 0 auto; width: 80%; }
    
    .timeline::after { left: 15px; }
    .timeline-dot { left: 8px; }
    .timeline-item { padding-left: 4rem; }
}

@media (max-width: 768px) {
    #menu-icon { display: block; }
    
    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background: rgba(8, 8, 8, 0.98);
        border-top: .1rem solid rgba(255, 255, 255, 0.05);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, 0.2);
        display: none;
        flex-direction: column;
        border-bottom: 2px solid var(--main-color);
    }
    
    .navbar.active { display: flex; }
    
    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 1.5rem 0;
        text-align: center;
        margin-left: 0;
    }
    
    .home-img {
        width: 70vw;
        height: 70vw;
    }
    
    .contact-info-footer { 
        flex-direction: column; 
        gap: 1rem; 
        align-items: center; 
    }
}

@media (max-width: 450px) {
    html { font-size: 50%; }
    .contact form .input-box input { width: 100%; }
}

/* Certificate Modal Styles */
.cert-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cert-modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.cert-modal-content {
    margin: auto;
    display: block;
    width: 80%;
    height: 80vh;
    max-width: 900px;
    background: #fff;
    border-radius: 10px;
    border: 3px solid var(--main-color);
    box-shadow: var(--accent-glow);
    animation: zoomIn 0.3s ease;
    object-fit: contain;
}

@keyframes zoomIn {
    from {transform: scale(0);}
    to {transform: scale(1);}
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: var(--main-color);
    font-size: 5rem;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 1001;
}

.close-modal:hover,
.close-modal:focus {
    color: #fff;
    text-decoration: none;
    text-shadow: 0 0 10px rgba(255,255,255,0.8);
}
