:root {
    --primary-color: #00f2fe;
    --secondary-color: #ff00ff;
    --accent-color: #ff6b35;
    --bg-dark: #0a0a0a;
    --bg-card: #1a1a2e;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --text-primary: #ffffff;
    --text-secondary: #b4b4b4;
    --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
    position: relative;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

.preloader-spinner {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    position: relative;
}

.spinner-circle {
    width: 100%;
    height: 100%;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.preloader-text {
    font-size: 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.scrolled {
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo .logo-text {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 25px;
    height: 20px;
    position: relative;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: var(--text-primary);
    transition: var(--transition);
    position: absolute;
    left: 0;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 50%;
    margin-top: -1.5px;
}

.hamburger span:nth-child(3) {
    bottom: 0;
}

.hamburger.active span:nth-child(1) {
    top: 50%;
    margin-top: -1.5px;
    transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    bottom: 50%;
    margin-bottom: -1.5px;
    transform: rotate(-45deg);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
}

.hero-content {
    text-align: center;
    z-index: 10;
    position: relative;
}

.wave {
    display: inline-block;
    animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 32px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-weight: 300;
}

.typing-text::after {
    content: '|';
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 10px;
    background: var(--primary-color);
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; top: 10px; }
    100% { opacity: 0; top: 30px; }
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
    width: 28px;
    height: 28px;
    font-size: 16px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: help;
    transition: var(--transition);
    vertical-align: middle;
    position: relative;
}

.info-icon::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    font-weight: 400;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 242, 254, 0.3);
}

.info-icon::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.95);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.info-icon:hover {
    color: var(--primary-color);
    background: rgba(0, 242, 254, 0.1);
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.info-icon:hover::before,
.info-icon:hover::after {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    margin: 0 auto;
    border-radius: 2px;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.about-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    flex: 1 1 calc(50% - 15px);
    max-width: 600px;
    min-width: 280px;
}

.about-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 242, 254, 0.2);
}

.card-icon {
    font-size: 48px;
    color: var(--primary-color);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.card-header .card-icon {
    font-size: 36px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-header h3 {
    margin-bottom: 0 !important;
}

.about-card h3 {
    font-size: 26px;
    margin-bottom: 25px;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.info-list {
    list-style: none;
}

.info-list li {
    padding: 15px 20px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border-left: 3px solid var(--primary-color);
    transition: var(--transition);
}

.info-list li:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(5px);
}

.info-list .label {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-block;
    min-width: 100px;
}

.info-list .value {
    color: var(--text-primary);
    margin-left: 10px;
    font-weight: 500;
}

.experience-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.experience-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 242, 254, 0.1);
}

.experience-item:last-child {
    margin-bottom: 0;
}

.exp-icon {
    color: var(--primary-color);
    font-size: 28px;
    background: rgba(0, 242, 254, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
}

.exp-content h4 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 600;
}

.exp-content p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.stats-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 80px 0;
}

.stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

.stat-card {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    flex: 1 1 calc(33.333% - 27px);
    max-width: 350px;
    min-width: 220px;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.stat-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 16px;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.skill-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    flex: 1 1 calc(33.333% - 20px);
    max-width: 450px;
    min-width: 280px;
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 242, 254, 0.2);
}

.skill-card h3 {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.skill-item {
    margin-bottom: 25px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    transition: width 1s ease-out;
    width: 0;
}

.portfolio-section {
    background: var(--bg-dark);
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 16px;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

.portfolio-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.portfolio-item {
    transition: var(--transition);
    flex: 1 1 calc(33.333% - 20px);
    max-width: 400px;
    min-width: 280px;
}

.portfolio-item.hide {
    display: none;
}

.portfolio-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    height: 350px;
    background: var(--bg-card);
    width: 100%;
}

.portfolio-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
    background: #1a1a2e;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.9));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
    text-align: center;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-card:hover img {
    transform: scale(1.1);
}

.portfolio-overlay h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: white;
    word-wrap: break-word;
    width: 100%;
}

.portfolio-overlay p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    word-wrap: break-word;
    width: 100%;
}

.portfolio-hint {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: rgba(255, 255, 255, 0.7);
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 12px;
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
    white-space: nowrap;
}

.portfolio-card:hover .portfolio-hint {
    opacity: 1;
}

.projects-section {
    background: linear-gradient(135deg, #0f0f1e 0%, #1a1a2e 100%);
}

.projects-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 50px;
    justify-content: center;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1 1 calc(33.333% - 20px);
    max-width: 450px;
    min-width: 280px;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 242, 254, 0.2);
}

