/* General Styles */
:root {
    --primary-color: #4e54c8;
    --secondary-color: #8f94fb;
    --accent-color: #00ffff;
    --light-color: #ffffff;
    --dark-color: #0a192f;
    --navy-shadow: rgba(2, 12, 27, 0.7);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: var(--dark-color);
    color: var(--light-color);
}

/* Navbar Styles */
.navbar {
    background-color: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 10px 30px -10px var(--navy-shadow);
}

.navbar-toggler {
    border: none;
    padding: 0;
}

.navbar-toggler i {
    font-size: 1.5rem;
}

.navbar-brand {
    font-weight: 700;
    color: var(--accent-color) !important;
    font-size: 1.8rem;
    letter-spacing: 1px;
}

.nav-link {
    color: var(--light-color) !important;
    margin: 0 15px;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Sidebar */
.mobile-sidebar {
    position: fixed;
    right: -280px;
    top: 0;
    width: 280px;
    height: 100vh;
    background-color: rgba(10, 25, 47, 0.98);
    z-index: 1000;
    transition: 0.3s ease;
    box-shadow: -10px 0 30px -10px var(--navy-shadow);
}

.mobile-sidebar.active {
    right: 0;
}

.sidebar-content {
    padding: 80px 30px;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin: 20px 0;
}

.sidebar-nav a {
    color: var(--light-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: 0.3s ease;
    display: block;
    padding: 10px 0;
}

.sidebar-nav a:hover {
    color: var(--accent-color);
    transform: translateX(10px);
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    padding-top: 120px;
    background: linear-gradient(
        rgba(10, 25, 47, 0.9), 
        rgba(10, 25, 47, 0.95)
    ), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 500px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    transform: translateY(-50%) rotate(-12deg);
    opacity: 0.05;
}

.hero-section h1 {
    font-size: 4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
    .hero-section {
        padding-top: 100px; /* Adjusted padding for mobile */
        text-align: center;
        padding-bottom: 40px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
        margin-top: 20px; /* Added margin for better spacing */
    }
}

.card-item {
    position: relative;
    overflow: hidden;
}

.card-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: 0.3s ease;
}

.card-item:hover::before {
    opacity: 0.1;
}

/* About Section */
.section-padding {
    padding: 100px 0;
}

/* About Section */
.about-img {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.about-img img {
    border-radius: 20px;
    transition: transform 0.3s ease;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Remove the incorrect animation block from line 262 */
.about-img:hover img {
    transform: scale(1.05);
}

.experience-badge {
    position: absolute;
    right: -20px;
    bottom: 40px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.experience-badge .number {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.9rem;
    opacity: 0.9;
}

.about-content .section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.key-points {
    margin-top: 2rem;
}

.point {
    display: flex;
    align-items: center;
    margin: 1rem 0;
}

.point i {
    color: var(--accent-color);
    margin-right: 1rem;
    font-size: 1.2rem;
}

@media (max-width: 991px) {
    .about-img {
        margin-bottom: 3rem;
    }
    
    .experience-badge {
        right: 20px;
    }
}

/* Hero section p styles directly after media query */
.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease 0.3s;
    animation-fill-mode: both;
    opacity: 0.9;
}

/* Hero Cards */
.hero-image {
    position: relative;
    padding: 2rem;
}

.hero-shape {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    opacity: 0.1;
}

.hero-cards {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.card-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.card-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
}

.card-item i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.card-item h4 {
    font-size: 1.2rem;
    margin: 0;
}

/* Buttons */
.hero-btns {
    animation: fadeInUp 1s ease 0.6s;
    animation-fill-mode: both;
}

.hero-btns .btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
}

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

.hero-btns .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(78, 84, 200, 0.3);
}

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

/* Responsive Design */
@media (min-width: 992px) {
    .mobile-sidebar {
        display: none;
    }
}

@media (max-width: 991px) {
    .navbar-collapse {
        display: none !important;
    }
    
    .hero-cards {
        grid-template-columns: 1fr;
        margin-top: 3rem;
    }

    .hero-shape {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 80px 20px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-btns .btn {
        width: 100%;
    }
}

/* Skills Section */
.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    color: var(--light-color);
    opacity: 0.8;
}

.skill-category {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

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

.skill-category h3 {
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

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

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.progress {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    transition: width 1.5s ease;
}

@media (max-width: 768px) {
    .skill-category {
        margin-bottom: 1.5rem;
    }
}

/* Services Section */
.service-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    margin-bottom: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: 0.3s ease;
    z-index: 0;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card:hover::before {
    opacity: 0.1;
}

.service-card .icon-box {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.service-card p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 1;
}

.service-features li {
    margin: 0.8rem 0;
    display: flex;
    align-items: center;
}

.service-features li i {
    color: var(--accent-color);
    margin-right: 10px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .service-card {
        padding: 2rem 1.5rem;
    }
}

/* Portfolio Section */
.portfolio-filters {
    margin-bottom: 3rem;
}

.filter-btn {
    background: none;
    border: none;
    color: var(--light-color);
    padding: 8px 20px;
    margin: 0 5px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn.active, .filter-btn:hover {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: #ffffff;
}

.portfolio-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.portfolio-img {
    position: relative;
    overflow: hidden;
}

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

.portfolio-card:hover .portfolio-img img {
    transform: scale(1.1);
}

.portfolio-content {
    padding: 20px;
    text-align: center;
}

.portfolio-content h4 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.portfolio-content p {
    color: var(--light-color);
    opacity: 0.8;
    margin-bottom: 15px;
}

.portfolio-link {
    color: var(--accent-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.portfolio-link:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .filter-btn {
        margin-bottom: 10px;
    }
    
    .portfolio-img img {
        height: 200px;
    }
}

/* Contact Section */
.contact-info {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.contact-info h3 {
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-right: 1rem;
    margin-top: 5px;
}

.contact-item .details h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.contact-item .details p {
    opacity: 0.8;
    margin: 0;
}

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

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-color);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent-color);
    color: #ffffff;
    transform: translateY(-3px);
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

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

.form-control {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    color: var(--light-color);
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: none;
    border: none;
    color: var(--light-color);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

textarea.form-control {
    min-height: 120px;
    resize: none;
}

@media (max-width: 768px) {
    .contact-info {
        margin-bottom: 2rem;
    }
}

/* Footer Section */
.footer {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    padding: 80px 0 30px;
    position: relative;
}

.footer-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-info p {
    opacity: 0.8;
    margin-bottom: 2rem;
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 1rem;
}

.footer-links ul li a {
    color: var(--light-color);
    opacity: 0.8;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-links ul li a:hover {
    opacity: 1;
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-newsletter h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-newsletter p {
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.footer-newsletter form {
    position: relative;
}

.footer-newsletter input {
    width: 100%;
    padding: 12px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--light-color);
    margin-bottom: 1rem;
}

.footer-newsletter input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.copyright {
    opacity: 0.8;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer {
        padding: 50px 0 20px;
    }
    
    .footer-info, .footer-links, .footer-newsletter {
        margin-bottom: 2rem;
        text-align: center;
    }
}

/* Project Modal */
.modal-content {
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
}

.modal-title {
    color: var(--accent-color);
    font-size: 1.5rem;
}

.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.project-details {
    padding: 1rem;
}

.project-image {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.project-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--light-color);
}

.project-description {
    opacity: 0.8;
    margin-bottom: 2rem;
}

.project-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.info-item h6 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.preview-link {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.preview-link:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .project-info {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}