@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: rgba(255, 255, 255, 0.05);
    --text-primary: #ffffff;
    --text-secondary: #d1d5db;
    --accent-1: #ff0080;
    --accent-2: #00ffcc;
    --border-color: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(255, 255, 255, 0.05);
    --progress-bg: rgba(255, 255, 255, 0.3);
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    transition: all 0.3s ease;
}

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.gradient-text {
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

.tool-card {
    transition: all 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 255, 204, 0.2);
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    border-radius: 3px;
}

.nav-link {
    position: relative;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translate(0, 0px); }
    50% { transform: translate(0, -15px); }
    100% { transform: translate(0, 0px); }
}

.typewriter {
    overflow: hidden;
    border-right: 2px solid var(--accent-2);
    white-space: nowrap;
    margin: 0 auto;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--accent-2); }
}

.glow {
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.3);
}

.social-icon {
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.social-icon:hover {
    transform: scale(1.2);
    color: var(--accent-2);
}

/* Stories Section Styles */
.stories-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.stories-container {
    width: 100%;
    position: relative;
    margin: 20px auto;
}

.stories-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 0 10px;
}

.stories-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
}

.stories-slider {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 5px 0 15px;
    scrollbar-width: none;
}

.stories-slider::-webkit-scrollbar {
    display: none;
}

.story-card {
    flex: 0 0 110px;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s;
}

.story-card:hover {
    transform: scale(1.03);
}

.story-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
}

.user-avatar {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid var(--accent-2);
}

.user-name {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    color: white;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.add-story {
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 15px;
}

.add-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, var(--accent-1), var(--accent-2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.add-icon i {
    color: white;
    font-size: 20px;
}

.add-text {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.2s;
    border: 1px solid var(--border-color);
}

.control-btn:hover {
    background: var(--bg-secondary);
}

.control-btn i {
    color: var(--text-primary);
    font-size: 18px;
}

.love-reaction {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 60px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s;
    z-index: 10;
}

.love-reaction.active {
    animation: heartAnimation 1s forwards;
}

@keyframes heartAnimation {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -70%) scale(1);
    }
}

.story-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
}

.story-viewer.active {
    display: flex;
}

.viewer-content {
    width: 100%;
    max-width: 400px;
    height: 85vh;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.viewer-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.viewer-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 15px;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(0, 0, 0, 0.5), transparent);
}

.viewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--accent-2);
    margin-right: 10px;
}

.viewer-name {
    color: white;
    font-weight: 500;
    font-size: 16px;
}

.viewer-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 101;
}

.viewer-reaction {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.reaction-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.2s;
}

.reaction-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.reaction-btn i {
    color: white;
    font-size: 24px;
}

.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--progress-bg);
    display: flex;
    gap: 3px;
    padding: 10px;
}

.progress-segment {
    flex: 1;
    height: 3px;
    background: var(--progress-bg);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: white;
    border-radius: 2px;
    transition: width 0.1s linear;
}

/* Skills Section Styles */
#skills {
    padding: 80px 20px;
    position: relative;
}

.timeline {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-1), var(--accent-2));
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 60px;
    position: relative;
    width: 45%;
    padding: 25px;
    border-radius: 16px;
    background: var(--bg-secondary);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 55%;
}

.timeline-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--accent-2);
    font-weight: 600;
}

.timeline-item p {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.timeline-item span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.timeline-item span:hover {
    transform: translateY(-3px);
    background: rgba(0, 255, 204, 0.1);
    border-color: rgba(0, 255, 204, 0.3);
    box-shadow: 0 5px 15px rgba(0, 255, 204, 0.2);
}

.timeline-item span i {
    font-size: 1.2rem;
}

/* Form Inputs */
input, textarea {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

input::placeholder, textarea::placeholder {
    color: var(--text-secondary);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-2);
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
}

/* Mobile Navigation Styles */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    z-index: 50;
    padding: 10px;
}

.mobile-nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-primary);
    font-size: 12px;
    transition: all 0.3s ease;
}

.mobile-nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
}

.mobile-nav-item.active {
    color: var(--accent-2);
}

/* Desktop Navigation Styles */
.desktop-nav {
    display: flex;
}

/* Tools Grid Responsive */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .tools-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        width: calc(100% - 80px);
        left: 80px !important;
    }
    
    .timeline-item:nth-child(even) {
        left: 80px !important;
    }
    
    .story-card {
        flex: 0 0 100px;
        height: 180px;
    }
    
    .typewriter {
        white-space: normal;
        border-right: none;
        animation: none;
        width: 100%;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .mobile-nav {
        display: block;
    }
    
    .stories-section {
        padding-top: 100px;
    }
    
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .story-card {
        flex: 0 0 90px;
        height: 160px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .typewriter {
        font-size: 1.2rem;
    }
    
    .mobile-nav-item i {
        font-size: 18px;
    }
    
    .mobile-nav-item span {
        font-size: 10px;
    }
}

/* See More Button */
.see-more-btn {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.see-more-btn:hover {
    background: var(--accent-2);
    color: var(--bg-primary);
}

/* Hidden tools */
.tool-hidden {
    display: none;
}

/* Skill Icons */
.skill-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}