/* 
   Professional Blue and White/Gray Portfolio for Deepak Kushwaha
   Modern and Clean Design with Attractive Colors
*/

/* Base Styles and Variables */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f0f5ff;
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --accent-color: #1e40af;
    --accent-light: #3b82f6;
    --accent-secondary: #0ea5e9;
    --border-color: #cbd5e1;
    --card-bg: #ffffff;
    --transition: all 0.3s ease;
    --gradient: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    --gradient-secondary: linear-gradient(135deg, var(--accent-light), var(--accent-secondary));
    --box-shadow: 0 10px 25px rgba(59, 130, 246, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    background: linear-gradient(135deg, rgba(240, 245, 255, 0.5) 0%, rgba(255, 255, 255, 1) 100%);
}

a {
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 2;
}

.section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 60px;
    text-align: center;
    position: relative;
    color: var(--accent-color);
}

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

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition);
    font-size: 14px;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.5s ease;
    z-index: -1;
}

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

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

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

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

/* Animation for AOS fallback */
.revealed {
    animation: fadeInUp 1s ease forwards;
}

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

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0);
}

#navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.1);
}

#navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient);
    border-radius: 5px;
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    position: relative;
    padding: 5px 0;
    font-weight: 500;
    color: var(--text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--gradient);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-light);
}

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

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 5px 0;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--bg-primary);
    padding-top: 70px;
    position: relative;
    background: linear-gradient(135deg, rgba(240, 245, 255, 0.8) 0%, rgba(255, 255, 255, 0.9) 100%);
}

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

.hero-text {
    flex: 0 0 55%;
}

.hero-text h1 {
    font-size: 4rem;
    margin-bottom: 10px;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
}

.hero-text h1::after {
    content: "";
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--accent-light);
    opacity: 0.1;
    border-radius: 50%;
    top: -15px;
    left: -15px;
    z-index: -1;
}

.hero-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-primary);
}

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

.hero-image {
    flex: 0 0 40%;
    display: flex;
    justify-content: center;
}

.profile-img {
    width: 300px;
    height: 300px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    overflow: hidden;
    border: 4px solid var(--accent-light);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.15), 0 0 0 10px rgba(59, 130, 246, 0.05);
    position: relative;
    animation: morphing 10s ease-in-out infinite;
}

.profile-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.1), rgba(59, 130, 246, 0));
    z-index: 1;
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@keyframes morphing {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }
    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
        box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2), 0 0 0 15px rgba(59, 130, 246, 0.05);
    }
    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

.hero-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--accent-color);
    top: 20%;
    left: -5%;
    filter: blur(50px);
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: var(--accent-light);
    bottom: 10%;
    right: 5%;
    filter: blur(40px);
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: linear-gradient(45deg, var(--accent-color), var(--accent-secondary));
    top: 60%;
    left: 40%;
    filter: blur(30px);
}

/* About Section */
.about-content {
    display: flex;
    justify-content: center;
}

.about-text {
    max-width: 800px;
    text-align: center;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.about-highlights {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.highlight-item {
    flex: 0 0 calc(33.333% - 20px);
    background-color: var(--card-bg);
    padding: 30px 25px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    min-width: 200px;
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

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

.highlight-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.12);
}

.highlight-item:hover::before {
    transform: translateY(0);
}

.highlight-item i {
    font-size: 38px;
    color: var(--accent-light);
    margin-bottom: 15px;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.highlight-item h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: var(--accent-color);
}

.highlight-item p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 35px;
}

.project-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    position: relative;
    z-index: 1;
    border: 1px solid var(--border-color);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.12);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(14, 165, 233, 0.05) 100%);
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

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

.project-img {
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--gradient);
    position: relative;
    overflow: hidden;
}

.project-img::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.15), rgba(0,0,0,0));
}

.project-img i {
    font-size: 70px;
    color: white;
    z-index: 1;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.2));
}

.project-info {
    padding: 30px;
}

.project-info h3 {
    margin-bottom: 12px;
    font-size: 1.4rem;
    color: var(--accent-color);
}