.project-icon {
    font-size: 64px;
    color: var(--primary-color);
    margin-bottom: 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 25px;
    flex-grow: 1;
}

.project-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 242, 254, 0.3);
}

.project-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 242, 254, 0.5);
}

.project-btn i {
    font-size: 14px;
}

.servers-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 100%);
}

.servers-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 50px;
    justify-content: center;
}

.servers-subtitle {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 60px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.servers-subtitle i {
    color: var(--primary-color);
    font-size: 24px;
}

.server-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    flex: 1 1 calc(33.333% - 20px);
    max-width: 100%;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

.servers-grid:has(.server-card:only-child) .server-card {
    max-width: 100%;
}

.server-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 242, 254, 0.2);
}

.server-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.server-game {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.server-game i {
    font-size: 18px;
    color: var(--primary-color);
}

.server-status-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.server-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
}

.server-status.online {
    color: #4ade80;
}

.server-status.online i {
    color: #4ade80;
    animation: pulse 2s ease-in-out infinite;
}

.server-status.offline {
    color: #f87171;
}

.server-status.offline i {
    color: #f87171;
}

.server-mode {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    padding: 5px 12px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.1), rgba(255, 0, 255, 0.1));
    color: var(--primary-color);
    font-weight: 500;
}

.server-mode.mode-jailbreak {
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.15), rgba(255, 140, 0, 0.15));
    color: #ff8c00;
}

.server-mode.mode-public {
    background: linear-gradient(135deg, rgba(0, 255, 127, 0.15), rgba(34, 139, 34, 0.15));
    color: #00ff7f;
}

.server-mode.mode-darkrp {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.15), rgba(75, 0, 130, 0.15));
    color: #9370db;
}

.server-mode.mode-deathrun {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.15), rgba(139, 0, 0, 0.15));
    color: #ff6347;
}

.server-mode.mode-surf {
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.15), rgba(30, 144, 255, 0.15));
    color: #00bfff;
}

.server-mode.mode-bhop {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 165, 0, 0.15));
    color: #ffd700;
}

.server-mode.mode-awp {
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.15), rgba(178, 34, 34, 0.15));
    color: #dc143c;
}

.server-mode.mode-zombie {
    background: linear-gradient(135deg, rgba(50, 205, 50, 0.15), rgba(0, 128, 0, 0.15));
    color: #32cd32;
}

.server-mode i {
    font-size: 8px;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.server-name {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.server-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
    flex-grow: 1;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 14px;
}

.info-row i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.server-players {
    font-weight: 500;
}

.current-players {
    color: var(--primary-color);
    font-weight: 600;
}

.server-map {
    font-family: 'Courier New', monospace;
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 8px;
    border-radius: 4px;
}

.server-ip {
    font-family: 'Courier New', monospace;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 8px;
    border-radius: 4px;
}

.server-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 242, 254, 0.3);
    margin-top: auto;
}

.server-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 242, 254, 0.5);
}

.server-btn i {
    font-size: 14px;
}

.contact-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.contact-card {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    flex: 1 1 calc(33.333% - 20px);
    max-width: 350px;
    min-width: 220px;
}

.contact-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 242, 254, 0.2);
}

.contact-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.contact-card a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.contact-card a:hover {
    color: var(--primary-color);
}

.footer {
    background: var(--bg-dark);
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-content p {
    color: var(--text-secondary);
    margin: 0;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: translateY(-3px);
}

.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 5px 20px rgba(0, 242, 254, 0.3);
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 242, 254, 0.5);
}

.fade-in {
    animation: fadeIn 1s ease-out;
}

.fade-in-up {
    animation: fadeInUp 1s ease-out;
}

.card-animated {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.card-animated:nth-child(1) { animation-delay: 0.1s; }
.card-animated:nth-child(2) { animation-delay: 0.2s; }
.card-animated:nth-child(3) { animation-delay: 0.3s; }
.card-animated:nth-child(4) { animation-delay: 0.4s; }
.card-animated:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    padding: 50px 20px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.image-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 40px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10001;
    background: none;
    border: none;
    line-height: 1;
}

.modal-close:hover {
    color: white;
    transform: scale(1.1);
}

.modal-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    padding: 15px 30px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 25px;
    max-width: 80%;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-caption h3 {
    font-size: 24px;
    margin-bottom: 5px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-caption p {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px 20px;
    font-size: 30px;
    cursor: pointer;
    border-radius: 50%;
    transition: var(--transition);
    z-index: 10001;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-nav:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: translateY(-50%) scale(1.1);
}

.modal-prev {
    left: 30px;
}

.modal-next {
    right: 30px;
}

/* Large Desktops */
@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
    }

    .hero-title {
        font-size: 72px;
    }

    .hero-subtitle {
        font-size: 36px;
    }

    .section-title {
        font-size: 56px;
    }
}

