/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ffffff;
    --secondary-color: #f0f0f0;
    --accent-color: #ffffff;
    --text-primary: #ffffff;
    --text-secondary: #e5e7eb;
    --text-muted: #9ca3af;
    --bg-primary: #1e293b;
    --bg-secondary: #334155;
    --bg-tertiary: #475569;
    --gradient-primary: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Better scrolling on mobile */
* {
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    touch-action: manipulation;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: #1e293b;
    padding: 2rem 1.5rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
}

.profile-section {
    text-align: center;
    margin-bottom: 1.5rem;
}

.profile-image {
    width: 180px;
    height: 180px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #ffffff;
    position: relative;
    animation: profilePulse 3s infinite;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.profile-image:hover img {
    transform: scale(1.1);
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

@keyframes profilePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    50% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
}

.nav-menu {
    list-style: none;
    flex-grow: 1;
}

.nav-menu li {
    margin-bottom: 0rem;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.3rem 1.25rem;
    color: #9ca3af;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 500;
    position: relative;
    overflow: hidden;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-link i {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
    color: #6b7280;
}

.nav-link:hover i,
.nav-link.active i {
    color: #ffffff;
}

.nav-link:hover,
.nav-link.active {
    background: none;
    color: #ffffff;
    transform: translateX(5px);
    border-left: 3px solid #ffffff;
    padding-left: 1rem;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.nav-link:hover::before {
    left: 100%;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--bg-tertiary);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 50%;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    font-size: 1rem;
}

.social-link:hover {
    background: var(--accent-color);
    color: var(--bg-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

/* Main Content Styles */
.main-content {
    margin-left: 280px;
    min-height: 100vh;
}

.section {
    min-height: 100vh;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: left;
    margin-bottom: 3.5rem;
    color: #ffffff;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    transform: none;
    width: 60px;
    height: 4px;
    background: #ffffff;
    border-radius: 2px;
}

/* Home Section */
.home-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1470115636492-6d2b56f9146d?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-family: 'Calibri', Arial, Helvetica, sans-serif;
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    animation: titleGlow 2s ease-in-out infinite alternate;
}

.hero-subtitle {
    color: #fff !important;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-description {
    font-size: 1.1rem;
    color: #e5e7eb;
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.8;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.background-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    opacity: 0.3;
}

.floating-element {
    position: absolute;
    background: var(--gradient-secondary);
    border-radius: 50%;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes titleGlow {
    from { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255, 255, 255, 0.3); }
    to { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7), 0 0 30px rgba(255, 255, 255, 0.6); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* About Section */
.about-section {
    background: var(--bg-secondary);
}

.about-content {
    text-align: center;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    animation: countUp 2s ease-out;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-muted);
    font-weight: 500;
}

@keyframes countUp {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

/* Experience Section */
.experience-section {
    background: var(--bg-primary);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0;
    margin-left: -50px;

}

.timeline::before {
    content: '';
    position: absolute;
    left: 35px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-left: 2rem;
    padding-left: 3.5rem;
    padding-bottom: 1.5rem;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-date {
    position: absolute;
    left: 5px;
    top: 0;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: var(--bg-primary);
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.7rem;
    z-index: 2;
    white-space: nowrap;
}

.timeline-content {
    background: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    transition: none;
}

.timeline-content:hover {
    transform: none;
    box-shadow: none;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.timeline-content h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.timeline-content p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.timeline-content ul {
    list-style: none;
    padding-left: 0;
}

.timeline-content li {
    color: var(--text-muted);
    margin-bottom: 0.1rem;
    position: relative;
    padding-left: 1.5rem;
}

.timeline-content li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 1.2rem;
    line-height: 1;
}

/* Education Section */
.education-section {
    background: var(--bg-secondary);
}

.education-timeline {
    position: relative;
    max-width: 800px;
    margin: 0;
    margin-left: -50px;
    padding-left: 0;
}

.education-timeline::before {
    content: '';
    position: absolute;
    left: 35px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--text-muted);
    transform: translateX(-50%);
}

.education-timeline .timeline-item {
    position: relative;
    margin-bottom: 0.5rem;
    padding-left: 70px;
}

.education-timeline .timeline-item:last-child {
    margin-bottom: 0;
}

.education-timeline .timeline-item::before {
    content: '';
    position: absolute;
    left: 35px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--accent-color);
    z-index: 1;
    transform: translateX(-50%);
}

.education-timeline .timeline-content {
    background: none;
    padding: 0;
    box-shadow: none;
}

.education-timeline .timeline-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
}

.education-timeline .timeline-date-alt {
    display: inline-block;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.education-timeline .timeline-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.education-timeline .timeline-content h4 .location {
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 0.5rem;
}

.education-timeline .timeline-content p {
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    line-height: 1.5;
}

.education-timeline .transcript-link {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
}

.education-timeline .transcript-link:hover {
    text-decoration: underline;
}

/* Certifications Section */
.certifications-section {
    background: var(--bg-primary);
}

.certifications-timeline {
    position: relative;
    max-width: 800px;
    margin: 0;
    margin-left: -50px;
    padding-left: 0;
}

.certifications-timeline::before {
    content: '';
    position: absolute;
    left: 35px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--text-muted);
    transform: translateX(-50%);
}

.certifications-timeline .timeline-item {
    position: relative;
    margin-bottom: 0.8rem;
    padding-left: 70px;
}

.certifications-timeline .timeline-item:last-child {
    margin-bottom: 0;
}

.certifications-timeline .timeline-item::before {
    content: '';
    position: absolute;
    left: 35px;
    top: 8px;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 1.5px solid var(--accent-color);
    z-index: 1;
}

.certifications-timeline .timeline-content {
    background: none;
    padding: 0;
    box-shadow: none;
    transition: none;
}

.certifications-timeline .cert-details h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    margin-bottom: 0rem;
}

.certifications-timeline .cert-details ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.certifications-timeline .cert-details li {
    color: var(--text-muted);
    margin-bottom: 0.05rem;
    position: relative;
    padding-left: 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
}

.certifications-timeline .cert-details li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 1.2rem;
    line-height: 1;
}

