/* Base Styles */
:root {
    --primary-color: #6c63ff;
    --secondary-color: #4d44db;
    --accent-color: #ff6584;
    --dark-color: #2d2d3a;
    --light-color: #f8f9fa;
    --text-color: #333;
    --text-light: #777;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: #f5f7ff;
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--primary-color) }
}

@keyframes rotate {
    0% { transform: rotate(0deg) }
    100% { transform: rotate(360deg) }
}

@keyframes fadeIn {
    from { opacity: 0 }
    to { opacity: 1 }
}

@keyframes slideInLeft {
    from { transform: translateX(-100px); opacity: 0 }
    to { transform: translateX(0); opacity: 1 }
}

@keyframes slideInRight {
    from { transform: translateX(100px); opacity: 0 }
    to { transform: translateX(0); opacity: 1 }
}

@keyframes pulse {
    0% { transform: scale(1) }
    50% { transform: scale(1.05) }
    100% { transform: scale(1) }
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(45deg, #f5f7ff, #e4e8ff, #d8ddff, #ccd3ff);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50% }
    50% { background-position: 100% 50% }
    100% { background-position: 0% 50% }
}

/* Glass Morphism Effect */
.glass-nav, .glass-footer, .glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--box-shadow);
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 2rem;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--primary-color);
    background: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
    transition: var(--transition);
}

.logo:hover .logo-text {
    transform: rotate(360deg);
}

.logo-subtext {
    font-weight: 600;
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    position: relative;
    padding: 0.5rem 0;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    gap: 3rem;
}

