/* Base Styles */
:root {
    --primary-color: rgb(0, 183, 255);
    --secondary-color: #6c757d;
    --text-color: #e9ecef;
    --light-bg: #1a1a1a;
    --dark-bg: #141414;
    --card-bg:red;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

html {
    scroll-behavior: smooth;
}

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

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #14181F;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    
}

nav ul {
    display: flex;

    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav a {
    color: #adb5bd;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

nav a:hover,
nav a.active {
    color: var(--primary-color);
    background: rgba(0, 183, 255, 0.1);
}

nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

nav a:hover::before,
nav a.active::before {
    width: 70%;
}

nav a:hover,
nav a.active {
    color: var(--primary-color);
    background: rgba(0, 183, 255, 0.1);
}

/* Responsive navigation */
@media (max-width: 768px) {
    nav ul {
        gap: 1rem;
    }

    nav a {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 1rem;
    }

    nav ul {
        gap: 0.5rem;
    }

    nav a {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
}

/* Section Styles */
section {
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1) 0%, transparent 100%);
    z-index: 1;
}

section > div {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

section h2 {
    font-size: 2.5rem;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 50px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

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

/* Common Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    gap: 10px;
}

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

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

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.2);
}

/* Card Styles */
.card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

/* Grid Layouts */
.grid {
    display: grid;
    gap: 30px;
}

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

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

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

/* Responsive Design */
@media (max-width: 1200px) {
    .grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .grid-3, .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    section {
        padding: 80px 20px;
    }
    
    section h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    
    section {
        padding: 60px 20px;
    }
    
    section h2 {
        font-size: 2rem;
    }
    
    nav ul {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    section {
        padding: 40px 20px;
    }
    
    section h2 {
        font-size: 1.8rem;
    }
    
    .btn {
        width: 100%;
    }
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #e9ecef;
        --light-bg: #1a1a1a;
        --card-bg: #2d2d2d;
    }
    
    body {
        background-color: var(--light-bg);
    }
    
    header {
        background: rgba(26, 26, 26, 0.95);
    }
    
    header.scrolled {
        background: rgba(26, 26, 26, 0.98);
    }
    
    nav a {
        color: var(--text-color);
    }
    
    .card {
        background: var(--card-bg);
    }
}

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

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 4rem; }

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

html {
    scroll-behavior: smooth; /* Fallback for browsers that support native smooth scrolling */
}

/* Body Styling */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f0f8ff;
    margin: 0;
    padding: 0;
}

/* Header Styling */
header {
    position: sticky;
    top: 0;
    background: #fff;
    padding: 10px 20px; /* Adjust padding if needed */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

nav {
    margin: 10px 0; /* Reduced margin between navbar and content */
}

nav a {
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
}

nav a:hover {
    background: #555;
}

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

nav ul li a {
    text-decoration: none;
    color: #007BFF;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: #007BFF;
    color: #fff;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
}

.section {
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Section Styling */
section {
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.05) 0%, rgba(0, 123, 255, 0.02) 100%);
    z-index: 1;
}

section > div {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

section h2 {
    font-size: 2.8rem;
    color: var(--text-color);
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
}

section hr {
    width: 80px;
    height: 4px;
    background-color: #007BFF;
    border: none;
    margin: 0 auto 50px;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    background-color: var(--dark-bg);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    padding-bottom: 30px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1) 0%, rgba(0, 123, 255, 0.05) 100%);
    z-index: 1;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.hero-image {
    flex: 1;
    text-align: center;
    position: relative;
    perspective: 1000px;
    
}

.hero-image::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;

    border-radius: 20px;
    z-index: -1;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.hero-image:hover img {
    transform: translateY(-10px) rotateY(5deg);
    box-shadow: 20px 20px 40px rgba(0, 123, 255, 0.2),
                -10px -10px 20px rgba(255, 255, 255, 0.8);
}

.hero-image::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #007BFF, transparent, #007BFF);
    border-radius: 15px;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.hero-image:hover::before {
    opacity: 0.5;
    animation: borderGlow 2s linear infinite;
}

@keyframes borderGlow {
    0%, 100% {
        filter: blur(10px);
        transform: scale(1);
    }
    50% {
        filter: blur(15px);
        transform: scale(1.02);
    }
}

.hero-content {
    flex: 1;
    max-width: 600px;
    padding: 20px 0;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.hero-content h1 span {
    color: var(--text-color);
    display: block;
    margin-top: 5px;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin: 15px 0;
    color: var(--text-color);
    font-weight: 600;
}

.hero-content p {
    font-size: 1.1rem;
    margin: 15px 0;
    line-height: 1.8;
    color: #adb5bd;
}

.hero-content p:first-of-type {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 25px;
}

.hero-buttons {
    margin-top: 35px;
    display: flex;
    gap: 20px;
}

.hero-buttons .btn {
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    color: #fff;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
}

.hero-buttons .btn.secondary {
    background-color: #333;
    border: 2px solid #333;
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.hero-buttons .btn.secondary:hover {
    background-color: transparent;
    color: #333;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments for hero section */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .hero-content {
        padding: 0;
    }
    
    .hero-content h1 {
        font-size: 2.4rem;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
}

/* About Section */
.about-section {
    background-color: var(--dark-bg);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 30px;
    padding-bottom: 30px;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.05) 0%, rgba(0, 123, 255, 0.02) 100%);
    z-index: 1;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 2;
}

.about-header {
    text-align: center;
    margin-bottom: 30px;
}

.about-header h2 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.about-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.about-subtitle {
    font-size: 1.1rem;
    color: #666;
    font-weight: 500;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: start;
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: rotate(-2deg);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        45deg,
        rgba(0, 123, 255, 0.2),
        transparent 40%,
        transparent 60%,
        rgba(0, 123, 255, 0.2)
    );
    opacity: 0;
    transition: all 0.6s ease;
}

