/* Base Styles and Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    --primary-color: #4cc9f0;
    --secondary-color: #3a86ff;
    --accent-color: #7209b7;
    --dark-color: #0a192f;
    --darker-color: #020c1b;
    --light-color: #ccd6f6;
    --text-color: #8892b0;
    --bg-color: #0a192f;
    --card-bg: #112240;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

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

.primary-btn:hover {
    background-color: rgba(76, 201, 240, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

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

.secondary-btn:hover {
    background-color: rgba(204, 214, 246, 0.1);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Section Title Styles */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    color: var(--light-color);
}

.line {
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 0 auto;
    position: relative;
}

.line::before {
    content: '';
    position: absolute;
    width: 50px;
    height: 4px;
    background: var(--accent-color);
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.6;
    }
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: rgba(10, 25, 47, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--light-color);
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

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

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

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

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

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--light-color);
    margin: 5px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-color);
    padding-top: 80px;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
}

.hero-text {
    flex: 1;
    animation: fadeInLeft 1s ease;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: var(--light-color);
}

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

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 500px;
}

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

.typewriter {
    margin-bottom: 20px;
}

.typed-text {
    color: var(--primary-color);
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

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

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

.social-icons a:hover {
    background-color: rgba(76, 201, 240, 0.1);
    transform: translateY(-5px);
}

/* Circular Image Window */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    animation: floating 3s ease-in-out infinite;
}

.hero-image img {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.hero-image img:hover {
    box-shadow: 0 15px 40px rgba(76, 201, 240, 0.2);
    transform: scale(1.03);
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
    border: 2px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.about-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(76, 201, 240, 0.2);
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--light-color);
}

.about-text p {
    margin-bottom: 15px;
}

/* Skills Section - Uniform Tile Sizes */
.skills {
    background-color: var(--darker-color);
}

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

.skills-category h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-align: center;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
    justify-items: center;
}

.skill-card {
    background-color: var(--card-bg);
    width: 120px;
    height: 120px;
    padding: 15px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid rgba(76, 201, 240, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.skill-card img {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
}

.skill-card p {
    font-weight: 500;
    color: var(--light-color);
    font-size: 0.9rem;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}
.skills-content-hidden {
    display: none;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease;
    margin-top: 40px;
}

.skills-content-hidden.show {
    display: block;
    opacity: 1;
    max-height: 2000px; /* Adjust based on content */
    animation: fadeInUp 0.6s ease;
}

.show-more-container {
    text-align: center;
    margin-top: 40px;
}

.show-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.show-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(76, 201, 240, 0.2);
}

.btn-icon {
    transition: transform 0.3s ease;
}

.show-more-btn.active .btn-icon {
    transform: rotate(180deg);
}

/* Add these animations to keep consistency */
.skills-content-hidden.show .skill-card {
    animation: fadeInUp 0.6s ease;
    animation-fill-mode: both;
}

.skills-content-hidden.show .skill-card:nth-child(1) { animation-delay: 0.1s; }
.skills-content-hidden.show .skill-card:nth-child(2) { animation-delay: 0.2s; }
.skills-content-hidden.show .skill-card:nth-child(3) { animation-delay: 0.3s; }
.skills-content-hidden.show .skill-card:nth-child(4) { animation-delay: 0.4s; }
.skills-content-hidden.show .skill-card:nth-child(5) { animation-delay: 0.5s; }

.blogs {
    padding: 80px 0;
    background:var(--card-bg);
    color: #fff;
  }
  
  .blogs-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
  }
  
  .blog-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    width: 300px;
    box-shadow: 0 0 10px rgba(0,0,0,0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform: rotateY(0deg);
  }
  
  .blog-card:hover {
    transform: scale(1.05) rotateY(5deg);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.1);
  }
  
  .blog-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
  }
  
  .blog-content {
    padding: 20px;
  }
  
  .blog-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #00ffe0;
  }
  
  .blog-content p {
    font-size: 14px;
    margin-bottom: 15px;
    color: #ccc;
  }
  
  .blog-content a {
    text-decoration: none;
    color: #00bfff;
    font-weight: 500;
    transition: color 0.3s;
  }
  
  .blog-content a:hover {
    color: #00ffe0;
  }
  .blog-tiles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding-top: 30px;
  }
  

.projects {
    background-color: var(--bg-color);
    padding: 100px 0;
}

.projects-grid.floating-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    padding: 20px 0;
    position: relative;
}

.project-card.floating-tile {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(76, 201, 240, 0.1);
    position: relative;
    transform: translateY(0);
}

/* Floating animation */
.floating-tile {
    animation: float 6s ease-in-out infinite;
}

.floating-tile:nth-child(1) { animation-delay: 0s; }
.floating-tile:nth-child(2) { animation-delay: 0.5s; }
.floating-tile:nth-child(3) { animation-delay: 1s; }
.floating-tile:nth-child(4) { animation-delay: 1.5s; }
.floating-tile:nth-child(5) { animation-delay: 2s; }
.floating-tile:nth-child(6) { animation-delay: 2.5s; }

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

