/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2d3436;
    --secondary-color: #0984e3;
    --accent-color: #00b894;
    --text-color: #2d3436;
    --bg-color: #f5f6fa;
    --white: #ffffff;
    --card-bg: #ffffff;
    --success-color: #00b894;
    --error-color: #d63031;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    --gradient: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
}

/* Dark theme colors */
[data-theme="dark"] {
    --primary-color: #f5f6fa;
    --secondary-color: #74b9ff;
    --accent-color: #00b894;
    --text-color: #f5f6fa;
    --bg-color: #2d3436;
    --white: #ffffff;
    --card-bg: #353b48;
    --success-color: #00b894;
    --error-color: #ff7675;
    --box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    --footer-bg: #1a1b26; /* Added footer background color for dark mode */
}

[data-theme="dark"] .header {
    background-color: rgba(26, 27, 38, 0.95);
}

[data-theme="dark"] .portfolio-title {
    color: var(--text-color);
}

[data-theme="dark"] .about {
    background-color: var(--bg-color);
}

[data-theme="dark"] .contact {
    background: linear-gradient(135deg, var(--bg-color) 0%, #1e272e 100%);
}

[data-theme="dark"] .contact-form {
    background-color: var(--card-bg);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
    background-color: var(--bg-color);
    color: var(--text-color);
}

[data-theme="dark"] .theme-toggle {
    background-color: var(--card-bg);
    color: var(--text-color);
}

[data-theme="dark"] .modal-content {
    background-color: var(--card-bg);
}

[data-theme="dark"] .modal-title,
[data-theme="dark"] .modal-description {
    color: var(--text-color);
}

[data-theme="dark"] .portfolio-item {
    background-color: var(--card-bg);
}

[data-theme="dark"] .skill-category {
    background-color: var(--card-bg);
}

[data-theme="dark"] .skill-item {
    background-color: var(--bg-color);
    color: var(--text-color);
}

[data-theme="dark"] .stat-item {
    background-color: var(--card-bg);
}

[data-theme="dark"] .hero {
    background: linear-gradient(135deg, var(--bg-color) 0%, #1e272e 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header Styles */
.header {
    background-color: #1c1c1e; /* Dark background */
    border-radius: 50px; /* Pill shape */
    margin: 20px auto;
    padding: 5px;
    max-width: 80%; /* Adjust as needed */
    position: fixed;
    top: 10px; /* Slight offset from top */
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, box-shadow 0.3s ease; /* Add transition */
}

.header.scrolled {
    background-color: rgba(28, 28, 30, 0.85); /* Slightly transparent on scroll */
    backdrop-filter: blur(10px);
}

.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    width: 100%;
    position: relative;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 3px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.logo:hover::after {
    width: 100%;
}

.nav-links {
    display: flex;
    gap: 1rem; /* Adjust gap */
    padding: 8px 10px; /* Adjust padding */
    position: relative;
}

.nav-indicator {
    position: absolute;
    background-color: #ffffff;
    height: 100%; /* Cover full link height */
    top: 0;
    border-radius: 50px;
    z-index: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.15);
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px; /* Adjust padding */
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    white-space: nowrap; /* Prevent wrapping */
}

.nav-links a.active {
    color: #000000; /* Black text when active */
    font-weight: 600;
}

.nav-links a:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.1); /* Subtle hover */
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 150px 0 100px;
    background: linear-gradient(135deg, var(--white) 0%, var(--bg-color) 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6rem;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
    max-width: 550px;
}

.hero-text h1 {
    font-size: clamp(3.5rem, 6vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--primary-color);
    display: block;
    font-weight: 700;
    white-space: nowrap;
}

.hero-text h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--secondary-color);
    margin: 1rem 0 1.5rem;
    display: block;
}

.hero-image {
    flex: 1;
    max-width: 500px;
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 5px solid var(--white);
    object-fit: cover;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--accent-color);
    border-radius: 20px;
    z-index: -1;
}

.hero-image:hover img {
    transform: perspective(1000px) rotateY(0deg);
}

.hero-image:hover::before {
    top: -15px;
    left: -15px;
}

/* Typing Animation Styles */
.typing-text {
    display: inline-block;
    min-width: 300px;
    color: var(--accent-color);
    font-weight: 500;
    position: relative;
}
.typewrite{
    display: inline-block;
    min-width: 300px;
    color: var(--accent-color);
    font-weight: 500;
    position: relative;
}

.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background-color: var(--secondary-color);
    margin-left: 2px;
    animation: blink 1s step-end infinite;
    will-change: opacity;
}