.about-image:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 123, 255, 0.3),
        0 0 0 5px rgba(0, 123, 255, 0.1);
}

.about-image:hover::before {
    opacity: 1;
    animation: lightPass 1.5s ease-in-out infinite;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
    filter: brightness(1);
}

.about-image:hover img {
    transform: scale(1.1);
    filter: brightness(1.1) contrast(1.1);
}

@keyframes lightPass {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 30px;
    color: #fff;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.about-image:hover .image-overlay {
    transform: translateY(0);
}

.overlay-content h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.overlay-content p {
    font-size: 1rem;
    opacity: 0.9;
}

.experience-badge {
    position: absolute;
    bottom: -15px;
    right: -15px;
    background: var(--primary-color);
    color: #fff;
    padding: 12px 20px;
    border-radius: 40px;
    box-shadow: 0 8px 15px rgba(0, 123, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: rotate(2deg);
}

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

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

.about-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.about-intro {
    background: #14181C;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.intro-text {
    margin-bottom: 15px;
}

.greeting {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 500;
    display: block;
    margin-bottom: 8px;
}

.intro-text h3 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 8px;
}

.location {
    color: #adb5bd;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.bio {
    font-size: 1rem;
    line-height: 1.6;
    color: #adb5bd;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.stat-item {
    background: #15171A;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.stat-item i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color);
}

.stat-label {
    font-size: 0.85rem;
    color: #adb5bd;
}

.about-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.detail-card {
    background: #15171A;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.detail-card h4 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-card h4 i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.detail-card ul {
    list-style: none;
    padding: 0;
}

.detail-card ul li {
    padding: 6px 0;
    color: #adb5bd;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-card ul li:last-child {
    border-bottom: none;
}

.about-quote {
    margin-top: 15px;
}

.about-quote blockquote {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: relative;
}

.about-quote blockquote i {
    font-size: 1.8rem;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    top: 15px;
    left: 15px;
}

.about-quote blockquote p {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 12px;
    line-height: 1.5;
    padding-left: 15px;
}

.about-quote blockquote footer {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    text-align: right;
}

/* Skills Section */
.skills-section {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--light-bg) 100%);
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 30px;
}

.skills-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
}

.skills-container h2 {
    font-size: 2.5rem;
    color: rgb(0, 183, 255);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

.skills-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.skill-category {
    margin-bottom: 20px;
    background: #151920;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(0, 123, 255, 0.1), transparent, rgba(0, 123, 255, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 123, 255, 0.15);
}

.skill-category:hover::before {
    opacity: 1;
    animation: skillGlow 2s linear infinite;
}

@keyframes skillGlow {
    0%, 100% {
        filter: blur(8px);
        transform: scale(1);
    }
    50% {
        filter: blur(12px);
        transform: scale(1.02);
    }
}

.skill-category h3 {
    font-size: 1.6rem;
    color: var(--text-color);
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    display: inline-block;
    padding-left: 20px;
    transition: all 0.3s ease;
}

.skill-category:hover h3 {
    color: var(--primary-color);
    transform: translateX(5px);
}

.skill-category h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 25px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.skill-category:hover h3::before {
    height: 30px;
    background: linear-gradient(to bottom, var(--primary-color), #0056b3);
}

.skill-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 10px 0;
    transition: all 0.3s ease;
}

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

.skill-item {
    background: #151920;
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-width: 180px;
    border: 1px solid rgb(4, 191, 243);
    position: relative;
    overflow: hidden;
}

.skill-item::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: all 0.6s ease;
}

.skill-item:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        20px 20px 40px rgba(0, 123, 255, 0.2),
        -10px -10px 20px rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
}

.skill-item:hover::before {
    left: 100%;
}

.skill-item i {
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
}

.skill-item:hover i {
    transform: scale(1.1) rotate(5deg);
    color: #0056b3;
    animation: iconPulse 1s infinite;
}

