:root {
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --main-color: #06b6d4; /* Cyan */
    --second-color: #8b5cf6; /* Purple */
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

/* Canvas Background Animation */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
}

/* Typography & General */
section {
    min-height: 100vh;
    padding: 8rem 9% 2rem;
}

.heading {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
}

.heading span {
    color: var(--main-color);
    background: -webkit-linear-gradient(45deg, var(--main-color), var(--second-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sub-heading {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--second-color);
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    box-shadow: var(--glass-shadow);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: 0.3s;
}

.header.sticky {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    padding: 1.5rem 9%;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-color);
    cursor: default;
}

.logo span {
    color: var(--main-color);
}

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

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

.navbar a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: var(--main-color);
    transform: scaleX(0);
    transition: transform 0.3s;
    transform-origin: right;
}

.navbar a:hover::after,
.navbar a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.menu-btn {
    font-size: 2.5rem;
    color: var(--text-color);
    display: none;
    cursor: pointer;
}

/* Hero Section */
.home {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.home-content {
    max-width: 600px;
}

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

.home-content h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 1rem 0;
}

.home-content h1 span {
    color: transparent;
    -webkit-text-stroke: 1px var(--text-color);
    background: url('data:image/svg+xml;utf8,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="url(%23g)"/><defs><linearGradient id="g" x1="0" y1="0" x2="1" y2="1"><stop offset="0%" stop-color="%2306b6d4"/><stop offset="100%" stop-color="%238b5cf6"/></linearGradient></defs></svg>');
    background-size: cover;
    -webkit-background-clip: text;
    background-position: 0 0;
    animation: animateBg 10s linear infinite;
}

@keyframes animateBg {
    100% { background-position: 1000px 0; }
}

.text-animation {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.text-animation span {
    color: var(--main-color);
}

.home-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 3rem;
    color: #cbd5e1;
}

.btn-group {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    border-radius: 4rem;
    box-shadow: 0 0 10px var(--main-color);
    font-size: 1.1rem;
    color: var(--bg-color);
    letter-spacing: 1px;
    font-weight: 600;
    transition: 0.3s ease;
    border: 2px solid var(--main-color);
}

.btn:hover {
    box-shadow: 0 0 20px var(--main-color);
    transform: scale(1.05);
}

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

.btn.btn-secondary:hover {
    background: var(--main-color);
    color: var(--bg-color);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 3rem;
    background: transparent;
    border: 2px solid var(--main-color);
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--main-color);
    transition: 0.3s ease;
}

.social-links a:hover {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 15px var(--main-color);
    transform: translateY(-3px);
}

.home-img .img-box {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    padding: 10px;
    background: linear-gradient(45deg, var(--main-color), var(--second-color));
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.4);
    animation: floatImage 4s ease-in-out infinite;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