@keyframes blink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    margin-right: 0;
}

.highlight {
    color: var(--secondary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    margin-right: 1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.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: var(--transition);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-download {
    background-color: var(--accent-color);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-download i {
    font-size: 1.2rem;
    transition: var(--transition);
}

.btn-download:hover i {
    transform: translateY(3px);
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

/* About Section */
.about {
    padding: 150px 0;
    background-color: var(--white);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect width="100" height="100" fill="none"/><path d="M0,0 L100,0 L100,100 L0,100 Z" fill="%23f9f9f9" opacity="0.1"/></svg>');
    opacity: 0.1;
}

.section-title {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

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

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--box-shadow);
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg-color);
    border-radius: 15px;
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.stat-text {
    font-size: 1.2rem;
    color: var(--text-color);
    font-weight: 500;
}

/* Skills Section */
.skills {
    padding: 150px 0;
    background-color: var(--bg-color);
    position: relative;
}

.skills-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
}

.skill-category {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.skill-category:hover {
    transform: translateY(-10px);
}

.skill-category h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    position: relative;
}

.skill-category h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-item {
    background-color: var(--bg-color);
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.skill-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: var(--transition);
}

.skill-item:hover {
    transform: translateY(-5px);
}

.skill-item:hover::after {
    transform: scaleX(1);
}

/* Portfolio Section */
.portfolio {
    padding: 150px 0;
    background-color: var(--bg-color);
    position: relative;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.portfolio-item {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    box-shadow: var(--box-shadow);
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.portfolio-item:hover::before {
    opacity: 0.8;
}

.portfolio-item:hover .portfolio-content {
    transform: translateY(-20px);
}

.portfolio-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

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

.portfolio-content {
    padding: 2rem;
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.portfolio-tag {
    background: rgba(122, 162, 247, 0.1);
    color: var(--secondary-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.portfolio-tag:hover {
    background: var(--secondary-color);
    color: var(--white);
}
.portfolio-item:hover .portfolio-title{
    color: white;
}
.portfolio-title {
    font-size: 1.5rem;
    color: black;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.portfolio-description {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.portfolio-links {
    display: flex;
    gap: 1rem;
}

.portfolio-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: rgba(122, 162, 247, 0.1);
    transition: var(--transition);
}

.portfolio-link:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.portfolio-link i {
    font-size: 1.2rem;
}

/* Project Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 27, 38, 0.9);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    background: var(--card-bg);
    max-width: 900px;
    margin: 2rem auto;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    animation: modalFadeIn 0.3s ease;
    transform: scale(0.9);
    opacity: 0;
    transition: var(--transition);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--secondary-color);
    transform: rotate(90deg);
}

.modal-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}

.modal-body {
    padding: 2rem;
}

.modal-title {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.modal-description {
    color: var(--text-color);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.modal-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.modal-feature {
    background: rgba(122, 162, 247, 0.1);
    padding: 1rem;
    border-radius: 10px;
    color: var(--white);
}

.modal-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Dark Mode Toggle */
.theme-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--card-bg);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    z-index: 1000;
}

[data-theme="dark"] .theme-toggle {
    color: var(--white);
}

.theme-toggle:hover {
    transform: translateY(-5px);
    background: var(--secondary-color);
    color: var(--white);
}

.theme-toggle i {
    transition: var(--transition);
}

.theme-toggle:hover i {
    transform: rotate(180deg);
}

/* Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    position: relative;
    width: 50px;
    height: 50px;
}

.loading-spinner::before,
.loading-spinner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--secondary-color);
    animation: spin 1s linear infinite;
}

.loading-spinner::after {
    border-top-color: var(--accent-color);
    animation-delay: -0.5s;
}

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

/* Contact Section */
.contact {
    padding: 150px 0;
    background: linear-gradient(135deg, var(--white) 0%, var(--bg-color) 100%);
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid transparent;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(9, 132, 227, 0.1);
}

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

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 50px 0;
    text-align: center;
    position: relative;
}

[data-theme="dark"] .footer {
    background-color: var(--footer-bg);
    color: var(--text-color);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    transition: var(--transition);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .social-links a {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
}

[data-theme="dark"] .social-links a:hover {
    background: var(--secondary-color);
    color: var(--white);
}

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

.animate {
    animation: fadeInUp 0.6s ease forwards;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }

    .hero-content {
        gap: 4rem;
    }
    
    .hero-image {
        max-width: 450px;
    }

    .about-content {
        gap: 3rem;
    }
}

@media (max-width: 992px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-text {
        max-width: 100%;
    }
    
    .hero-image {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .skills-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header {
        max-width: 100%;
        padding: 10px;
        border-radius: 0;
        top: 0;
        background-color: rgba(28, 28, 30, 0.95);
        backdrop-filter: blur(10px);
    }

    .nav-links {
        gap: 0.3rem;
    }

    .nav-links a {
        padding: 6px 10px;
        font-size: 0.85rem;
    }

    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }
    
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2rem;
        padding: 0 15px;
    }
    
    .hero-text {
        max-width: 100%;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
        white-space: normal;
        line-height: 1.2;
    }
    
    .hero-text h2 {
        font-size: 1.5rem;
        margin: 0.5rem 0 1rem;
    }

    .hero-image {
        max-width: 280px;
        margin: 0 auto;
    }

    .hero-image img {
        border-width: 3px;
    }

    .hero-buttons {
        justify-content: center;
        gap: 0.8rem;
    }

    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    .resume-btn {
        position: fixed;
        top: 20px;
        right: 20px;
        padding: 8px 16px;
        font-size: 0.85rem;
        background-color: var(--white);
        color: var(--accent-color);
        border: 2px solid var(--accent-color);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .resume-btn:hover {
        background-color: var(--accent-color);
        color: var(--white);
    }

    .resume-btn i {
        font-size: 1rem;
    }

    .typing-text, .typewrite {
        min-width: auto;
        width: 100%;
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .about-text h3 {
        font-size: 1.8rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        margin: 1rem;
    }

    .contact-form {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 20px;
    }

    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-content {
        padding: 0;
    }
    
    .hero-image {
        max-width: 250px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-text h3 {
        font-size: 1.5rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .skill-category {
        padding: 2rem;
    }

    .portfolio-item {
        margin-bottom: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .social-links {
        gap: 1rem;
    }

    .social-link {
        width: 35px;
        height: 35px;
    }

    .header {
        max-width: 98%;
        padding: 2px;
    }

    .nav-links {
        gap: 0.1rem;
    }

    .nav-links a {
        padding: 6px 8px;
        font-size: 0.8rem;
    }

    .resume-btn {
        width: 40px;
        height: 40px;
        padding: 0;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        top: 15px;
        right: 15px;
        transition: all 0.3s ease;
    }

    .resume-text {
        width: 0;
        opacity: 0;
        visibility: hidden;
        position: absolute;
    }

    .resume-btn i {
        margin: 0;
        font-size: 1.2rem;
    }
}

/* Very Small Screens */
@media (max-width: 360px) {
    .container {
        padding: 0 15px;
    }

    .header {
        padding: 8px;
    }

    .nav-links {
        gap: 0.2rem;
    }

    .nav-links a {
        padding: 5px 8px;
        font-size: 0.75rem;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text h2 {
        font-size: 1.2rem;
    }

    .hero-image {
        max-width: 220px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .about-text h3 {
        font-size: 1.3rem;
    }

    .skill-category {
        padding: 1.5rem;
    }

    .skill-item {
        padding: 8px 15px;
        font-size: 0.85rem;
    }

    .portfolio-title {
        font-size: 1.3rem;
    }

    .portfolio-description {
        font-size: 0.9rem;
    }

    .contact-form {
        padding: 1.2rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 12px;
        font-size: 0.9rem;
    }
}

/* Fix for iPhone SE and similar small devices */
@media (max-width: 375px) and (max-height: 667px) {
    .hero {
        padding: 80px 0 40px;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-text h2 {
        font-size: 1.1rem;
    }

    .hero-image {
        max-width: 200px;
    }

    .nav-links a {
        padding: 4px 6px;
        font-size: 0.7rem;
    }

    .btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .resume-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* Landscape Mode Fixes */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 60px 0;
    }

    .hero-content {
        flex-direction: row;
        gap: 2rem;
    }

    .hero-image {
        max-width: 200px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text h2 {
        font-size: 1.2rem;
    }

    .resume-btn {
        bottom: 15px;
        right: 15px;
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}

/* Resume Button */
.resume-btn {
    position: fixed;
    top: 25px;
    right: 25px;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    z-index: 1002;
}

.resume-btn i {
    font-size: 1.2rem;
    transition: var(--transition);
}

.resume-text {
    display: inline-block;
    transition: var(--transition);
}

.resume-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.resume-btn:hover i {
    transform: translateY(2px);
} 
