:root {
    --primary: #1a1a2e;
    --secondary: #4cc9f0;
    --accent: #f72585;
    --light: #e2e2e2;
    --dark: #16213e;
    --darker: #0f0f1b;
    --success: #4ade80;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--darker);
    color: var(--light);
    line-height: 1.6;
    min-height: 100vh;
}

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

header {
    background-color: var(--primary);
    color: white;
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

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

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--light);
}

.logo span {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
    position: relative;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    padding: 5px 0;
}

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

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

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

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger i {
    font-size: 24px;
    color: var(--light);
    transition: transform 0.3s;
}

.hamburger.active i {
    transform: rotate(90deg);
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(26, 26, 46, 0.9), rgba(26, 26, 46, 0.9)), url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
    justify-content: center;
}

.hero::before {
    position: relative;
    height: 100vh; /* Full screen height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center; /* Optional: for centering text */
    overflow: hidden; /* To keep any floating particles inside */
}

.hero-content {
    max-width: 800px;
    z-index: 1;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out 0.2s forwards;
    opacity: 0;
}

.btn {
    display: inline-block;
    background-color: var(--secondary);
    color: var(--darker);
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    animation: fadeInUp 1s ease-out 0.4s forwards;
    opacity: 0;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background-color: var(--accent);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(247, 37, 133, 0.3);
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--secondary);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background-color: var(--accent);
    bottom: 0;
    left: 25%;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.skill-card {
    background-color: var(--dark);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    border: 1px solid rgba(76, 201, 240, 0.1);
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(76, 201, 240, 0.3);
}

.skill-card i {
    font-size: 40px;
    color: var(--secondary);
    margin-bottom: 20px;
}

.skill-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--light);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.tech-item {
    perspective: 1000px;
    height: 120px;
}

.tech-item-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.tech-item:hover .tech-item-inner {
    transform: rotateY(180deg);
}

.tech-item-front, .tech-item-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border-radius: 10px;
    background-color: var(--dark);
    border: 1px solid rgba(76, 201, 240, 0.1);
}

.tech-item-back {
    background-color: var(--primary);
    transform: rotateY(180deg);
    border-color: rgba(247, 37, 133, 0.1);
}

.tech-item i {
    font-size: 30px;
    color: var(--secondary);
    margin-bottom: 10px;
}

.tech-item-back p {
    font-size: 12px;
    color: var(--light);
}

.experience-item {
    background-color: var(--dark);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
    border: 1px solid rgba(76, 201, 240, 0.1);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.experience-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--secondary), var(--accent));
    transition: width 0.3s;
}

.experience-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.experience-item:hover::before {
    width: 5px;
}

.experience-item h3 {
    font-size: 24px;
    color: var(--light);
    margin-bottom: 10px;
}

.experience-item .date {
    color: var(--secondary);
    font-weight: 500;
    margin-bottom: 15px;
    display: block;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--dark);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(76, 201, 240, 0.1);
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(76, 201, 240, 0.2);
    border-radius: 5px;
    font-size: 16px;
    background-color: var(--primary);
    color: var(--light);
    transition: all 0.3s;
}

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

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

.contact-info {
    text-align: center;
    margin-top: 30px;
}

.contact-info a {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.3s;
}

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

footer {
    background-color: var(--primary);
    color: white;
    text-align: center;
    padding: 30px 0;
    position: relative;
}

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

.social-links {
    margin-bottom: 20px;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: var(--dark);
    color: white;
    font-size: 18px;
    margin: 0 10px;
    border-radius: 50%;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: var(--secondary);
    color: var(--darker);
    transform: translateY(-3px);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--dark);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    border: 1px solid rgba(76, 201, 240, 0.1);
}

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

.project-image {
    height: 200px;
    background-color: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.project-image i {
    font-size: 60px;
    color: var(--secondary);
    z-index: 1;
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(76, 201, 240, 0.1) 0%, rgba(247, 37, 133, 0.1) 100%);
}