.project-info p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.7;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.project-tech span {
    background-color: var(--bg-secondary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: var(--transition);
    color: var(--text-secondary);
}

.project-tech span:hover {
    background-color: var(--accent-light);
    color: white;
}

.project-link {
    display: inline-block;
    font-weight: 500;
    color: var(--accent-light);
    transition: var(--transition);
    padding: 8px 0;
}

.project-link i {
    margin-left: 5px;
    transition: var(--transition);
}

.project-link:hover {
    color: var(--accent-color);
}

.project-link:hover i {
    transform: translateX(5px);
}

.section-bg-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--border-color) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.6;
    z-index: 0;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 35px;
    text-align: center;
}

.skill-card {
    background-color: var(--card-bg);
    padding: 35px 25px;
    border-radius: 15px;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.skill-card::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--accent-color);
    filter: blur(50px);
    opacity: 0.05;
    top: -30px;
    right: -30px;
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.12);
}

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

.skill-card i {
    font-size: 55px;
    margin-bottom: 20px;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 1px rgba(14, 165, 233, 0.1));
}

.skill-card h3 {
    font-size: 1.2rem;
    margin-bottom: 18px;
    color: var(--accent-color);
}

.skill-level {
    width: 100%;
    height: 8px;
    background-color: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: var(--gradient);
    border-radius: 4px;
    position: relative;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 10px;
    height: 100%;
    background: white;
    opacity: 0.2;
    filter: blur(3px);
}

/* Education Section */
.education-item {
    display: flex;
    align-items: center;
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--box-shadow);
    position: relative;
    z-index: 2;
    border: 1px solid var(--border-color);
}

.education-bg {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--accent-color);
    filter: blur(100px);
    opacity: 0.05;
    bottom: 0;
    right: 10%;
    z-index: 0;
}

.education-icon {
    margin-right: 35px;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-secondary);
    border-radius: 50%;
    box-shadow: var(--box-shadow);
    position: relative;
}

.education-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px dashed var(--accent-light);
    opacity: 0.3;
    animation: spin 20s linear infinite;
}

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

.education-icon i {
    font-size: 40px;
    color: var(--accent-light);
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.education-info h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--accent-color);
}

.education-info p {
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.institution {
    font-weight: 500;
}

.grade {
    color: var(--accent-light);
    font-weight: 600;
    display: inline-block;
    padding: 5px 12px;
    background-color: rgba(59, 130, 246, 0.1);
    border-radius: 5px;
}

/* Resume Section */
.resume-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--card-bg);
    padding: 50px 40px;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
    position: relative;
}

.resume-content::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--accent-light);
    border-radius: 50%;
    top: -20px;
    right: -20px;
    opacity: 0.1;
    z-index: -1;
}

.resume-content p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: var(--text-primary);
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    background-color: var(--card-bg);
    padding: 18px 22px;
    border-radius: 12px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.contact-item:hover {
    transform: translateX(5px);
    box-shadow: var(--box-shadow);
    border-left: 3px solid var(--accent-light);
}

.contact-item i {
    font-size: 25px;
    margin-right: 15px;
    color: var(--accent-light);
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.social-links {
    display: flex;
    margin-top: 30px;
    gap: 20px;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--card-bg);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.social-icon i {
    font-size: 22px;
    color: var(--accent-light);
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--gradient);
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
    border-color: transparent;
}

.social-icon:hover i {
    color: white;
}

.contact-form {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
    position: relative;
}

.contact-form::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--gradient);
    filter: blur(70px);
    opacity: 0.03;
    z-index: -1;
    bottom: -50px;
    right: -50px;
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-light);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.15);
}

/* Footer */
footer {
    background-color: var(--bg-secondary);
    padding: 30px 0;
    margin-top: 50px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .hero-text h2 {
        font-size: 1.8rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .about-highlights {
        flex-direction: column;
        align-items: center;
    }
    
    .highlight-item {
        width: 100%;
        max-width: 300px;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background-color: var(--bg-primary);
        transition: var(--transition);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 20px 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text {
        margin-bottom: 40px;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .projects-grid,
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-img {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 576px) {
    .section {
        padding: 70px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text h2 {
        font-size: 1.5rem;
    }
    
    .education-item {
        flex-direction: column;
        text-align: center;
    }
    
    .education-icon {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
} 