.hero-text {
    flex: 1;
    animation: slideInLeft 1s ease;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.title-line {
    display: block;
    font-weight: 400;
}

.title-name {
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.animate-typing {
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--primary-color);
    animation: typing 3.5s steps(40, end), blink-caret .75s step-end infinite;
}

.hero-subtitle {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.subtitle-line {
    display: block;
}

.rotating-words {
    display: inline-block;
    position: relative;
    height: 2.5rem;
    overflow: hidden;
}

.rotating-words span {
    display: block;
    position: absolute;
    width: 100%;
    color: var(--primary-color);
    font-weight: 600;
    opacity: 0;
    animation: rotateWords 12s linear infinite 0s;
}

.rotating-words span:nth-child(2) {
    animation-delay: 3s;
}
.rotating-words span:nth-child(3) {
    animation-delay: 6s;
}
.rotating-words span:nth-child(4) {
    animation-delay: 9s;
}

@keyframes rotateWords {
    0% { opacity: 0; transform: translateY(20px) }
    2% { opacity: 0; transform: translateY(20px) }
    5% { opacity: 1; transform: translateY(0px) }
    20% { opacity: 1; transform: translateY(0px) }
    25% { opacity: 0; transform: translateY(-20px) }
    80% { opacity: 0 }
    100% { opacity: 0 }
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    color: var(--text-light);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.cta-btn {
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.primary-btn {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
}

.primary-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(108, 99, 255, 0.4);
}

.secondary-btn {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.secondary-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    animation: slideInRight 1s ease;
}

.image-container {
    position: relative;
    width: 350px;
    height: 350px;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 10;
    border-radius: 20px;
    box-shadow: var(--box-shadow);
    animation: float 6s ease-in-out infinite;
}

.tech-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.tech-icons i {
    position: absolute;
    font-size: 2.5rem;
    color: var(--light-color);
    background: blur;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    /* mix-blend-mode:lighten; */
    opacity: 20%;
    /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); */
    animation: float 4s ease-in-out infinite;
}

.html-icon {
    top: -20px;
    left: 20px;
    animation-delay: 0s;
}

.css-icon {
    top: -20px;
    right: 20px;
    animation-delay: 0.5s;
}

.js-icon {
    bottom: -20px;
    left: 20px;
    animation-delay: 1s;
}

.react-icon {
    bottom: -20px;
    right: 20px;
    animation-delay: 1.5s;
}

.node-icon {
    top: -20px;
    left: 40%;
    transform: translateY(-50%);
    animation-delay: 2s;
}
.python-icon {
    top: 50%;
    right: -20px;
    transform: translateY(-50%);
    animation-delay: 2.5s;
}
.java-icon {
    bottom: 50%;
    right: -15px;
    margin-bottom: 10%;
    transform: translate(-50%, 50%);
    animation-delay: 3s;
}
.git-icon {
    bottom: 60%;
    left: -20px;
    transform: translateY(50%);
    animation-delay: 3.5s;
}
.docker-icon {
    top: 50%;
    left: -20px;
    transform: translateY(-50%);
    animation-delay: 4s;
}
.aws-icon {
    left: 40%;
    /* right: -20px; */
    bottom: -20px;
    transform: translateY(50%);
    animation-delay: 4.5s;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: bounce 2s infinite;
}

.scroll-text {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.scroll-arrow {
    width: 20px;
    height: 35px;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 2px;
    animation: scrollDown 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%) }
    40% { transform: translateY(-20px) translateX(-50%) }
    60% { transform: translateY(-10px) translateX(-50%) }
}

@keyframes scrollDown {
    0% { opacity: 1; top: 5px }
    100% { opacity: 0; top: 20px }
}

/* Section Styles */
section {
    padding: 6rem 2rem;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-divider {
    width: 100px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
    margin: 0 auto;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hexagon-container {
    position: relative;
    width: 350px;
    height: 350px;
}

.hexagon {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    /* clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: pulse 4s ease infinite;
}

.hexagon-inner {
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    background: rgb(0, 0, 0);
    /* clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); */
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.hexagon-inner img {
    width: 100%;
    height: 100%;
    object-fit:contain;
}

/* Skills Section */
.skills-container {
    max-width: 1200px;
    margin: 0 auto;
}

.skill-category {
    margin-bottom: 3rem;
}

.category-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    position: relative;
    padding-left: 1.5rem;
}

.category-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.skill-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.skill-icon {
    width: 60px;
    height: 60px;
    background: rgba(108, 99, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.skill-info {
    flex: 1;
}

.skill-name {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--primary-color);
    border-radius: 4px;
    width: 0;
    transition: width 1.5s ease;
}

/* Projects Section */
.projects-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.project-image {
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.project-description {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: rgba(108, 99, 255, 0.1);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-color);
    transition: var(--transition);
}

.project-link:hover {
    color: var(--secondary-color);
}

.project-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(108, 99, 255, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: rotate 1s linear infinite;
}

/* Education Section */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: 50%;
    padding: 0 2rem;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-date {
    position: absolute;
    top: 0;
    width: 120px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 500;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
}

.timeline-item:nth-child(odd) .timeline-date {
    right: -160px;
}

.timeline-item:nth-child(even) .timeline-date {
    left: -160px;
}

.timeline-content {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    background: white;
    transform: rotate(45deg);
    z-index: -1;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -10px;
}

.timeline-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.timeline-subtitle {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.timeline-description {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Contact Section */
.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 3rem;
}

.contact-info {
    flex: 1;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.info-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-content {
    flex: 1;
}

.info-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.info-text {
    color: var(--text-light);
    font-size: 1rem;
}

.contact-form {
    flex: 1;
}

.floating-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--text-light);
    transition: var(--transition);
    pointer-events: none;
    background: white;
    padding: 0 0.5rem;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -0.6rem;
    left: 0.8rem;
    font-size: 0.8rem;
    color: var(--primary-color);
}

.submit-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.submit-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
}

/* Footer */
.glass-footer {
    padding: 3rem 2rem 1rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    color: var(--primary-color);
    background: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.footer-social a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .contact-container {
        flex-direction: column;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 0;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-item:nth-child(odd) .timeline-date,
    .timeline-item:nth-child(even) .timeline-date {
        left: -160px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-container {
        grid-template-columns: 1fr;
    }
    
    .timeline-date {
        width: 100px;
        font-size: 0.8rem;
    }
    
    .timeline-item:nth-child(odd) .timeline-date,
    .timeline-item:nth-child(even) .timeline-date {
        left: -130px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .image-container {
        width: 280px;
        height: 280px;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hexagon-container {
        width: 280px;
        height: 320px;
    }
    
    .timeline-item {
        padding-left: 50px;
    }
    
    .timeline-date {
        width: 80px;
        height: 30px;
        font-size: 0.7rem;
    }
    
    .timeline-item:nth-child(odd) .timeline-date,
    .timeline-item:nth-child(even) .timeline-date {
        left: -110px;
    }
}

/* Resume Section */
.resume-section {
    background: linear-gradient(135deg, #f5f7ff 0%, #e6e9ff 100%);
}

.resume-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.resume-download {
    text-align: right;
    margin-bottom: 1.5rem;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
}

.download-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(108, 99, 255, 0.4);
}

.resume-content {
    background: white;
    border-radius: 15px;
    padding: 3rem;
    box-shadow: var(--box-shadow);
}

.resume-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.resume-name {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.resume-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.resume-summary {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.6;
}

.resume-body {
    display: flex;
    gap: 3rem;
}

.resume-left {
    flex: 1;
}

.resume-right {
    flex: 2;
}

.resume-block {
    margin-bottom: 2.5rem;
}

.block-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.block-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
}

.contact-list {
    list-style: none;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.contact-list i {
    width: 30px;
    height: 30px;
    background: rgba(108, 99, 255, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-category-title {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: var(--dark-color);
}

.skills-list ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skills-list li {
    background: rgba(108, 99, 255, 0.1);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
}

.experience-item {
    margin-bottom: 2rem;
}

.experience-title {
    font-size: 1.1rem;
    color: var(--dark-color);
    margin-bottom: 0.3rem;
}

.experience-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.experience-description {
    list-style-type: disc;
    padding-left: 1.5rem;
    color: var(--text-light);
    line-height: 1.6;
}

.experience-description li {
    margin-bottom: 0.5rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.project-item {
    background: #f9f9ff;
    padding: 1.2rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.project-title {
    font-size: 1rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.project-description {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

.education-item {
    margin-bottom: 1.5rem;
}

.education-degree {
    font-size: 1.1rem;
    color: var(--dark-color);
    margin-bottom: 0.3rem;
}

.education-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Netlify Recaptcha Styling */
[data-netlify-recaptcha] {
    margin: 1.5rem 0;
}

/* Responsive Resume */
@media (max-width: 992px) {
    .resume-body {
        flex-direction: column;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .resume-content {
        padding: 2rem 1.5rem;
    }
    
    .resume-name {
        font-size: 2rem;
    }
    
    .resume-title {
        font-size: 1.2rem;
    }
    
    .experience-meta, .education-meta {
        flex-direction: column;
        gap: 0.3rem;
    }
}

.pdf-success-message {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #4BB543;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    animation: slideIn 0.5s ease-out;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pdf-success-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pdf-success-message.fade-out {
    animation: fadeOut 0.5s ease-out forwards;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}
/* Add this to your CSS to ensure proper rendering */
@media print {
    body * {
      visibility: hidden;
    }
    #resume-content, #resume-content * {
      visibility: visible;
    }
    #resume-content {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 20px;
    }
}
#resume-content {
    opacity: 1 !important;
    transform: none !important;
}

/* Apply this to the PARENT container */
.button-container {
    text-align: center; /* Centers inline-block children */
    /* Add padding or other styles to the container as needed */
    padding: 20px 0;
}
/* Make the button container relative for absolute positioning of the tooltip */
.toggleResume.has-tooltip {
    position: relative;
  }
  
  /* Tooltip base style (hidden initially) */
  .toggleResume.has-tooltip::after {
    content: attr(data-tooltip); /* Get text from the data-tooltip attribute */
    position: absolute;
    bottom: 100%; /* Position above the button */
    left: 50%;    /* Center horizontally */
    transform: translateX(-50%); /* Adjust horizontal centering */
    margin-bottom: 8px; /* Space between button and tooltip */
  
    background-color: #333; /* Dark background */
    color: #fff;           /* White text */
    padding: 6px 12px;     /* Padding inside the tooltip */
    border-radius: 4px;    /* Rounded corners */
    font-size: 0.85rem;    /* Smaller font size */
    white-space: nowrap;   /* Prevent text wrapping */
    z-index: 10;           /* Ensure it appears above other elements */
  
    /* Hide tooltip initially */
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* Prevent tooltip from blocking clicks on button */
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out; /* Smooth fade */
  }
  
  /* Show tooltip on hover OR focus */
  .toggleResume.has-tooltip:hover::after,
  .toggleResume.has-tooltip:focus::after {
    opacity: 1;
    visibility: visible;
  }
  
  /* Optional: Add a small arrow below the tooltip */
  .toggleResume.has-tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%; /* Position above the button, slightly below the main tooltip box */
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 3px; /* Position it between button and tooltip box */
  
    border-width: 5px;
    border-style: solid;
    /* Make transparent top/left/right, colored bottom to create downward arrow */
    border-color: #333 transparent transparent transparent;
  
    /* Hide initially */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
    z-index: 11; /* Ensure arrow is above tooltip background */
  }
  
  /* Show arrow on hover/focus */
  .toggleResume.has-tooltip:hover::before,
  .toggleResume.has-tooltip:focus::before {
    opacity: 1;
    visibility: visible;
  }
  
  /* Ensure the base button styles are present */
  .toggleResume {
    display: inline-block;
    padding: 12px 25px;
    background-color: #007bff;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    user-select: none;
    outline: none; /* Remove default focus outline if using custom focus styles */
  }
  /* Add a subtle focus ring for accessibility with the CSS tooltip */
  .toggleResume.has-tooltip:focus {
     box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.4); /* Example focus style */
  }
  
  .toggleResume:hover {
    background-color: #0056b3;
  }
  
  .toggleResume:active {
    background-color: #004085;
    transform: scale(0.98);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
  }
  
  .toggleResume .section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    color: inherit;
    font-size: inherit;
    text-align: left;
    background: none;
    border: none;
  }
  
  .toggleResume .section-header i.fas {
    margin-right: 8px;
    font-size: 1.1em;
    line-height: 1;
  }
  
  .toggleResume .section-header .section-divider {
    display: none;
  }