.cert-link {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--accent-color);
    margin-left: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    background-color: rgba(255, 215, 0, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.cert-link:hover {
    background-color: rgba(255, 215, 0, 0.2);
    color: var(--accent-color-hover);
}

/* Skills Section */
.skills-section {
    background: var(--bg-secondary);
}

.skills-timeline {
    position: relative;
    max-width: 800px;
    margin: 0;
    margin-left: -50px;
    padding-left: 0;
}

.skills-timeline::before {
    content: '';
    position: absolute;
    left: 35px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--text-muted);
    transform: translateX(-50%);
}

.skills-timeline .timeline-item {
    position: relative;
    margin-bottom: 0.05rem;
    padding-left: 70px;
}

.skills-timeline .timeline-item:last-child {
    margin-bottom: 0;
}

.skills-timeline .timeline-item::before {
    content: '';
    position: absolute;
    left: 35px;
    top: 4px;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 1px solid var(--accent-color);
    z-index: 1;
}

.skills-timeline .timeline-content {
    background: none;
    padding: 0;
    box-shadow: none;
    transition: none;
    
}

.skills-timeline .timeline-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.02rem;
}

.skills-timeline .timeline-content p {
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0;
    font-size: 1rem;
}

/* Projects Section */
.projects-section {
    background: var(--bg-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.project-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: var(--bg-primary);
    text-decoration: none;
    border-radius: 50%;
    transition: var(--transition);
}

.project-link:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    transform: scale(1.1);
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-credits {
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

/* Projects Section with Timeline Style */
.projects-section {
    background: var(--bg-primary);
}

.projects-timeline {
    position: relative;
    max-width: 800px;
    margin: 0;
    margin-left: -50px;
    padding-left: 0;
}

.projects-timeline::before {
    content: '';
    position: absolute;
    left: 35px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--text-muted);
    transform: translateX(-50%);
}

.projects-timeline .timeline-item {
    position: relative;
    margin-bottom: 0.5rem;
    padding-left: 70px;
}

.projects-timeline .timeline-item:last-child {
    margin-bottom: 0;
}

.projects-timeline .timeline-item::before {
    content: '';
    position: absolute;
    left: 35px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--accent-color);
    z-index: 1;
    transform: translateX(-50%);
}