.project-content {
    padding: 20px;
}

.project-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--light);
}

.project-content p {
    margin-bottom: 15px;
    font-size: 14px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.project-tag {
    background-color: var(--primary);
    color: var(--secondary);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

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

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 1;
    }
    20% {
        transform: scale(25, 25);
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: scale(40, 40);
    }
}

@media (max-width: 1024px) {
    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--primary);
        flex-direction: column;
        align-items: center;
        padding-top: 30px;
        transition: left 0.3s;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 32px;
    }
}

/* Chat Widget Styles */
#chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
  }
  
  #chat-icon {
    width: 60px;
    height: 60px;
    background-color: var(--secondary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transition: all 0.3s;
  }
  
  #chat-icon:hover {
    transform: scale(1.1);
    background-color: var(--accent);
  }
  
  #chat-icon i {
    font-size: 24px;
    color: white;
  }
  
  #chat-container {
    width: 350px;
    height: 500px;
    background-color: var(--dark);
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(76, 201, 240, 0.2);
  }
  
  .chat-header {
    background-color: var(--primary);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .chat-header h3 {
    margin: 0;
    font-size: 16px;
  }
  
  #close-chat {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
  }
  
  .chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
  }
  
  .chat-input {
    padding: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  
  .chat-input textarea {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid rgba(76, 201, 240, 0.2);
    background-color: var(--primary);
    color: white;
    resize: none;
    height: 80px;
    margin-bottom: 10px;
  }
  
  .chat-input button {
    width: 100%;
    padding: 10px;
    background-color: var(--secondary);
    color: var(--darker);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
  }
  
  .chat-input button:hover {
    background-color: var(--accent);
    color: white;
  }
  
  .message {
    margin-bottom: 15px;
    padding: 10px 15px;
    border-radius: 18px;
    max-width: 80%;
    word-wrap: break-word;
  }
  
  .user-message {
    background-color: var(--secondary);
    color: var(--darker);
    margin-left: auto;
    border-bottom-right-radius: 5px;
  }
  
  .bot-message {
    background-color: var(--primary);
    color: white;
    margin-right: auto;
    border-bottom-left-radius: 5px;
  }
  
  .hidden {
    display: none !important;
  }

  /* Typing Indicator */
.typing-indicator {
    opacity: 0.7;
    font-style: italic;
}

.typing-dots {
    display: inline-flex;
    align-items: center;
    height: 17px;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    margin: 0 2px;
    background-color: var(--secondary);
    border-radius: 50%;
    display: inline-block;
    animation: typing-dots 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: 0s;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing-dots {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-5px); }
}

/* Timestamp */
.timestamp {
    display: block;
    font-size: 0.7em;
    opacity: 0.6;
    margin-top: 4px;
    text-align: right;
}

/* Message content */
.message-content {
    white-space: pre-wrap;
    word-break: break-word;
}

/* Education Section */
#education {
    background-color: var(--darker);
}

.education-item {
    display: flex;
    background-color: var(--dark);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    border: 1px solid rgba(76, 201, 240, 0.1);
}

.education-icon {
    font-size: 40px;
    color: var(--secondary);
    margin-right: 30px;
    min-width: 60px;
    text-align: center;
}

.education-content h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--light);
}

.education-content .date {
    color: var(--secondary);
    font-weight: 500;
    margin-bottom: 15px;
    display: block;
}

/* Certifications Section */
#certifications {
    background-color: var(--primary);
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.certification-card {
    background-color: var(--dark);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: all 0.3s;
    border: 1px solid rgba(76, 201, 240, 0.1);
}

.certification-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.certification-logo {
    height: 60px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.certification-logo img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.certification-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--light);
}

.certification-card .date {
    color: var(--secondary);
    font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .education-item {
        flex-direction: column;
    }
    
    .education-icon {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .certifications-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}