* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #e8e8e8;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
nav {
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(15px);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

nav ul li {
    background: linear-gradient(45deg, #2a2a2a, #1a1a1a);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 12px 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

nav ul li a {
    text-decoration: none;
    color: #e8e8e8;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav ul li:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    background: linear-gradient(45deg, #3a3a3a, #2a2a2a);
    border-color: rgba(255, 255, 255, 0.2);
}

nav ul li.active {
    background: linear-gradient(45deg, #4a4a4a, #3a3a3a);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    text-align: center;
    color: #e8e8e8;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%);
    border-radius: 0 0 30px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.profile-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 8px solid rgba(255, 255, 255, 0.2);
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.profile-image:hover {
    transform: scale(1.05);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    color: #ffffff;
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: #b8b8b8;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #a0a0a0;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* Justify hero text paragraphs on the home page */
.hero-text p {
	text-align: justify;
	text-justify: inter-word;
	hyphens: auto;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, #4a4a4a, #3a3a3a);
    color: #ffffff;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 1s ease-out 0.4s both;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: linear-gradient(45deg, #5a5a5a, #4a4a4a);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Content Sections */
.content-section {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    margin: 40px 0;
    padding: 60px 0;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #ffffff;
    position: relative;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #4a4a4a, #6a6a6a);
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.skill-card {
    background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

.skill-card h3 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    color: #e8e8e8;
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-text {
    margin-top: 10px;
    opacity: 0.7;
    color: #a0a0a0;
}

/* Legacy Icons - Keeping for backwards compatibility, but using Material Icons instead */
.icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: middle;
    margin-right: 0.5em;
}

/* Material Icons font integration */
.material-icons {
	font-family: 'Material Icons';
	font-weight: normal;
	font-style: normal;
	font-size: 24px;
	line-height: 1;
	letter-spacing: normal;
	text-transform: none;
	display: inline-block;
	white-space: nowrap;
	word-wrap: normal;
	direction: ltr;
	font-feature-settings: 'liga';
	-webkit-font-feature-settings: 'liga';
	-webkit-font-smoothing: antialiased;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About Page Styles */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #b8b8b8;
}

.about-text p {
    margin-bottom: 20px;
}

/* Justify paragraphs in About section for improved readability */
.about-text p {
	text-align: justify;
	text-justify: inter-word;
	hyphens: auto;
}

.about-title {
    text-align: left;
    margin-bottom: 30px;
    color: #ffffff;
}

.about-image {
    text-align: center;
}

.about-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.stat-card {
    background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #6a6a6a;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.stat-label {
    color: #b8b8b8;
    font-size: 1.1rem;
}

/* Contact Page Styles */
.contact-section {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    margin: 40px 0;
    padding: 60px 0;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #ffffff;
    position: relative;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.contact-info h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #4a4a4a, #6a6a6a);
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
    border-radius: 15px;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #4a4a4a, #3a3a3a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    color: #ffffff;
    font-size: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-details h3 {
    color: #ffffff;
    margin-bottom: 5px;
}

.contact-details p {
    color: #b8b8b8;
}

/* Form Styles */
.contact-form {
    background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background: #2a2a2a;
    color: #e8e8e8;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6a6a6a;
    box-shadow: 0 0 0 3px rgba(106, 106, 106, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: linear-gradient(45deg, #4a4a4a, #3a3a3a);
    color: #ffffff;
    padding: 15px 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: linear-gradient(45deg, #5a5a5a, #4a4a4a);
    border-color: rgba(255, 255, 255, 0.3);
}

.form-title {
    margin-bottom: 30px;
    color: #ffffff;
}

/* Experience Page Styles */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: linear-gradient(45deg, #4a4a4a, #6a6a6a);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.timeline-item {
    padding: 20px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background: linear-gradient(45deg, #4a4a4a, #6a6a6a);
    border: 4px solid #2a2a2a;
    top: 30px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.3);
}

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

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

.timeline-content {
    padding: 30px;
    background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
    position: relative;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

.timeline-content h3 {
    color: #ffffff;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.timeline-content h4 {
    color: #6a6a6a;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.timeline-content .date {
    color: #b8b8b8;
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.timeline-content p {
    color: #b8b8b8;
    line-height: 1.6;
}

.achievements {
    margin-top: 15px;
}

.achievements ul {
    list-style: none;
    padding-left: 0;
}

.achievements li {
    color: #b8b8b8;
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.achievements li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #6a6a6a;
    font-weight: bold;
}

/* Gallery Page Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h3 {
    color: white;
    font-size: 1.5rem;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    margin-top: 5%;
    border-radius: 10px;
}

.modal-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: white;
    padding: 10px 0;
    font-size: 1.2rem;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #3498db;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Projects Page Styles */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.project-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #4a4a4a 0%, #3a3a3a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Enlarge Material Icons inside project thumbnails */
.project-image .material-icons {
	font-size: 56px;
	line-height: 1;
	color: #ffffff;
}

.project-content {
    padding: 30px;
}

.project-content h3 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.project-content p {
    color: #b8b8b8;
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-tag {
    background: linear-gradient(45deg, #4a4a4a, #3a3a3a);
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-link {
    background: linear-gradient(45deg, #4a4a4a, #3a3a3a);
    color: #ffffff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.project-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #5a5a5a, #4a4a4a);
    border-color: rgba(255, 255, 255, 0.3);
}

.project-link.secondary {
    background: linear-gradient(45deg, #4a4a4a, #3a3a3a);
}

.project-link.secondary:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #5a5a5a, #4a4a4a);
}

/* Resume Page Styles */
.download-btn {
    display: inline-block;
    background: linear-gradient(45deg, #4a4a4a, #3a3a3a);
    color: #ffffff;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 1s ease-out 0.4s both;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: linear-gradient(45deg, #5a5a5a, #4a4a4a);
    border-color: rgba(255, 255, 255, 0.3);
}

.resume-section {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    margin: 40px 0;
    padding: 60px 0;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.resume-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.resume-viewer {
    background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.resume-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.fullscreen-btn {
    background: linear-gradient(45deg, #4a4a4a, #3a3a3a);
    color: #ffffff;
    padding: 15px 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.fullscreen-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: linear-gradient(45deg, #5a5a5a, #4a4a4a);
    border-color: rgba(255, 255, 255, 0.3);
}

.pdf-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pdf-container iframe {
    border-radius: 15px;
    transition: all 0.3s ease;
}

.pdf-fallback {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
    border-radius: 15px;
    color: #b8b8b8;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pdf-fallback p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* Fullscreen styles */
.pdf-container.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: #1a1a1a;
    border-radius: 0;
    border: none;
}

.pdf-container.fullscreen iframe {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

/* Loading state */
.pdf-container.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #2a2a2a;
    border-top: 4px solid #6a6a6a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Skills Page Styles */
.skill-category {
    background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.skill-category h3 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.skill-tag {
    background: linear-gradient(45deg, #4a4a4a, #3a3a3a);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: transform 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.skill-tag:hover {
    transform: scale(1.05);
    background: linear-gradient(45deg, #5a5a5a, #4a4a4a);
    border-color: rgba(255, 255, 255, 0.3);
}

.skill-level {
    margin-top: 20px;
    text-align: left;
}

.skill-item {
    margin-bottom: 15px;
}

.skill-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-weight: 600;
}

.skill-bar {
    height: 8px;
    background: #2a2a2a;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-progress {
    height: 100%;
    background: linear-gradient(45deg, #4a4a4a, #6a6a6a);
    border-radius: 4px;
    transition: width 1s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.skill-progress.js { width: 90%; }
.skill-progress.react { width: 85%; }
.skill-progress.typescript { width: 80%; }
.skill-progress.nextjs { width: 75%; }
.skill-progress.flutter { width: 75%; }
.skill-progress.node { width: 90%; }
.skill-progress.express { width: 85%; }
.skill-progress.mongodb { width: 80%; }
.skill-progress.php { width: 85%; }
.skill-progress.mysql { width: 70%; }
.skill-progress.java { width: 85%; }
.skill-progress.cpp { width: 80%; }
.skill-progress.csharp { width: 50%; }
.skill-progress.graphics { width: 80%; }
.skill-progress.video { width: 75%; }
.skill-progress.docker { width: 70%; }
.skill-progress.git { width: 90%; }

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        gap: 10px;
    }
    
    nav ul li {
        padding: 8px 15px;
    }
    
    nav ul li a {
        font-size: 14px;
    }
    
    .hero-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .profile-image {
        width: 250px;
        height: 250px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .timeline::after {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 20px;
    }
    
    .timeline-item::after {
        left: 10px;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* ——— HCI-focused modern navbar ——— */
:root {
	--nav-height: 70px;
	--link-color: #ffffff;
	--link-muted: #cccccc;
	--accent: #ffffff; /* Pure white accent for black/white theme */
	--bg-blur: rgba(0, 0, 0, 0.95);
	--shadow-strong: 0 4px 20px rgba(0, 0, 0, 0.8);
	--transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
	--transition-smooth: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

.skip-link {
	position: absolute;
	left: 8px;
	top: -40px;
	background: #000000;
	color: #ffffff;
	padding: 12px 16px;
	border-radius: 6px;
	border: 2px solid #ffffff;
	box-shadow: 0 4px 12px rgba(0,0,0,0.6);
	transition: top var(--transition-fast);
	z-index: 1100;
	font-weight: 600;
	text-decoration: none;
}
.skip-link:focus {
	top: 12px;
	outline: 3px solid #ffffff;
	outline-offset: 2px;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	height: var(--nav-height);
	backdrop-filter: blur(20px) saturate(180%);
	background: var(--bg-blur);
	box-shadow: var(--shadow-strong);
	border-bottom: 2px solid rgba(255, 255, 255, 0.15);
	transition: all var(--transition-smooth);
}

.nav-container {
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	position: relative;
	/* Ensure full-bleed width regardless of the global .container */
	max-width: none;
	width: 100%;
	padding-left: 16px;
	padding-right: 16px;
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 2px;
	position: relative;
	margin: 0 auto;
}

.nav-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 48px;
	padding: 0 16px;
	border-radius: 8px;
	color: var(--link-muted);
	text-decoration: none;
	transition: all var(--transition-smooth);
	font-weight: 500;
	font-size: 14px;
	letter-spacing: 0.3px;
}

.nav-link .material-icons {
	font-size: 20px;
	transition: transform var(--transition-fast);
}

.nav-link .nav-text {
	transition: opacity var(--transition-fast);
}

.nav-link:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 2px;
}

.nav-link:hover {
	color: var(--link-color);
	background: rgba(255, 255, 255, 0.1);
	transform: translateY(-2px);
}

.nav-link:hover .material-icons {
	transform: scale(1.15);
}

.nav-link.active {
	color: var(--link-color);
	background: rgba(255, 255, 255, 0.15);
	font-weight: 600;
}

.nav-link.active .material-icons {
	transform: scale(1.1);
}

.nav-link::after {
	content: "";
	position: absolute;
	left: 16px;
	right: 16px;
	bottom: 8px;
	height: 2px;
	background: #ffffff;
	opacity: 0;
	transform: scaleX(0);
	transform-origin: center;
	transition: all var(--transition-smooth);
	border-radius: 1px;
}

.nav-link:hover::after,
.nav-link.active::after {
	opacity: 1;
	transform: scaleX(1);
}

/* Hamburger (CSS-only) */
.nav-toggle { display: none; }
.nav-toggle-btn {
	position: absolute;
	right: 20px;
	width: 32px;
	height: 24px;
	display: none;
	flex-direction: column;
	justify-content: space-between;
	cursor: pointer;
	z-index: 1001;
	padding: 4px;
}

.nav-toggle-btn span {
	display: block;
	height: 3px;
	background: #ffffff;
	border-radius: 2px;
	transition: all var(--transition-smooth);
	width: 100%;
}

@media (max-width: 900px) {
	.nav-container {
		justify-content: flex-end;
		padding-right: 20px;
	}
	
	.site-nav {
		position: fixed;
		top: var(--nav-height);
		left: 0;
		right: 0;
		display: grid;
		grid-template-columns: 1fr;
		gap: 4px;
		background: rgba(0, 0, 0, 0.98);
		backdrop-filter: blur(20px);
		transform: translateY(-20px);
		opacity: 0;
		pointer-events: none;
		transition: all var(--transition-smooth);
		padding: 12px 16px 16px;
		box-shadow: 0 8px 32px rgba(0, 0, 0, 0.9);
		border-bottom: 2px solid rgba(255, 255, 255, 0.15);
	}
	
	.nav-link { 
		height: 52px; 
		border-radius: 8px; 
		padding: 0 20px;
		justify-content: flex-start;
	}
	
	.nav-toggle-btn { 
		display: flex; 
	}
	
	.nav-link::after { 
		display: none; 
	}

	.nav-toggle:checked ~ .site-nav {
		transform: translateY(0);
		opacity: 1;
		pointer-events: auto;
	}
	
	.nav-toggle:checked + .nav-toggle-btn span:nth-child(1) { 
		transform: translateY(10px) rotate(45deg); 
	}
	.nav-toggle:checked + .nav-toggle-btn span:nth-child(2) { 
		opacity: 0;
		transform: translateX(-10px);
	}
	.nav-toggle:checked + .nav-toggle-btn span:nth-child(3) { 
		transform: translateY(-10px) rotate(-45deg); 
	}
}

/* Desktop: force perfect visual centering of navbar */
@media (min-width: 901px) {
	/* Desktop: full-width header, flex centering for nav */
	.site-header { width: 100%; }
	.nav-container {
		display: flex;
		align-items: center;
		justify-content: center;
		max-width: none;
		width: 100%;
		padding-left: 32px;
		padding-right: 32px;
	}
	.site-nav {
		display: flex;
		justify-content: center;
		margin-left: 0;
		margin-right: 0;
		margin-inline: auto;
		width: auto; /* keep natural width for perfect centering */
		gap: 10px;
	}
	.nav-toggle-btn { display: none; position: static; }
}

/* Material Icons Styling */
.contact-icon .material-icons {
	font-size: 24px;
	color: #ffffff;
	transition: transform var(--transition-smooth);
}

.contact-item:hover .contact-icon .material-icons {
	transform: scale(1.2) rotate(5deg);
}

/* Advanced Animation Enhancements */
@keyframes slideInFromBottom {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fadeInScale {
	from {
		opacity: 0;
		transform: scale(0.95);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

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

/* Enhanced Card Animations */
.skill-card,
.project-card,
.contact-item,
.timeline-content,
.stat-card,
.gallery-item {
	animation: fadeInScale 0.6s ease-out forwards;
	opacity: 0;
}

.skill-card:nth-child(1) { animation-delay: 0.1s; }
.skill-card:nth-child(2) { animation-delay: 0.2s; }
.skill-card:nth-child(3) { animation-delay: 0.3s; }
.skill-card:nth-child(4) { animation-delay: 0.4s; }
.skill-card:nth-child(5) { animation-delay: 0.5s; }
.skill-card:nth-child(6) { animation-delay: 0.6s; }

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }
.project-card:nth-child(6) { animation-delay: 0.6s; }

/* Enhanced Hover Effects */
.skill-card:hover,
.project-card:hover,
.stat-card:hover {
	transform: translateY(-8px) scale(1.02);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

/* Smooth Scroll Behavior */
html {
	scroll-behavior: smooth;
}

/* Justify paragraphs in Experience and Projects pages */
.timeline-content p,
.project-content p {
	text-align: justify;
	text-justify: inter-word;
	hyphens: auto;
}

/* Enhanced Button Animations */
.cta-button,
.submit-btn,
.download-btn,
.fullscreen-btn {
	position: relative;
	overflow: hidden;
}

.cta-button::before,
.submit-btn::before,
.download-btn::before,
.fullscreen-btn::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;
}

.cta-button:hover::before,
.submit-btn:hover::before,
.download-btn:hover::before,
.fullscreen-btn:hover::before {
	left: 100%;
}

/* Enhanced Profile Image */
.profile-image {
	animation: fadeInUp 1s ease-out 0.3s both, fadeInScale 1.2s ease-out 0.3s both;
}

/* Section Title Animation */
.section-title {
	animation: slideInFromBottom 0.8s ease-out;
}

/* Content Section Animation */
.content-section,
.contact-section,
.resume-section {
	animation: fadeInScale 0.8s ease-out;
}

/* Reduce motion for users preferring less animation */
@media (prefers-reduced-motion: reduce) {
	* { 
		transition: none !important; 
		animation: none !important; 
	}
	html {
		scroll-behavior: auto;
	}
}