.projects-timeline .timeline-content {
    background: none;
    padding: 0;
    box-shadow: none;
}

.projects-timeline .timeline-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
}

.projects-timeline .timeline-date-alt {
    display: inline-block;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.projects-timeline .timeline-content p {
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    line-height: 1.5;
    font-size: 1rem;
}

.project-tech {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.project-tech span {
    background: var(--bg-tertiary);
    color: var(--accent-color);
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
}

.project-links-simple {
    display: flex;
    gap: 1rem;
}

.project-links-simple a {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.project-links-simple a:hover {
    text-decoration: underline;
}

/* Interests Section */
.interests-section {
    background: var(--bg-secondary);
}

.interests-container {
    display: flex;
    justify-content: center;
    gap: 4rem;
    text-align: center;
}

.interest-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.interest-emoji {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.interest-item p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Contact Section */
.contact-section {
    background: var(--bg-primary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.contact-item i {
    color: var(--accent-color);
    margin-right: 1rem;
    width: 20px;
    text-align: center;
}

.contact-form {
    background: var(--bg-primary);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--bg-tertiary);
    border-radius: var(--border-radius);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--gradient-primary);
    color: var(--bg-primary);
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.5rem;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1001;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    transform: translateY(-5px);
}

/* Project Bullet List Style */
.project-bullet-list {
    list-style-type: disc;
    margin-left: 1rem;
    margin-bottom: 0.4rem;
}

.project-bullet-list li {
    color: var(--text-secondary);
    margin-bottom: 0.05rem;
    line-height: 1.2;
    font-size: 1rem;
}

/* Mobile Toggle Button Styles - Hamburger Menu */
.mobile-toggle {
    position: fixed !important;
    top: 2rem !important;
    right: 2rem !important;
    left: auto !important;
    z-index: 1001 !important;
    width: 50px !important;
    height: 50px !important;
    background: #000000 !important;
    border-radius: 50% !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    border: none !important;
    -webkit-tap-highlight-color: transparent !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
}

.mobile-toggle:hover {
    background: #333333 !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4) !important;
    transform: scale(1.1) !important;
}

.mobile-toggle:active {
    transform: scale(0.95) !important;
}

/* Hamburger Menu Lines */
.hamburger {
    width: 20px !important;
    height: 16px !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

.hamburger .line {
    width: 100% !important;
    height: 2px !important;
    background: #ffffff !important;
    border-radius: 2px !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    transform-origin: center !important;
}

/* Animation states for hamburger lines */
.mobile-toggle.active .line1 {
    transform: translateY(7px) rotate(45deg) !important;
}

.mobile-toggle.active .line2 {
    opacity: 0 !important;
    transform: scaleX(0) !important;
}

.mobile-toggle.active .line3 {
    transform: translateY(-7px) rotate(-45deg) !important;
}

/* Scroll to Top Button Styles */
.scroll-to-top {
    position: fixed !important;
    bottom: 2rem !important;
    right: 2rem !important;
    width: 50px !important;
    height: 50px !important;
    background: #000000 !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    font-size: 1.2rem !important;
    z-index: 1000 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    -webkit-tap-highlight-color: transparent !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
}

.scroll-to-top:hover {
    transform: scale(1.1) !important;
    background: #333333 !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4) !important;
}

.scroll-to-top:active {
    transform: scale(0.95) !important;
}

.scroll-to-top.visible {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .nav-link {
        padding: 1rem 1.25rem;
        min-height: 48px;
        display: flex;
        align-items: center;
    }
    
    .social-link {
        min-width: 44px;
        min-height: 44px;
    }
    
    .mobile-toggle {
        min-width: 48px !important;
        min-height: 48px !important;
    }
    
    .mobile-toggle:hover {
        transform: scale(1.1) !important;
        background: #333333 !important;
    }
    
    .scroll-to-top {
        min-width: 48px !important;
        min-height: 48px !important;
        width: 48px !important;
        height: 48px !important;
    }
}

/* Sidebar Animation Keyframes */
@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0.8;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    /* Show mobile toggle button on tablets and mobile */
    .mobile-toggle {
        display: flex !important;
    }
    
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
        will-change: transform;
    }
    
    .sidebar.open {
        transform: translateX(0);
        animation: slideInFromLeft 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    }
    
    /* Backdrop overlay when sidebar is open */
    .sidebar.open::after {
        content: '';
        position: fixed;
        top: 0;
        left: 280px;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.3);
        z-index: -1;
        animation: fadeIn 0.4s ease;
    }
    
    .main-content {
        margin-left: 0;
        padding: 0;
    }
    
    .section {
        padding: 2rem 1rem;
    }
    
    .container {
        max-width: 100%;
        padding: 0 2rem;
    }
    
    .hero-title {
        font-size: 3.5rem;
        text-align: center;
    }
    
    .hero-subtitle {
        text-align: center;
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2.2rem;
        text-align: center;
    }
    
    .stats {
        gap: 2rem;
        justify-content: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .cert-list {
        gap: 1.5rem;
    }
    
    /* Profile section adjustments for mobile */
    .profile-image {
        width: 150px;
        height: 150px;
    }
    
    .social-links {
        flex-wrap: wrap;
        gap: 0.6rem;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .section {
        padding: 4rem 1rem;
        min-height: auto;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .stats {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    
    .stat-item {
        text-align: center;
        width: 100%;
        max-width: 300px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin: 0;
        padding: 1.5rem;
        text-align: left;
    }
    
    .timeline::before {
        left: 1rem;
    }
    
    .timeline-date {
        left: 1rem;
        transform: none;
        position: relative;
        margin-bottom: 1rem;
    }
    
    .education-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .projects-grid,
    .interests-grid,
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cert-list {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cert-item {
        text-align: center;
        padding: 1rem;
    }
    
    /* Form styling for mobile */
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    .form-input,
    .form-textarea {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .submit-btn {
        width: 100%;
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    /* Navigation adjustments */
    .nav-menu {
        padding-top: 1rem;
    }
    
    .nav-link {
        padding: 0.8rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .profile-name {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .section {
        padding: 3rem 0.5rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .sidebar {
        width: 100%;
        padding: 1rem;
    }
    
    .profile-image {
        width: 120px;
        height: 120px;
        margin-bottom: 1rem;
    }
    
    .profile-name {
        font-size: 1.1rem;
    }
    
    .nav-link {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
    }
    
    .nav-link i {
        margin-right: 0.5rem;
        width: 18px;
    }
    
    .social-links {
        gap: 0.5rem;
    }
    
    .social-link {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .education-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .education-card {
        padding: 1.5rem;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        padding: 1rem;
    }
    
    .skill-item {
        margin-bottom: 1.5rem;
    }
    
    .skill-bar {
        height: 8px;
    }
    
    .project-card,
    .interest-card {
        padding: 1.5rem;
    }
    
    .project-card h3,
    .interest-card h3 {
        font-size: 1.1rem;
    }
    
    .form-input,
    .form-textarea {
        padding: 0.8rem;
        font-size: 0.95rem;
    }
    
    .submit-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
    
    /* Mobile-specific spacing adjustments */
    .stats {
        gap: 1rem;
    }
    
    .stat-item h3 {
        font-size: 1.5rem;
    }
    
    .stat-item span {
        font-size: 0.85rem;
    }
    
    /* Mobile overlay for better sidebar visibility */
    .sidebar.open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }
    
    /* Mobile menu adjustments for small screens */
    .mobile-toggle {
        width: 45px !important;
        height: 45px !important;
        top: 1rem !important;
        right: 1rem !important;
    }
    
    .hamburger {
        width: 18px !important;
        height: 14px !important;
    }
    
    .hamburger .line {
        height: 2px !important;
    }
    
    .mobile-toggle.active .line1 {
        transform: translateY(6px) rotate(45deg) !important;
    }
    
    .mobile-toggle.active .line3 {
        transform: translateY(-6px) rotate(-45deg) !important;
    }
    
    /* Sidebar backdrop adjustment for mobile */
    .sidebar.open::after {
        left: 100%;
    }
    
    /* Scroll to top button mobile adjustments */
    .scroll-to-top {
        bottom: 1rem !important;
        right: 1rem !important;
        width: 45px !important;
        height: 45px !important;
        font-size: 1rem !important;
    }
}