@keyframes floatImage {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

/* About Section */
.about {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-content {
    max-width: 900px;
    text-align: center;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #e2e8f0;
}

.mt-2 {
    margin-top: 3rem;
}

.styled-list {
    text-align: left;
    display: inline-block;
    max-width: 800px;
}

.styled-list li {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.styled-list i {
    color: var(--main-color);
    font-size: 1.5rem;
    margin-top: 2px;
}

/* Skills */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.skill-box {
    flex: 1 1 300px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 2.5rem 2rem;
    border-radius: 1.5rem;
    text-align: center;
    transition: 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.skill-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(6,182,212,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: 0.5s ease;
}

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

.skill-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.2);
    border-color: var(--main-color);
}

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

.skill-box:hover i {
    transform: scale(1.1);
    color: var(--second-color);
}

.skill-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.skill-box p {
    font-size: 1rem;
    color: #cbd5e1;
    line-height: 1.6;
}

/* Projects */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.project-card {
    display: flex;
    flex-direction: column;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.project-header h3 {
    font-size: 1.5rem;
    color: var(--text-color);
}

.badge {
    background: rgba(6, 182, 212, 0.1);
    color: var(--main-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--main-color);
}

.project-link {
    font-size: 1.5rem;
    color: var(--text-color);
    transition: 0.3s;
}

.project-link:hover {
    color: var(--main-color);
    transform: scale(1.1) rotate(10deg);
}

.role {
    font-size: 1rem;
    color: var(--second-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-stack span {
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-details {
    padding-left: 1.2rem;
}

.project-details li {
    font-size: 0.95rem;
    color: #cbd5e1;
    margin-bottom: 0.8rem;
    line-height: 1.5;
    list-style-type: disc;
}

/* Education & Timeline */
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--main-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-box {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.timeline-box:nth-child(odd) {
    left: 0;
}

.timeline-box:nth-child(even) {
    left: 50%;
}

.timeline-box::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background: var(--bg-color);
    border: 4px solid var(--main-color);
    top: 30px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-box:nth-child(even)::after {
    left: -10px;
}

.timeline-content {
    position: relative;
}

.timeline-date {
    display: inline-block;
    padding: 5px 15px;
    background: var(--main-color);
    color: var(--bg-color);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.timeline-content .institution {
    color: var(--second-color);
    font-weight: 500;
    margin-bottom: 10px;
}

.timeline-content .highlight {
    font-size: 0.95rem;
    color: #cbd5e1;
    border-left: 2px solid var(--main-color);
    padding-left: 10px;
}

.cert-panel {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cert-icon {
    font-size: 3rem;
    color: var(--main-color);
}

/* Contact Section */
.contact {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    width: 100%;
    max-width: 1000px;
}

.contact-info {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.info-item i {
    font-size: 2rem;
    color: var(--main-color);
    background: rgba(6, 182, 212, 0.1);
    padding: 1rem;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
}

.info-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.info-item p, .info-item a {
    color: #cbd5e1;
    font-size: 1rem;
    transition: 0.3s;
}

.info-item a:hover {
    color: var(--main-color);
}

.contact-form {
    flex: 1 1 500px;
}

.contact-form .input-box {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.contact-form .input-box input,
.contact-form textarea {
    width: 100%;
    padding: 1.2rem;
    font-size: 1rem;
    color: var(--text-color);
    background: rgba(15, 23, 42, 0.6);
    border-radius: 0.8rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--glass-border);
    transition: 0.3s;
}

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

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--main-color);
    outline: none;
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

.w-full {
    width: 100%;
    cursor: pointer;
}

/* Footer */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 9%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
}

.footer-text p {
    font-size: 1rem;
}

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

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

.footer-iconTop a:hover {
    box-shadow: 0 0 15px var(--main-color);
    transform: translateY(-3px);
}

/* Scroll Animations Classes */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.reveal.active,
.reveal-up.active,
.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translate(0, 0);
}

/* Responsive Design */
@media (max-width: 1200px) {
    section { padding: 8rem 5% 2rem; }
    .header { padding: 2rem 5%; }
    .header.sticky { padding: 1.5rem 5%; }
    .footer { padding: 2rem 5%; }
}

@media (max-width: 991px) {
    .home {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 4rem;
    }
    
    .home-content { max-width: 100%; }
    
    .btn-group, .social-links {
        justify-content: center;
    }
    
    .timeline-container::after { left: 31px; }
    .timeline-box { width: 100%; padding-left: 70px; padding-right: 25px; }
    .timeline-box:nth-child(even) { left: 0; }
    .timeline-box::after { left: 21px !important; }
}

@media (max-width: 768px) {
    .menu-btn { display: block; z-index: 1001; }
    
    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(15px);
        border-top: 1px solid var(--glass-border);
        border-bottom: 1px solid var(--glass-border);
        display: none;
        flex-direction: column;
    }
    
    .navbar.active { display: flex; }
    .navbar a { margin: 1rem 0; font-size: 1.2rem; }
    
    .contact-form .input-box input { width: 100%; }
    
    .home-content h1 { font-size: 3.5rem; }
}

@media (max-width: 450px) {
    html { font-size: 85%; }
    .home-img .img-box { width: 280px; height: 280px; }
    .home-img .initial { font-size: 8rem; }
}