@keyframes iconPulse {
    0% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.1) rotate(5deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

.skill-item span {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.skill-item:hover span {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* Projects Section */
.projects-section {
    background-color: #14181F;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.projects-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}
.projects-container h2{
    color: rgb(0, 183, 255);
}

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

@media (min-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1199px) and (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

.project-card {
    background: #14181F;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    perspective: 1000px;
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(0, 123, 255, 0.1), transparent, rgba(0, 123, 255, 0.1));
    border-radius: 15px;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.project-card:hover::before {
    opacity: 1;
    animation: projectBorderGlow 2s linear infinite;
}

@keyframes projectBorderGlow {
    0%, 100% {
        filter: blur(8px);
        transform: scale(1);
    }
    50% {
        filter: blur(12px);
        transform: scale(1.02);
    }
}

.project-card:hover {
    transform: translateY(-10px) rotateX(2deg);
    box-shadow: 
        20px 20px 40px rgba(0, 123, 255, 0.2),
        -10px -10px 20px rgba(255, 255, 255, 0.8);
}

.project-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    transform-style: preserve-3d;
}

.project-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 123, 255, 0.2),
        transparent 50%,
        rgba(0, 123, 255, 0.2)
    );
    opacity: 0;
    transition: all 0.5s ease;
    z-index: 2;
}

.project-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        45deg,
        rgba(0, 123, 255, 0.1),
        transparent 30%,
        transparent 70%,
        rgba(0, 123, 255, 0.1)
    );
    opacity: 0;
    transition: all 0.5s ease;
    z-index: 1;
}

.project-card:hover .project-image::before {
    opacity: 1;
    animation: shimmerEffect 2s infinite;
}

.project-card:hover .project-image::after {
    opacity: 1;
}

@keyframes shimmerEffect {
    0% {
        transform: translateX(-100%) rotate(-45deg);
    }
    100% {
        transform: translateX(100%) rotate(-45deg);
    }
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform-style: preserve-3d;
}

.project-card:hover .project-image img {
    transform: scale(1.1) translateY(-5px) rotateY(2deg);
    filter: brightness(1.1) contrast(1.1) saturate(1.1);
}

.project-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    background: #14181F;
    backdrop-filter: blur(5px);
}

.project-content h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 12px;
    font-weight: 600;
}

.project-content p {
    font-size: 1rem;
    color: #adb5bd;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

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

.project-tech span {
    background: rgba(61, 61, 61, 0.9);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.project-tech span::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: all 0.6s ease;
}

.project-tech span:hover {
    transform: translateY(-3px) scale(1.05);
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.project-tech span:hover::before {
    left: 100%;
}

.project-links {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.project-links .btn {
    flex: 1;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.95rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.project-links .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: all 0.6s ease;
    z-index: -1;
}

.project-links .btn:hover::before {
    left: 100%;
}

.project-links .btn:first-child {
    background: var(--primary-color);
    color: #fff;
}

.project-links .btn.secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 25px;
}

.project-links .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.2);
    border-radius: 25px;
}

/* Contact Section */
.contact-section {
    background-color: var(--dark-bg);
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.contact-card {
    background: #14181F;
    border-radius: 15px;
    padding: 30px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(0, 123, 255, 0.1), transparent, rgba(0, 123, 255, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.contact-card:hover::before {
    opacity: 1;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
    background: var(--primary-color);
    transform: rotate(5deg) scale(1.1);
}

.contact-icon i {
    font-size: 24px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon i {
    color: #fff;
    animation: bounce 0.5s ease infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    display: block;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.contact-info a:hover {
    color: #0056b3;
    transform: translateX(5px);
}

.contact-info p {
    color: #adb5bd;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.contact-cta {
    text-align: center;
    margin-top: 50px;
    padding: 40px;
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-cta p {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 25px;
    font-weight: 500;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.cta-buttons .btn {
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.cta-buttons .btn i {
    font-size: 1.2rem;
}

.cta-buttons .btn.primary {
    background: var(--primary-color);
    color: #fff;
}

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

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

/* Footer */
.footer {
    background-color: var(--card-bg);
    color: #fff;
    padding: 60px 20px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h3 {
    color: #fff;
    margin-bottom: 20px;
}

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

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #fff;
}

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

.social-links a {
    color: #adb5bd;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #495057;
}

/* Responsive Design */
@media (max-width: 992px) {
    section {
        padding: 80px 20px;
    }
    
    section h2 {
        font-size: 2.4rem;
    }
    
    .about-container,
    .contact-content {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 20px;
    }
    
    section h2 {
        font-size: 2rem;
    }
    
    .about-container,
    .contact-content {
        flex-direction: column;
        text-align: center;
    }
    
    .about-text h2,
    .about-text hr {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .about-image-container {
        max-width: 100%;
        margin-top: 40px;
    }
    
    .about-image img {
        height: 400px;
    }
    
    .skills-showcase {
        grid-template-columns: 1fr;
    }
    
    .skill-category {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    section {
        padding: 40px 20px;
    }
    
    section h2 {
        font-size: 1.8rem;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .project-links {
        flex-direction: column;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

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

.project-card,
.contact-form {
    animation: fadeIn 0.6s ease-out;
}

@media (max-width: 600px) {
    .container {
        width: 100%;
    }

    nav {
        display: block;
    }

    nav a {
        display: block;
        margin: 5px 0;
    }
}