/* Medium Desktops and Laptops */
@media (max-width: 1440px) {
    .container {
        max-width: 1140px;
    }

    .hero-title {
        font-size: 56px;
    }

    .hero-subtitle {
        font-size: 28px;
    }
}

/* Small Laptops */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 24px;
    }

    .section-title {
        font-size: 40px;
    }

    .servers-subtitle {
        font-size: 26px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.98);
        width: 100%;
        padding: 40px;
        gap: 20px;
        transition: var(--transition);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        padding: 12px 30px;
        font-size: 14px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 32px;
    }

    .servers-subtitle {
        font-size: 24px;
    }

    .server-card,
    .project-card,
    .skill-card,
    .about-card,
    .stat-card,
    .contact-card {
        padding: 20px;
    }

    .server-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .server-status-group {
        width: 100%;
        justify-content: flex-start;
        gap: 10px;
    }

    .server-name {
        font-size: 20px;
    }

    .project-title {
        font-size: 20px;
    }

    .project-description {
        font-size: 14px;
    }

    .portfolio-filters {
        gap: 10px;
        flex-wrap: wrap;
    }

    .filter-btn {
        font-size: 14px;
        padding: 8px 16px;
    }

    .info-icon {
        margin-left: 8px;
        width: 24px;
        height: 24px;
        font-size: 14px;
    }

    .info-icon::before {
        font-size: 12px;
        padding: 8px 12px;
        white-space: normal;
        max-width: 200px;
    }

    .footer-content {
        text-align: center;
        justify-content: center;
    }

    .modal-content {
        max-width: 95%;
        max-height: 80vh;
    }

    .modal-close {
        top: 10px;
        right: 10px;
        font-size: 40px;
        width: 40px;
        height: 40px;
    }

    .modal-nav {
        width: 50px;
        height: 50px;
        font-size: 24px;
        padding: 10px;
    }

    .modal-prev {
        left: 10px;
    }

    .modal-next {
        right: 10px;
    }

    .modal-caption {
        bottom: 20px;
        padding: 10px 20px;
        max-width: 90%;
    }

    .modal-caption h3 {
        font-size: 18px;
    }

    .modal-caption p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .section-title {
        font-size: 28px;
    }

    .servers-subtitle {
        font-size: 20px;
    }

    .stat-number {
        font-size: 32px;
    }

    .stat-label {
        font-size: 13px;
    }

    .server-name,
    .project-title {
        font-size: 18px;
    }

    .contact-card h3 {
        font-size: 16px;
    }

    .modal-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .modal-prev {
        left: 10px;
    }

    .modal-next {
        right: 10px;
    }

    .modal-caption {
        bottom: 20px;
        padding: 10px 20px;
        max-width: 90%;
    }

    .modal-caption h3 {
        font-size: 18px;
    }

    .modal-caption p {
        font-size: 14px;
    }

    .btn {
        padding: 10px 25px;
        font-size: 13px;
    }
}

/* Small Phones */
@media (max-width: 375px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-description {
        font-size: 14px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 12px;
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 24px;
    }

    .servers-subtitle {
        font-size: 18px;
    }

    .server-card,
    .project-card,
    .skill-card,
    .about-card,
    .stat-card,
    .contact-card {
        padding: 15px;
    }

    .stat-number {
        font-size: 28px;
    }

    .project-icon,
    .stat-icon,
    .contact-icon,
    .card-icon {
        font-size: 36px;
    }

    .server-name {
        font-size: 16px;
    }

    .project-title {
        font-size: 16px;
    }

    .info-row {
        font-size: 13px;
    }

    .filter-btn {
        font-size: 12px;
        padding: 6px 12px;
    }

    .nav-menu {
        padding: 30px 20px;
    }

    .modal-nav {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .nav-logo .logo-text {
        font-size: 24px;
    }

    .about-card h3,
    .skill-card h3 {
        font-size: 20px;
    }
}

/* Extra Small Devices */
@media (max-width: 320px) {
    .hero-title {
        font-size: 22px;
    }

    .section-title {
        font-size: 22px;
    }

    .btn {
        padding: 8px 18px;
        font-size: 11px;
    }

    .server-card,
    .project-card {
        padding: 12px;
    }

    .stat-number {
        font-size: 24px;
    }

    .nav-logo .logo-text {
        font-size: 22px;
    }
}