.project-card.floating-tile:hover {
    transform: translateY(-30px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
    animation-play-state: paused;
}

.project-card.floating-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(76, 201, 240, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.project-image {
    overflow: hidden;
    height: 200px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card.floating-tile:hover .project-image img {
    transform: scale(1.1);
}

.project-content {
    padding: 25px;
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--light-color);
    transition: color 0.3s ease;
}

.project-card.floating-tile:hover .project-content h3 {
    color: var(--primary-color);
}

.project-content p {
    margin-bottom: 20px;
    line-height: 1.6;
    color: var(--text-color);
}

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

.project-tags span {
    background-color: rgba(76, 201, 240, 0.1);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-card.floating-tile:hover .project-tags span {
    background-color: rgba(76, 201, 240, 0.2);
}

.project-links {
    display: flex;
    gap: 20px;
}

.project-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: auto;
    position: relative;
    z-index: 10;
}

.project-links a:hover {
    color: var(--light-color);
    transform: translateX(5px);
}

.project-links a i {
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .projects-grid.floating-tiles {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .projects-grid.floating-tiles {
        grid-template-columns: 1fr;
    }
    
    .floating-tile {
        animation: float 4s ease-in-out infinite;
    }
    
    @keyframes float {
        0%, 100% {
            transform: translateY(0px);
        }
        50% {
            transform: translateY(-10px);
        }
    }
}

/* Gradient overlay effect on hover */
.project-card.floating-tile::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(transparent, rgba(10, 25, 47, 0.9));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: auto;
}

.project-card.floating-tile:hover::after {
    opacity: 0.8;
}

/* Card glow effect */
.project-card.floating-tile:hover {
    box-shadow: 0 8px 30px rgba(76, 201, 240, 0.2),
                0 0 0 1px rgba(76, 201, 240, 0.1);
}

/* Parallax effect for background */
.projects {
    position: relative;
    overflow: hidden;
}

.projects::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(76, 201, 240, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: backgroundScroll 30s linear infinite;
    pointer-events: auto;
}

@keyframes backgroundScroll {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}
/* Experience Section */
.experience {
    background-color: var(--darker-color);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 100%;
    margin-bottom: 50px;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 20px;
    transform: translateX(-50%);
    z-index: 10;
}

.timeline-content {
    padding: 20px;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    width: calc(50% - 40px);
    transition: var(--transition);
    border: 1px solid rgba(76, 201, 240, 0.1);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.timeline-content.left {
    float: left;
}

.timeline-content.right {
    float: right;
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--light-color);
}

.timeline-content h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.timeline-date {
    font-style: italic;
    color: #8892b0;
    margin-bottom: 10px;
}

.timeline-item::after {
    content: '';
    display: table;
    clear: both;
}

/* Contact Section */
.contact {
    background-color: var(--darker-color);
}
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-card {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(76, 201, 240, 0.1);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.contact-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-card h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--light-color);
}

.contact-card p {
    color: var(--text-color);
    text-align: center;
}

.contact-form form {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(76, 201, 240, 0.1);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--text-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background-color: rgba(10, 25, 47, 0.5);
    color: var(--light-color);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(76, 201, 240, 0.1);
}

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

/* Footer */
footer {
    background-color:var(--card-bg);
    color: var(--text-color);
    padding: 30px 0;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

footer .social-icons {
    justify-content: center;
    margin-top: 15px;
}

footer .social-icons a {
    background-color: transparent;
    border: 1px solid var(--primary-color);
}

footer .social-icons a:hover {
    background-color: rgba(76, 201, 240, 0.1);
}

/* Animations */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes floating {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

.hero-text {
    animation: fadeInLeft 1s ease;
}

.hero-image {
    animation: fadeInRight 1s ease;
}

.skill-card, .project-card, .contact-card, .timeline-item {
    animation: fadeInUp 0.8s ease;
    animation-fill-mode: both;
}

.skill-card:nth-child(1), .project-card:nth-child(1), .contact-card:nth-child(1) {
    animation-delay: 0.1s;
}

.skill-card:nth-child(2), .project-card:nth-child(2), .contact-card:nth-child(2) {
    animation-delay: 0.2s;
}

.skill-card:nth-child(3), .project-card:nth-child(3), .contact-card:nth-child(3) {
    animation-delay: 0.3s;
}

.skill-card:nth-child(4), .project-card:nth-child(4) {
    animation-delay: 0.4s;
}

.skill-card:nth-child(5), .project-card:nth-child(5) {
    animation-delay: 0.5s;
}

.skill-card:nth-child(6), .project-card:nth-child(6) {
    animation-delay: 0.6s;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-content, .about-content, .contact-content {
        flex-direction: column;
        gap: 50px;
    }
    
    .hero-text, .hero-image, .about-image, .about-text {
        text-align: center;
        max-width: 100%;
    }
    
    .hero-buttons, .social-icons {
        justify-content: center;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-dot {
        left: 30px;
    }
    
    .timeline-content {
        width: calc(100% - 80px);
        float: right;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .burger {
        display: block;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .skill-card {
        width: 100px;
        height: 100px;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text h2 {
        font-size: 1.8rem;
    }
    
    .hero-image img {
        width: 300px;
        height: 300px;
    }
}

/* Dark Mode Add-ons */
::-webkit-scrollbar {
    width: 10px;
}

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

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

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

::selection {
    background: var(--primary-color);
    color: var(--darker-color);
}