/* Global Styles */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --dark-color: #1f2937;
    --light-color: #f3f4f6;
    --text-color: #374151;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Navbar Styles */
.navbar {
    background-color: rgba(31, 41, 55, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: var(--transition);
    z-index: 1000;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link.active {
    color: var(--primary-color) !important;
}

.resume-btn {
    background-color: var(--primary-color);
    border-radius: 5px;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
}

.resume-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--dark-color) 0%, #111827 100%);
    color: white;
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-section .container {
    padding-top: 2rem;
}

.hero-section h1 {
    margin-top: 2rem;
    font-size: 2.5rem;
}

.hero-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.profile-image {
    position: relative;
    padding: 1rem;
    margin-top: 2rem;
}

.profile-image img {
    border: 4px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    max-width: 100%;
    height: auto;
}

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

/* Buttons */
.btn {
    padding: 0.8rem 1.5rem;
    font-weight: 500;
    border-radius: 5px;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-outline-light:hover {
    transform: translateY(-2px);
}

/* Social Links */
.social-links a {
    color: white;
    opacity: 0.8;
    transition: var(--transition);
}

.social-links a:hover {
    opacity: 1;
    transform: translateY(-3px);
}

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 4rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* Project Cards */
.project-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    height: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.project-image {
    position: relative;
    overflow: hidden;
    padding-top: 60%;
}

.project-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    padding: 1.5rem;
}

/* Animations */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* Typing Animation */
.typing-text {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--primary-color);
    animation: typing 3.5s steps(40, end),
               blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--primary-color) }
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .hero-section {
        text-align: center;
        padding: 6rem 0 3rem;
    }

    .hero-section h1 {
        font-size: 2.2rem;
        margin-top: 1rem;
    }

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

    .profile-image {
        margin: 2rem auto;
        max-width: 300px;
    }

    .cta-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .social-links {
        justify-content: center;
        margin-top: 2rem;
    }

    .btn {
        margin: 0.5rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding-top: 5rem;
    }

    .hero-section h1 {
        font-size: 2rem;
        margin-top: 0.5rem;
    }

    .hero-section h2 {
        font-size: 1rem;
    }

    .profile-image {
        max-width: 250px;
    }

    .btn {
        width: 100%;
        margin: 0.5rem 0;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Section Spacing */
section {
    padding: 6rem 0;
    position: relative;
}

section:nth-child(even) {
    background-color: var(--light-color);
}

/* Footer Styles */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 0;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.footer-social {
    margin-bottom: 2rem;
}

.footer-social a {
    color: white;
    font-size: 1.75rem;
    margin: 0 1rem;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-social a:hover {
    opacity: 1;
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 0;
}

/* Responsive Footer */
@media (max-width: 767.98px) {
    .footer {
        padding: 2rem 0;
    }

    .footer-social a {
        font-size: 1.5rem;
        margin: 0 0.75rem;
    }
}

/* Contact Section Styles */
.contact-section {
    background-color: var(--light-color);
}

.contact-card {
    background: white;
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--light-color);
    border-radius: 10px;
    transition: var(--transition);
}

.contact-info-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.icon-wrapper {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.icon-wrapper i {
    color: white;
    font-size: 1.25rem;
}

.contact-info-item .content {
    flex-grow: 1;
}

.contact-info-item h4 {
    color: var(--dark-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-info-item a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
    display: block;
}

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

.contact-message {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-message p {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Responsive Contact Section */
@media (max-width: 767.98px) {
    .contact-card {
        padding: 2rem;
    }

    .contact-info-item {
        padding: 1rem;
    }

    .icon-wrapper {
        width: 40px;
        height: 40px;
    }

    .icon-wrapper i {
        font-size: 1rem;
    }

    .contact-info-item h4 {
        font-size: 1rem;
    }

    .contact-info-item a {
        font-size: 0.9rem;
    }
}